Skip to content

Commit

Permalink
Updating php-cs-fixer to use PSR12 and latest version (#121)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hackwar authored Jan 25, 2023
1 parent 6340eba commit 9912ebf
Show file tree
Hide file tree
Showing 4 changed files with 230 additions and 366 deletions.
20 changes: 20 additions & 0 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php

$mainFinder = PhpCsFixer\Finder::create()
->in(
[
__DIR__ . '/bin',
__DIR__ . '/src',
__DIR__ . '/www',
]
);

$config = new PhpCsFixer\Config();
return $config->setRules(
[
'@PSR12' => true,
'array_syntax' => ['syntax' => 'short'],
]
)
->setRiskyAllowed(true)
->setFinder($mainFinder);
98 changes: 0 additions & 98 deletions .php_cs

This file was deleted.

6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"homepage": "http://github.com/joomla/framework.joomla.org",
"license": "GPL-2.0-or-later",
"require": {
"php": "^7.2",
"php": "^7.4",
"ext-json": "*",
"ext-pdo": "*",
"fig/link-util": "^1.1",
Expand Down Expand Up @@ -41,7 +41,7 @@
"twig/twig": "^3.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^2.16.4",
"friendsofphp/php-cs-fixer": "^3.13.2",
"squizlabs/php_codesniffer": "~3.0",
"maximebf/debugbar": "^1.16.3"
},
Expand All @@ -57,7 +57,7 @@
},
"config": {
"platform": {
"php": "7.2.21"
"php": "7.4.0"
}
}
}
Loading

0 comments on commit 9912ebf

Please sign in to comment.