Completed
Push — master ( c823b8...bcb263 )
by Tomáš
18:49 queued 12:17
created
src/Standards/PEAR/Tests/WhiteSpace/ScopeIndentUnitTest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
                 48 => 1,
58 58
                 70 => 1,
59 59
                 71 => 1,
60
-               );
60
+                );
61 61
 
62 62
     }//end getErrorList()
63 63
 
Please login to merge, or discard this patch.
src/Standards/PEAR/Tests/Commenting/FileCommentUnitTest.inc 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(encoding='utf-8');
2
+declare(encoding = 'utf-8');
3 3
 /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
4 4
 
5 5
 /**
Please login to merge, or discard this patch.
src/Standards/PEAR/Tests/Commenting/FunctionCommentUnitTest.inc 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
      * @return
15 15
      * @throws
16 16
      */
17
-    private function _functionCall($stackPtr, $depth=1, $index)
17
+    private function _functionCall($stackPtr, $depth = 1, $index)
18 18
     {
19 19
         return $stackPtr;
20 20
 
Please login to merge, or discard this patch.
src/Standards/PEAR/Tests/Commenting/FunctionCommentUnitTest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
                 48 => 1,
58 58
                 70 => 1,
59 59
                 71 => 1,
60
-               );
60
+                );
61 61
 
62 62
     }//end getErrorList()
63 63
 
Please login to merge, or discard this patch.
src/Standards/PEAR/Tests/Commenting/ClassCommentUnitTest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
     {
45 45
         return array(
46 46
                 73 => 1,
47
-               );
47
+                );
48 48
 
49 49
     }//end getErrorList()
50 50
 
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
         return array(
63 63
                 27 => 1,
64 64
                 46 => 1,
65
-               );
65
+                );
66 66
 
67 67
     }//end getWarningList()
68 68
 
Please login to merge, or discard this patch.
src/Standards/PEAR/Tests/Commenting/FileCommentUnitTest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
     {
45 45
         return array(
46 46
                 73 => 1,
47
-               );
47
+                );
48 48
 
49 49
     }//end getErrorList()
50 50
 
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
         return array(
63 63
                 27 => 1,
64 64
                 46 => 1,
65
-               );
65
+                );
66 66
 
67 67
     }//end getWarningList()
68 68
 
Please login to merge, or discard this patch.
src/Standards/PEAR/Tests/Commenting/InlineCommentUnitTest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
                 48 => 1,
58 58
                 70 => 1,
59 59
                 71 => 1,
60
-               );
60
+                );
61 61
 
62 62
     }//end getErrorList()
63 63
 
Please login to merge, or discard this patch.
src/Standards/PEAR/Tests/Functions/FunctionCallSignatureUnitTest.inc 2 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -79,10 +79,10 @@  discard block
 block discarded – undo
79 79
 );
80 80
 
81 81
 array_map(
82
-     function($x)
83
-     {
84
-         return trim($x);
85
-     },
82
+        function($x)
83
+        {
84
+            return trim($x);
85
+        },
86 86
     $array
87 87
 );
88 88
 
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
         'is',
174 174
         'an',
175 175
         'array'
176
-     ],
176
+        ],
177 177
     array(
178 178
         'this',
179 179
         'is',
@@ -185,13 +185,13 @@  discard block
 block discarded – undo
185 185
         'is',
186 186
         'an',
187 187
         'array'
188
-     ),
188
+        ),
189 189
     function($x)
190 190
     {
191 191
         echo 'wee';
192 192
 
193 193
         return trim($x);
194
-   }
194
+    }
195 195
 );
196 196
 
197 197
 function foo()
@@ -272,7 +272,7 @@  discard block
 block discarded – undo
272 272
     $test = '
273 273
    ' . function_0(
274 274
     $argument_0,
275
-           $argument_1
275
+            $argument_1
276 276
     );
277 277
 }
278 278
 
Please login to merge, or discard this patch.
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -4,18 +4,18 @@  discard block
 block discarded – undo
4 4
 test($arg, $arg2);
5 5
 isset ();
6 6
 test( );
7
-test() ;
8
-test( $arg);
9
-empty( $arg );
10
-eval ( $arg );
7
+test();
8
+test($arg);
9
+empty($arg);
10
+eval ($arg);
11 11
 
12 12
 if (is_array($arg) === true) {
13 13
 
14 14
 }
15 15
 
16 16
 $something = get($arg1, $arg2);
17
-$something = get($arg1, $arg2) ;
18
-$something = get($arg1, $arg2)   ;
17
+$something = get($arg1, $arg2);
18
+$something = get($arg1, $arg2);
19 19
 
20 20
 // No errors as this test only checks for function calls.
21 21
 class TestClass extends MyClass
@@ -24,11 +24,11 @@  discard block
 block discarded – undo
24 24
     const const1 = 'hello';
25 25
     const CONST2 = 'hello';
26 26
 
27
-    public function test () { }
27
+    public function test() { }
28 28
 }
29 29
 
30 30
 make_foo($string/*the string*/, true/*test*/);
31
-make_foo($string/*the string*/, true/*test*/ );
31
+make_foo($string/*the string*/, true/*test*/);
32 32
 make_foo($string /*the string*/, true /*test*/);
33 33
 make_foo(/*the string*/$string, /*test*/true);
34 34
 make_foo( /*the string*/$string, /*test*/true);
@@ -211,8 +211,8 @@  discard block
 block discarded – undo
211 211
 // @codingStandardsChangeSetting PEAR.Functions.FunctionCallSignature requiredSpacesAfterOpen 1
212 212
 // @codingStandardsChangeSetting PEAR.Functions.FunctionCallSignature requiredSpacesBeforeClose 1
213 213
 test($arg, $arg2);
214
-test( $arg, $arg2 );
215
-test(  $arg, $arg2  );
214
+test($arg, $arg2);
215
+test($arg, $arg2);
216 216
 // @codingStandardsChangeSetting PEAR.Functions.FunctionCallSignature requiredSpacesAfterOpen 0
217 217
 // @codingStandardsChangeSetting PEAR.Functions.FunctionCallSignature requiredSpacesBeforeClose 0
218 218
 
@@ -231,10 +231,10 @@  discard block
 block discarded – undo
231 231
 
232 232
 array_walk(
233 233
     $types,
234
-    function ($title, $type) {
234
+    function($title, $type) {
235 235
         $plural = 'all' !== $type ? 's' : '';
236 236
         ?>
237
-        <li><a href="<?php esc_url('#tabs-documents-' . $type . $plural); ?>"><?php echo esc_html($title); ?></a></li>
237
+        <li><a href="<?php esc_url('#tabs-documents-'.$type.$plural); ?>"><?php echo esc_html($title); ?></a></li>
238 238
         <?php
239 239
     }
240 240
 );
@@ -278,27 +278,27 @@  discard block
 block discarded – undo
278 278
 
279 279
 myFunction(
280 280
     'foo', (object) array(
281
-        'bar' => function ($x) {
281
+        'bar' => function($x) {
282 282
             return true;
283 283
         },
284 284
         'baz' => false
285 285
     )
286 286
 );
287 287
 $qux = array_filter(
288
-    $quux, function ($x) {
288
+    $quux, function($x) {
289 289
         return $x;
290 290
     }
291 291
 );
292 292
 
293 293
 array_filter(
294 294
     [1, 2],
295
-    function ($i) : bool {
295
+    function($i) : bool {
296 296
         return $i === 0;
297 297
     }
298 298
 );
299 299
 
300 300
 foo(array(
301
-    'callback' => function () {
301
+    'callback' => function() {
302 302
         $foo = 'foo';
303 303
         return;
304 304
     },
Please login to merge, or discard this patch.
src/Standards/PEAR/Tests/Functions/ValidDefaultValueUnitTest.inc 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -11,32 +11,32 @@  discard block
 block discarded – undo
11 11
 }
12 12
 
13 13
 // Valid
14
-function myFunction($arg1, $arg2='hello')
14
+function myFunction($arg1, $arg2 = 'hello')
15 15
 {
16 16
 }
17 17
 
18 18
 // Valid with lots of args
19
-function myFunction($arg1, $arg2, $arg3, $arg4='hello', $arg5=array(), $arg6='hello')
19
+function myFunction($arg1, $arg2, $arg3, $arg4 = 'hello', $arg5 = array(), $arg6 = 'hello')
20 20
 {
21 21
 }
22 22
 
23 23
 // Valid type hints
24
-function myFunction(array $arg1, array $arg2=array())
24
+function myFunction(array $arg1, array $arg2 = array())
25 25
 {
26 26
 }
27 27
 
28 28
 // Invalid
29
-function myFunction($arg2='hello', $arg1)
29
+function myFunction($arg2 = 'hello', $arg1)
30 30
 {
31 31
 }
32 32
 
33 33
 // Invalid with lots of args
34
-function myFunction($arg1, $arg2, $arg3, $arg4='hello', $arg5, $arg6='hello')
34
+function myFunction($arg1, $arg2, $arg3, $arg4 = 'hello', $arg5, $arg6 = 'hello')
35 35
 {
36 36
 }
37 37
 
38 38
 // Invalid type hints
39
-function myFunction(array $arg2=array(), array $arg1)
39
+function myFunction(array $arg2 = array(), array $arg1)
40 40
 {
41 41
 }
42 42
 
@@ -53,34 +53,34 @@  discard block
 block discarded – undo
53 53
     }
54 54
 
55 55
     // Valid
56
-    function myFunction($arg1, $arg2='hello')
56
+    function myFunction($arg1, $arg2 = 'hello')
57 57
     {
58 58
     }
59 59
 
60 60
     // Valid with lots of args
61
-    function myFunction($arg1, $arg2, $arg3, $arg4='hello', $arg5=array(), $arg6='hello')
61
+    function myFunction($arg1, $arg2, $arg3, $arg4 = 'hello', $arg5 = array(), $arg6 = 'hello')
62 62
     {
63 63
     }
64 64
 
65 65
     // Valid type hints
66
-    function myFunction(array $arg1, array $arg2=array())
66
+    function myFunction(array $arg1, array $arg2 = array())
67 67
     {
68 68
     }
69 69
 
70 70
     // Invalid
71
-    function myFunction($arg2='hello', $arg1)
71
+    function myFunction($arg2 = 'hello', $arg1)
72 72
     {
73 73
     }
74 74
 
75 75
     // Invalid with lots of args
76
-    function myFunction($arg1, $arg2, $arg3, $arg4='hello', $arg5, $arg6='hello')
76
+    function myFunction($arg1, $arg2, $arg3, $arg4 = 'hello', $arg5, $arg6 = 'hello')
77 77
     {
78 78
     }
79 79
 
80 80
     // Invalid type hints
81
-    function myFunction(array $arg2=array(), array $arg1)
81
+    function myFunction(array $arg2 = array(), array $arg1)
82 82
     {
83 83
     }
84 84
 }
85 85
 
86
-function myFunc($req, $opt=null, ...$params) {}
86
+function myFunc($req, $opt = null, ...$params) {}
Please login to merge, or discard this patch.