[TASK] Add more rules for Code sniffer 33/56533/13
authorGeorg Ringer <georg.ringer@gmail.com>
Mon, 16 Apr 2018 13:55:20 +0000 (15:55 +0200)
committerAndreas Fernandez <a.fernandez@scripting-base.de>
Mon, 16 Apr 2018 14:59:27 +0000 (16:59 +0200)
In order to improve code quality, the following code sniffers are added:

- cast_spaces
- declare_equal_normalize
- dir_constant

Resolves: #84590
Releases: master, 8.7
Change-Id: Ib8a353b9ec47bff146b5decc3d5f97d242672efa
Reviewed-on: https://review.typo3.org/56533
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Mathias Schreiber <mathias.schreiber@typo3.com>
Tested-by: Mathias Schreiber <mathias.schreiber@typo3.com>
Reviewed-by: Sybille Peters <sypets@gmx.de>
Tested-by: Sybille Peters <sypets@gmx.de>
Reviewed-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: Andreas Fernandez <a.fernandez@scripting-base.de>
48 files changed:
Build/.php_cs
Build/Scripts/annotationChecker.php
Build/Scripts/validateRstFiles.php
typo3/sysext/backend/Classes/Form/FieldInformation/SiteConfiguration.php
typo3/sysext/backend/Tests/Functional/Controller/Page/LocalizationControllerTest.php
typo3/sysext/backend/Tests/UnitDeprecated/Form/FormDataProvider/DatabaseRowInitializeNewTest.php
typo3/sysext/core/Classes/Database/Platform/PlatformInformation.php
typo3/sysext/core/Tests/Unit/Cache/Backend/Typo3DatabaseBackendTest.php
typo3/sysext/core/Tests/Unit/Command/SendEmailCommandTest.php
typo3/sysext/core/Tests/Unit/Database/Platform/PlatformInformationTest.php
typo3/sysext/core/Tests/Unit/Error/AbstractExceptionHandlerTest.php
typo3/sysext/core/Tests/Unit/Html/RteHtmlParserTest.php
typo3/sysext/core/Tests/Unit/Http/MessageTest.php
typo3/sysext/core/Tests/Unit/Http/RequestTest.php
typo3/sysext/core/Tests/Unit/Http/ResponseTest.php
typo3/sysext/core/Tests/Unit/Http/StreamTest.php
typo3/sysext/core/Tests/Unit/Http/UploadedFileTest.php
typo3/sysext/core/Tests/Unit/Http/UriTest.php
typo3/sysext/core/Tests/Unit/Imaging/GraphicalFunctionsTest.php
typo3/sysext/core/Tests/Unit/Mail/TransportFactoryTest.php
typo3/sysext/core/Tests/Unit/Resource/ResourceCompressorTest.php
typo3/sysext/core/Tests/Unit/Utility/MathUtilityTest.php
typo3/sysext/extbase/Tests/Unit/Reflection/Fixture/DummyController.php
typo3/sysext/extbase/Tests/Unit/Reflection/Fixture/DummyControllerWithValidateAnnotationWithoutParam.php
typo3/sysext/extbase/Tests/Unit/Reflection/Fixture/Validation/Validator/DummyValidator.php
typo3/sysext/extbase/Tests/UnitDeprecated/Validation/ValidatorResolverTest.php
typo3/sysext/extensionmanager/Tests/Unit/Report/ExtensionStatusTest.php
typo3/sysext/extensionmanager/Tests/Unit/Service/ExtensionManagementServiceTest.php
typo3/sysext/extensionmanager/Tests/Unit/Utility/FileHandlingUtilityTest.php
typo3/sysext/extensionmanager/Tests/Unit/Utility/InstallUtilityTest.php
typo3/sysext/extensionmanager/Tests/Unit/Utility/ListUtilityTest.php
typo3/sysext/fluid/Classes/Core/Widget/WidgetRequestBuilder.php
typo3/sysext/fluid/Tests/Unit/Core/Widget/AbstractWidgetViewHelperTest.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/Be/Security/IfAuthenticatedViewHelperTest.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/CObjectViewHelperTest.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/Form/TextfieldViewHelperTest.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/FormViewHelperTest.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/Link/PageViewHelperTest.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/Link/TypolinkViewHelperTest.php
typo3/sysext/form/Classes/Mvc/Configuration/YamlSource.php
typo3/sysext/install/Classes/Updates/AdminPanelInstall.php
typo3/sysext/install/Classes/Updates/FileReferenceUpdate.php
typo3/sysext/install/Tests/Unit/FolderStructure/LinkNodeTest.php
typo3/sysext/install/Tests/Unit/Service/CoreVersionServiceTest.php
typo3/sysext/install/Tests/Unit/Service/SilentConfigurationUpgradeServiceTest.php
typo3/sysext/install/Tests/Unit/Updates/RowUpdater/L10nModeUpdaterTest.php
typo3/sysext/redirects/Classes/Http/Middleware/RedirectHandler.php
typo3/sysext/redirects/Classes/UserFunctions/HitCountDisplayCondition.php

index 79e48f8..53acb2a 100644 (file)
@@ -25,8 +25,8 @@
  * inside the TYPO3 directory. Warning: This may take up to 10 minutes.
  *
  * For more information read:
- *      http://www.php-fig.org/psr/psr-2/
- *      http://cs.sensiolabs.org
+ *      https://www.php-fig.org/psr/psr-2/
+ *      https://cs.sensiolabs.org
  */
 if (PHP_SAPI !== 'cli') {
     die('This script supports command line usage only. Please check your command.');
@@ -84,5 +84,8 @@ return PhpCsFixer\Config::create()
         'phpdoc_types' => true,
         'phpdoc_types_order' => ['null_adjustment' => 'always_last', 'sort_algorithm' => 'none'],
         'return_type_declaration' => ['space_before' => 'none'],
+        'cast_spaces' => ['space' => 'none'],
+        'declare_equal_normalize' => ['space' => 'single'],
+        'dir_constant' => true,
     ])
     ->setFinder($finder);
index c99caff..1c53618 100755 (executable)
@@ -1,6 +1,6 @@
 #!/usr/bin/env php
 <?php
-declare(strict_types=1);
+declare(strict_types = 1);
 
 /*
  * This file is part of the TYPO3 CMS project.
index fcbac85..c5932e8 100755 (executable)
@@ -1,6 +1,6 @@
 #!/usr/bin/env php
 <?php
-declare(strict_types=1);
+declare(strict_types = 1);
 
 /*
  * This file is part of the TYPO3 CMS project.
index 4970cb6..640db39 100644 (file)
@@ -440,7 +440,7 @@ class LocalizationControllerTest extends \TYPO3\TestingFramework\Core\Functional
         $recordLocalizeSummaryResponse = $this->subject->getRecordLocalizeSummary($request, new Response());
 
         // Reduce the fetched record summary to list of uids
-        if ($recordLocalizeSummary = json_decode((string) $recordLocalizeSummaryResponse->getBody(), true)) {
+        if ($recordLocalizeSummary = json_decode((string)$recordLocalizeSummaryResponse->getBody(), true)) {
             foreach ($recordLocalizeSummary as &$record) {
                 if (is_array($record)) {
                     $record = array_intersect_key($record, ['uid' => '']);
index 808eb86..d98f98e 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-declare(strict_types=1);
+declare(strict_types = 1);
 namespace TYPO3\CMS\Core\Tests\Functional\Command;
 
 /*
index d11c8d2..6cee081 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-declare(strict_types=1);
+declare(strict_types = 1);
 namespace TYPO3\CMS\Core\Tests\Unit\Html;
 
 /*
index eb80528..75b1f9f 100644 (file)
@@ -194,7 +194,7 @@ class MessageTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase
             'int'    => [1],
             'float'  => [1.1],
             'array'  => [['foo' => ['bar']]],
-            'object' => [(object) ['foo' => 'bar']],
+            'object' => [(object)['foo' => 'bar']],
         ];
     }
 
@@ -219,7 +219,7 @@ class MessageTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase
             'false'  => [false],
             'int'    => [1],
             'float'  => [1.1],
-            'object' => [(object) ['foo' => 'bar']],
+            'object' => [(object)['foo' => 'bar']],
         ];
     }
 
index 91b02c9..a04c912 100644 (file)
@@ -80,7 +80,7 @@ class RequestTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase
         $request2 = $request->withUri(new Uri('/baz/bat?foo=bar'));
         $this->assertNotSame($this->request, $request2);
         $this->assertNotSame($request, $request2);
-        $this->assertEquals('/baz/bat?foo=bar', (string) $request2->getUri());
+        $this->assertEquals('/baz/bat?foo=bar', (string)$request2->getUri());
     }
 
     /**
@@ -121,7 +121,7 @@ class RequestTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase
             'int'      => [1],
             'float'    => [1.1],
             'array'    => [['http://example.com']],
-            'stdClass' => [(object) ['href' => 'http://example.com']],
+            'stdClass' => [(object)['href' => 'http://example.com']],
         ];
     }
 
@@ -147,7 +147,7 @@ class RequestTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase
             'int'        => [1],
             'float'      => [1.1],
             'array'      => [['POST']],
-            'stdClass'   => [(object) ['method' => 'POST']],
+            'stdClass'   => [(object)['method' => 'POST']],
         ];
     }
 
@@ -183,7 +183,7 @@ class RequestTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase
             'int'      => [1],
             'float'    => [1.1],
             'array'    => [['BODY']],
-            'stdClass' => [(object) ['body' => 'BODY']],
+            'stdClass' => [(object)['body' => 'BODY']],
         ];
     }
 
@@ -209,7 +209,7 @@ class RequestTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase
             'x-invalid-true'   => true,
             'x-invalid-false'  => false,
             'x-invalid-int'    => 1,
-            'x-invalid-object' => (object) ['INVALID'],
+            'x-invalid-object' => (object)['INVALID'],
             'x-valid-string'   => 'VALID',
             'x-valid-array'    => ['VALID'],
         ];
index b632c5e..7f6199a 100644 (file)
@@ -64,7 +64,7 @@ class ResponseTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase
             'bool'     => [true],
             'string'   => ['foo'],
             'array'    => [[200]],
-            'object'   => [(object) [200]],
+            'object'   => [(object)[200]],
         ];
     }
 
@@ -133,7 +133,7 @@ class ResponseTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase
             'float'      => [100.1],
             'bad-string' => ['Two hundred'],
             'array'      => [[200]],
-            'object'     => [(object) ['statusCode' => 200]],
+            'object'     => [(object)['statusCode' => 200]],
             'too-small'  => [1],
             'too-big'    => [600],
         ];
@@ -161,7 +161,7 @@ class ResponseTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase
             'int'      => [1],
             'float'    => [1.1],
             'array'    => [['BODY']],
-            'stdClass' => [(object) ['body' => 'BODY']],
+            'stdClass' => [(object)['body' => 'BODY']],
         ];
     }
 
@@ -187,7 +187,7 @@ class ResponseTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase
             'x-invalid-true'   => true,
             'x-invalid-false'  => false,
             'x-invalid-int'    => 1,
-            'x-invalid-object' => (object) ['INVALID'],
+            'x-invalid-object' => (object)['INVALID'],
             'x-valid-string'   => 'VALID',
             'x-valid-array'    => ['VALID'],
         ];
index 733150a..ddd194c 100644 (file)
@@ -79,7 +79,7 @@ class StreamTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase
     {
         $message = 'foo bar';
         $this->stream->write($message);
-        $this->assertEquals($message, (string) $this->stream);
+        $this->assertEquals($message, (string)$this->stream);
     }
 
     /**
@@ -428,7 +428,7 @@ class StreamTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase
             'int'                 => [1],
             'float'               => [1.1],
             'array'               => [[fopen($fileName, 'r+')]],
-            'object'              => [(object) ['resource' => fopen($fileName, 'r+')]],
+            'object'              => [(object)['resource' => fopen($fileName, 'r+')]],
         ];
     }
 
@@ -484,7 +484,7 @@ class StreamTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase
         fwrite($resource, 'FooBar');
 
         $this->stream->rewind();
-        $test = (string) $this->stream;
+        $test = (string)$this->stream;
         $this->assertEquals('FooBar', $test);
     }
 
index bf5794b..dd9cf6c 100644 (file)
@@ -56,7 +56,7 @@ class UploadedFileTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase
             'invalid-path' => [ ('WIN' === strtoupper(substr(PHP_OS, 0, 3))) ? '[:]' : 'foo' . chr(0) ],
              */
             'array'  => [['filename']],
-            'object' => [(object) ['filename']],
+            'object' => [(object)['filename']],
         ];
     }
 
@@ -82,7 +82,7 @@ class UploadedFileTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase
             'float'  => [1.1],
             'string' => ['1'],
             'array'  => [[1]],
-            'object' => [(object) [1]],
+            'object' => [(object)[1]],
         ];
     }
 
@@ -109,7 +109,7 @@ class UploadedFileTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase
             'float'    => [1.1],
             'string'   => ['1'],
             'array'    => [[1]],
-            'object'   => [(object) [1]],
+            'object'   => [(object)[1]],
             'negative' => [-1],
             'too-big'  => [9],
         ];
@@ -137,7 +137,7 @@ class UploadedFileTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase
             'int'    => [1],
             'float'  => [1.1],
             'array'  => [['string']],
-            'object' => [(object) ['string']],
+            'object' => [(object)['string']],
         ];
     }
 
@@ -226,7 +226,7 @@ class UploadedFileTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase
             'float'  => [1.1],
             'empty'  => [''],
             'array'  => [['filename']],
-            'object' => [(object) ['filename']],
+            'object' => [(object)['filename']],
         ];
     }
 
index fb26993..8725676 100644 (file)
@@ -46,7 +46,7 @@ class UriTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase
     {
         $url = 'https://user:pass@local.example.com:3001/foo?bar=baz#quz';
         $uri = new Uri($url);
-        $this->assertEquals($url, (string) $uri);
+        $this->assertEquals($url, (string)$uri);
     }
 
     /**
@@ -58,7 +58,7 @@ class UriTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase
         $new = $uri->withScheme('http');
         $this->assertNotSame($uri, $new);
         $this->assertEquals('http', $new->getScheme());
-        $this->assertEquals('http://user:pass@local.example.com:3001/foo?bar=baz#quz', (string) $new);
+        $this->assertEquals('http://user:pass@local.example.com:3001/foo?bar=baz#quz', (string)$new);
     }
 
     /**
@@ -70,7 +70,7 @@ class UriTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase
         $new = $uri->withUserInfo('matthew');
         $this->assertNotSame($uri, $new);
         $this->assertEquals('matthew', $new->getUserInfo());
-        $this->assertEquals('https://matthew@local.example.com:3001/foo?bar=baz#quz', (string) $new);
+        $this->assertEquals('https://matthew@local.example.com:3001/foo?bar=baz#quz', (string)$new);
     }
 
     /**
@@ -82,7 +82,7 @@ class UriTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase
         $new = $uri->withUserInfo('matthew', 'zf2');
         $this->assertNotSame($uri, $new);
         $this->assertEquals('matthew:zf2', $new->getUserInfo());
-        $this->assertEquals('https://matthew:zf2@local.example.com:3001/foo?bar=baz#quz', (string) $new);
+        $this->assertEquals('https://matthew:zf2@local.example.com:3001/foo?bar=baz#quz', (string)$new);
     }
 
     /**
@@ -94,7 +94,7 @@ class UriTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase
         $new = $uri->withHost('framework.zend.com');
         $this->assertNotSame($uri, $new);
         $this->assertEquals('framework.zend.com', $new->getHost());
-        $this->assertEquals('https://user:pass@framework.zend.com:3001/foo?bar=baz#quz', (string) $new);
+        $this->assertEquals('https://user:pass@framework.zend.com:3001/foo?bar=baz#quz', (string)$new);
     }
 
     /**
@@ -106,7 +106,7 @@ class UriTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase
         $new = $uri->withPort(null);
         $this->assertEquals(
             'https://user:pass@local.example.com/foo?bar=baz#quz',
-            (string) $new
+            (string)$new
         );
     }
     /**
@@ -132,7 +132,7 @@ class UriTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase
         $this->assertEquals($port, $new->getPort());
         $this->assertEquals(
             sprintf('https://user:pass@local.example.com:%d/foo?bar=baz#quz', $port),
-            (string) $new
+            (string)$new
         );
     }
 
@@ -145,7 +145,7 @@ class UriTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase
             'false'     => [false],
             'string'    => ['string'],
             'array'     => [[3000]],
-            'object'    => [(object) [3000]],
+            'object'    => [(object)[3000]],
         ];
     }
 
@@ -209,7 +209,7 @@ class UriTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase
         $new = $uri->withPath('/bar/baz');
         $this->assertNotSame($uri, $new);
         $this->assertEquals('/bar/baz', $new->getPath());
-        $this->assertEquals('https://user:pass@local.example.com:3001/bar/baz?bar=baz#quz', (string) $new);
+        $this->assertEquals('https://user:pass@local.example.com:3001/bar/baz?bar=baz#quz', (string)$new);
     }
 
     /**
@@ -222,7 +222,7 @@ class UriTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase
             'true'     => [true],
             'false'    => [false],
             'array'    => [['/bar/baz']],
-            'object'   => [(object) ['/bar/baz']],
+            'object'   => [(object)['/bar/baz']],
         ];
     }
 
@@ -269,7 +269,7 @@ class UriTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase
         $new = $uri->withQuery('baz=bat');
         $this->assertNotSame($uri, $new);
         $this->assertEquals('baz=bat', $new->getQuery());
-        $this->assertEquals('https://user:pass@local.example.com:3001/foo?baz=bat#quz', (string) $new);
+        $this->assertEquals('https://user:pass@local.example.com:3001/foo?baz=bat#quz', (string)$new);
     }
 
     /**
@@ -282,7 +282,7 @@ class UriTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase
             'true'     => [true],
             'false'    => [false],
             'array'    => [['baz=bat']],
-            'object'   => [(object) ['baz=bat']],
+            'object'   => [(object)['baz=bat']],
         ];
     }
 
@@ -318,7 +318,7 @@ class UriTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase
         $new = $uri->withFragment('qat');
         $this->assertNotSame($uri, $new);
         $this->assertEquals('qat', $new->getFragment());
-        $this->assertEquals('https://user:pass@local.example.com:3001/foo?bar=baz#qat', (string) $new);
+        $this->assertEquals('https://user:pass@local.example.com:3001/foo?bar=baz#qat', (string)$new);
     }
 
     /**
@@ -351,7 +351,7 @@ class UriTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase
     {
         $url = '/foo/bar?baz=bat';
         $uri = new Uri($url);
-        $this->assertEquals($url, (string) $uri);
+        $this->assertEquals($url, (string)$uri);
     }
 
     /**
@@ -370,7 +370,7 @@ class UriTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase
     public function stringRepresentationOfAbsoluteUriWithNoPathSetsAnEmptyPath()
     {
         $uri = new Uri('http://example.com');
-        $this->assertEquals('http://example.com', (string) $uri);
+        $this->assertEquals('http://example.com', (string)$uri);
     }
 
     /**
@@ -388,7 +388,7 @@ class UriTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase
     public function stringRepresentationOfOriginFormWithNoPathRetainsEmptyPath()
     {
         $uri = new Uri('?foo=bar');
-        $this->assertEquals('?foo=bar', (string) $uri);
+        $this->assertEquals('?foo=bar', (string)$uri);
     }
 
     /**
@@ -403,7 +403,7 @@ class UriTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase
             'int'    => [1],
             'float'  => [1.1],
             'array'  => [['http://example.com/']],
-            'object' => [(object) ['uri' => 'http://example.com/']],
+            'object' => [(object)['uri' => 'http://example.com/']],
         ];
     }
 
index fbda54f..ab45d33 100644 (file)
@@ -54,7 +54,7 @@ class GraphicalFunctionsTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestC
                     'origH' => 0,
                     'max' => 0,
                     0 => 150,
-                    1 => (float) 120
+                    1 => (float)120
                 ],
             ],
             'Get image scale with a maximum width of 100px' => [
@@ -73,7 +73,7 @@ class GraphicalFunctionsTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestC
                     'origH' => 0,
                     'max' => 1,
                     0 => 100,
-                    1 => (float) 80
+                    1 => (float)80
                 ],
             ],
             'Get image scale with a minimum width of 200px' => [
@@ -92,7 +92,7 @@ class GraphicalFunctionsTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestC
                     'origH' => 0,
                     'max' => 0,
                     0 => 200,
-                    1 => (float) 136
+                    1 => (float)136
                 ],
             ],
         ];
index f4f9776..07d9c46 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-declare(strict_types=1);
+declare(strict_types = 1);
 namespace TYPO3\CMS\Core\Tests\Unit\Mail;
 
 /*
index e66fd87..84145de 100644 (file)
@@ -350,7 +350,7 @@ class ResourceCompressorTest extends BaseTestCase
      */
     public function compressCssFileContentDataProvider(): array
     {
-        $path = dirname(__FILE__) . '/ResourceCompressorTest/Fixtures/';
+        $path = __DIR__ . '/ResourceCompressorTest/Fixtures/';
         return [
             // File. Tests:
             // - Stripped comments and white-space.
index fc07e81..3540392 100644 (file)
@@ -166,8 +166,8 @@ class MathUtilityTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase
         // testcases for Integer apply for float as well
         $intTestcases = $this->functionCanBeInterpretedAsIntegerValidDataProvider();
         $floatTestcases = [
-            'zero as float' => [(float) 0],
-            'negative float' => [(float) -7.5],
+            'zero as float' => [(float)0],
+            'negative float' => [(float)-7.5],
             'negative float as string with exp #1' => ['-7.5e3'],
             'negative float as string with exp #2' => ['-7.5e03'],
             'negative float as string with exp #3' => ['-7.5e-3'],
index e31b4e9..f2ea6d3 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-declare(strict_types=1);
+declare(strict_types = 1);
 namespace TYPO3\CMS\Form\Mvc\Configuration;
 
 /*
index 788e2c9..6fe092c 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-declare(strict_types=1);
+declare(strict_types = 1);
 namespace TYPO3\CMS\Install\Tests\Unit\FolderStructure;
 
 /*