Created
October 26, 2015 22:53
-
-
Save mathollingsworth/14f17e5c4366855ab5ae to your computer and use it in GitHub Desktop.
A common approach
This file contains 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
public function getTheNameOfTheBestBreakingBadCharacter() { | |
$allTheCharacters = $dataLayer->getAllCharacters(); | |
$currentCharacter = null; | |
foreach ($allTheCharacters as $theCharacter) { | |
if($currentCharacter == null || $theCharacter>isBetter($currentCharacter)){ | |
$currentCharacter = $theCharacter | |
} | |
} | |
return $currentCharacter | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment