Completed
Branch master (d87ed9)
by Tomáš
07:16
created
Standards/Squiz/Tests/WhiteSpace/ObjectOperatorSpacingUnitTest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
                 6 => 2,
49 49
                 8 => 1,
50 50
                 9 => 1,
51
-               );
51
+                );
52 52
 
53 53
     }//end getErrorList()
54 54
 
Please login to merge, or discard this patch.
Standards/Squiz/Tests/Functions/FunctionDuplicateArgumentUnitTest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
                 2 => 1,
47 47
                 4 => 2,
48 48
                 5 => 1,
49
-               );
49
+                );
50 50
 
51 51
     }//end getErrorList()
52 52
 
Please login to merge, or discard this patch.
Squiz/Tests/Functions/FunctionDeclarationArgumentSpacingUnitTest.inc 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -58,10 +58,10 @@
 block discarded – undo
58 58
 function myFunc( ) {}
59 59
 
60 60
 function multiLineFunction(
61
-	array $flatList,
62
-	$markup,
63
-	array $otherList,
64
-	$lastOffset=0
61
+    array $flatList,
62
+    $markup,
63
+    array $otherList,
64
+    $lastOffset=0
65 65
 ) {
66 66
 }
67 67
 // @codingStandardsChangeSetting Squiz.Functions.FunctionDeclarationArgumentSpacing requiredSpacesAfterOpen 0
Please login to merge, or discard this patch.
Spacing   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -2,38 +2,38 @@  discard block
 block discarded – undo
2 2
 function myFunc() {}
3 3
 function myFunc( ) {}
4 4
 function myFunc($blah) {}
5
-function myFunc( $blah ) {}
5
+function myFunc($blah) {}
6
+function myFunc($blah, $blah2, $blah3) {}
7
+function myFunc($blah, $blah2, $blah3) {}
6 8
 function myFunc($blah, $blah2, $blah3) {}
7
-function myFunc($blah , $blah2, $blah3 ) {}
8
-function myFunc($blah,$blah2,$blah3) {}
9
-function myFunc($blah,   $blah2,  $blah3) {}
10
-function myFunc($blah='hello') {}
9
+function myFunc($blah, $blah2, $blah3) {}
10
+function myFunc($blah = 'hello') {}
11 11
 function myFunc($blah = 'hello') {}
12
-function myFunc(PHP_CodeSniffer $object, array $array=array(), $blah3='yo') {}
13
-function myFunc(  $blah='hello'   , $blah2=   'hi',  $blah3   = 'yo' ) {}
14
-function myFunc(PHP_CodeSniffer   $object, array  $array=array(), $blah3='yo') {}
15
-function myFunc( PHP_CodeSniffer $object,  array $array=array(), $blah3='yo') {}
16
-function myFunc( array  &$one,  array  &$two) {}
12
+function myFunc(PHP_CodeSniffer $object, array $array = array(), $blah3 = 'yo') {}
13
+function myFunc($blah = 'hello', $blah2 = 'hi', $blah3 = 'yo') {}
14
+function myFunc(PHP_CodeSniffer   $object, array  $array = array(), $blah3 = 'yo') {}
15
+function myFunc(PHP_CodeSniffer $object, array $array = array(), $blah3 = 'yo') {}
16
+function myFunc(array  &$one, array  &$two) {}
17
+function myFunc(&$blah) {}
17 18
 function myFunc(&$blah) {}
18
-function myFunc( &$blah ) {}
19 19
 
20 20
 function multiLineFunction(
21 21
     array $flatList,
22 22
     $markup,
23 23
     array $otherList,
24
-    $lastOffset=0
24
+    $lastOffset = 0
25 25
 ) {
26 26
 }
27 27
 
28 28
 function multiLineFunction(
29 29
     $markup,
30 30
     array $otherList,
31
-    $lastOffset=0
31
+    $lastOffset = 0
32 32
 ) {
33 33
 }
34 34
 
35
-$noArgs_longVars = function ($longVar1,  $longerVar2= false) use (
36
-    $longVar1 ,  $longerVar2= false,
35
+$noArgs_longVars = function($longVar1, $longerVar2 = false) use (
36
+    $longVar1, $longerVar2 = false,
37 37
     $muchLongerVar3
38 38
 )  {
39 39
     // body
@@ -41,19 +41,19 @@  discard block
 block discarded – undo
41 41
 
42 42
 // @codingStandardsChangeSetting Squiz.Functions.FunctionDeclarationArgumentSpacing equalsSpacing 1
43 43
 function myFunc($blah = 'hello') {}
44
-function myFunc($blah  =  'hello') {}
45
-function myFunc($blah =  'hello') {}
44
+function myFunc($blah  = 'hello') {}
45
+function myFunc($blah = 'hello') {}
46 46
 function myFunc($blah  = 'hello') {}
47 47
 // @codingStandardsChangeSetting Squiz.Functions.FunctionDeclarationArgumentSpacing equalsSpacing 0
48 48
 
49 49
 // @codingStandardsChangeSetting Squiz.Functions.FunctionDeclarationArgumentSpacing requiredSpacesAfterOpen 1
50 50
 // @codingStandardsChangeSetting Squiz.Functions.FunctionDeclarationArgumentSpacing requiredSpacesBeforeClose 1
51 51
 function myFunc($blah) {}
52
-function myFunc( $blah ) {}
53
-function myFunc(  $blah  ) {}
54
-function myFunc( array $blah ) {}
55
-function myFunc(array $blah ) {}
56
-function myFunc(  array $blah ) {}
52
+function myFunc($blah) {}
53
+function myFunc($blah) {}
54
+function myFunc(array $blah) {}
55
+function myFunc(array $blah) {}
56
+function myFunc(array $blah) {}
57 57
 function myFunc() {}
58 58
 function myFunc( ) {}
59 59
 
@@ -61,16 +61,16 @@  discard block
 block discarded – undo
61 61
 	array $flatList,
62 62
 	$markup,
63 63
 	array $otherList,
64
-	$lastOffset=0
64
+	$lastOffset = 0
65 65
 ) {
66 66
 }
67 67
 // @codingStandardsChangeSetting Squiz.Functions.FunctionDeclarationArgumentSpacing requiredSpacesAfterOpen 0
68 68
 // @codingStandardsChangeSetting Squiz.Functions.FunctionDeclarationArgumentSpacing requiredSpacesBeforeClose 0
69 69
 
70
-function myFunc($req, $opt=null, ...$params) {}
70
+function myFunc($req, $opt = null, ...$params) {}
71 71
 function myFunc($param, &...$moreParams) {}
72 72
 
73 73
 function MissingParamTypeInDocBlock(array$a = null, callable$c, \ArrayObject$o, $foo = []) {}
74 74
 
75 75
 function myFunc(...$args) {}
76
-function myFunc( ...$args) {}
76
+function myFunc(...$args) {}
Please login to merge, or discard this patch.
CodeSniffer/Standards/Squiz/Tests/Functions/GlobalFunctionUnitTest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
     {
60 60
         return array(
61 61
                 2 => 1,
62
-               );
62
+                );
63 63
 
64 64
     }//end getWarningList()
65 65
 
Please login to merge, or discard this patch.
Standards/Squiz/Tests/Functions/LowercaseFunctionKeywordsUnitTest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
                 4 => 1,
49 49
                 5 => 1,
50 50
                 6 => 1,
51
-               );
51
+                );
52 52
 
53 53
     }//end getErrorList()
54 54
 
Please login to merge, or discard this patch.
CodeSniffer/Standards/Squiz/Tests/Functions/FunctionDeclarationUnitTest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
         return array(
46 46
                 55 => 1,
47 47
                 68 => 1,
48
-               );
48
+                );
49 49
 
50 50
     }//end getErrorList()
51 51
 
Please login to merge, or discard this patch.
CodeSniffer/Standards/Squiz/Tests/Functions/GlobalFunctionUnitTest.inc 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,5 +13,5 @@
 block discarded – undo
13 13
 
14 14
 function __autoload($class) {}
15 15
 
16
-echo preg_replace_callback('~-([a-z])~', function ($match) { return strtoupper($match[1]); }, 'hello-world');
16
+echo preg_replace_callback('~-([a-z])~', function($match) { return strtoupper($match[1]); }, 'hello-world');
17 17
 ?>
Please login to merge, or discard this patch.
Squiz/Tests/Functions/FunctionDeclarationArgumentSpacingUnitTest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
                 58 => 1,
67 67
                 73 => 7,
68 68
                 76 => 1,
69
-               );
69
+                );
70 70
 
71 71
     }//end getErrorList()
72 72
 
Please login to merge, or discard this patch.
CodeSniffer/Standards/Squiz/Tests/Functions/FunctionDeclarationUnitTest.inc 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
     function func1();
53 53
 
54 54
 
55
-    function func2() ;
55
+    function func2();
56 56
 
57 57
 
58 58
 }//end interface
@@ -60,12 +60,12 @@  discard block
 block discarded – undo
60 60
 function recurseCreateTree(
61 61
     array $flatList,
62 62
     $markup,
63
-    $lastOffset=0
63
+    $lastOffset = 0
64 64
 ) {
65 65
 }
66 66
 
67 67
 
68
-function test ( ){}
68
+function test( ) {}
69 69
 
70 70
 function parent() {}
71 71
 function self() {}
Please login to merge, or discard this patch.