Test Failed
Branch master (e0e8ab)
by Tymoteusz
23:10
created
typo3/sysext/core/Classes/Http/Uri.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -652,7 +652,7 @@  discard block
 block discarded – undo
652 652
     {
653 653
         return preg_replace_callback(
654 654
             '/(?:[^' . self::UNRESERVED_CHARLIST . ':@&=\+\$,\/;%]+|%(?![A-Fa-f0-9]{2}))/',
655
-            function ($matches) {
655
+            function($matches) {
656 656
                 return rawurlencode($matches[0]);
657 657
             },
658 658
             $path
@@ -730,7 +730,7 @@  discard block
 block discarded – undo
730 730
     {
731 731
         return preg_replace_callback(
732 732
             '/(?:[^' . self::UNRESERVED_CHARLIST . self::SUBDELIMITER_CHARLIST . '%:@\/\?]+|%(?![A-Fa-f0-9]{2}))/',
733
-            function ($matches) {
733
+            function($matches) {
734 734
                 return rawurlencode($matches[0]);
735 735
             },
736 736
             $value
Please login to merge, or discard this patch.
typo3/sysext/core/Classes/Resource/Driver/LocalDriver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1274,7 +1274,7 @@
 block discarded – undo
1274 1274
             );
1275 1275
         }
1276 1276
         $parentFolderIdentifier = $this->canonicalizeAndCheckFolderIdentifier($parentFolderIdentifier);
1277
-        $fileIdentifier =  $this->canonicalizeAndCheckFileIdentifier(
1277
+        $fileIdentifier = $this->canonicalizeAndCheckFileIdentifier(
1278 1278
             $parentFolderIdentifier . $this->sanitizeFileName(ltrim($fileName, '/'))
1279 1279
         );
1280 1280
         $absoluteFilePath = $this->getAbsolutePath($fileIdentifier);
Please login to merge, or discard this patch.
typo3/sysext/core/Classes/Service/DependencyOrderingService.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -172,8 +172,8 @@  discard block
 block discarded – undo
172 172
 
173 173
         // Check for remaining edges in the graph
174 174
         $cycles = [];
175
-        array_walk($dependencyGraph, function ($dependencies, $fromId) use (&$cycles) {
176
-            array_walk($dependencies, function ($dependency, $toId) use (&$cycles, $fromId) {
175
+        array_walk($dependencyGraph, function($dependencies, $fromId) use (&$cycles) {
176
+            array_walk($dependencies, function($dependency, $toId) use (&$cycles, $fromId) {
177 177
                 if ($dependency) {
178 178
                     $cycles[] = $fromId . '->' . $toId;
179 179
                 }
@@ -267,7 +267,7 @@  discard block
 block discarded – undo
267 267
     {
268 268
         $preparedDependencies = [];
269 269
         foreach ($dependencies as $id => $dependency) {
270
-            foreach ([ $beforeKey, $afterKey ] as $relation) {
270
+            foreach ([$beforeKey, $afterKey] as $relation) {
271 271
                 if (!isset($dependency[$relation]) || !is_array($dependency[$relation])) {
272 272
                     $dependency[$relation] = [];
273 273
                 }
Please login to merge, or discard this patch.
typo3/sysext/core/Classes/Utility/ArrayUtility.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
         // Define a lambda function to be applied to all members of this array dimension
59 59
         // Call recursive if current value is of type array
60 60
         // Write to $resultArray (by reference!) if types and value match
61
-        $callback = function (&$value, $key) use ($needle, &$resultArray) {
61
+        $callback = function(&$value, $key) use ($needle, &$resultArray) {
62 62
             if ($value === $needle) {
63 63
                 ($resultArray[$key] = $value);
64 64
             } elseif (is_array($value)) {
@@ -277,7 +277,7 @@  discard block
 block discarded – undo
277 277
         if (empty($arrays)) {
278 278
             return $arrays;
279 279
         }
280
-        $sortResult = uasort($arrays, function (array $a, array $b) use ($key, $ascending) {
280
+        $sortResult = uasort($arrays, function(array $a, array $b) use ($key, $ascending) {
281 281
             if (!isset($a[$key]) || !isset($b[$key])) {
282 282
                 throw new \RuntimeException('The specified sorting key "' . $key . '" is not available in the given array.', 1373727309);
283 283
             }
Please login to merge, or discard this patch.
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
      * Validates the given $arrayToTest by checking if an element is not in $allowedArrayKeys.
24 24
      *
25 25
      * @param array $arrayToTest
26
-     * @param array $allowedArrayKeys
26
+     * @param string[] $allowedArrayKeys
27 27
      * @throws \InvalidArgumentException if an element in $arrayToTest is not in $allowedArrayKeys
28 28
      * @internal
29 29
      */
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
      *
94 94
      * See the unit tests for more examples and expected behaviour
95 95
      *
96
-     * @param mixed $needle The value to search for
96
+     * @param string $needle The value to search for
97 97
      * @param array $haystack The array in which to search
98 98
      * @return array $haystack array reduced matching $needle values
99 99
      */
Please login to merge, or discard this patch.
typo3/sysext/documentation/Classes/Service/DocumentationService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -286,7 +286,7 @@
 block discarded – undo
286 286
             while (($zipEntry = zip_read($zip)) !== false) {
287 287
                 $zipEntryName = zip_entry_name($zipEntry);
288 288
                 if (strpos($zipEntryName, '/') !== false) {
289
-                    $zipEntryPathSegments =  explode('/', $zipEntryName);
289
+                    $zipEntryPathSegments = explode('/', $zipEntryName);
290 290
                     $fileName = array_pop($zipEntryPathSegments);
291 291
                     // It is a folder, because the last segment is empty, let's create it
292 292
                     if (empty($fileName)) {
Please login to merge, or discard this patch.
typo3/sysext/extbase/Classes/Utility/TypeHandlingUtility.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -163,7 +163,7 @@
 block discarded – undo
163 163
         $binaryData = '';
164 164
         $length = strlen($hexadecimalData);
165 165
         for ($i = 0; $i < $length; $i += 2) {
166
-            $binaryData .=  pack('C', hexdec(substr($hexadecimalData, $i, 2)));
166
+            $binaryData .= pack('C', hexdec(substr($hexadecimalData, $i, 2)));
167 167
         }
168 168
         return $binaryData;
169 169
     }
Please login to merge, or discard this patch.
sysext/extbase/Classes/Validation/Validator/AbstractCompositeValidator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
             // check for required options being set
61 61
         array_walk(
62 62
             $this->supportedOptions,
63
-            function ($supportedOptionData, $supportedOptionName, $options) {
63
+            function($supportedOptionData, $supportedOptionName, $options) {
64 64
                 if (isset($supportedOptionData[3]) && !array_key_exists($supportedOptionName, $options)) {
65 65
                     throw new \TYPO3\CMS\Extbase\Validation\Exception\InvalidValidationOptionsException('Required validation option not set: ' . $supportedOptionName, 1339163922);
66 66
                 }
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
             // merge with default values
72 72
         $this->options = array_merge(
73 73
             array_map(
74
-                function ($value) {
74
+                function($value) {
75 75
                     return $value[0];
76 76
                 },
77 77
                 $this->supportedOptions
Please login to merge, or discard this patch.
typo3/sysext/extbase/Classes/Validation/Validator/AbstractValidator.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
         // check for required options being set
67 67
         array_walk(
68 68
             $this->supportedOptions,
69
-            function ($supportedOptionData, $supportedOptionName, $options) {
69
+            function($supportedOptionData, $supportedOptionName, $options) {
70 70
                 if (isset($supportedOptionData[3]) && $supportedOptionData[3] === true && !array_key_exists($supportedOptionName, $options)) {
71 71
                     throw new InvalidValidationOptionsException('Required validation option not set: ' . $supportedOptionName, 1379981891);
72 72
                 }
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
         // merge with default values
78 78
         $this->options = array_merge(
79 79
             array_map(
80
-                function ($value) {
80
+                function($value) {
81 81
                     return $value[0];
82 82
                 },
83 83
                 $this->supportedOptions
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@
 block discarded – undo
116 116
      *
117 117
      * @param string $message The error message
118 118
      * @param int $code The error code (a unix timestamp)
119
-     * @param array $arguments Arguments to be replaced in message
119
+     * @param string[] $arguments Arguments to be replaced in message
120 120
      * @param string $title title of the error
121 121
      */
122 122
     protected function addError($message, $code, array $arguments = [], $title = '')
Please login to merge, or discard this patch.
typo3/sysext/fluid/Classes/ViewHelpers/Form/CheckboxViewHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@
 block discarded – undo
103 103
         } elseif ($multiple === true) {
104 104
             $nameAttribute .= '[]';
105 105
         } elseif ($propertyValue !== null) {
106
-            $checked = (boolean) $propertyValue === (boolean) $valueAttribute;
106
+            $checked = (boolean)$propertyValue === (boolean)$valueAttribute;
107 107
         }
108 108
 
109 109
         $this->registerFieldNameForFormTokenGeneration($nameAttribute);
Please login to merge, or discard this patch.