Skip to content

Commit ceab987

Browse files
authored
cleanup CS (#183)
1 parent f532eb3 commit ceab987

File tree

5 files changed

+16
-4
lines changed

5 files changed

+16
-4
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
/tags
66
/composer.lock
77
/phpunit.xml
8-
/phpcs.xml
98
/tools
109
/vendor
1110
*.mo
@@ -16,6 +15,7 @@ error.log
1615
/tests/test_app/config/TestsQueue/schema-dump-test.lock
1716
/tests/test_app/Plugin/TestBlog/config/Queue/*
1817
.phpunit.cache
18+
.phpcs.cache
1919

2020
# IDE and editor specific files #
2121
#################################

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@
6060
"@cs-check",
6161
"@test"
6262
],
63-
"cs-check": "phpcs --colors -p src/ tests/",
64-
"cs-fix": "phpcbf --colors -p src/ tests/",
63+
"cs-check": "phpcs",
64+
"cs-fix": "phpcbf",
6565
"stan": "@phpstan",
6666
"phpstan": "tools/phpstan analyse",
6767
"stan-baseline": "tools/phpstan --generate-baseline",

phpcs.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0"?>
2+
<ruleset name="CakePHP PluginInstaller">
3+
<file>src/</file>
4+
<file>tests/</file>
5+
<rule ref="CakePHP" />
6+
<arg value="nps"/>
7+
<arg name="colors"/>
8+
<arg name="parallel" value="4"/>
9+
<arg name="cache" value=".phpcs.cache"/>
10+
11+
<exclude-pattern>tests/comparisons/*</exclude-pattern>
12+
</ruleset>

rector.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
DocblockReturnArrayFromDirectArrayInstanceRector::class => [
2626
__DIR__ . '/src/Mailer/Transport/QueueTransport.php',
2727
],
28+
'tests/TestCase/Queue/ProcessorTest.php',
2829
])
2930
->withParallel()
3031
->withPreparedSets(

src/Job/SendMailJob.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ public function execute(Message $message): ?string
3838
try {
3939
$transportClassName = $message->getArgument('transport');
4040
$config = $message->getArgument('config', []);
41-
/** @var \Cake\Mailer\AbstractTransport $transport */
4241
$transport = $this->getTransport($transportClassName, $config);
4342

4443
$emailMessage = new MailerMessage();

0 commit comments

Comments
 (0)