Make php-cs-fixer happy

This commit is contained in:
Thomas Müller 2020-07-09 10:44:12 +02:00
parent 521724eaf7
commit 9a7f3cbf8a
5 changed files with 5 additions and 2 deletions

View file

@ -121,6 +121,7 @@ class Tools {
echo $prompt;
@flush();
@ob_flush();
return @trim(fgets(STDIN));
}

View file

@ -48,8 +48,6 @@ class Cli extends \Flake\Core\Render\Container {
}
}
/**************************************************************************/
public $sLog = "";
function sys_init() {

View file

@ -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
}

View file

@ -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);
}

View file

@ -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
}