Last active
December 22, 2015 15:26
-
-
Save lorenzo/43ec9ef1bc2a141fe1e1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function isContained($normalized, $ImLookingForYou) { | |
foreach ($normalized as $alias => $meta) { | |
$exists = $alias === $ImLookingForYou; | |
return $exists || $this->isContained($meta->associations(), $ImLookingForYou); | |
} | |
return false; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment