Skip to content

Commit 97b47b7

Browse files
authored
Apply DeclareAfterOpeningTagFixer (#657)
1 parent d506db6 commit 97b47b7

File tree

129 files changed

+130
-385
lines changed

Some content is hidden

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

129 files changed

+130
-385
lines changed

.dev-tools/phpcs.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414

1515
<rule ref='PSR12'>
1616
<exclude name='Generic.Files.LineLength' />
17+
<exclude name='PSR12.Files.FileHeader.SpacingAfterBlock' />
18+
<exclude name='PSR12.Files.OpenTag.NotAlone' />
1719
</rule>
1820

1921
</ruleset>

.dev-tools/src/Fixer/OrderedClassElementsInternalFixer.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php
1+
<?php declare(strict_types=1);
22

33
/*
44
* This file is part of PHP CS Fixer: custom fixers.
@@ -9,8 +9,6 @@
99
* the LICENSE file that was distributed with this source code.
1010
*/
1111

12-
declare(strict_types=1);
13-
1412
namespace PhpCsFixerCustomFixersDev\Fixer;
1513

1614
use PhpCsFixer\Fixer\FixerInterface;

.dev-tools/src/Fixer/PriorityInternalFixer.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php
1+
<?php declare(strict_types=1);
22

33
/*
44
* This file is part of PHP CS Fixer: custom fixers.
@@ -9,8 +9,6 @@
99
* the LICENSE file that was distributed with this source code.
1010
*/
1111

12-
declare(strict_types=1);
13-
1412
namespace PhpCsFixerCustomFixersDev\Fixer;
1513

1614
use PhpCsFixer\Fixer\FixerInterface;

.dev-tools/src/Fixers.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php
1+
<?php declare(strict_types=1);
22

33
/*
44
* This file is part of PHP CS Fixer: custom fixers.
@@ -9,8 +9,6 @@
99
* the LICENSE file that was distributed with this source code.
1010
*/
1111

12-
declare(strict_types=1);
13-
1412
namespace PhpCsFixerCustomFixersDev;
1513

1614
use PhpCsFixer\Fixer\FixerInterface;

.dev-tools/src/InfectionConfigBuilder.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php
1+
<?php declare(strict_types=1);
22

33
/*
44
* This file is part of PHP CS Fixer: custom fixers.
@@ -9,8 +9,6 @@
99
* the LICENSE file that was distributed with this source code.
1010
*/
1111

12-
declare(strict_types=1);
13-
1412
namespace PhpCsFixerCustomFixersDev;
1513

1614
use Infection\Mutator\ProfileList;

.dev-tools/src/OrderedClassElementsFixerWrapper.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php
1+
<?php declare(strict_types=1);
22

33
/*
44
* This file is part of PHP CS Fixer: custom fixers.
@@ -9,8 +9,6 @@
99
* the LICENSE file that was distributed with this source code.
1010
*/
1111

12-
declare(strict_types=1);
13-
1412
namespace PhpCsFixerCustomFixersDev;
1513

1614
use PhpCsFixer\Fixer\ClassNotation\OrderedClassElementsFixer;

.dev-tools/src/Priority/PriorityCollection.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php
1+
<?php declare(strict_types=1);
22

33
/*
44
* This file is part of PHP CS Fixer: custom fixers.
@@ -9,8 +9,6 @@
99
* the LICENSE file that was distributed with this source code.
1010
*/
1111

12-
declare(strict_types=1);
13-
1412
namespace PhpCsFixerCustomFixersDev\Priority;
1513

1614
use PhpCsFixer\Fixer\FixerInterface;

.dev-tools/src/Priority/PriorityFixer.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php
1+
<?php declare(strict_types=1);
22

33
/*
44
* This file is part of PHP CS Fixer: custom fixers.
@@ -9,8 +9,6 @@
99
* the LICENSE file that was distributed with this source code.
1010
*/
1111

12-
declare(strict_types=1);
13-
1412
namespace PhpCsFixerCustomFixersDev\Priority;
1513

1614
use PhpCsFixer\Fixer\FixerInterface;

.dev-tools/src/Readme/ReadmeCommand.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php
1+
<?php declare(strict_types=1);
22

33
/*
44
* This file is part of PHP CS Fixer: custom fixers.
@@ -9,8 +9,6 @@
99
* the LICENSE file that was distributed with this source code.
1010
*/
1111

12-
declare(strict_types=1);
13-
1412
namespace PhpCsFixerCustomFixersDev\Readme;
1513

1614
use PhpCsFixer\Console\Command\HelpCommand;

.php-cs-fixer.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php
1+
<?php declare(strict_types=1);
22

33
/*
44
* This file is part of PHP CS Fixer: custom fixers.
@@ -9,8 +9,6 @@
99
* the LICENSE file that was distributed with this source code.
1010
*/
1111

12-
declare(strict_types=1);
13-
1412
require_once __DIR__ . '/.dev-tools/vendor/kubawerlos/php-cs-fixer-config/src/Rules/RulesInterface.php';
1513
require_once __DIR__ . '/.dev-tools/vendor/kubawerlos/php-cs-fixer-config/src/Rules/LibraryRules.php';
1614
$rules = (new PhpCsFixerConfig\Rules\LibraryRules('PHP CS Fixer: custom fixers', 'Kuba Werłos', 2018))->getRules();
@@ -33,7 +31,6 @@
3331
unset($rules['modernize_strpos']); // TODO: remove when dropping support to PHP <8.0
3432
unset($rules['use_arrow_functions']); // TODO: remove when dropping support to PHP <7.4
3533
unset($rules[PhpCsFixerCustomFixers\Fixer\PromotedConstructorPropertyFixer::name()]); // TODO: remove when dropping support to PHP <8.0
36-
unset($rules[PhpCsFixerCustomFixers\Fixer\DeclareAfterOpeningTagFixer::name()]); // Only to have PR with this fixer smaller
3734

3835
foreach (new PhpCsFixerCustomFixersDev\Fixers() as $fixer) {
3936
$rules[$fixer->getName()] = true;

0 commit comments

Comments
 (0)