Skip to content

Commit 07494e2

Browse files
authored
[1.x] Replace custom phpdoc_align rule with php-cs-fixer option (#242)
* Bump dependencies * Replace custom phpdoc_align fixer with php-cs-fixer option * fix tests and format
1 parent bdeb49d commit 07494e2

File tree

9 files changed

+107
-215
lines changed

9 files changed

+107
-215
lines changed

app/Factories/ConfigurationFactory.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace App\Factories;
44

5-
use App\Fixers\LaravelPhpdocAlignmentFixer;
65
use App\Repositories\ConfigurationJsonRepository;
76
use PhpCsFixer\Config;
87
use PhpCsFixer\Finder;
@@ -46,11 +45,7 @@ public static function preset($rules)
4645
->setFinder(self::finder())
4746
->setRules(array_merge($rules, resolve(ConfigurationJsonRepository::class)->rules()))
4847
->setRiskyAllowed(true)
49-
->setUsingCache(true)
50-
->registerCustomFixers([
51-
// Laravel...
52-
new LaravelPhpdocAlignmentFixer(),
53-
]);
48+
->setUsingCache(true);
5449
}
5550

5651
/**

app/Fixers/LaravelPhpdocAlignmentFixer.php

Lines changed: 0 additions & 109 deletions
This file was deleted.

app/Output/Concerns/InteractsWithSymbols.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
use PhpCsFixer\FixerFileProcessedEvent;
77

88
/**
9-
* @property \Symfony\Component\Console\Input\InputInterface $input
10-
* @property \Symfony\Component\Console\Output\OutputInterface $output
9+
* @property \Symfony\Component\Console\Input\InputInterface $input
10+
* @property \Symfony\Component\Console\Output\OutputInterface $output
1111
*/
1212
trait InteractsWithSymbols
1313
{

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@
2323
"ext-xml": "*"
2424
},
2525
"require-dev": {
26-
"friendsofphp/php-cs-fixer": "^3.46.0",
27-
"illuminate/view": "^10.39.0",
26+
"friendsofphp/php-cs-fixer": "^3.47.0",
27+
"illuminate/view": "^10.40.0",
2828
"larastan/larastan": "^2.8.1",
2929
"laravel-zero/framework": "^10.3.0",
3030
"mockery/mockery": "^1.6.7",
3131
"nunomaduro/termwind": "^1.15.1",
32-
"pestphp/pest": "^2.30.0"
32+
"pestphp/pest": "^2.31.0"
3333
},
3434
"autoload": {
3535
"psr-4": {

0 commit comments

Comments
 (0)