Completed
Branch dev (97838e)
by
unknown
18:15 queued 10:24
created
php_codesniffer/src/Standards/Squiz/Tests/PHP/GlobalKeywordUnitTest.inc 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -5,9 +5,9 @@
 block discarded – undo
5 5
 
6 6
 function func1()
7 7
 {
8
-    global $var;
9
-    global $var, $var2;
10
-    echo $var;
11
-    echo $GLOBALS['var'];
8
+	global $var;
9
+	global $var, $var2;
10
+	echo $var;
11
+	echo $GLOBALS['var'];
12 12
 }
13 13
 ?>
Please login to merge, or discard this patch.
src/Standards/Squiz/Tests/PHP/LowercasePHPFunctionsUnitTest.inc 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 if (Function_Exists('myFunction') === TRUE) {
3
-    $retval = MyFunction(true);
4
-    $keys = Array_Keys($array);
3
+	$retval = MyFunction(true);
4
+	$keys = Array_Keys($array);
5 5
 }
6 6
 
7 7
 function getType() {}
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
 $count = $object->count();
14 14
 $count = $object::count();
15 15
 class MyClass {
16
-    public function Count() {}
16
+	public function Count() {}
17 17
 }
18 18
 
19 19
 function &Sort() {
Please login to merge, or discard this patch.
src/Standards/Squiz/Tests/PHP/DisallowBooleanStatementUnitTest.inc 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -2,12 +2,12 @@  discard block
 block discarded – undo
2 2
 
3 3
 trySomething() || trySomethingElse();
4 4
 if (trySomething() === FALSE) {
5
-    trySomethingElse();
5
+	trySomethingElse();
6 6
 }
7 7
 
8 8
 $success || fail();
9 9
 if ($success === FALSE) {
10
-    fail();
10
+	fail();
11 11
 }
12 12
 
13 13
 $foo = ($bar || $foo);
@@ -15,13 +15,13 @@  discard block
 block discarded – undo
15 15
 doSomething() || die();
16 16
 
17 17
 if ($something || somethingElse()) {
18
-    while ($foo && $bar) {
19
-    }
18
+	while ($foo && $bar) {
19
+	}
20 20
 
21
-    do {
22
-        // Code here.
23
-    }
24
-    while ($foo && $bar);
21
+	do {
22
+		// Code here.
23
+	}
24
+	while ($foo && $bar);
25 25
 }
26 26
 
27 27
 ?>
28 28
\ No newline at end of file
Please login to merge, or discard this patch.
php_codesniffer/src/Standards/Squiz/Tests/PHP/EmbeddedPhpUnitTest.inc 2 patches
Indentation   +36 added lines, -36 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2
-    // Not embedded. Do not check here.
3
-    echo 'hello';
2
+	// Not embedded. Do not check here.
3
+	echo 'hello';
4 4
 ?>
5 5
 <html>
6 6
 <head>
@@ -9,12 +9,12 @@  discard block
 block discarded – undo
9 9
 </head>
10 10
 <body>
11 11
     <?php
12
-        echo $body;
13
-    ?>
12
+		echo $body;
13
+	?>
14 14
     hello
15 15
     <?php
16
-    echo $moreBody;
17
-    ?>
16
+	echo $moreBody;
17
+	?>
18 18
     <?php  echo 'hi'; ?>
19 19
     <?php  echo 'hi';   ?>
20 20
     <?php echo 'hi;' ?>
@@ -22,68 +22,68 @@  discard block
 block discarded – undo
22 22
     <?php  echo 'hi'; echo 'hi;';   ?>
23 23
 
24 24
     <?php
25
-    ?>
25
+	?>
26 26
     <?php ?>
27 27
 
28 28
     <?php
29 29
 
30
-        echo $moreBody;
30
+		echo $moreBody;
31 31
 
32
-    ?>
32
+	?>
33 33
     <?php
34 34
 
35
-    echo $moreBody;
35
+	echo $moreBody;
36 36
 
37
-        ?>
37
+		?>
38 38
 
39 39
     <?php
40
-    echo $moreBody; ?>
40
+	echo $moreBody; ?>
41 41
     <?php echo $moreBody;
42
-    ?>
42
+	?>
43 43
 
44 44
             <?php
45
-        echo 'hi';
46
-            ?>
45
+		echo 'hi';
46
+			?>
47 47
 
48 48
     <?php
49 49
 echo 'hi';
50
-    ?>
50
+	?>
51 51
 </body>
52 52
 </html>
53 53
 <?php
54 54
 function test()
55 55
 {
56
-    foreach ($root->section as $section) {
57
-        ?>
56
+	foreach ($root->section as $section) {
57
+		?>
58 58
         <table>
59 59
             <?php if ($foo) {
60
-            ?>
60
+			?>
61 61
             <tr>
62 62
             </tr>
63 63
             <?php }
64
-            ?>
64
+			?>
65 65
         <?php
66
-        foreach ($bar as $bar) {
67
-            echo $bar;
68
-        }
69
-    }
66
+		foreach ($bar as $bar) {
67
+			echo $bar;
68
+		}
69
+	}
70 70
 
71
-    foreach ($root->section as $section) {
72
-        ?>
71
+	foreach ($root->section as $section) {
72
+		?>
73 73
         <table>
74 74
             <?php
75
-            if ($foo) {
76
-            ?>
75
+			if ($foo) {
76
+			?>
77 77
             <tr>
78 78
             </tr>
79 79
             <?php
80 80
 }
81
-            ?>
81
+			?>
82 82
         <?php
83
-        foreach ($bar as $bar) {
84
-            echo $bar;
85
-        }
86
-    }
83
+		foreach ($bar as $bar) {
84
+			echo $bar;
85
+		}
86
+	}
87 87
 }
88 88
 
89 89
 echo 'goodbye';
@@ -91,15 +91,15 @@  discard block
 block discarded – undo
91 91
 function foo()
92 92
 {
93 93
 
94
-    ?><a onClick="Javascript: set_hidden_field('<?php echo $link_offset - $num_per_page; ?>'); set_hidden_field('process_form', '0'); submit_form(); return false;"><?php
94
+	?><a onClick="Javascript: set_hidden_field('<?php echo $link_offset - $num_per_page; ?>'); set_hidden_field('process_form', '0'); submit_form(); return false;"><?php
95 95
 
96 96
 }
97 97
 
98 98
 ?>
99 99
 
100 100
             <strong><?php
101
-            echo 'foo';
102
-            ?></strong>
101
+			echo 'foo';
102
+			?></strong>
103 103
 
104 104
 ?>
105 105
 
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,10 +16,10 @@
 block discarded – undo
16 16
     echo $moreBody;
17 17
     ?>
18 18
     <?php  echo 'hi'; ?>
19
-    <?php  echo 'hi';   ?>
19
+    <?php  echo 'hi'; ?>
20 20
     <?php echo 'hi;' ?>
21 21
     <?php echo 'hi'; echo 'hi;'; ?>
22
-    <?php  echo 'hi'; echo 'hi;';   ?>
22
+    <?php  echo 'hi'; echo 'hi;'; ?>
23 23
 
24 24
     <?php
25 25
     ?>
Please login to merge, or discard this patch.
squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/HeredocUnitTest.php 1 patch
Indentation   +31 added lines, -31 removed lines patch added patch discarded remove patch
@@ -15,37 +15,37 @@
 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
-            2 => 1,
30
-            8 => 1,
31
-        ];
32
-
33
-    }//end getErrorList()
34
-
35
-
36
-    /**
37
-     * Returns the lines where warnings should occur.
38
-     *
39
-     * The key of the array should represent the line number and the value
40
-     * should represent the number of warnings that should occur on that line.
41
-     *
42
-     * @return array<int, int>
43
-     */
44
-    public function getWarningList()
45
-    {
46
-        return [];
47
-
48
-    }//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
+			2 => 1,
30
+			8 => 1,
31
+		];
32
+
33
+	}//end getErrorList()
34
+
35
+
36
+	/**
37
+	 * Returns the lines where warnings should occur.
38
+	 *
39
+	 * The key of the array should represent the line number and the value
40
+	 * should represent the number of warnings that should occur on that line.
41
+	 *
42
+	 * @return array<int, int>
43
+	 */
44
+	public function getWarningList()
45
+	{
46
+		return [];
47
+
48
+	}//end getWarningList()
49 49
 
50 50
 
51 51
 }//end class
Please login to merge, or discard this patch.
src/Standards/Squiz/Tests/PHP/DisallowSizeFunctionsInLoopsUnitTest.php 3 patches
Indentation   +49 added lines, -49 removed lines patch added patch discarded remove patch
@@ -15,59 +15,59 @@
 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='DisallowSizeFunctionsInLoopsUnitTest.inc')
29
-    {
30
-        switch ($testFile) {
31
-        case 'DisallowSizeFunctionsInLoopsUnitTest.inc':
32
-            return [
33
-                2  => 1,
34
-                7  => 1,
35
-                11 => 1,
36
-                13 => 1,
37
-                18 => 1,
38
-                23 => 1,
39
-                27 => 1,
40
-                29 => 1,
41
-                35 => 1,
42
-                40 => 1,
43
-                44 => 1,
44
-                46 => 1,
45
-            ];
46
-            break;
47
-        case 'DisallowSizeFunctionsInLoopsUnitTest.js':
48
-            return [1 => 1];
49
-            break;
50
-        default:
51
-            return [];
52
-            break;
53
-        }//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='DisallowSizeFunctionsInLoopsUnitTest.inc')
29
+	{
30
+		switch ($testFile) {
31
+		case 'DisallowSizeFunctionsInLoopsUnitTest.inc':
32
+			return [
33
+				2  => 1,
34
+				7  => 1,
35
+				11 => 1,
36
+				13 => 1,
37
+				18 => 1,
38
+				23 => 1,
39
+				27 => 1,
40
+				29 => 1,
41
+				35 => 1,
42
+				40 => 1,
43
+				44 => 1,
44
+				46 => 1,
45
+			];
46
+			break;
47
+		case 'DisallowSizeFunctionsInLoopsUnitTest.js':
48
+			return [1 => 1];
49
+			break;
50
+		default:
51
+			return [];
52
+			break;
53
+		}//end switch
54 54
 
55
-    }//end getErrorList()
55
+	}//end getErrorList()
56 56
 
57 57
 
58
-    /**
59
-     * Returns the lines where warnings should occur.
60
-     *
61
-     * The key of the array should represent the line number and the value
62
-     * should represent the number of warnings that should occur on that line.
63
-     *
64
-     * @return array<int, int>
65
-     */
66
-    public function getWarningList()
67
-    {
68
-        return [];
58
+	/**
59
+	 * Returns the lines where warnings should occur.
60
+	 *
61
+	 * The key of the array should represent the line number and the value
62
+	 * should represent the number of warnings that should occur on that line.
63
+	 *
64
+	 * @return array<int, int>
65
+	 */
66
+	public function getWarningList()
67
+	{
68
+		return [];
69 69
 
70
-    }//end getWarningList()
70
+	}//end getWarningList()
71 71
 
72 72
 
73 73
 }//end class
Please login to merge, or discard this patch.
Switch Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -28,28 +28,28 @@
 block discarded – undo
28 28
     public function getErrorList($testFile='DisallowSizeFunctionsInLoopsUnitTest.inc')
29 29
     {
30 30
         switch ($testFile) {
31
-        case 'DisallowSizeFunctionsInLoopsUnitTest.inc':
32
-            return [
33
-                2  => 1,
34
-                7  => 1,
35
-                11 => 1,
36
-                13 => 1,
37
-                18 => 1,
38
-                23 => 1,
39
-                27 => 1,
40
-                29 => 1,
41
-                35 => 1,
42
-                40 => 1,
43
-                44 => 1,
44
-                46 => 1,
45
-            ];
46
-            break;
47
-        case 'DisallowSizeFunctionsInLoopsUnitTest.js':
48
-            return [1 => 1];
49
-            break;
50
-        default:
51
-            return [];
52
-            break;
31
+        	case 'DisallowSizeFunctionsInLoopsUnitTest.inc':
32
+            	return [
33
+                	2  => 1,
34
+                	7  => 1,
35
+                	11 => 1,
36
+                	13 => 1,
37
+                	18 => 1,
38
+                	23 => 1,
39
+                	27 => 1,
40
+                	29 => 1,
41
+                	35 => 1,
42
+                	40 => 1,
43
+                	44 => 1,
44
+                	46 => 1,
45
+            	];
46
+            	break;
47
+        	case 'DisallowSizeFunctionsInLoopsUnitTest.js':
48
+            	return [1 => 1];
49
+            	break;
50
+        	default:
51
+            	return [];
52
+            	break;
53 53
         }//end switch
54 54
 
55 55
     }//end getErrorList()
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
      * @return array<int, int>
27 27
      */
28
-    public function getErrorList($testFile='DisallowSizeFunctionsInLoopsUnitTest.inc')
28
+    public function getErrorList($testFile = 'DisallowSizeFunctionsInLoopsUnitTest.inc')
29 29
     {
30 30
         switch ($testFile) {
31 31
         case 'DisallowSizeFunctionsInLoopsUnitTest.inc':
Please login to merge, or discard this patch.
php_codesniffer/src/Standards/Squiz/Tests/PHP/CommentedOutCodeUnitTest.php 3 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
      *
41 41
      * @return array<int, int>
42 42
      */
43
-    public function getWarningList($testFile='CommentedOutCodeUnitTest.inc')
43
+    public function getWarningList($testFile = 'CommentedOutCodeUnitTest.inc')
44 44
     {
45 45
         switch ($testFile) {
46 46
         case 'CommentedOutCodeUnitTest.inc':
Please login to merge, or discard this patch.
Indentation   +52 added lines, -52 removed lines patch added patch discarded remove patch
@@ -15,62 +15,62 @@
 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 [];
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 29
 
30
-    }//end getErrorList()
30
+	}//end getErrorList()
31 31
 
32 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
-     * @param string $testFile The name of the file being tested.
40
-     *
41
-     * @return array<int, int>
42
-     */
43
-    public function getWarningList($testFile='CommentedOutCodeUnitTest.inc')
44
-    {
45
-        switch ($testFile) {
46
-        case 'CommentedOutCodeUnitTest.inc':
47
-            return [
48
-                6   => 1,
49
-                8   => 1,
50
-                15  => 1,
51
-                19  => 1,
52
-                87  => 1,
53
-                91  => 1,
54
-                97  => 1,
55
-                109 => 1,
56
-                116 => 1,
57
-                128 => 1,
58
-                147 => 1,
59
-                158 => 1,
60
-            ];
61
-            break;
62
-        case 'CommentedOutCodeUnitTest.css':
63
-            return [
64
-                7  => 1,
65
-                16 => 1,
66
-            ];
67
-            break;
68
-        default:
69
-            return [];
70
-            break;
71
-        }//end switch
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
+	 * @param string $testFile The name of the file being tested.
40
+	 *
41
+	 * @return array<int, int>
42
+	 */
43
+	public function getWarningList($testFile='CommentedOutCodeUnitTest.inc')
44
+	{
45
+		switch ($testFile) {
46
+		case 'CommentedOutCodeUnitTest.inc':
47
+			return [
48
+				6   => 1,
49
+				8   => 1,
50
+				15  => 1,
51
+				19  => 1,
52
+				87  => 1,
53
+				91  => 1,
54
+				97  => 1,
55
+				109 => 1,
56
+				116 => 1,
57
+				128 => 1,
58
+				147 => 1,
59
+				158 => 1,
60
+			];
61
+			break;
62
+		case 'CommentedOutCodeUnitTest.css':
63
+			return [
64
+				7  => 1,
65
+				16 => 1,
66
+			];
67
+			break;
68
+		default:
69
+			return [];
70
+			break;
71
+		}//end switch
72 72
 
73
-    }//end getWarningList()
73
+	}//end getWarningList()
74 74
 
75 75
 
76 76
 }//end class
Please login to merge, or discard this patch.
Switch Indentation   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -43,31 +43,31 @@
 block discarded – undo
43 43
     public function getWarningList($testFile='CommentedOutCodeUnitTest.inc')
44 44
     {
45 45
         switch ($testFile) {
46
-        case 'CommentedOutCodeUnitTest.inc':
47
-            return [
48
-                6   => 1,
49
-                8   => 1,
50
-                15  => 1,
51
-                19  => 1,
52
-                87  => 1,
53
-                91  => 1,
54
-                97  => 1,
55
-                109 => 1,
56
-                116 => 1,
57
-                128 => 1,
58
-                147 => 1,
59
-                158 => 1,
60
-            ];
61
-            break;
62
-        case 'CommentedOutCodeUnitTest.css':
63
-            return [
64
-                7  => 1,
65
-                16 => 1,
66
-            ];
67
-            break;
68
-        default:
69
-            return [];
70
-            break;
46
+        	case 'CommentedOutCodeUnitTest.inc':
47
+            	return [
48
+                	6   => 1,
49
+                	8   => 1,
50
+                	15  => 1,
51
+                	19  => 1,
52
+                	87  => 1,
53
+                	91  => 1,
54
+                	97  => 1,
55
+                	109 => 1,
56
+                	116 => 1,
57
+                	128 => 1,
58
+                	147 => 1,
59
+                	158 => 1,
60
+            	];
61
+            	break;
62
+        	case 'CommentedOutCodeUnitTest.css':
63
+            	return [
64
+                	7  => 1,
65
+                	16 => 1,
66
+            	];
67
+            	break;
68
+        	default:
69
+            	return [];
70
+            	break;
71 71
         }//end switch
72 72
 
73 73
     }//end getWarningList()
Please login to merge, or discard this patch.
php_codesniffer/src/Standards/Squiz/Tests/PHP/DisallowInlineIfUnitTest.php 3 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
      *
26 26
      * @return array<int, int>
27 27
      */
28
-    public function getErrorList($testFile='DisallowInlineIfUnitTest.inc')
28
+    public function getErrorList($testFile = 'DisallowInlineIfUnitTest.inc')
29 29
     {
30 30
         switch ($testFile) {
31 31
         case 'DisallowInlineIfUnitTest.inc':
Please login to merge, or discard this patch.
Indentation   +43 added lines, -43 removed lines patch added patch discarded remove patch
@@ -15,49 +15,49 @@
 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='DisallowInlineIfUnitTest.inc')
29
-    {
30
-        switch ($testFile) {
31
-        case 'DisallowInlineIfUnitTest.inc':
32
-            return [
33
-                8  => 1,
34
-                18 => 1,
35
-            ];
36
-            break;
37
-        case 'DisallowInlineIfUnitTest.js':
38
-            return [1 => 1];
39
-            break;
40
-        default:
41
-            return [];
42
-            break;
43
-        }//end switch
44
-
45
-    }//end getErrorList()
46
-
47
-
48
-    /**
49
-     * Returns the lines where warnings should occur.
50
-     *
51
-     * The key of the array should represent the line number and the value
52
-     * should represent the number of warnings that should occur on that line.
53
-     *
54
-     * @return array<int, int>
55
-     */
56
-    public function getWarningList()
57
-    {
58
-        return [];
59
-
60
-    }//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='DisallowInlineIfUnitTest.inc')
29
+	{
30
+		switch ($testFile) {
31
+		case 'DisallowInlineIfUnitTest.inc':
32
+			return [
33
+				8  => 1,
34
+				18 => 1,
35
+			];
36
+			break;
37
+		case 'DisallowInlineIfUnitTest.js':
38
+			return [1 => 1];
39
+			break;
40
+		default:
41
+			return [];
42
+			break;
43
+		}//end switch
44
+
45
+	}//end getErrorList()
46
+
47
+
48
+	/**
49
+	 * Returns the lines where warnings should occur.
50
+	 *
51
+	 * The key of the array should represent the line number and the value
52
+	 * should represent the number of warnings that should occur on that line.
53
+	 *
54
+	 * @return array<int, int>
55
+	 */
56
+	public function getWarningList()
57
+	{
58
+		return [];
59
+
60
+	}//end getWarningList()
61 61
 
62 62
 
63 63
 }//end class
Please login to merge, or discard this patch.
Switch Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -28,18 +28,18 @@
 block discarded – undo
28 28
     public function getErrorList($testFile='DisallowInlineIfUnitTest.inc')
29 29
     {
30 30
         switch ($testFile) {
31
-        case 'DisallowInlineIfUnitTest.inc':
32
-            return [
33
-                8  => 1,
34
-                18 => 1,
35
-            ];
36
-            break;
37
-        case 'DisallowInlineIfUnitTest.js':
38
-            return [1 => 1];
39
-            break;
40
-        default:
41
-            return [];
42
-            break;
31
+        	case 'DisallowInlineIfUnitTest.inc':
32
+            	return [
33
+                	8  => 1,
34
+                	18 => 1,
35
+            	];
36
+            	break;
37
+        	case 'DisallowInlineIfUnitTest.js':
38
+            	return [1 => 1];
39
+            	break;
40
+        	default:
41
+            	return [];
42
+            	break;
43 43
         }//end switch
44 44
 
45 45
     }//end getErrorList()
Please login to merge, or discard this patch.
php_codesniffer/src/Standards/Squiz/Tests/PHP/NonExecutableCodeUnitTest.php 3 patches
Indentation   +73 added lines, -73 removed lines patch added patch discarded remove patch
@@ -15,83 +15,83 @@
 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 [];
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 29
 
30
-    }//end getErrorList()
30
+	}//end getErrorList()
31 31
 
32 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
-     * @param string $testFile The name of the file being tested.
40
-     *
41
-     * @return array<int, int>
42
-     */
43
-    public function getWarningList($testFile='')
44
-    {
45
-        switch ($testFile) {
46
-        case 'NonExecutableCodeUnitTest.1.inc':
47
-            return [
48
-                5   => 1,
49
-                11  => 1,
50
-                17  => 1,
51
-                18  => 1,
52
-                19  => 2,
53
-                28  => 1,
54
-                32  => 1,
55
-                33  => 2,
56
-                34  => 2,
57
-                42  => 1,
58
-                45  => 1,
59
-                54  => 1,
60
-                58  => 1,
61
-                73  => 1,
62
-                83  => 1,
63
-                95  => 1,
64
-                105 => 1,
65
-                123 => 1,
66
-                147 => 1,
67
-                150 => 1,
68
-                153 => 1,
69
-                166 => 1,
70
-                180 => 1,
71
-                232 => 1,
72
-                240 => 1,
73
-                246 => 1,
74
-                252 => 1,
75
-                253 => 1,
76
-                254 => 2,
77
-            ];
78
-            break;
79
-        case 'NonExecutableCodeUnitTest.2.inc':
80
-            return [
81
-                7  => 1,
82
-                8  => 1,
83
-                9  => 1,
84
-                10 => 2,
85
-                14 => 1,
86
-                48 => 2,
87
-            ];
88
-            break;
89
-        default:
90
-            return [];
91
-            break;
92
-        }//end switch
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
+	 * @param string $testFile The name of the file being tested.
40
+	 *
41
+	 * @return array<int, int>
42
+	 */
43
+	public function getWarningList($testFile='')
44
+	{
45
+		switch ($testFile) {
46
+		case 'NonExecutableCodeUnitTest.1.inc':
47
+			return [
48
+				5   => 1,
49
+				11  => 1,
50
+				17  => 1,
51
+				18  => 1,
52
+				19  => 2,
53
+				28  => 1,
54
+				32  => 1,
55
+				33  => 2,
56
+				34  => 2,
57
+				42  => 1,
58
+				45  => 1,
59
+				54  => 1,
60
+				58  => 1,
61
+				73  => 1,
62
+				83  => 1,
63
+				95  => 1,
64
+				105 => 1,
65
+				123 => 1,
66
+				147 => 1,
67
+				150 => 1,
68
+				153 => 1,
69
+				166 => 1,
70
+				180 => 1,
71
+				232 => 1,
72
+				240 => 1,
73
+				246 => 1,
74
+				252 => 1,
75
+				253 => 1,
76
+				254 => 2,
77
+			];
78
+			break;
79
+		case 'NonExecutableCodeUnitTest.2.inc':
80
+			return [
81
+				7  => 1,
82
+				8  => 1,
83
+				9  => 1,
84
+				10 => 2,
85
+				14 => 1,
86
+				48 => 2,
87
+			];
88
+			break;
89
+		default:
90
+			return [];
91
+			break;
92
+		}//end switch
93 93
 
94
-    }//end getWarningList()
94
+	}//end getWarningList()
95 95
 
96 96
 
97 97
 }//end class
Please login to merge, or discard this patch.
Switch Indentation   +46 added lines, -46 removed lines patch added patch discarded remove patch
@@ -43,52 +43,52 @@
 block discarded – undo
43 43
     public function getWarningList($testFile='')
44 44
     {
45 45
         switch ($testFile) {
46
-        case 'NonExecutableCodeUnitTest.1.inc':
47
-            return [
48
-                5   => 1,
49
-                11  => 1,
50
-                17  => 1,
51
-                18  => 1,
52
-                19  => 2,
53
-                28  => 1,
54
-                32  => 1,
55
-                33  => 2,
56
-                34  => 2,
57
-                42  => 1,
58
-                45  => 1,
59
-                54  => 1,
60
-                58  => 1,
61
-                73  => 1,
62
-                83  => 1,
63
-                95  => 1,
64
-                105 => 1,
65
-                123 => 1,
66
-                147 => 1,
67
-                150 => 1,
68
-                153 => 1,
69
-                166 => 1,
70
-                180 => 1,
71
-                232 => 1,
72
-                240 => 1,
73
-                246 => 1,
74
-                252 => 1,
75
-                253 => 1,
76
-                254 => 2,
77
-            ];
78
-            break;
79
-        case 'NonExecutableCodeUnitTest.2.inc':
80
-            return [
81
-                7  => 1,
82
-                8  => 1,
83
-                9  => 1,
84
-                10 => 2,
85
-                14 => 1,
86
-                48 => 2,
87
-            ];
88
-            break;
89
-        default:
90
-            return [];
91
-            break;
46
+        	case 'NonExecutableCodeUnitTest.1.inc':
47
+            	return [
48
+                	5   => 1,
49
+                	11  => 1,
50
+                	17  => 1,
51
+                	18  => 1,
52
+                	19  => 2,
53
+                	28  => 1,
54
+                	32  => 1,
55
+                	33  => 2,
56
+                	34  => 2,
57
+                	42  => 1,
58
+                	45  => 1,
59
+                	54  => 1,
60
+                	58  => 1,
61
+                	73  => 1,
62
+                	83  => 1,
63
+                	95  => 1,
64
+                	105 => 1,
65
+                	123 => 1,
66
+                	147 => 1,
67
+                	150 => 1,
68
+                	153 => 1,
69
+                	166 => 1,
70
+                	180 => 1,
71
+                	232 => 1,
72
+                	240 => 1,
73
+                	246 => 1,
74
+                	252 => 1,
75
+                	253 => 1,
76
+                	254 => 2,
77
+            	];
78
+            	break;
79
+        	case 'NonExecutableCodeUnitTest.2.inc':
80
+            	return [
81
+                	7  => 1,
82
+                	8  => 1,
83
+                	9  => 1,
84
+                	10 => 2,
85
+                	14 => 1,
86
+                	48 => 2,
87
+            	];
88
+            	break;
89
+        	default:
90
+            	return [];
91
+            	break;
92 92
         }//end switch
93 93
 
94 94
     }//end getWarningList()
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
      *
41 41
      * @return array<int, int>
42 42
      */
43
-    public function getWarningList($testFile='')
43
+    public function getWarningList($testFile = '')
44 44
     {
45 45
         switch ($testFile) {
46 46
         case 'NonExecutableCodeUnitTest.1.inc':
Please login to merge, or discard this patch.