src/Robo/Tasks/DrushTask.php
protected function mixedToBool($mixedVar) {
    if (is_string($mixedVar)) {
      $boolVar = ($mixedVar === 'yes' || $mixedVar === 'true');
    }
    else {
      $boolVar = (bool) $mixedVar;
    }
    return $boolVar;
  }
protected function mixedToBool($mixedVar) {
    if (is_string($mixedVar)) {
      $boolVar = ($mixedVar === 'yes' || $mixedVar === 'true');
    }
    else {
      $boolVar = (bool) $mixedVar;
    }
    return $boolVar;
  }
protected function mixedToBool ( $ mixedVar ) { if ( is_string ( $ mixedVar ) ) { $ boolVar = ( $ mixedVar === 'yes' || $ mixedVar === 'true' ) ; } else { $ boolVar = ( bool ) $ mixedVar ; } return $ boolVar ; }
Helper function to get the boolean equivalent of a variable.

@param mixed $mixedVar

@return bool
TRUE/FALSE as per PHP's cast to boolean ruleset, with the exception that
a string value not equal to 'yes' or 'true' will evaluate to FALSE.
Helper function to get the boolean equivalent of a variable .