Skip to content

Commit

Permalink
Remove spaces around strict_types (#77)
Browse files Browse the repository at this point in the history
* Remove spaces around strict_types

To be in line with Drupal Core.

* Update files

* More fixes
  • Loading branch information
acbramley authored Jan 14, 2024
1 parent 3fc10b5 commit c24fdce
Show file tree
Hide file tree
Showing 58 changed files with 58 additions and 58 deletions.
2 changes: 1 addition & 1 deletion PreviousNextDrupal/ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
<!-- SlevomatCodingStandard.TypeHints -->
<rule ref="SlevomatCodingStandard.TypeHints.DeclareStrictTypes">
<properties>
<property name="spacesCountAroundEqualsSign" type="int" value="1" />
<property name="spacesCountAroundEqualsSign" type="int" value="0" />
</properties>
</rule>

Expand Down
2 changes: 1 addition & 1 deletion tests/Ignore/Base.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare(strict_types = 1);
declare(strict_types=1);

namespace PreviousNext\CodingStandard\Tests\Ignore;

Expand Down
2 changes: 1 addition & 1 deletion tests/Ignore/IgnoreDocCommentSniffTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare(strict_types = 1);
declare(strict_types=1);

namespace PreviousNext\CodingStandard\Tests\Ignore;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare(strict_types = 1);
declare(strict_types=1);

namespace PreviousNext\CodingStandard\Tests\Ignore;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare(strict_types = 1);
declare(strict_types=1);

namespace PreviousNext\CodingStandard\Tests\Ignore;

Expand Down
2 changes: 1 addition & 1 deletion tests/Ignore/IgnoreDrupalCommentingFunctionCommentTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare(strict_types = 1);
declare(strict_types=1);

namespace PreviousNext\CodingStandard\Tests\Ignore;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare(strict_types = 1);
declare(strict_types=1);

namespace PreviousNext\CodingStandard\Tests\Ignore;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare(strict_types = 1);
declare(strict_types=1);

namespace PreviousNext\CodingStandard\Tests\Ignore;

Expand Down
2 changes: 1 addition & 1 deletion tests/Ignore/IgnoreUnreachableTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare(strict_types = 1);
declare(strict_types=1);

namespace PreviousNext\CodingStandard\Tests\Ignore;

Expand Down
2 changes: 1 addition & 1 deletion tests/Ignore/fixtures/IgnoreDocCommentSniff.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare(strict_types = 1);
declare(strict_types=1);

namespace PreviousNext\CodingStandard\Tests\Ignore\fixtures;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php

declare(strict_types = 1);
declare(strict_types=1);

$foo = ['Lorem ipsum dolor sit amet, consectetur adipiscing elit', 'sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.'];
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare(strict_types = 1);
declare(strict_types=1);

namespace PreviousNext\CodingStandard\Tests\Ignore\fixtures;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare(strict_types = 1);
declare(strict_types=1);

/**
* @param class-string $a
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare(strict_types = 1);
declare(strict_types=1);

/**
* @return class-string
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php

declare(strict_types = 1);
declare(strict_types=1);

// @TODO: fix this or that.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare(strict_types = 1);
declare(strict_types=1);

namespace PreviousNext\CodingStandard\Tests\Ignore\fixtures;

Expand Down
2 changes: 1 addition & 1 deletion tests/Ignore/fixtures/IgnoreUnreachable.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare(strict_types = 1);
declare(strict_types=1);

namespace PreviousNext\CodingStandard\Tests\Ignore\fixtures;

Expand Down
2 changes: 1 addition & 1 deletion tests/Sniffs/AlphabeticallySortedUsesTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare(strict_types = 1);
declare(strict_types=1);

namespace PreviousNext\CodingStandard\Tests\Sniffs;

Expand Down
2 changes: 1 addition & 1 deletion tests/Sniffs/Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// rule of this standard until it has been reworked.
// @codingStandardsIgnoreFile

declare(strict_types = 1);
declare(strict_types=1);

namespace PreviousNext\CodingStandard\Tests\Sniffs;

Expand Down
2 changes: 1 addition & 1 deletion tests/Sniffs/ClassStructureTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare(strict_types = 1);
declare(strict_types=1);

namespace PreviousNext\CodingStandard\Tests\Sniffs;

Expand Down
2 changes: 1 addition & 1 deletion tests/Sniffs/DrupalRulesetTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare(strict_types = 1);
declare(strict_types=1);

namespace PreviousNext\CodingStandard\Tests\Sniffs;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare(strict_types = 1);
declare(strict_types=1);

namespace PreviousNext\CodingStandard\Tests\Sniffs;

Expand Down
2 changes: 1 addition & 1 deletion tests/Sniffs/FunctionOpeningBraceSpaceSpacingAfterTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare(strict_types = 1);
declare(strict_types=1);

namespace PreviousNext\CodingStandard\Tests\Sniffs;

Expand Down
2 changes: 1 addition & 1 deletion tests/Sniffs/RequireMultiLineMethodSignatureTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare(strict_types = 1);
declare(strict_types=1);

namespace PreviousNext\CodingStandard\Tests\Sniffs;

Expand Down
2 changes: 1 addition & 1 deletion tests/Sniffs/RequireTrailingCommaInCallTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare(strict_types = 1);
declare(strict_types=1);

namespace PreviousNext\CodingStandard\Tests\Sniffs;

Expand Down
2 changes: 1 addition & 1 deletion tests/Sniffs/RequireTrailingCommaInDeclarationTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare(strict_types = 1);
declare(strict_types=1);

namespace PreviousNext\CodingStandard\Tests\Sniffs;

Expand Down
2 changes: 1 addition & 1 deletion tests/Sniffs/ReturnTypeHintSpacingTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare(strict_types = 1);
declare(strict_types=1);

namespace PreviousNext\CodingStandard\Tests\Sniffs;

Expand Down
2 changes: 1 addition & 1 deletion tests/Sniffs/ReturnTypeHintTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare(strict_types = 1);
declare(strict_types=1);

namespace PreviousNext\CodingStandard\Tests\Sniffs;

Expand Down
2 changes: 1 addition & 1 deletion tests/Sniffs/StrictTypesTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare(strict_types = 1);
declare(strict_types=1);

namespace PreviousNext\CodingStandard\Tests\Sniffs;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare(strict_types = 1);
declare(strict_types=1);

namespace PreviousNext\CodingStandard\Tests\Sniffs;

Expand Down
2 changes: 1 addition & 1 deletion tests/Sniffs/fixtures/AlphabeticallySortedUsesError.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare(strict_types = 1);
declare(strict_types=1);

namespace Sniffs\fixtures;

Expand Down
2 changes: 1 addition & 1 deletion tests/Sniffs/fixtures/AlphabeticallySortedUsesNoError.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare(strict_types = 1);
declare(strict_types=1);

namespace Sniffs\fixtures;

Expand Down
2 changes: 1 addition & 1 deletion tests/Sniffs/fixtures/ClassStructureError.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare(strict_types = 1);
declare(strict_types=1);

namespace Sniffs\fixtures;

Expand Down
2 changes: 1 addition & 1 deletion tests/Sniffs/fixtures/ClassStructureNoError.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare(strict_types = 1);
declare(strict_types=1);

namespace Sniffs\fixtures;

Expand Down
2 changes: 1 addition & 1 deletion tests/Sniffs/fixtures/DrupalRulesetError.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php

declare(strict_types = 1);
declare(strict_types=1);

if (true) $a = 1;
2 changes: 1 addition & 1 deletion tests/Sniffs/fixtures/DrupalRulesetNoError.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* A passing fixture.
*/

declare(strict_types = 1);
declare(strict_types=1);

if (TRUE) {
$a = 1;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare(strict_types = 1);
declare(strict_types=1);

namespace Sniffs\fixtures;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare(strict_types = 1);
declare(strict_types=1);

namespace Sniffs\fixtures;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare(strict_types = 1);
declare(strict_types=1);

namespace Sniffs\fixtures;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare(strict_types = 1);
declare(strict_types=1);

namespace Sniffs\fixtures;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare(strict_types = 1);
declare(strict_types=1);

namespace Sniffs\fixtures;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare(strict_types = 1);
declare(strict_types=1);

namespace Sniffs\fixtures;

Expand Down
2 changes: 1 addition & 1 deletion tests/Sniffs/fixtures/RequireTrailingCommaInCallError.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare(strict_types = 1);
declare(strict_types=1);

hello(
'foo',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare(strict_types = 1);
declare(strict_types=1);

hello(
'foo',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare(strict_types = 1);
declare(strict_types=1);

namespace Sniffs\fixtures;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare(strict_types = 1);
declare(strict_types=1);

namespace Sniffs\fixtures;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare(strict_types = 1);
declare(strict_types=1);

namespace PreviousNext\CodingStandard\Tests\Sniffs\fixtures;

Expand Down
2 changes: 1 addition & 1 deletion tests/Sniffs/fixtures/ReturnTypeHintIgnoreTraversable.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare(strict_types = 1);
declare(strict_types=1);

/**
* A function.
Expand Down
2 changes: 1 addition & 1 deletion tests/Sniffs/fixtures/ReturnTypeHintNoError.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare(strict_types = 1);
declare(strict_types=1);

/**
* A function.
Expand Down
2 changes: 1 addition & 1 deletion tests/Sniffs/fixtures/ReturnTypeHintSpacingError.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare(strict_types = 1);
declare(strict_types=1);

/**
* A function.
Expand Down
Loading

0 comments on commit c24fdce

Please sign in to comment.