Make php-cs-fixer happy
This commit is contained in:
parent
521724eaf7
commit
9a7f3cbf8a
5 changed files with 5 additions and 2 deletions
|
@ -121,6 +121,7 @@ class Tools {
|
|||
echo $prompt;
|
||||
@flush();
|
||||
@ob_flush();
|
||||
|
||||
return @trim(fgets(STDIN));
|
||||
}
|
||||
|
||||
|
|
|
@ -48,8 +48,6 @@ class Cli extends \Flake\Core\Render\Container {
|
|||
}
|
||||
}
|
||||
|
||||
/**************************************************************************/
|
||||
|
||||
public $sLog = "";
|
||||
|
||||
function sys_init() {
|
||||
|
|
|
@ -115,6 +115,7 @@ class Collection extends \Flake\Core\FLObject implements \Iterator {
|
|||
}
|
||||
|
||||
$var = null; # two lines instead of one
|
||||
|
||||
return $var; # as PHP needs a variable to return by ref
|
||||
}
|
||||
|
||||
|
@ -148,6 +149,7 @@ class Collection extends \Flake\Core\FLObject implements \Iterator {
|
|||
# This abstraction is useful because of CollectionTyped
|
||||
protected function newCollectionLikeThisOne() {
|
||||
$oCollection = new \Flake\Core\Collection(); # two lines instead of one
|
||||
|
||||
return $oCollection; # as PHP needs a variable to return by ref
|
||||
}
|
||||
|
||||
|
|
|
@ -112,6 +112,7 @@ abstract class Router extends \Flake\Core\FLObject {
|
|||
$sCurrentRoute = $GLOBALS["ROUTER"]::getCurrentRoute();
|
||||
|
||||
array_unshift($aParams, $sCurrentRoute); # Injecting route as first param
|
||||
|
||||
return call_user_func_array($GLOBALS["ROUTER"] . "::buildRoute", $aParams);
|
||||
}
|
||||
|
||||
|
|
|
@ -51,6 +51,7 @@ class QuestionMarkRewrite extends \Flake\Util\Router {
|
|||
}
|
||||
|
||||
$aBestMatches = array_pop($aMatches); // obtains the deepest matching route (higher number of slashes)
|
||||
|
||||
return array_shift($aBestMatches); // first route amongst best matches
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue