Completed
Pull Request — develop (#1492)
by Zack
17:43
created
php_codesniffer/src/Standards/Generic/Tests/PHP/LowerCaseTypeUnitTest.inc 3 patches
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -29,19 +29,19 @@
 block discarded – undo
29 29
 $foo = function (bool $a, callable $b) use ($foo) : Bar {};
30 30
 
31 31
 class Testing {
32
-    public function TestThis(SELF $a, obJect $b, Parent $c) : VOID {}
32
+	public function TestThis(SELF $a, obJect $b, Parent $c) : VOID {}
33 33
 }
34 34
 
35 35
 function foo(
36
-    ?Float $a,
37
-    ? String $b,
38
-    ?ITERABLE $c,
39
-    ?	Object $d,
40
-    ?Foo\Bar $e
36
+	?Float $a,
37
+	? String $b,
38
+	?ITERABLE $c,
39
+	?	Object $d,
40
+	?Foo\Bar $e
41 41
 ) : ?Foo\Bar {}
42 42
 
43 43
 $foo = function (?Int $a, ?    Callable $b)
44
-    :?INT{};
44
+	:?INT{};
45 45
 
46 46
 $var = (BInARY) $string;
47 47
 $var = (binary)$string;
Please login to merge, or discard this patch.
Spacing   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -1,35 +1,35 @@  discard block
 block discarded – undo
1 1
 <?php
2
-$foo = (int) $bar;
3
-$foo = (integer) $bar;
4
-$foo = (bool) $bar;
5
-$foo = (boolean) $bar;
6
-$foo = (float) $bar;
7
-$foo = (double) $bar;
8
-$foo = (real) $bar;
9
-$foo = (string) $bar;
10
-$foo = (array) $bar;
11
-$foo = (object) $bar;
12
-$foo = (unset) $bar;
2
+$foo = (int)$bar;
3
+$foo = (integer)$bar;
4
+$foo = (bool)$bar;
5
+$foo = (boolean)$bar;
6
+$foo = (float)$bar;
7
+$foo = (double)$bar;
8
+$foo = (real)$bar;
9
+$foo = (string)$bar;
10
+$foo = (array)$bar;
11
+$foo = (object)$bar;
12
+$foo = (unset)$bar;
13 13
 
14
-$foo = (Int) $bar;
15
-$foo = (INTEGER) $bar;
16
-$foo = (BOOL) $bar;
17
-$foo = (String) $bar;
18
-$foo = (Array) $bar;
14
+$foo = (Int)$bar;
15
+$foo = (INTEGER)$bar;
16
+$foo = (BOOL)$bar;
17
+$foo = (String)$bar;
18
+$foo = (Array)$bar;
19 19
 
20
-function foo(int $a, string $b, bool $c, array $d, Foo\Bar $e) : int {}
21
-function foo(Int $a, String $b, BOOL $c, Array $d, Foo\Bar $e) : Foo\Bar {}
22
-function foo(Int $a, Bar $b, BOOL $c, Array $d, Foo\Bar $e) : Bar {}
23
-function foo(callable $a, Callable $b, self $c, Iterable $d, iterable $e) : Float {}
20
+function foo( int $a, string $b, bool $c, array $d, Foo\Bar $e ) : int {}
21
+function foo( Int $a, String $b, BOOL $c, Array $d, Foo\Bar $e ) : Foo\Bar {}
22
+function foo( Int $a, Bar $b, BOOL $c, Array $d, Foo\Bar $e ) : Bar {}
23
+function foo( callable $a, Callable $b, self $c, Iterable $d, iterable $e ) : Float {}
24 24
 
25
-$foo = function (int $a, Bool $b) {};
26
-$foo = function (int $a, Callable $b) :INT{};
27
-$foo = function (BOOL $a, float $b) use ($foo) : INT {};
28
-$foo = function (Foo $a, Foo\Bar $b) use ($foo) : \Foo\Bar {};
29
-$foo = function (bool $a, callable $b) use ($foo) : Bar {};
25
+$foo = function( int $a, Bool $b ) {};
26
+$foo = function( int $a, Callable $b ) :INT{};
27
+$foo = function( BOOL $a, float $b ) use ( $foo ) : INT {};
28
+$foo = function( Foo $a, Foo\Bar $b ) use ( $foo ) : \Foo\Bar {};
29
+$foo = function( bool $a, callable $b ) use ( $foo ) : Bar {};
30 30
 
31 31
 class Testing {
32
-    public function TestThis(SELF $a, obJect $b, Parent $c) : VOID {}
32
+    public function TestThis( SELF $a, obJect $b, Parent $c ) : VOID {}
33 33
 }
34 34
 
35 35
 function foo(
@@ -40,8 +40,8 @@  discard block
 block discarded – undo
40 40
     ?Foo\Bar $e
41 41
 ) : ?Foo\Bar {}
42 42
 
43
-$foo = function (?Int $a, ?    Callable $b)
44
-    :?INT{};
43
+$foo = function( ?Int $a, ?    Callable $b )
44
+    : ?INT{};
45 45
 
46
-$var = (BInARY) $string;
46
+$var = (BInARY)$string;
47 47
 $var = (binary)$string;
Please login to merge, or discard this patch.
Upper-Lower-Casing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -18,12 +18,12 @@  discard block
 block discarded – undo
18 18
 $foo = (Array) $bar;
19 19
 
20 20
 function foo(int $a, string $b, bool $c, array $d, Foo\Bar $e) : int {}
21
-function foo(Int $a, String $b, BOOL $c, Array $d, Foo\Bar $e) : Foo\Bar {}
22
-function foo(Int $a, Bar $b, BOOL $c, Array $d, Foo\Bar $e) : Bar {}
23
-function foo(callable $a, Callable $b, self $c, Iterable $d, iterable $e) : Float {}
21
+function foo(Int $a, String $b, BOOL $c, array $d, Foo\Bar $e) : Foo\Bar {}
22
+function foo(Int $a, Bar $b, BOOL $c, array $d, Foo\Bar $e) : Bar {}
23
+function foo(callable $a, callable $b, self $c, Iterable $d, iterable $e) : Float {}
24 24
 
25 25
 $foo = function (int $a, Bool $b) {};
26
-$foo = function (int $a, Callable $b) :INT{};
26
+$foo = function (int $a, callable $b) :INT{};
27 27
 $foo = function (BOOL $a, float $b) use ($foo) : INT {};
28 28
 $foo = function (Foo $a, Foo\Bar $b) use ($foo) : \Foo\Bar {};
29 29
 $foo = function (bool $a, callable $b) use ($foo) : Bar {};
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
     ?Foo\Bar $e
41 41
 ) : ?Foo\Bar {}
42 42
 
43
-$foo = function (?Int $a, ?    Callable $b)
43
+$foo = function (?Int $a, ?    callable $b)
44 44
     :?INT{};
45 45
 
46 46
 $var = (BInARY) $string;
Please login to merge, or discard this patch.
src/Standards/Generic/Tests/PHP/CharacterBeforePHPOpeningTagUnitTest.php 4 patches
Indentation   +37 added lines, -37 removed lines patch added patch discarded remove patch
@@ -15,43 +15,43 @@
 block discarded – undo
15 15
 {
16 16
 
17 17
 
18
-    /**
19
-     * Returns the lines where errors should occur.
20
-     *
21
-     * The key of the array should represent the line number and the value
22
-     * should represent the number of errors that should occur on that line.
23
-     *
24
-     * @param string $testFile The name of the file being tested.
25
-     *
26
-     * @return array<int, int>
27
-     */
28
-    public function getErrorList($testFile='')
29
-    {
30
-        switch ($testFile) {
31
-        case 'CharacterBeforePHPOpeningTagUnitTest.1.inc':
32
-            return [2 => 1];
33
-            break;
34
-        default:
35
-            return [];
36
-            break;
37
-        }//end switch
38
-
39
-    }//end getErrorList()
40
-
41
-
42
-    /**
43
-     * Returns the lines where warnings should occur.
44
-     *
45
-     * The key of the array should represent the line number and the value
46
-     * should represent the number of warnings that should occur on that line.
47
-     *
48
-     * @return array<int, int>
49
-     */
50
-    public function getWarningList()
51
-    {
52
-        return [];
53
-
54
-    }//end getWarningList()
18
+	/**
19
+	 * Returns the lines where errors should occur.
20
+	 *
21
+	 * The key of the array should represent the line number and the value
22
+	 * should represent the number of errors that should occur on that line.
23
+	 *
24
+	 * @param string $testFile The name of the file being tested.
25
+	 *
26
+	 * @return array<int, int>
27
+	 */
28
+	public function getErrorList($testFile='')
29
+	{
30
+		switch ($testFile) {
31
+		case 'CharacterBeforePHPOpeningTagUnitTest.1.inc':
32
+			return [2 => 1];
33
+			break;
34
+		default:
35
+			return [];
36
+			break;
37
+		}//end switch
38
+
39
+	}//end getErrorList()
40
+
41
+
42
+	/**
43
+	 * Returns the lines where warnings should occur.
44
+	 *
45
+	 * The key of the array should represent the line number and the value
46
+	 * should represent the number of warnings that should occur on that line.
47
+	 *
48
+	 * @return array<int, int>
49
+	 */
50
+	public function getWarningList()
51
+	{
52
+		return [];
53
+
54
+	}//end getWarningList()
55 55
 
56 56
 
57 57
 }//end class
Please login to merge, or discard this patch.
Switch Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -28,12 +28,12 @@
 block discarded – undo
28 28
     public function getErrorList($testFile='')
29 29
     {
30 30
         switch ($testFile) {
31
-        case 'CharacterBeforePHPOpeningTagUnitTest.1.inc':
32
-            return [2 => 1];
33
-            break;
34
-        default:
35
-            return [];
36
-            break;
31
+        	case 'CharacterBeforePHPOpeningTagUnitTest.1.inc':
32
+            	return [2 => 1];
33
+            	break;
34
+        	default:
35
+            	return [];
36
+            	break;
37 37
         }//end switch
38 38
 
39 39
     }//end getErrorList()
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -25,14 +25,14 @@  discard block
 block discarded – undo
25 25
      *
26 26
      * @return array<int, int>
27 27
      */
28
-    public function getErrorList($testFile='')
28
+    public function getErrorList( $testFile = '' )
29 29
     {
30
-        switch ($testFile) {
30
+        switch ( $testFile ) {
31 31
         case 'CharacterBeforePHPOpeningTagUnitTest.1.inc':
32
-            return [2 => 1];
32
+            return [ 2 => 1 ];
33 33
             break;
34 34
         default:
35
-            return [];
35
+            return [ ];
36 36
             break;
37 37
         }//end switch
38 38
 
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
      */
50 50
     public function getWarningList()
51 51
     {
52
-        return [];
52
+        return [ ];
53 53
 
54 54
     }//end getWarningList()
55 55
 
Please login to merge, or discard this patch.
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -11,8 +11,7 @@  discard block
 block discarded – undo
11 11
 
12 12
 use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
13 13
 
14
-class CharacterBeforePHPOpeningTagUnitTest extends AbstractSniffUnitTest
15
-{
14
+class CharacterBeforePHPOpeningTagUnitTest extends AbstractSniffUnitTest {
16 15
 
17 16
 
18 17
     /**
@@ -25,8 +24,7 @@  discard block
 block discarded – undo
25 24
      *
26 25
      * @return array<int, int>
27 26
      */
28
-    public function getErrorList($testFile='')
29
-    {
27
+    public function getErrorList($testFile='') {
30 28
         switch ($testFile) {
31 29
         case 'CharacterBeforePHPOpeningTagUnitTest.1.inc':
32 30
             return [2 => 1];
@@ -47,8 +45,7 @@  discard block
 block discarded – undo
47 45
      *
48 46
      * @return array<int, int>
49 47
      */
50
-    public function getWarningList()
51
-    {
48
+    public function getWarningList() {
52 49
         return [];
53 50
 
54 51
     }//end getWarningList()
Please login to merge, or discard this patch.
src/Standards/Generic/Tests/PHP/LowerCaseConstantUnitTest.php 4 patches
Indentation   +60 added lines, -60 removed lines patch added patch discarded remove patch
@@ -15,70 +15,70 @@
 block discarded – undo
15 15
 {
16 16
 
17 17
 
18
-    /**
19
-     * Returns the lines where errors should occur.
20
-     *
21
-     * The key of the array should represent the line number and the value
22
-     * should represent the number of errors that should occur on that line.
23
-     *
24
-     * @param string $testFile The name of the file being tested.
25
-     *
26
-     * @return array<int, int>
27
-     */
28
-    public function getErrorList($testFile='LowerCaseConstantUnitTest.inc')
29
-    {
30
-        switch ($testFile) {
31
-        case 'LowerCaseConstantUnitTest.inc':
32
-            return [
33
-                7  => 1,
34
-                10 => 1,
35
-                15 => 1,
36
-                16 => 1,
37
-                23 => 1,
38
-                26 => 1,
39
-                31 => 1,
40
-                32 => 1,
41
-                39 => 1,
42
-                42 => 1,
43
-                47 => 1,
44
-                48 => 1,
45
-                70 => 1,
46
-                71 => 1,
47
-            ];
48
-        break;
49
-        case 'LowerCaseConstantUnitTest.js':
50
-            return [
51
-                2  => 1,
52
-                3  => 1,
53
-                4  => 1,
54
-                7  => 1,
55
-                8  => 1,
56
-                12 => 1,
57
-                13 => 1,
58
-                14 => 1,
59
-            ];
60
-            break;
61
-        default:
62
-            return [];
63
-            break;
64
-        }//end switch
18
+	/**
19
+	 * Returns the lines where errors should occur.
20
+	 *
21
+	 * The key of the array should represent the line number and the value
22
+	 * should represent the number of errors that should occur on that line.
23
+	 *
24
+	 * @param string $testFile The name of the file being tested.
25
+	 *
26
+	 * @return array<int, int>
27
+	 */
28
+	public function getErrorList($testFile='LowerCaseConstantUnitTest.inc')
29
+	{
30
+		switch ($testFile) {
31
+		case 'LowerCaseConstantUnitTest.inc':
32
+			return [
33
+				7  => 1,
34
+				10 => 1,
35
+				15 => 1,
36
+				16 => 1,
37
+				23 => 1,
38
+				26 => 1,
39
+				31 => 1,
40
+				32 => 1,
41
+				39 => 1,
42
+				42 => 1,
43
+				47 => 1,
44
+				48 => 1,
45
+				70 => 1,
46
+				71 => 1,
47
+			];
48
+		break;
49
+		case 'LowerCaseConstantUnitTest.js':
50
+			return [
51
+				2  => 1,
52
+				3  => 1,
53
+				4  => 1,
54
+				7  => 1,
55
+				8  => 1,
56
+				12 => 1,
57
+				13 => 1,
58
+				14 => 1,
59
+			];
60
+			break;
61
+		default:
62
+			return [];
63
+			break;
64
+		}//end switch
65 65
 
66
-    }//end getErrorList()
66
+	}//end getErrorList()
67 67
 
68 68
 
69
-    /**
70
-     * Returns the lines where warnings should occur.
71
-     *
72
-     * The key of the array should represent the line number and the value
73
-     * should represent the number of warnings that should occur on that line.
74
-     *
75
-     * @return array<int, int>
76
-     */
77
-    public function getWarningList()
78
-    {
79
-        return [];
69
+	/**
70
+	 * Returns the lines where warnings should occur.
71
+	 *
72
+	 * The key of the array should represent the line number and the value
73
+	 * should represent the number of warnings that should occur on that line.
74
+	 *
75
+	 * @return array<int, int>
76
+	 */
77
+	public function getWarningList()
78
+	{
79
+		return [];
80 80
 
81
-    }//end getWarningList()
81
+	}//end getWarningList()
82 82
 
83 83
 
84 84
 }//end class
Please login to merge, or discard this patch.
Switch Indentation   +33 added lines, -33 removed lines patch added patch discarded remove patch
@@ -28,39 +28,39 @@
 block discarded – undo
28 28
     public function getErrorList($testFile='LowerCaseConstantUnitTest.inc')
29 29
     {
30 30
         switch ($testFile) {
31
-        case 'LowerCaseConstantUnitTest.inc':
32
-            return [
33
-                7  => 1,
34
-                10 => 1,
35
-                15 => 1,
36
-                16 => 1,
37
-                23 => 1,
38
-                26 => 1,
39
-                31 => 1,
40
-                32 => 1,
41
-                39 => 1,
42
-                42 => 1,
43
-                47 => 1,
44
-                48 => 1,
45
-                70 => 1,
46
-                71 => 1,
47
-            ];
48
-        break;
49
-        case 'LowerCaseConstantUnitTest.js':
50
-            return [
51
-                2  => 1,
52
-                3  => 1,
53
-                4  => 1,
54
-                7  => 1,
55
-                8  => 1,
56
-                12 => 1,
57
-                13 => 1,
58
-                14 => 1,
59
-            ];
60
-            break;
61
-        default:
62
-            return [];
63
-            break;
31
+        	case 'LowerCaseConstantUnitTest.inc':
32
+            	return [
33
+                	7  => 1,
34
+                	10 => 1,
35
+                	15 => 1,
36
+                	16 => 1,
37
+                	23 => 1,
38
+                	26 => 1,
39
+                	31 => 1,
40
+                	32 => 1,
41
+                	39 => 1,
42
+                	42 => 1,
43
+                	47 => 1,
44
+                	48 => 1,
45
+                	70 => 1,
46
+                	71 => 1,
47
+            	];
48
+        	break;
49
+        	case 'LowerCaseConstantUnitTest.js':
50
+            	return [
51
+                	2  => 1,
52
+                	3  => 1,
53
+                	4  => 1,
54
+                	7  => 1,
55
+                	8  => 1,
56
+                	12 => 1,
57
+                	13 => 1,
58
+                	14 => 1,
59
+            	];
60
+            	break;
61
+        	default:
62
+            	return [];
63
+            	break;
64 64
         }//end switch
65 65
 
66 66
     }//end getErrorList()
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -25,9 +25,9 @@  discard block
 block discarded – undo
25 25
      *
26 26
      * @return array<int, int>
27 27
      */
28
-    public function getErrorList($testFile='LowerCaseConstantUnitTest.inc')
28
+    public function getErrorList( $testFile = 'LowerCaseConstantUnitTest.inc' )
29 29
     {
30
-        switch ($testFile) {
30
+        switch ( $testFile ) {
31 31
         case 'LowerCaseConstantUnitTest.inc':
32 32
             return [
33 33
                 7  => 1,
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
             ];
60 60
             break;
61 61
         default:
62
-            return [];
62
+            return [ ];
63 63
             break;
64 64
         }//end switch
65 65
 
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
      */
77 77
     public function getWarningList()
78 78
     {
79
-        return [];
79
+        return [ ];
80 80
 
81 81
     }//end getWarningList()
82 82
 
Please login to merge, or discard this patch.
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -11,8 +11,7 @@  discard block
 block discarded – undo
11 11
 
12 12
 use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
13 13
 
14
-class LowerCaseConstantUnitTest extends AbstractSniffUnitTest
15
-{
14
+class LowerCaseConstantUnitTest extends AbstractSniffUnitTest {
16 15
 
17 16
 
18 17
     /**
@@ -25,8 +24,7 @@  discard block
 block discarded – undo
25 24
      *
26 25
      * @return array<int, int>
27 26
      */
28
-    public function getErrorList($testFile='LowerCaseConstantUnitTest.inc')
29
-    {
27
+    public function getErrorList($testFile='LowerCaseConstantUnitTest.inc') {
30 28
         switch ($testFile) {
31 29
         case 'LowerCaseConstantUnitTest.inc':
32 30
             return [
@@ -74,8 +72,7 @@  discard block
 block discarded – undo
74 72
      *
75 73
      * @return array<int, int>
76 74
      */
77
-    public function getWarningList()
78
-    {
75
+    public function getWarningList() {
79 76
         return [];
80 77
 
81 78
     }//end getWarningList()
Please login to merge, or discard this patch.
php_codesniffer/src/Standards/Generic/Tests/PHP/ClosingPHPTagUnitTest.php 3 patches
Indentation   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -15,34 +15,34 @@
 block discarded – undo
15 15
 {
16 16
 
17 17
 
18
-    /**
19
-     * Returns the lines where errors should occur.
20
-     *
21
-     * The key of the array should represent the line number and the value
22
-     * should represent the number of errors that should occur on that line.
23
-     *
24
-     * @return array<int, int>
25
-     */
26
-    public function getErrorList()
27
-    {
28
-        return [9 => 1];
29
-
30
-    }//end getErrorList()
31
-
32
-
33
-    /**
34
-     * Returns the lines where warnings should occur.
35
-     *
36
-     * The key of the array should represent the line number and the value
37
-     * should represent the number of warnings that should occur on that line.
38
-     *
39
-     * @return array<int, int>
40
-     */
41
-    public function getWarningList()
42
-    {
43
-        return [];
44
-
45
-    }//end getWarningList()
18
+	/**
19
+	 * Returns the lines where errors should occur.
20
+	 *
21
+	 * The key of the array should represent the line number and the value
22
+	 * should represent the number of errors that should occur on that line.
23
+	 *
24
+	 * @return array<int, int>
25
+	 */
26
+	public function getErrorList()
27
+	{
28
+		return [9 => 1];
29
+
30
+	}//end getErrorList()
31
+
32
+
33
+	/**
34
+	 * Returns the lines where warnings should occur.
35
+	 *
36
+	 * The key of the array should represent the line number and the value
37
+	 * should represent the number of warnings that should occur on that line.
38
+	 *
39
+	 * @return array<int, int>
40
+	 */
41
+	public function getWarningList()
42
+	{
43
+		return [];
44
+
45
+	}//end getWarningList()
46 46
 
47 47
 
48 48
 }//end class
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
      */
26 26
     public function getErrorList()
27 27
     {
28
-        return [9 => 1];
28
+        return [ 9 => 1 ];
29 29
 
30 30
     }//end getErrorList()
31 31
 
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
      */
41 41
     public function getWarningList()
42 42
     {
43
-        return [];
43
+        return [ ];
44 44
 
45 45
     }//end getWarningList()
46 46
 
Please login to merge, or discard this patch.
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -11,8 +11,7 @@  discard block
 block discarded – undo
11 11
 
12 12
 use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
13 13
 
14
-class ClosingPHPTagUnitTest extends AbstractSniffUnitTest
15
-{
14
+class ClosingPHPTagUnitTest extends AbstractSniffUnitTest {
16 15
 
17 16
 
18 17
     /**
@@ -23,8 +22,7 @@  discard block
 block discarded – undo
23 22
      *
24 23
      * @return array<int, int>
25 24
      */
26
-    public function getErrorList()
27
-    {
25
+    public function getErrorList() {
28 26
         return [9 => 1];
29 27
 
30 28
     }//end getErrorList()
@@ -38,8 +36,7 @@  discard block
 block discarded – undo
38 36
      *
39 37
      * @return array<int, int>
40 38
      */
41
-    public function getWarningList()
42
-    {
39
+    public function getWarningList() {
43 40
         return [];
44 41
 
45 42
     }//end getWarningList()
Please login to merge, or discard this patch.
php_codesniffer/src/Standards/Generic/Tests/PHP/DiscourageGotoUnitTest.php 3 patches
Indentation   +33 added lines, -33 removed lines patch added patch discarded remove patch
@@ -15,39 +15,39 @@
 block discarded – undo
15 15
 {
16 16
 
17 17
 
18
-    /**
19
-     * Returns the lines where errors should occur.
20
-     *
21
-     * The key of the array should represent the line number and the value
22
-     * should represent the number of errors that should occur on that line.
23
-     *
24
-     * @return array<int, int>
25
-     */
26
-    public function getErrorList()
27
-    {
28
-        return [];
29
-
30
-    }//end getErrorList()
31
-
32
-
33
-    /**
34
-     * Returns the lines where warnings should occur.
35
-     *
36
-     * The key of the array should represent the line number and the value
37
-     * should represent the number of warnings that should occur on that line.
38
-     *
39
-     * @return array<int, int>
40
-     */
41
-    public function getWarningList()
42
-    {
43
-        return [
44
-            3  => 1,
45
-            6  => 1,
46
-            11 => 1,
47
-            16 => 1,
48
-        ];
49
-
50
-    }//end getWarningList()
18
+	/**
19
+	 * Returns the lines where errors should occur.
20
+	 *
21
+	 * The key of the array should represent the line number and the value
22
+	 * should represent the number of errors that should occur on that line.
23
+	 *
24
+	 * @return array<int, int>
25
+	 */
26
+	public function getErrorList()
27
+	{
28
+		return [];
29
+
30
+	}//end getErrorList()
31
+
32
+
33
+	/**
34
+	 * Returns the lines where warnings should occur.
35
+	 *
36
+	 * The key of the array should represent the line number and the value
37
+	 * should represent the number of warnings that should occur on that line.
38
+	 *
39
+	 * @return array<int, int>
40
+	 */
41
+	public function getWarningList()
42
+	{
43
+		return [
44
+			3  => 1,
45
+			6  => 1,
46
+			11 => 1,
47
+			16 => 1,
48
+		];
49
+
50
+	}//end getWarningList()
51 51
 
52 52
 
53 53
 }//end class
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
      */
26 26
     public function getErrorList()
27 27
     {
28
-        return [];
28
+        return [ ];
29 29
 
30 30
     }//end getErrorList()
31 31
 
Please login to merge, or discard this patch.
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -11,8 +11,7 @@  discard block
 block discarded – undo
11 11
 
12 12
 use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
13 13
 
14
-class DiscourageGotoUnitTest extends AbstractSniffUnitTest
15
-{
14
+class DiscourageGotoUnitTest extends AbstractSniffUnitTest {
16 15
 
17 16
 
18 17
     /**
@@ -23,8 +22,7 @@  discard block
 block discarded – undo
23 22
      *
24 23
      * @return array<int, int>
25 24
      */
26
-    public function getErrorList()
27
-    {
25
+    public function getErrorList() {
28 26
         return [];
29 27
 
30 28
     }//end getErrorList()
@@ -38,8 +36,7 @@  discard block
 block discarded – undo
38 36
      *
39 37
      * @return array<int, int>
40 38
      */
41
-    public function getWarningList()
42
-    {
39
+    public function getWarningList() {
43 40
         return [
44 41
             3  => 1,
45 42
             6  => 1,
Please login to merge, or discard this patch.
src/Standards/Generic/Tests/PHP/DeprecatedFunctionsUnitTest.php 3 patches
Indentation   +38 added lines, -38 removed lines patch added patch discarded remove patch
@@ -15,44 +15,44 @@
 block discarded – undo
15 15
 {
16 16
 
17 17
 
18
-    /**
19
-     * Returns the lines where errors should occur.
20
-     *
21
-     * The key of the array should represent the line number and the value
22
-     * should represent the number of errors that should occur on that line.
23
-     *
24
-     * @return array<int, int>
25
-     */
26
-    public function getErrorList()
27
-    {
28
-        $errors = [];
29
-
30
-        if (PHP_VERSION_ID >= 70200) {
31
-            $errors[3] = 1;
32
-        }
33
-
34
-        if (PHP_VERSION_ID >= 70300) {
35
-            $errors[4] = 1;
36
-        }
37
-
38
-        return $errors;
39
-
40
-    }//end getErrorList()
41
-
42
-
43
-    /**
44
-     * Returns the lines where warnings should occur.
45
-     *
46
-     * The key of the array should represent the line number and the value
47
-     * should represent the number of warnings that should occur on that line.
48
-     *
49
-     * @return array<int, int>
50
-     */
51
-    public function getWarningList()
52
-    {
53
-        return [];
54
-
55
-    }//end getWarningList()
18
+	/**
19
+	 * Returns the lines where errors should occur.
20
+	 *
21
+	 * The key of the array should represent the line number and the value
22
+	 * should represent the number of errors that should occur on that line.
23
+	 *
24
+	 * @return array<int, int>
25
+	 */
26
+	public function getErrorList()
27
+	{
28
+		$errors = [];
29
+
30
+		if (PHP_VERSION_ID >= 70200) {
31
+			$errors[3] = 1;
32
+		}
33
+
34
+		if (PHP_VERSION_ID >= 70300) {
35
+			$errors[4] = 1;
36
+		}
37
+
38
+		return $errors;
39
+
40
+	}//end getErrorList()
41
+
42
+
43
+	/**
44
+	 * Returns the lines where warnings should occur.
45
+	 *
46
+	 * The key of the array should represent the line number and the value
47
+	 * should represent the number of warnings that should occur on that line.
48
+	 *
49
+	 * @return array<int, int>
50
+	 */
51
+	public function getWarningList()
52
+	{
53
+		return [];
54
+
55
+	}//end getWarningList()
56 56
 
57 57
 
58 58
 }//end class
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -25,14 +25,14 @@  discard block
 block discarded – undo
25 25
      */
26 26
     public function getErrorList()
27 27
     {
28
-        $errors = [];
28
+        $errors = [ ];
29 29
 
30
-        if (PHP_VERSION_ID >= 70200) {
31
-            $errors[3] = 1;
30
+        if ( PHP_VERSION_ID >= 70200 ) {
31
+            $errors[ 3 ] = 1;
32 32
         }
33 33
 
34
-        if (PHP_VERSION_ID >= 70300) {
35
-            $errors[4] = 1;
34
+        if ( PHP_VERSION_ID >= 70300 ) {
35
+            $errors[ 4 ] = 1;
36 36
         }
37 37
 
38 38
         return $errors;
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
      */
51 51
     public function getWarningList()
52 52
     {
53
-        return [];
53
+        return [ ];
54 54
 
55 55
     }//end getWarningList()
56 56
 
Please login to merge, or discard this patch.
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -11,8 +11,7 @@  discard block
 block discarded – undo
11 11
 
12 12
 use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
13 13
 
14
-class DeprecatedFunctionsUnitTest extends AbstractSniffUnitTest
15
-{
14
+class DeprecatedFunctionsUnitTest extends AbstractSniffUnitTest {
16 15
 
17 16
 
18 17
     /**
@@ -23,8 +22,7 @@  discard block
 block discarded – undo
23 22
      *
24 23
      * @return array<int, int>
25 24
      */
26
-    public function getErrorList()
27
-    {
25
+    public function getErrorList() {
28 26
         $errors = [];
29 27
 
30 28
         if (PHP_VERSION_ID >= 70200) {
@@ -48,8 +46,7 @@  discard block
 block discarded – undo
48 46
      *
49 47
      * @return array<int, int>
50 48
      */
51
-    public function getWarningList()
52
-    {
49
+    public function getWarningList() {
53 50
         return [];
54 51
 
55 52
     }//end getWarningList()
Please login to merge, or discard this patch.
src/Standards/Generic/Tests/PHP/CharacterBeforePHPOpeningTagUnitTest.1.inc 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-Foo
1
+foo
2 2
 <?php
3 3
 // Some code
4 4
 ?>
Please login to merge, or discard this patch.
src/Standards/Generic/Tests/PHP/NoSilencedErrorsUnitTest.inc 3 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,6 +4,6 @@
 block discarded – undo
4 4
  */
5 5
 if (@in_array($array, $needle))
6 6
 {
7
-    echo '@';
7
+	echo '@';
8 8
 }
9 9
 ?>
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
2 2
 /**
3 3
  * @see something
4 4
  */
5
-if (@in_array($array, $needle))
5
+if ( @in_array( $array, $needle ) )
6 6
 {
7 7
     echo '@';
8 8
 }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,8 +2,7 @@
 block discarded – undo
2 2
 /**
3 3
  * @see something
4 4
  */
5
-if (@in_array($array, $needle))
6
-{
5
+if (@in_array($array, $needle)) {
7 6
     echo '@';
8 7
 }
9 8
 ?>
Please login to merge, or discard this patch.
src/Standards/Generic/Tests/PHP/ForbiddenFunctionsUnitTest.inc 2 patches
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -24,27 +24,27 @@
 block discarded – undo
24 24
 
25 25
 trait DelProvider {
26 26
   public function delete() {
27
-    //irrelevant
27
+	//irrelevant
28 28
   }
29 29
 }
30 30
 
31 31
 class LeftSideTest {
32
-    use DelProvider {
33
-        delete as protected unsetter;
34
-    }
32
+	use DelProvider {
33
+		delete as protected unsetter;
34
+	}
35 35
 }
36 36
 
37 37
 class RightSideTest {
38
-    use DelProvider {
39
-        delete as delete;
40
-    }
38
+	use DelProvider {
39
+		delete as delete;
40
+	}
41 41
 }
42 42
 
43 43
 class RightSideVisTest {
44
-    use DelProvider {
45
-        delete as protected delete;
46
-        DelProvider::delete insteadof delete;
47
-    }
44
+	use DelProvider {
45
+		delete as protected delete;
46
+		DelProvider::delete insteadof delete;
47
+	}
48 48
 }
49 49
 
50 50
 namespace Something\sizeof;
Please login to merge, or discard this patch.
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -1,21 +1,21 @@  discard block
 block discarded – undo
1 1
 <?php
2
-$size = sizeof($array);
3
-$size = count($array);
4
-delete($filepath);
5
-unset($filepath);
6
-$size = \sizeof($array);
7
-$size = \my\ns\sizeof('abc');($array);
2
+$size = sizeof( $array );
3
+$size = count( $array );
4
+delete( $filepath );
5
+unset( $filepath );
6
+$size = \sizeof( $array );
7
+$size = \my\ns\sizeof( 'abc' ); ( $array );
8 8
 
9 9
 // No errors thrown for class methods.
10
-$size = MyClass::sizeof($array);
11
-$size = MyClass::count($array);
12
-MyClass::delete($filepath);
13
-MyClass::unset($filepath);
10
+$size = MyClass::sizeof( $array );
11
+$size = MyClass::count( $array );
12
+MyClass::delete( $filepath );
13
+MyClass::unset( $filepath );
14 14
 
15
-$size = $class->sizeof($array);
16
-$size = $class->count($array);
17
-$class->delete($filepath);
18
-$class->unset($filepath);
15
+$size = $class->sizeof( $array );
16
+$size = $class->count( $array );
17
+$class->delete( $filepath );
18
+$class->unset( $filepath );
19 19
 
20 20
 function delete() {}
21 21
 function unset() {}
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
 $var = new Sizeof();
52 52
 class SizeOf implements Something {}
53 53
 
54
-function mymodule_form_callback(SizeOf $sizeof) {
54
+function mymodule_form_callback( SizeOf $sizeof ) {
55 55
 }
56 56
 
57 57
 ?>
Please login to merge, or discard this patch.