src/CachedClipboard.php
protected function getMatchedAbilityId($abilityMap, $applicable)
    {
        foreach ($abilityMap as $id => $identifier) {
            if ($applicable->contains($identifier)) {
                return $id;
            }
        }
    }
protected function getMatchedAbilityId($abilityMap, $applicable)
    {
        foreach ($abilityMap as $id => $identifier) {
            if ($applicable->contains($identifier)) {
                return $id;
            }
        }
    }
protected function getMatchedAbilityId ( $ abilityMap , $ applicable ) { foreach ( $ abilityMap as $ id => $ identifier ) { if ( $ applicable -> contains ( $ identifier ) ) { return $ id ; } } }
Get the ID of the ability that matches one of the applicable abilities.

@param  \Illuminate\Support\Collection  $abilityMap
@param  \Illuminate\Support\Collection  $applicable
@return int|null
Get the ID of the ability that matches one of the applicable abilities .