Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
/tags
/composer.lock
/phpunit.xml
/phpcs.xml
/tools
/vendor
*.mo
Expand All @@ -16,6 +15,7 @@ error.log
/tests/test_app/config/TestsQueue/schema-dump-test.lock
/tests/test_app/Plugin/TestBlog/config/Queue/*
.phpunit.cache
.phpcs.cache

# IDE and editor specific files #
#################################
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@
"@cs-check",
"@test"
],
"cs-check": "phpcs --colors -p src/ tests/",
"cs-fix": "phpcbf --colors -p src/ tests/",
"cs-check": "phpcs",
"cs-fix": "phpcbf",
"stan": "@phpstan",
"phpstan": "tools/phpstan analyse",
"stan-baseline": "tools/phpstan --generate-baseline",
Expand Down
12 changes: 12 additions & 0 deletions phpcs.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0"?>
<ruleset name="CakePHP PluginInstaller">
<file>src/</file>
<file>tests/</file>
<rule ref="CakePHP" />
<arg value="nps"/>
<arg name="colors"/>
<arg name="parallel" value="4"/>
<arg name="cache" value=".phpcs.cache"/>

<exclude-pattern>tests/comparisons/*</exclude-pattern>
</ruleset>
1 change: 1 addition & 0 deletions rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
DocblockReturnArrayFromDirectArrayInstanceRector::class => [
__DIR__ . '/src/Mailer/Transport/QueueTransport.php',
],
'tests/TestCase/Queue/ProcessorTest.php',
])
->withParallel()
->withPreparedSets(
Expand Down
1 change: 0 additions & 1 deletion src/Job/SendMailJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ public function execute(Message $message): ?string
try {
$transportClassName = $message->getArgument('transport');
$config = $message->getArgument('config', []);
/** @var \Cake\Mailer\AbstractTransport $transport */
$transport = $this->getTransport($transportClassName, $config);

$emailMessage = new MailerMessage();
Expand Down
Loading