Completed
Branch BUG/required-message-fields (8f9492)
by
unknown
13:20 queued 02:19
created
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
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.
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
-                54 => 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
+				54 => 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
-                54 => 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
+                	54 => 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.
src/Standards/Squiz/Tests/PHP/DisallowSizeFunctionsInLoopsUnitTest.inc 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,8 +50,8 @@
 block discarded – undo
50 50
 }
51 51
 
52 52
 do {
53
-    echo $a->count;
54
-    $a->count--;
53
+	echo $a->count;
54
+	$a->count--;
55 55
 } while($a->count);
56 56
 
57 57
 for ($i = 0; $i < $a->count; $i++) {}
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
 }
9 9
 
10 10
 do {
11
-} while ($i < count($array));
11
+}while ($i < count($array));
12 12
 
13 13
 for ($i = 0; $i < count($this->children); $i++) {
14 14
 }
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
 }
25 25
 
26 26
 do {
27
-} while ($i < sizeof($array));
27
+}while ($i < sizeof($array));
28 28
 
29 29
 for ($i = 0; $i < sizeof($this->children); $i++) {
30 30
 }
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 }
42 42
 
43 43
 do {
44
-} while ($i < strlen($string));
44
+}while ($i < strlen($string));
45 45
 
46 46
 for ($i = 0; $i < strlen($this->string); $i++) {
47 47
 }
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
 do {
53 53
     echo $a->count;
54 54
     $a->count--;
55
-} while($a->count);
55
+}while ($a->count);
56 56
 
57 57
 for ($i = 0; $i < $a->count; $i++) {}
58 58
 for ($i = 0; $i < $a?->count; $i++) {}
Please login to merge, or discard this patch.
php_codesniffer/src/Standards/Squiz/Tests/PHP/GlobalKeywordUnitTest.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
-            8 => 1,
30
-            9 => 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
+			8 => 1,
30
+			9 => 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.
php_codesniffer/src/Standards/Squiz/Tests/PHP/EmbeddedPhpUnitTest.php 1 patch
Indentation   +54 added lines, -54 removed lines patch added patch discarded remove patch
@@ -15,64 +15,64 @@
 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
-            7   => 1,
30
-            12  => 1,
31
-            18  => 1,
32
-            19  => 2,
33
-            20  => 1,
34
-            21  => 1,
35
-            22  => 3,
36
-            24  => 1,
37
-            26  => 1,
38
-            29  => 1,
39
-            30  => 1,
40
-            31  => 1,
41
-            34  => 1,
42
-            36  => 1,
43
-            40  => 1,
44
-            41  => 1,
45
-            44  => 1,
46
-            45  => 1,
47
-            49  => 1,
48
-            59  => 1,
49
-            63  => 1,
50
-            93  => 1,
51
-            94  => 2,
52
-            100 => 1,
53
-            102 => 1,
54
-            112 => 1,
55
-            113 => 1,
56
-            116 => 1,
57
-            117 => 1,
58
-        ];
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
+			7   => 1,
30
+			12  => 1,
31
+			18  => 1,
32
+			19  => 2,
33
+			20  => 1,
34
+			21  => 1,
35
+			22  => 3,
36
+			24  => 1,
37
+			26  => 1,
38
+			29  => 1,
39
+			30  => 1,
40
+			31  => 1,
41
+			34  => 1,
42
+			36  => 1,
43
+			40  => 1,
44
+			41  => 1,
45
+			44  => 1,
46
+			45  => 1,
47
+			49  => 1,
48
+			59  => 1,
49
+			63  => 1,
50
+			93  => 1,
51
+			94  => 2,
52
+			100 => 1,
53
+			102 => 1,
54
+			112 => 1,
55
+			113 => 1,
56
+			116 => 1,
57
+			117 => 1,
58
+		];
59 59
 
60
-    }//end getErrorList()
60
+	}//end getErrorList()
61 61
 
62 62
 
63
-    /**
64
-     * Returns the lines where warnings should occur.
65
-     *
66
-     * The key of the array should represent the line number and the value
67
-     * should represent the number of warnings that should occur on that line.
68
-     *
69
-     * @return array<int, int>
70
-     */
71
-    public function getWarningList()
72
-    {
73
-        return [];
63
+	/**
64
+	 * Returns the lines where warnings should occur.
65
+	 *
66
+	 * The key of the array should represent the line number and the value
67
+	 * should represent the number of warnings that should occur on that line.
68
+	 *
69
+	 * @return array<int, int>
70
+	 */
71
+	public function getWarningList()
72
+	{
73
+		return [];
74 74
 
75
-    }//end getWarningList()
75
+	}//end getWarningList()
76 76
 
77 77
 
78 78
 }//end class
Please login to merge, or discard this patch.
src/Standards/Squiz/Tests/WhiteSpace/FunctionOpeningBraceSpaceUnitTest.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='FunctionOpeningBraceSpaceUnitTest.inc')
28
+    public function getErrorList($testFile = 'FunctionOpeningBraceSpaceUnitTest.inc')
29 29
     {
30 30
         switch ($testFile) {
31 31
         case 'FunctionOpeningBraceSpaceUnitTest.inc':
Please login to merge, or discard this patch.
Indentation   +42 added lines, -42 removed lines patch added patch discarded remove patch
@@ -15,54 +15,54 @@
 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='FunctionOpeningBraceSpaceUnitTest.inc')
29
-    {
30
-        switch ($testFile) {
31
-        case 'FunctionOpeningBraceSpaceUnitTest.inc':
32
-            return [
33
-                10 => 1,
34
-                25 => 1,
35
-                49 => 1,
36
-            ];
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='FunctionOpeningBraceSpaceUnitTest.inc')
29
+	{
30
+		switch ($testFile) {
31
+		case 'FunctionOpeningBraceSpaceUnitTest.inc':
32
+			return [
33
+				10 => 1,
34
+				25 => 1,
35
+				49 => 1,
36
+			];
37 37
 
38
-        case 'FunctionOpeningBraceSpaceUnitTest.js':
39
-            return [
40
-                11 => 1,
41
-                31 => 1,
42
-                38 => 1,
43
-                88 => 1,
44
-            ];
38
+		case 'FunctionOpeningBraceSpaceUnitTest.js':
39
+			return [
40
+				11 => 1,
41
+				31 => 1,
42
+				38 => 1,
43
+				88 => 1,
44
+			];
45 45
 
46
-        default:
47
-            return [];
48
-        }//end switch
46
+		default:
47
+			return [];
48
+		}//end switch
49 49
 
50
-    }//end getErrorList()
50
+	}//end getErrorList()
51 51
 
52 52
 
53
-    /**
54
-     * Returns the lines where warnings should occur.
55
-     *
56
-     * The key of the array should represent the line number and the value
57
-     * should represent the number of warnings that should occur on that line.
58
-     *
59
-     * @return array<int, int>
60
-     */
61
-    public function getWarningList()
62
-    {
63
-        return [];
53
+	/**
54
+	 * Returns the lines where warnings should occur.
55
+	 *
56
+	 * The key of the array should represent the line number and the value
57
+	 * should represent the number of warnings that should occur on that line.
58
+	 *
59
+	 * @return array<int, int>
60
+	 */
61
+	public function getWarningList()
62
+	{
63
+		return [];
64 64
 
65
-    }//end getWarningList()
65
+	}//end getWarningList()
66 66
 
67 67
 
68 68
 }//end class
Please login to merge, or discard this patch.
Switch Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -28,23 +28,23 @@
 block discarded – undo
28 28
     public function getErrorList($testFile='FunctionOpeningBraceSpaceUnitTest.inc')
29 29
     {
30 30
         switch ($testFile) {
31
-        case 'FunctionOpeningBraceSpaceUnitTest.inc':
32
-            return [
33
-                10 => 1,
34
-                25 => 1,
35
-                49 => 1,
36
-            ];
31
+        	case 'FunctionOpeningBraceSpaceUnitTest.inc':
32
+            	return [
33
+                	10 => 1,
34
+                	25 => 1,
35
+                	49 => 1,
36
+            	];
37 37
 
38
-        case 'FunctionOpeningBraceSpaceUnitTest.js':
39
-            return [
40
-                11 => 1,
41
-                31 => 1,
42
-                38 => 1,
43
-                88 => 1,
44
-            ];
38
+        	case 'FunctionOpeningBraceSpaceUnitTest.js':
39
+            	return [
40
+                	11 => 1,
41
+                	31 => 1,
42
+                	38 => 1,
43
+                	88 => 1,
44
+            	];
45 45
 
46
-        default:
47
-            return [];
46
+        	default:
47
+            	return [];
48 48
         }//end switch
49 49
 
50 50
     }//end getErrorList()
Please login to merge, or discard this patch.
src/Standards/Squiz/Tests/WhiteSpace/LogicalOperatorSpacingUnitTest.php 2 patches
Indentation   +36 added lines, -36 removed lines patch added patch discarded remove patch
@@ -15,42 +15,42 @@
 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='LogicalOperatorSpacingUnitTest.inc')
29
-    {
30
-        return [
31
-            4  => 2,
32
-            5  => 3,
33
-            6  => 3,
34
-            15 => 1,
35
-            17 => 1,
36
-        ];
37
-
38
-    }//end getErrorList()
39
-
40
-
41
-    /**
42
-     * Returns the lines where warnings should occur.
43
-     *
44
-     * The key of the array should represent the line number and the value
45
-     * should represent the number of warnings that should occur on that line.
46
-     *
47
-     * @return array<int, int>
48
-     */
49
-    public function getWarningList()
50
-    {
51
-        return [];
52
-
53
-    }//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='LogicalOperatorSpacingUnitTest.inc')
29
+	{
30
+		return [
31
+			4  => 2,
32
+			5  => 3,
33
+			6  => 3,
34
+			15 => 1,
35
+			17 => 1,
36
+		];
37
+
38
+	}//end getErrorList()
39
+
40
+
41
+	/**
42
+	 * Returns the lines where warnings should occur.
43
+	 *
44
+	 * The key of the array should represent the line number and the value
45
+	 * should represent the number of warnings that should occur on that line.
46
+	 *
47
+	 * @return array<int, int>
48
+	 */
49
+	public function getWarningList()
50
+	{
51
+		return [];
52
+
53
+	}//end getWarningList()
54 54
 
55 55
 
56 56
 }//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
      * @return array<int, int>
27 27
      */
28
-    public function getErrorList($testFile='LogicalOperatorSpacingUnitTest.inc')
28
+    public function getErrorList($testFile = 'LogicalOperatorSpacingUnitTest.inc')
29 29
     {
30 30
         return [
31 31
             4  => 2,
Please login to merge, or discard this patch.
src/Standards/Squiz/Tests/WhiteSpace/LanguageConstructSpacingUnitTest.php 1 patch
Indentation   +40 added lines, -40 removed lines patch added patch discarded remove patch
@@ -15,46 +15,46 @@
 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
-            3  => 1,
30
-            7  => 1,
31
-            11 => 1,
32
-            15 => 1,
33
-            19 => 1,
34
-            23 => 1,
35
-            27 => 1,
36
-            31 => 1,
37
-            34 => 1,
38
-            35 => 1,
39
-            39 => 1,
40
-        ];
41
-
42
-    }//end getErrorList()
43
-
44
-
45
-    /**
46
-     * Returns the lines where warnings should occur.
47
-     *
48
-     * The key of the array should represent the line number and the value
49
-     * should represent the number of warnings that should occur on that line.
50
-     *
51
-     * @return array<int, int>
52
-     */
53
-    public function getWarningList()
54
-    {
55
-        return [];
56
-
57
-    }//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
+			3  => 1,
30
+			7  => 1,
31
+			11 => 1,
32
+			15 => 1,
33
+			19 => 1,
34
+			23 => 1,
35
+			27 => 1,
36
+			31 => 1,
37
+			34 => 1,
38
+			35 => 1,
39
+			39 => 1,
40
+		];
41
+
42
+	}//end getErrorList()
43
+
44
+
45
+	/**
46
+	 * Returns the lines where warnings should occur.
47
+	 *
48
+	 * The key of the array should represent the line number and the value
49
+	 * should represent the number of warnings that should occur on that line.
50
+	 *
51
+	 * @return array<int, int>
52
+	 */
53
+	public function getWarningList()
54
+	{
55
+		return [];
56
+
57
+	}//end getWarningList()
58 58
 
59 59
 
60 60
 }//end class
Please login to merge, or discard this patch.