Skip to content

Commit

Permalink
[TASK] Require friendsofphp/php-cs-fixer:^3.27 (#432)
Browse files Browse the repository at this point in the history
Nightly got red. Raise php-cs-fixer, update
ruleset and apply cgl fixes.

> composer req --dev friendsofphp/php-cs-fixer:^3.27
> Build/Scripts/runTests.sh -p 8.1 -s cgl
  • Loading branch information
lolli42 committed Sep 18, 2023
1 parent eab8399 commit 1d9bed3
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Build/php-cs-fixer/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
'declare_parentheses' => true,
'dir_constant' => true,
'function_to_constant' => ['functions' => ['get_called_class', 'get_class', 'get_class_this', 'php_sapi_name', 'phpversion', 'pi']],
'function_typehint_space' => true,
'type_declaration_spaces' => true,
'lowercase_cast' => true,
'method_argument_space' => ['on_multiline' => 'ensure_fully_multiline'],
'modernize_strpos' => true,
Expand Down
3 changes: 1 addition & 2 deletions Classes/Controller/BackendController.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,7 @@ public function __construct(
private readonly ModuleTemplateFactory $moduleTemplateFactory,
private readonly PageRenderer $pageRenderer,
private readonly FlashMessageService $flashMessageService,
) {
}
) {}

/**
* Main entry point dispatcher
Expand Down
4 changes: 1 addition & 3 deletions Classes/Exception.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,4 @@
/**
* General styleguide exception
*/
class Exception extends \Exception
{
}
class Exception extends \Exception {}
4 changes: 1 addition & 3 deletions Classes/TcaDataGenerator/Exception.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,4 @@
/**
* TcaDataGenerator exception
*/
class Exception extends \TYPO3\CMS\Styleguide\Exception
{
}
class Exception extends \TYPO3\CMS\Styleguide\Exception {}
4 changes: 1 addition & 3 deletions Classes/TcaDataGenerator/GeneratorNotFoundException.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,4 @@
/**
* Exception thrown if FieldGenerator does not find a class
*/
class GeneratorNotFoundException extends Exception
{
}
class GeneratorNotFoundException extends Exception {}
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"codeception/module-asserts": "^3.0",
"codeception/module-cli": "^2.0",
"codeception/module-webdriver": "^4.0",
"friendsofphp/php-cs-fixer": "^3.16.0",
"friendsofphp/php-cs-fixer": "^3.27",
"phpstan/phpstan": "^1.10.14",
"typo3/cms-core": "~12.4@dev",
"typo3/cms-frontend": "~12.4@dev",
Expand Down

0 comments on commit 1d9bed3

Please sign in to comment.