Skip to content

Commit afb607a

Browse files
committed
Apply coding standards tooling
1 parent 1ce54db commit afb607a

File tree

6 files changed

+304
-3
lines changed

6 files changed

+304
-3
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
/vendor/
22
/psalm.xml
33
/.phpunit.cache/
4+
/.phpcs-cache

composer.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,15 @@
2525
"symfony/console": "^6.4"
2626
},
2727
"require-dev": {
28+
"doctrine/coding-standard": "^12.0",
2829
"phpunit/phpunit": "^10.5",
2930
"vimeo/psalm": "^5.22"
3031
},
3132
"config": {
3233
"sort-packages": true,
33-
"preferred-install": "dist"
34+
"preferred-install": "dist",
35+
"allow-plugins": {
36+
"dealerdirect/phpcodesniffer-composer-installer": true
37+
}
3438
}
3539
}

composer.lock

+280-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

phpcs.xml.dist

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?xml version="1.0"?>
2+
<ruleset name="PIE Coding Standard">
3+
<config name="php_version" value="80100"/>
4+
<arg value="p"/>
5+
<arg value="s"/>
6+
<arg name="colors"/>
7+
<arg name="cache" value=".phpcs-cache"/>
8+
9+
<file>bin/pie</file>
10+
<file>src</file>
11+
<file>test/unit</file>
12+
13+
<rule ref="Doctrine">
14+
<exclude name="Generic.Files.LineLength.TooLong"/>
15+
</rule>
16+
</ruleset>

src/Command/DownloadCommand.php

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ final class DownloadCommand extends Command
1818
public function execute(InputInterface $input, OutputInterface $output): int
1919
{
2020
$output->writeln('<info>to do</info>'); // @todo
21+
2122
return Command::SUCCESS;
2223
}
2324
}

test/unit/Command/DownloadCommandTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class DownloadCommandTest extends TestCase
1515
{
1616
public function testDownloadCommand(): void
1717
{
18-
$input = $this->createMock(InputInterface::class);
18+
$input = $this->createMock(InputInterface::class);
1919
$output = $this->createMock(OutputInterface::class);
2020

2121
$output->expects(self::once())

0 commit comments

Comments
 (0)