From 62ac94c05848757d69b93b4473e6d78354e58e1a Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Tue, 19 Jan 2021 07:58:37 +0545 Subject: [PATCH] apply changes from php-cs-fixer v2.18.0 --- Core/Frameworks/Flake/Core/Controller.php | 2 +- Core/Frameworks/Flake/Util/Router.php | 4 ++-- Core/Frameworks/Flake/Util/Router/QuestionMarkRewrite.php | 2 +- composer.json | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Core/Frameworks/Flake/Core/Controller.php b/Core/Frameworks/Flake/Core/Controller.php index 33c81e4..3fafd09 100644 --- a/Core/Frameworks/Flake/Core/Controller.php +++ b/Core/Frameworks/Flake/Core/Controller.php @@ -38,7 +38,7 @@ abstract class Controller extends \Flake\Core\FLObject { return $this->aParams; } - static function link(/*[$sParam, $sParam2, ...]*/) { + static function link(/*[$sParam, $sParam2, ...]*/ ) { return static::buildRoute(); } diff --git a/Core/Frameworks/Flake/Util/Router.php b/Core/Frameworks/Flake/Util/Router.php index 74b405f..6718db3 100644 --- a/Core/Frameworks/Flake/Util/Router.php +++ b/Core/Frameworks/Flake/Util/Router.php @@ -107,7 +107,7 @@ abstract class Router extends \Flake\Core\FLObject { return $GLOBALS["ROUTER"]::buildRoute($sRouteForController, $aRewrittenParams); } - static function buildCurrentRoute(/*[$sParam, $sParam2, ...]*/) { + static function buildCurrentRoute(/*[$sParam, $sParam2, ...]*/ ) { $aParams = func_get_args(); $sCurrentRoute = $GLOBALS["ROUTER"]::getCurrentRoute(); @@ -128,7 +128,7 @@ abstract class Router extends \Flake\Core\FLObject { # this method is likely to change with every Router implementation # should be abstract, but is not, because of PHP's strict standards - static function buildRoute($sRoute, $aParams/* [, $sParam, $sParam2, ...] */) { + static function buildRoute($sRoute, $aParams/* [, $sParam, $sParam2, ...] */ ) { } # should be abstract, but is not, because of PHP's strict standards diff --git a/Core/Frameworks/Flake/Util/Router/QuestionMarkRewrite.php b/Core/Frameworks/Flake/Util/Router/QuestionMarkRewrite.php index f8b673b..8738e5c 100644 --- a/Core/Frameworks/Flake/Util/Router/QuestionMarkRewrite.php +++ b/Core/Frameworks/Flake/Util/Router/QuestionMarkRewrite.php @@ -55,7 +55,7 @@ class QuestionMarkRewrite extends \Flake\Util\Router { return array_shift($aBestMatches); // first route amongst best matches } - static function buildRoute($sRoute, $aParams = []/* [, $sParam, $sParam2, ...] */) { + static function buildRoute($sRoute, $aParams = []/* [, $sParam, $sParam2, ...] */ ) { # $aParams = func_get_args(); # array_shift($aParams); # Stripping $sRoute diff --git a/composer.json b/composer.json index 4f10eab..5802ae6 100644 --- a/composer.json +++ b/composer.json @@ -19,7 +19,7 @@ "symfony/yaml" : "^3.4" }, "require-dev" : { - "friendsofphp/php-cs-fixer": "^2.17" + "friendsofphp/php-cs-fixer": "^2.18" }, "replace" : { "jeromeschneider/baikal" : "self.version"