-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This reverts commit 961103e. Revert "[CS] Code cleanup (Part 8)" This reverts commit 17f89ae. Revert "[CS] Code cleanup (Part 7)" This reverts commit e58d99a. Revert "[CS] Code cleanup (Part 6)" This reverts commit f33f251. Revert "[CS] Code cleanup (Part 5)" This reverts commit ac62d05. Revert "[CS] Code cleanup (Part 4)" This reverts commit 2e2a00a. Revert "[CS] Code cleanup (Part 3)" This reverts commit ca1cffb. Revert "[CS] Code cleanup (Part 2)"This reverts commit a700968. Revert "[CS] Code cleanup (Part 1)" This reverts commit 14d7eb6.
- Loading branch information
HorstOeko
committed
Jan 16, 2025
1 parent
961103e
commit c6c592b
Showing
37 changed files
with
582 additions
and
471 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,39 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
use Rector\Config\RectorConfig; | ||
use Rector\Set\ValueObject\SetList; | ||
use Rector\Naming\Rector\Class_\RenamePropertyToMatchTypeRector; | ||
use Rector\Naming\Rector\ClassMethod\RenameParamToMatchTypeRector; | ||
use Rector\DeadCode\Rector\ClassMethod\RemoveUselessParamTagRector; | ||
use Rector\DeadCode\Rector\ClassMethod\RemoveUselessReturnTagRector; | ||
use Rector\CodingStyle\Rector\Encapsed\EncapsedStringsToSprintfRector; | ||
use Rector\Naming\Rector\ClassMethod\RenameVariableToMatchNewTypeRector; | ||
use Rector\Php80\Rector\Class_\ClassPropertyAssignToConstructorPromotionRector; | ||
|
||
return RectorConfig::configure() | ||
->withPaths([ | ||
__DIR__ . '/../src', | ||
__DIR__ . '/../tests', | ||
]) | ||
->withSkip([ | ||
__DIR__ . '/../examples', | ||
__DIR__ . '/../make', | ||
]) | ||
->withSkip([ | ||
//ClassPropertyAssignToConstructorPromotionRector::class | ||
]) | ||
->withPhpSets(php73: true) | ||
->withConfiguredRule(EncapsedStringsToSprintfRector::class, [ | ||
'always' => true, | ||
]) | ||
->withPreparedSets( | ||
codeQuality: true, | ||
codingStyle: true, | ||
deadCode: false, | ||
typeDeclarations: true, | ||
privatization: true, | ||
naming: false, | ||
instanceOf: true, | ||
earlyReturn: true, | ||
strictBooleans: true, | ||
phpunitCodeQuality: true | ||
); | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
use Rector\CodingStyle\Rector\Encapsed\EncapsedStringsToSprintfRector; | ||
use Rector\Config\RectorConfig; | ||
use Rector\DeadCode\Rector\ClassMethod\RemoveUselessParamTagRector; | ||
use Rector\DeadCode\Rector\ClassMethod\RemoveUselessReturnTagRector; | ||
use Rector\Naming\Rector\Class_\RenamePropertyToMatchTypeRector; | ||
use Rector\Naming\Rector\ClassMethod\RenameParamToMatchTypeRector; | ||
use Rector\Naming\Rector\ClassMethod\RenameVariableToMatchNewTypeRector; | ||
use Rector\Set\ValueObject\SetList; | ||
|
||
return RectorConfig::configure() | ||
->withPaths([ | ||
__DIR__ . '/../examples', | ||
__DIR__ . '/../make', | ||
__DIR__ . '/../src', | ||
__DIR__ . '/../tests', | ||
]) | ||
->withSkip([ | ||
RemoveUselessParamTagRector::class, | ||
RemoveUselessReturnTagRector::class, | ||
]) | ||
->withPhp73Sets() | ||
->withSets([ | ||
SetList::DEAD_CODE, | ||
SetList::CODE_QUALITY, | ||
SetList::CODING_STYLE, | ||
]) | ||
->withConfiguredRule(EncapsedStringsToSprintfRector::class, [ | ||
'always' => true, | ||
]) | ||
->withRules([ | ||
RenamePropertyToMatchTypeRector::class, | ||
RenameParamToMatchTypeRector::class, | ||
RenameVariableToMatchNewTypeRector::class, | ||
]) | ||
->withTypeCoverageLevel(0); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
parameters: | ||
paths: | ||
- ../src | ||
- ../tests | ||
level: 5 | ||
treatPhpDocTypesAsCertain: false | ||
excludePaths: | ||
- ../src/entities/* | ||
- ../tests/helpers/TestOutputInterface.php | ||
parameters: | ||
paths: | ||
- ../src | ||
- ../tests | ||
level: 5 | ||
treatPhpDocTypesAsCertain: false | ||
excludePaths: | ||
- ../src/entities/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,43 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd" bootstrap="../vendor/autoload.php" backupGlobals="false" backupStaticAttributes="false" colors="true" verbose="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" processIsolation="false" stopOnFailure="false"> | ||
<testsuites> | ||
<testsuite name="Classes"> | ||
<file>../tests/testcases/ZugferdMailConfigTest.php</file> | ||
<file>../tests/testcases/ZugferdMailAccountTest.php</file> | ||
<file>../tests/testcases/ZugferdMailStringHelperTest.php</file> | ||
<file>../tests/testcases/ZugferdMailPlaceholderHelperTest.php</file> | ||
</testsuite> | ||
<testsuite name="Concerns"> | ||
<file>../tests/testcases/ZugferdMailConcernRaisesExceptionsTest.php</file> | ||
<file>../tests/testcases/ZugferdMailConcernMessageBagTest.php</file> | ||
<file>../tests/testcases/ZugferdMailConcernParsesPlaceholdersTest.php</file> | ||
<file>../tests/testcases/ZugferdMailConcernConsoleOutputsMessageBagMessagesTest.php</file> | ||
<file>../tests/testcases/ZugferdMailConcernConsoleHandlesConfigOptionsTest.php</file> | ||
<file>../tests/testcases/ZugferdMailConcernConsoleHandlesMailAccountOptionsTest.php</file> | ||
</testsuite> | ||
<testsuite name="Handlers"> | ||
<file>../tests/testcases/BuiltinHandlersTest.php</file> | ||
</testsuite> | ||
</testsuites> | ||
<coverage processUncoveredFiles="true"> | ||
<include> | ||
<directory suffix=".php">../src</directory> | ||
</include> | ||
<exclude> | ||
<file>../src/bin/ZugferdMailConsole.php</file> | ||
</exclude> | ||
<report> | ||
<xml outputDirectory="coverage"/> | ||
<html outputDirectory="coverage-html"/> | ||
<clover outputFile="logs/clover.xml"/> | ||
<crap4j outputFile="logs/crap4j.xml" threshold="50"/> | ||
</report> | ||
</coverage> | ||
<logging> | ||
<junit outputFile="./logs/junit.xml"/> | ||
<testdoxHtml outputFile="./logs/testdox.html"/> | ||
</logging> | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd" bootstrap="../vendor/autoload.php" backupGlobals="false" backupStaticAttributes="false" colors="true" verbose="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" processIsolation="false" stopOnFailure="false"> | ||
<testsuites> | ||
<testsuite name="Basic"> | ||
<file>../tests/testcases/BasicTest.php</file> | ||
</testsuite> | ||
<testsuite name="Classes"> | ||
<file>../tests/testcases/ZugferdMailConfigTest.php</file> | ||
<file>../tests/testcases/ZugferdMailAccountTest.php</file> | ||
<file>../tests/testcases/ZugferdMailStringHelperTest.php</file> | ||
<file>../tests/testcases/ZugferdMailPlaceholderHelperTest.php</file> | ||
</testsuite> | ||
<testsuite name="Concerns"> | ||
<file>../tests/testcases/ZugferdMailConcernRaisesExceptionsTest.php</file> | ||
<file>../tests/testcases/ZugferdMailConcernMessageBagTest.php</file> | ||
<file>../tests/testcases/ZugferdMailConcernParsesPlaceholdersTest.php</file> | ||
<file>../tests/testcases/ZugferdMailConcernConsoleOutputsMessageBagMessagesTest.php</file> | ||
<file>../tests/testcases/ZugferdMailConcernConsoleHandlesConfigOptionsTest.php</file> | ||
<file>../tests/testcases/ZugferdMailConcernConsoleHandlesMailAccountOptionsTest.php</file> | ||
</testsuite> | ||
<testsuite name="Handlers"> | ||
<file>../tests/testcases/BuiltinHandlersTest.php</file> | ||
</testsuite> | ||
</testsuites> | ||
<coverage processUncoveredFiles="true"> | ||
<include> | ||
<directory suffix=".php">../src</directory> | ||
</include> | ||
<exclude> | ||
<file>../src/bin/ZugferdMailConsole.php</file> | ||
</exclude> | ||
<report> | ||
<xml outputDirectory="coverage"/> | ||
<html outputDirectory="coverage-html"/> | ||
<clover outputFile="logs/clover.xml"/> | ||
<crap4j outputFile="logs/crap4j.xml" threshold="50"/> | ||
</report> | ||
</coverage> | ||
<logging> | ||
<junit outputFile="./logs/junit.xml"/> | ||
<testdoxHtml outputFile="./logs/testdox.html"/> | ||
</logging> | ||
</phpunit> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.