Skip to content

Commit 95ce081

Browse files
authored
Merge pull request #332 from Philipp91/csfixer
Some PHP CS-Fixer things
2 parents 345ef2d + 58ee0f1 commit 95ce081

File tree

134 files changed

+282
-192
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

134 files changed

+282
-192
lines changed

.php_cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
<?php
22

3-
// This is based on the `@Symfony` rule set in `vendor/friendsofphp/php-cs-fixer/src/RuleSet.php`.
3+
// This is based on the `@Symfony` rule set documented in `vendor/friendsofphp/php-cs-fixer/doc/ruleSets/Symfony.rst`.
44

55
$finder = PhpCsFixer\Finder::create()
66
->in(__DIR__ . '/lib');
77

8-
return PhpCsFixer\Config::create()
8+
return (new PhpCsFixer\Config())
99
->setRules([
10+
// We essentially use the Symfony style guide.
1011
'@Symfony' => true,
1112

13+
// But then we have some exclusions, i.e. we disable some of the checks/rules from Symfony:
1214
// Logic
1315
'yoda_style' => null, // Allow both Yoda-style and regular comparisons.
1416

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"require-dev": {
1919
"phpunit/phpunit": "9.5.*",
2020
"php-mock/php-mock-phpunit": "2.6.*",
21-
"friendsofphp/php-cs-fixer": "2.17.*"
21+
"friendsofphp/php-cs-fixer": "2.18.*"
2222
},
2323
"suggest": {
2424
"monolog/monolog": "Allow sending log messages to a variety of different handlers",

composer.lock

Lines changed: 15 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/Fhp/Action/GetSEPADirectDebitParameters.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,6 @@ public function getMinimalLeadTime(): ?MinimaleVorlaufzeitSEPALastschrift
7373
if ($parsed instanceof MinimaleVorlaufzeitSEPALastschrift) {
7474
return $parsed;
7575
}
76-
return $parsed[$this->directDebitType] ?? null;
76+
return $parsed[$this->directDebitType] ?? null;
7777
}
7878
}

lib/Fhp/Model/Account.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
<?php /** @noinspection PhpUnused */
1+
<?php
2+
/** @noinspection PhpUnused */
23

34
namespace Fhp\Model;
45

lib/Fhp/Model/StatementOfAccount/Transaction.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
<?php /** @noinspection PhpUnused */
1+
<?php
2+
/** @noinspection PhpUnused */
23

34
namespace Fhp\Model\StatementOfAccount;
45

lib/Fhp/Model/TanMedium.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
<?php /** @noinspection PhpUnused */
1+
<?php
2+
/** @noinspection PhpUnused */
23

34
namespace Fhp\Model;
45

lib/Fhp/Model/TanMode.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
<?php /** @noinspection PhpUnused */
1+
<?php
2+
/** @noinspection PhpUnused */
23

34
namespace Fhp\Model;
45

lib/Fhp/Protocol/ActionIncompleteException.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
<?php /** @noinspection PhpUnused */
1+
<?php
2+
/** @noinspection PhpUnused */
23

34
namespace Fhp\Protocol;
45

lib/Fhp/Protocol/BPD.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
<?php /** @noinspection PhpUnused */
1+
<?php
2+
/** @noinspection PhpUnused */
23

34
namespace Fhp\Protocol;
45

0 commit comments

Comments
 (0)