Skip to content

Commit

Permalink
[1.x] Replace custom phpdoc_align rule with php-cs-fixer option (#242)
Browse files Browse the repository at this point in the history
* Bump dependencies

* Replace custom phpdoc_align fixer with php-cs-fixer option

* fix tests and format
  • Loading branch information
Jubeki authored Jan 15, 2024
1 parent bdeb49d commit 07494e2
Show file tree
Hide file tree
Showing 9 changed files with 107 additions and 215 deletions.
7 changes: 1 addition & 6 deletions app/Factories/ConfigurationFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace App\Factories;

use App\Fixers\LaravelPhpdocAlignmentFixer;
use App\Repositories\ConfigurationJsonRepository;
use PhpCsFixer\Config;
use PhpCsFixer\Finder;
Expand Down Expand Up @@ -46,11 +45,7 @@ public static function preset($rules)
->setFinder(self::finder())
->setRules(array_merge($rules, resolve(ConfigurationJsonRepository::class)->rules()))
->setRiskyAllowed(true)
->setUsingCache(true)
->registerCustomFixers([
// Laravel...
new LaravelPhpdocAlignmentFixer(),
]);
->setUsingCache(true);
}

/**
Expand Down
109 changes: 0 additions & 109 deletions app/Fixers/LaravelPhpdocAlignmentFixer.php

This file was deleted.

4 changes: 2 additions & 2 deletions app/Output/Concerns/InteractsWithSymbols.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
use PhpCsFixer\FixerFileProcessedEvent;

/**
* @property \Symfony\Component\Console\Input\InputInterface $input
* @property \Symfony\Component\Console\Output\OutputInterface $output
* @property \Symfony\Component\Console\Input\InputInterface $input
* @property \Symfony\Component\Console\Output\OutputInterface $output
*/
trait InteractsWithSymbols
{
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@
"ext-xml": "*"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.46.0",
"illuminate/view": "^10.39.0",
"friendsofphp/php-cs-fixer": "^3.47.0",
"illuminate/view": "^10.40.0",
"larastan/larastan": "^2.8.1",
"laravel-zero/framework": "^10.3.0",
"mockery/mockery": "^1.6.7",
"nunomaduro/termwind": "^1.15.1",
"pestphp/pest": "^2.30.0"
"pestphp/pest": "^2.31.0"
},
"autoload": {
"psr-4": {
Expand Down
Loading

0 comments on commit 07494e2

Please sign in to comment.