Skip to content

Commit 960f35f

Browse files
committed
Run Pint instead of PHP-CS-Fixer
1 parent c4cdc36 commit 960f35f

File tree

4 files changed

+5
-9
lines changed

4 files changed

+5
-9
lines changed

.github/workflows/php-cs-fixer.yml renamed to .github/workflows/linting.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ jobs:
1313
ref: ${{ github.head_ref }}
1414

1515
- name: Run PHP CS Fixer
16-
uses: docker://oskarstark/php-cs-fixer-ga
17-
with:
18-
args: --config=.php_cs.dist.php --allow-risky=yes
16+
uses: aglipanci/[email protected]
1917

2018
- name: Commit changes
2119
uses: stefanzweifel/git-auto-commit-action@v5

src/Commands/InstallCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function handle(): int
3838

3939
protected function phpBinary(): string
4040
{
41-
return (new PhpExecutableFinder())->find(false) ?: 'php';
41+
return (new PhpExecutableFinder)->find(false) ?: 'php';
4242
}
4343

4444
private function ensureTailwindConfigExists(): void
@@ -111,7 +111,7 @@ private function appendTailwindStylesToLayouts(): void
111111
$this->existingLayoutFiles()
112112
->each(fn ($file) => File::put(
113113
$file,
114-
(new AppendTailwindTag())(File::get($file)),
114+
(new AppendTailwindTag)(File::get($file)),
115115
));
116116
}
117117

src/Http/Middleware/AddLinkHeaderForPreloadedAssets.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66

77
class AddLinkHeaderForPreloadedAssets
88
{
9-
public function __construct(private readonly Manifest $manifest)
10-
{
11-
}
9+
public function __construct(private readonly Manifest $manifest) {}
1210

1311
public function handle($request, $next)
1412
{

tests/AppendTailwindTagTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,6 @@ public function append_tailwind_tag_before_closing_head_tag(): void
4040
</html>
4141
BLADE;
4242

43-
$this->assertEquals($expected, (new AppendTailwindTag())($contents));
43+
$this->assertEquals($expected, (new AppendTailwindTag)($contents));
4444
}
4545
}

0 commit comments

Comments
 (0)