Skip to content

Commit c24fdce

Browse files
authored
Remove spaces around strict_types (#77)
* Remove spaces around strict_types To be in line with Drupal Core. * Update files * More fixes
1 parent 3fc10b5 commit c24fdce

File tree

58 files changed

+58
-58
lines changed

Some content is hidden

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

58 files changed

+58
-58
lines changed

PreviousNextDrupal/ruleset.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
<!-- SlevomatCodingStandard.TypeHints -->
4545
<rule ref="SlevomatCodingStandard.TypeHints.DeclareStrictTypes">
4646
<properties>
47-
<property name="spacesCountAroundEqualsSign" type="int" value="1" />
47+
<property name="spacesCountAroundEqualsSign" type="int" value="0" />
4848
</properties>
4949
</rule>
5050

tests/Ignore/Base.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
declare(strict_types = 1);
3+
declare(strict_types=1);
44

55
namespace PreviousNext\CodingStandard\Tests\Ignore;
66

tests/Ignore/IgnoreDocCommentSniffTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
declare(strict_types = 1);
3+
declare(strict_types=1);
44

55
namespace PreviousNext\CodingStandard\Tests\Ignore;
66

tests/Ignore/IgnoreDrupalArraysArrayLongLineDeclarationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
declare(strict_types = 1);
3+
declare(strict_types=1);
44

55
namespace PreviousNext\CodingStandard\Tests\Ignore;
66

tests/Ignore/IgnoreDrupalCommentingClassCommentShortTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
declare(strict_types = 1);
3+
declare(strict_types=1);
44

55
namespace PreviousNext\CodingStandard\Tests\Ignore;
66

tests/Ignore/IgnoreDrupalCommentingFunctionCommentTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
declare(strict_types = 1);
3+
declare(strict_types=1);
44

55
namespace PreviousNext\CodingStandard\Tests\Ignore;
66

tests/Ignore/IgnoreDrupalCommentingTodoCommentTodoFormatTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
declare(strict_types = 1);
3+
declare(strict_types=1);
44

55
namespace PreviousNext\CodingStandard\Tests\Ignore;
66

tests/Ignore/IgnoreDrupalCommentingVariableCommentMissingTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
declare(strict_types = 1);
3+
declare(strict_types=1);
44

55
namespace PreviousNext\CodingStandard\Tests\Ignore;
66

tests/Ignore/IgnoreUnreachableTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
declare(strict_types = 1);
3+
declare(strict_types=1);
44

55
namespace PreviousNext\CodingStandard\Tests\Ignore;
66

tests/Ignore/fixtures/IgnoreDocCommentSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
declare(strict_types = 1);
3+
declare(strict_types=1);
44

55
namespace PreviousNext\CodingStandard\Tests\Ignore\fixtures;
66

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
22

3-
declare(strict_types = 1);
3+
declare(strict_types=1);
44

55
$foo = ['Lorem ipsum dolor sit amet, consectetur adipiscing elit', 'sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.'];

tests/Ignore/fixtures/IgnoreDrupalCommentingClassCommentShort.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
declare(strict_types = 1);
3+
declare(strict_types=1);
44

55
namespace PreviousNext\CodingStandard\Tests\Ignore\fixtures;
66

tests/Ignore/fixtures/IgnoreDrupalCommentingFunctionComment_IncorrectParamVarName.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
declare(strict_types = 1);
3+
declare(strict_types=1);
44

55
/**
66
* @param class-string $a

tests/Ignore/fixtures/IgnoreDrupalCommentingFunctionComment_InvalidReturn.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
declare(strict_types = 1);
3+
declare(strict_types=1);
44

55
/**
66
* @return class-string
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
22

3-
declare(strict_types = 1);
3+
declare(strict_types=1);
44

55
// @TODO: fix this or that.

tests/Ignore/fixtures/IgnoreDrupalCommentingVariableCommentMissing.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
declare(strict_types = 1);
3+
declare(strict_types=1);
44

55
namespace PreviousNext\CodingStandard\Tests\Ignore\fixtures;
66

tests/Ignore/fixtures/IgnoreUnreachable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
declare(strict_types = 1);
3+
declare(strict_types=1);
44

55
namespace PreviousNext\CodingStandard\Tests\Ignore\fixtures;
66

tests/Sniffs/AlphabeticallySortedUsesTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
declare(strict_types = 1);
3+
declare(strict_types=1);
44

55
namespace PreviousNext\CodingStandard\Tests\Sniffs;
66

tests/Sniffs/Base.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// rule of this standard until it has been reworked.
55
// @codingStandardsIgnoreFile
66

7-
declare(strict_types = 1);
7+
declare(strict_types=1);
88

99
namespace PreviousNext\CodingStandard\Tests\Sniffs;
1010

tests/Sniffs/ClassStructureTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
declare(strict_types = 1);
3+
declare(strict_types=1);
44

55
namespace PreviousNext\CodingStandard\Tests\Sniffs;
66

tests/Sniffs/DrupalRulesetTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
declare(strict_types = 1);
3+
declare(strict_types=1);
44

55
namespace PreviousNext\CodingStandard\Tests\Sniffs;
66

tests/Sniffs/FunctionClosingBraceSpacingBeforeCloseTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
declare(strict_types = 1);
3+
declare(strict_types=1);
44

55
namespace PreviousNext\CodingStandard\Tests\Sniffs;
66

tests/Sniffs/FunctionOpeningBraceSpaceSpacingAfterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
declare(strict_types = 1);
3+
declare(strict_types=1);
44

55
namespace PreviousNext\CodingStandard\Tests\Sniffs;
66

tests/Sniffs/RequireMultiLineMethodSignatureTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
declare(strict_types = 1);
3+
declare(strict_types=1);
44

55
namespace PreviousNext\CodingStandard\Tests\Sniffs;
66

tests/Sniffs/RequireTrailingCommaInCallTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
declare(strict_types = 1);
3+
declare(strict_types=1);
44

55
namespace PreviousNext\CodingStandard\Tests\Sniffs;
66

tests/Sniffs/RequireTrailingCommaInDeclarationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
declare(strict_types = 1);
3+
declare(strict_types=1);
44

55
namespace PreviousNext\CodingStandard\Tests\Sniffs;
66

tests/Sniffs/ReturnTypeHintSpacingTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
declare(strict_types = 1);
3+
declare(strict_types=1);
44

55
namespace PreviousNext\CodingStandard\Tests\Sniffs;
66

tests/Sniffs/ReturnTypeHintTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
declare(strict_types = 1);
3+
declare(strict_types=1);
44

55
namespace PreviousNext\CodingStandard\Tests\Sniffs;
66

tests/Sniffs/StrictTypesTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
declare(strict_types = 1);
3+
declare(strict_types=1);
44

55
namespace PreviousNext\CodingStandard\Tests\Sniffs;
66

tests/Sniffs/UnusedInheritedVariablePassedToClosureTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
declare(strict_types = 1);
3+
declare(strict_types=1);
44

55
namespace PreviousNext\CodingStandard\Tests\Sniffs;
66

tests/Sniffs/fixtures/AlphabeticallySortedUsesError.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
declare(strict_types = 1);
3+
declare(strict_types=1);
44

55
namespace Sniffs\fixtures;
66

tests/Sniffs/fixtures/AlphabeticallySortedUsesNoError.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
declare(strict_types = 1);
3+
declare(strict_types=1);
44

55
namespace Sniffs\fixtures;
66

tests/Sniffs/fixtures/ClassStructureError.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
declare(strict_types = 1);
3+
declare(strict_types=1);
44

55
namespace Sniffs\fixtures;
66

tests/Sniffs/fixtures/ClassStructureNoError.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
declare(strict_types = 1);
3+
declare(strict_types=1);
44

55
namespace Sniffs\fixtures;
66

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
22

3-
declare(strict_types = 1);
3+
declare(strict_types=1);
44

55
if (true) $a = 1;

tests/Sniffs/fixtures/DrupalRulesetNoError.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* A passing fixture.
66
*/
77

8-
declare(strict_types = 1);
8+
declare(strict_types=1);
99

1010
if (TRUE) {
1111
$a = 1;

tests/Sniffs/fixtures/FunctionClosingBraceSpacingBeforeCloseError.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
declare(strict_types = 1);
3+
declare(strict_types=1);
44

55
namespace Sniffs\fixtures;
66

tests/Sniffs/fixtures/FunctionClosingBraceSpacingBeforeCloseNoError.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
declare(strict_types = 1);
3+
declare(strict_types=1);
44

55
namespace Sniffs\fixtures;
66

tests/Sniffs/fixtures/FunctionOpeningBraceSpaceSpacingAfterError.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
declare(strict_types = 1);
3+
declare(strict_types=1);
44

55
namespace Sniffs\fixtures;
66

tests/Sniffs/fixtures/FunctionOpeningBraceSpaceSpacingAfterNoError.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
declare(strict_types = 1);
3+
declare(strict_types=1);
44

55
namespace Sniffs\fixtures;
66

tests/Sniffs/fixtures/RequireMultiLineMethodSignatureError.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
declare(strict_types = 1);
3+
declare(strict_types=1);
44

55
namespace Sniffs\fixtures;
66

tests/Sniffs/fixtures/RequireMultiLineMethodSignatureNoError.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
declare(strict_types = 1);
3+
declare(strict_types=1);
44

55
namespace Sniffs\fixtures;
66

tests/Sniffs/fixtures/RequireTrailingCommaInCallError.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
declare(strict_types = 1);
3+
declare(strict_types=1);
44

55
hello(
66
'foo',

tests/Sniffs/fixtures/RequireTrailingCommaInCallNoError.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
declare(strict_types = 1);
3+
declare(strict_types=1);
44

55
hello(
66
'foo',

tests/Sniffs/fixtures/RequireTrailingCommaInDeclarationError.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
declare(strict_types = 1);
3+
declare(strict_types=1);
44

55
namespace Sniffs\fixtures;
66

tests/Sniffs/fixtures/RequireTrailingCommaInDeclarationNoError.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
declare(strict_types = 1);
3+
declare(strict_types=1);
44

55
namespace Sniffs\fixtures;
66

tests/Sniffs/fixtures/RequireTrailingCommaInDeclarationSingleLineNoError.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
declare(strict_types = 1);
3+
declare(strict_types=1);
44

55
namespace PreviousNext\CodingStandard\Tests\Sniffs\fixtures;
66

tests/Sniffs/fixtures/ReturnTypeHintIgnoreTraversable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
declare(strict_types = 1);
3+
declare(strict_types=1);
44

55
/**
66
* A function.

tests/Sniffs/fixtures/ReturnTypeHintNoError.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
declare(strict_types = 1);
3+
declare(strict_types=1);
44

55
/**
66
* A function.

tests/Sniffs/fixtures/ReturnTypeHintSpacingError.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
declare(strict_types = 1);
3+
declare(strict_types=1);
44

55
/**
66
* A function.

0 commit comments

Comments
 (0)