Skip to content

Instantly share code, notes, and snippets.

@szeidler
Created September 14, 2014 14:53
Show Gist options
  • Save szeidler/afb11c7033ee758919d9 to your computer and use it in GitHub Desktop.
Save szeidler/afb11c7033ee758919d9 to your computer and use it in GitHub Desktop.
This function name has a typo which makes me laugh
<?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