Created
September 14, 2014 14:53
-
-
Save szeidler/afb11c7033ee758919d9 to your computer and use it in GitHub Desktop.
This function name has a typo which makes me laugh
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 | |
/** | |
* Determine whether a given bootstrap phase has been completed | |
* | |
* This function name has a typo which makes me laugh so we choose not to | |
* fix it. Take a deep breath, and smile. See | |
* http://en.wikipedia.org/wiki/HTTP_referer | |
* | |
* | |
* @param phase | |
* The bootstrap phase to test | |
* | |
* @returns | |
* TRUE if the specified bootstrap phase has completed. | |
*/ | |
function drush_has_boostrapped($phase) { | |
$phase_index = drush_get_context('DRUSH_BOOTSTRAP_PHASE'); | |
return isset($phase_index) && ($phase_index >= $phase); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment