Completed
Branch BUG/required-message-fields (8f9492)
by
unknown
10:53 queued 20s
created
Standards/Generic/Tests/CodeAnalysis/UnconditionalIfStatementUnitTest.php 1 patch
Indentation   +32 added lines, -32 removed lines patch added patch discarded remove patch
@@ -15,38 +15,38 @@
 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
-            5 => 1,
46
-            7 => 1,
47
-        ];
48
-
49
-    }//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
+			5 => 1,
46
+			7 => 1,
47
+		];
48
+
49
+	}//end getWarningList()
50 50
 
51 51
 
52 52
 }//end class
Please login to merge, or discard this patch.
Generic/Tests/CodeAnalysis/ForLoopWithTestFunctionCallUnitTest.inc 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -2,14 +2,14 @@
 block discarded – undo
2 2
 
3 3
 $a = array(1, 2, 3, 4);
4 4
 for ($i = 0; $i < count($a); $i++) {
5
-    $a[$i] *= $i;
5
+	$a[$i] *= $i;
6 6
 }
7 7
 
8 8
 for ($i = 0, $c = sizeof($a); $i < $c; ++$i) {
9
-    $a[$i] *= $i;
9
+	$a[$i] *= $i;
10 10
 }
11 11
 
12 12
 $it = new ArrayIterator($a);
13 13
 for ($it->rewind(); $it->valid(); $it->next()) {
14
-    echo $it->current();
14
+	echo $it->current();
15 15
 }
16 16
\ No newline at end of file
Please login to merge, or discard this patch.
Standards/Generic/Tests/CodeAnalysis/UselessOverridingMethodUnitTest.inc 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -1,25 +1,25 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 class FooBar {
4
-    public function __construct($a, $b) {
5
-        parent::__construct($a, $b);
6
-    }
4
+	public function __construct($a, $b) {
5
+		parent::__construct($a, $b);
6
+	}
7 7
 }
8 8
 
9 9
 class BarFoo {
10
-    public function __construct($a, $b) {
11
-        parent::__construct($a, 'XML', $b);
12
-    }
10
+	public function __construct($a, $b) {
11
+		parent::__construct($a, 'XML', $b);
12
+	}
13 13
 }
14 14
 
15 15
 class Foo {
16
-    public function export($a, $b = null) {
17
-        return parent::export($a, $b);
18
-    }
16
+	public function export($a, $b = null) {
17
+		return parent::export($a, $b);
18
+	}
19 19
 }
20 20
 
21 21
 class Bar {
22
-    public function export($a, $b = null) {
23
-        return parent::export($a);
24
-    }
22
+	public function export($a, $b = null) {
23
+		return parent::export($a);
24
+	}
25 25
 }
26 26
\ No newline at end of file
Please login to merge, or discard this patch.
src/Standards/Generic/Tests/CodeAnalysis/EmptyStatementUnitTest.inc 3 patches
Switch Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -5,10 +5,10 @@
 block discarded – undo
5 5
 }
6 6
 
7 7
 switch ($foo) {
8
-    case 'bar':
9
-        break;
10
-    default:
11
-        break;
8
+    	case 'bar':
9
+        	break;
10
+    	default:
11
+        	break;
12 12
 }
13 13
 
14 14
 
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,13 +41,13 @@
 block discarded – undo
41 41
 do {
42 42
     // Just a comment
43 43
     // Just another comment
44
-} while ($foo);
44
+}while ($foo);
45 45
 
46 46
 do {
47 47
     while ($bar) {
48 48
         
49 49
     }
50
-} while (true);
50
+}while (true);
51 51
 
52 52
 while ($foo) { /* Comment in the same line */ }
53 53
 
Please login to merge, or discard this patch.
Indentation   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -1,72 +1,72 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 switch ($foo) {
4
-    // Empty switch statement body 
4
+	// Empty switch statement body 
5 5
 }
6 6
 
7 7
 switch ($foo) {
8
-    case 'bar':
9
-        break;
10
-    default:
11
-        break;
8
+	case 'bar':
9
+		break;
10
+	default:
11
+		break;
12 12
 }
13 13
 
14 14
 
15 15
 if ($foo) {
16
-    // Just a comment
16
+	// Just a comment
17 17
 } elseif ($bar) {
18
-    // Yet another comment 
18
+	// Yet another comment 
19 19
 } else {
20 20
     
21 21
 }
22 22
 
23 23
 if ($foo) {
24
-    $foo = 'bar';
24
+	$foo = 'bar';
25 25
 } else if ($bar) {
26
-    $bar = 'foo';
26
+	$bar = 'foo';
27 27
 }
28 28
 
29 29
 for ($i = 0; $i < 10; $i++) {
30
-    for ($j = 0; $j < 10; $j++) {
31
-        // Just a comment
32
-    }
30
+	for ($j = 0; $j < 10; $j++) {
31
+		// Just a comment
32
+	}
33 33
 }
34 34
 
35 35
 foreach ($foo as $bar) {}
36 36
 
37 37
 foreach ($foo as $bar) {
38
-    $bar *= 2;
38
+	$bar *= 2;
39 39
 }
40 40
 
41 41
 do {
42
-    // Just a comment
43
-    // Just another comment
42
+	// Just a comment
43
+	// Just another comment
44 44
 } while ($foo);
45 45
 
46 46
 do {
47
-    while ($bar) {
47
+	while ($bar) {
48 48
         
49
-    }
49
+	}
50 50
 } while (true);
51 51
 
52 52
 while ($foo) { /* Comment in the same line */ }
53 53
 
54 54
 while ($foo) {
55
-    try {
55
+	try {
56 56
         
57
-    } catch (Exception $e) {
58
-        echo $e->getTraceAsString();
59
-    }
57
+	} catch (Exception $e) {
58
+		echo $e->getTraceAsString();
59
+	}
60 60
 }
61 61
 
62 62
 try {
63
-    throw Exception('Error...');
63
+	throw Exception('Error...');
64 64
 } catch (Exception $e) {}
65 65
 
66 66
 try {
67
-    throw Exception('Error...');
67
+	throw Exception('Error...');
68 68
 } catch (Exception $e) {
69
-    // TODO: Handle this exception later :-)
69
+	// TODO: Handle this exception later :-)
70 70
 }
71 71
 
72 72
 if (true) {} elseif (false) {}
Please login to merge, or discard this patch.
src/Standards/Generic/Tests/PHP/CharacterBeforePHPOpeningTagUnitTest.php 3 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   +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='')
28
+    public function getErrorList($testFile = '')
29 29
     {
30 30
         switch ($testFile) {
31 31
         case 'CharacterBeforePHPOpeningTagUnitTest.1.inc':
Please login to merge, or discard this patch.
src/Standards/Generic/Tests/PHP/LowerCaseConstantUnitTest.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='LowerCaseConstantUnitTest.inc')
28
+    public function getErrorList($testFile = 'LowerCaseConstantUnitTest.inc')
29 29
     {
30 30
         switch ($testFile) {
31 31
         case 'LowerCaseConstantUnitTest.inc':
Please login to merge, or discard this patch.
Indentation   +67 added lines, -67 removed lines patch added patch discarded remove patch
@@ -15,77 +15,77 @@
 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
-                87  => 1,
48
-                89  => 1,
49
-                90  => 1,
50
-                92  => 2,
51
-                94  => 2,
52
-                95  => 1,
53
-                100 => 2,
54
-            ];
55
-        break;
56
-        case 'LowerCaseConstantUnitTest.js':
57
-            return [
58
-                2  => 1,
59
-                3  => 1,
60
-                4  => 1,
61
-                7  => 1,
62
-                8  => 1,
63
-                12 => 1,
64
-                13 => 1,
65
-                14 => 1,
66
-            ];
67
-            break;
68
-        default:
69
-            return [];
70
-            break;
71
-        }//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
+				87  => 1,
48
+				89  => 1,
49
+				90  => 1,
50
+				92  => 2,
51
+				94  => 2,
52
+				95  => 1,
53
+				100 => 2,
54
+			];
55
+		break;
56
+		case 'LowerCaseConstantUnitTest.js':
57
+			return [
58
+				2  => 1,
59
+				3  => 1,
60
+				4  => 1,
61
+				7  => 1,
62
+				8  => 1,
63
+				12 => 1,
64
+				13 => 1,
65
+				14 => 1,
66
+			];
67
+			break;
68
+		default:
69
+			return [];
70
+			break;
71
+		}//end switch
72 72
 
73
-    }//end getErrorList()
73
+	}//end getErrorList()
74 74
 
75 75
 
76
-    /**
77
-     * Returns the lines where warnings should occur.
78
-     *
79
-     * The key of the array should represent the line number and the value
80
-     * should represent the number of warnings that should occur on that line.
81
-     *
82
-     * @return array<int, int>
83
-     */
84
-    public function getWarningList()
85
-    {
86
-        return [];
76
+	/**
77
+	 * Returns the lines where warnings should occur.
78
+	 *
79
+	 * The key of the array should represent the line number and the value
80
+	 * should represent the number of warnings that should occur on that line.
81
+	 *
82
+	 * @return array<int, int>
83
+	 */
84
+	public function getWarningList()
85
+	{
86
+		return [];
87 87
 
88
-    }//end getWarningList()
88
+	}//end getWarningList()
89 89
 
90 90
 
91 91
 }//end class
Please login to merge, or discard this patch.
Switch Indentation   +40 added lines, -40 removed lines patch added patch discarded remove patch
@@ -28,46 +28,46 @@
 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
-                87  => 1,
48
-                89  => 1,
49
-                90  => 1,
50
-                92  => 2,
51
-                94  => 2,
52
-                95  => 1,
53
-                100 => 2,
54
-            ];
55
-        break;
56
-        case 'LowerCaseConstantUnitTest.js':
57
-            return [
58
-                2  => 1,
59
-                3  => 1,
60
-                4  => 1,
61
-                7  => 1,
62
-                8  => 1,
63
-                12 => 1,
64
-                13 => 1,
65
-                14 => 1,
66
-            ];
67
-            break;
68
-        default:
69
-            return [];
70
-            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
+                	87  => 1,
48
+                	89  => 1,
49
+                	90  => 1,
50
+                	92  => 2,
51
+                	94  => 2,
52
+                	95  => 1,
53
+                	100 => 2,
54
+            	];
55
+        	break;
56
+        	case 'LowerCaseConstantUnitTest.js':
57
+            	return [
58
+                	2  => 1,
59
+                	3  => 1,
60
+                	4  => 1,
61
+                	7  => 1,
62
+                	8  => 1,
63
+                	12 => 1,
64
+                	13 => 1,
65
+                	14 => 1,
66
+            	];
67
+            	break;
68
+        	default:
69
+            	return [];
70
+            	break;
71 71
         }//end switch
72 72
 
73 73
     }//end getErrorList()
Please login to merge, or discard this patch.
src/Standards/Generic/Tests/PHP/DisallowShortOpenTagUnitTest.php 3 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
      *
49 49
      * @return array<int, int>
50 50
      */
51
-    public function getErrorList($testFile='')
51
+    public function getErrorList($testFile = '')
52 52
     {
53 53
         switch ($testFile) {
54 54
         case 'DisallowShortOpenTagUnitTest.1.inc':
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
      *
90 90
      * @return array<int, int>
91 91
      */
92
-    public function getWarningList($testFile='')
92
+    public function getWarningList($testFile = '')
93 93
     {
94 94
         switch ($testFile) {
95 95
         case 'DisallowShortOpenTagUnitTest.1.inc':
Please login to merge, or discard this patch.
Indentation   +83 added lines, -83 removed lines patch added patch discarded remove patch
@@ -15,89 +15,89 @@
 block discarded – undo
15 15
 {
16 16
 
17 17
 
18
-    /**
19
-     * Get a list of all test files to check.
20
-     *
21
-     * @param string $testFileBase The base path that the unit tests files will have.
22
-     *
23
-     * @return string[]
24
-     */
25
-    protected function getTestFiles($testFileBase)
26
-    {
27
-        $testFiles = [$testFileBase.'1.inc'];
28
-
29
-        $option = (bool) ini_get('short_open_tag');
30
-        if ($option === true) {
31
-            $testFiles[] = $testFileBase.'2.inc';
32
-        } else {
33
-            $testFiles[] = $testFileBase.'3.inc';
34
-        }
35
-
36
-        return $testFiles;
37
-
38
-    }//end getTestFiles()
39
-
40
-
41
-    /**
42
-     * Returns the lines where errors should occur.
43
-     *
44
-     * The key of the array should represent the line number and the value
45
-     * should represent the number of errors that should occur on that line.
46
-     *
47
-     * @param string $testFile The name of the file being tested.
48
-     *
49
-     * @return array<int, int>
50
-     */
51
-    public function getErrorList($testFile='')
52
-    {
53
-        switch ($testFile) {
54
-        case 'DisallowShortOpenTagUnitTest.1.inc':
55
-            return [
56
-                5  => 1,
57
-                6  => 1,
58
-                7  => 1,
59
-                10 => 1,
60
-            ];
61
-        case 'DisallowShortOpenTagUnitTest.2.inc':
62
-            return [
63
-                2 => 1,
64
-                3 => 1,
65
-                4 => 1,
66
-                7 => 1,
67
-            ];
68
-        default:
69
-            return [];
70
-        }//end switch
71
-
72
-    }//end getErrorList()
73
-
74
-
75
-    /**
76
-     * Returns the lines where warnings should occur.
77
-     *
78
-     * The key of the array should represent the line number and the value
79
-     * should represent the number of warnings that should occur on that line.
80
-     *
81
-     * @param string $testFile The name of the file being tested.
82
-     *
83
-     * @return array<int, int>
84
-     */
85
-    public function getWarningList($testFile='')
86
-    {
87
-        switch ($testFile) {
88
-        case 'DisallowShortOpenTagUnitTest.1.inc':
89
-            return [];
90
-        case 'DisallowShortOpenTagUnitTest.3.inc':
91
-            return [
92
-                3  => 1,
93
-                6  => 1,
94
-                11 => 1,
95
-            ];
96
-        default:
97
-            return [];
98
-        }//end switch
99
-
100
-    }//end getWarningList()
18
+	/**
19
+	 * Get a list of all test files to check.
20
+	 *
21
+	 * @param string $testFileBase The base path that the unit tests files will have.
22
+	 *
23
+	 * @return string[]
24
+	 */
25
+	protected function getTestFiles($testFileBase)
26
+	{
27
+		$testFiles = [$testFileBase.'1.inc'];
28
+
29
+		$option = (bool) ini_get('short_open_tag');
30
+		if ($option === true) {
31
+			$testFiles[] = $testFileBase.'2.inc';
32
+		} else {
33
+			$testFiles[] = $testFileBase.'3.inc';
34
+		}
35
+
36
+		return $testFiles;
37
+
38
+	}//end getTestFiles()
39
+
40
+
41
+	/**
42
+	 * Returns the lines where errors should occur.
43
+	 *
44
+	 * The key of the array should represent the line number and the value
45
+	 * should represent the number of errors that should occur on that line.
46
+	 *
47
+	 * @param string $testFile The name of the file being tested.
48
+	 *
49
+	 * @return array<int, int>
50
+	 */
51
+	public function getErrorList($testFile='')
52
+	{
53
+		switch ($testFile) {
54
+		case 'DisallowShortOpenTagUnitTest.1.inc':
55
+			return [
56
+				5  => 1,
57
+				6  => 1,
58
+				7  => 1,
59
+				10 => 1,
60
+			];
61
+		case 'DisallowShortOpenTagUnitTest.2.inc':
62
+			return [
63
+				2 => 1,
64
+				3 => 1,
65
+				4 => 1,
66
+				7 => 1,
67
+			];
68
+		default:
69
+			return [];
70
+		}//end switch
71
+
72
+	}//end getErrorList()
73
+
74
+
75
+	/**
76
+	 * Returns the lines where warnings should occur.
77
+	 *
78
+	 * The key of the array should represent the line number and the value
79
+	 * should represent the number of warnings that should occur on that line.
80
+	 *
81
+	 * @param string $testFile The name of the file being tested.
82
+	 *
83
+	 * @return array<int, int>
84
+	 */
85
+	public function getWarningList($testFile='')
86
+	{
87
+		switch ($testFile) {
88
+		case 'DisallowShortOpenTagUnitTest.1.inc':
89
+			return [];
90
+		case 'DisallowShortOpenTagUnitTest.3.inc':
91
+			return [
92
+				3  => 1,
93
+				6  => 1,
94
+				11 => 1,
95
+			];
96
+		default:
97
+			return [];
98
+		}//end switch
99
+
100
+	}//end getWarningList()
101 101
 
102 102
 
103 103
 }//end class
Please login to merge, or discard this patch.
Switch Indentation   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -51,22 +51,22 @@  discard block
 block discarded – undo
51 51
     public function getErrorList($testFile='')
52 52
     {
53 53
         switch ($testFile) {
54
-        case 'DisallowShortOpenTagUnitTest.1.inc':
55
-            return [
56
-                5  => 1,
57
-                6  => 1,
58
-                7  => 1,
59
-                10 => 1,
60
-            ];
61
-        case 'DisallowShortOpenTagUnitTest.2.inc':
62
-            return [
63
-                2 => 1,
64
-                3 => 1,
65
-                4 => 1,
66
-                7 => 1,
67
-            ];
68
-        default:
69
-            return [];
54
+        	case 'DisallowShortOpenTagUnitTest.1.inc':
55
+            	return [
56
+                	5  => 1,
57
+                	6  => 1,
58
+                	7  => 1,
59
+                	10 => 1,
60
+            	];
61
+        	case 'DisallowShortOpenTagUnitTest.2.inc':
62
+            	return [
63
+                	2 => 1,
64
+                	3 => 1,
65
+                	4 => 1,
66
+                	7 => 1,
67
+            	];
68
+        	default:
69
+            	return [];
70 70
         }//end switch
71 71
 
72 72
     }//end getErrorList()
@@ -85,16 +85,16 @@  discard block
 block discarded – undo
85 85
     public function getWarningList($testFile='')
86 86
     {
87 87
         switch ($testFile) {
88
-        case 'DisallowShortOpenTagUnitTest.1.inc':
89
-            return [];
90
-        case 'DisallowShortOpenTagUnitTest.3.inc':
91
-            return [
92
-                3  => 1,
93
-                6  => 1,
94
-                11 => 1,
95
-            ];
96
-        default:
97
-            return [];
88
+        	case 'DisallowShortOpenTagUnitTest.1.inc':
89
+            	return [];
90
+        	case 'DisallowShortOpenTagUnitTest.3.inc':
91
+            	return [
92
+                	3  => 1,
93
+                	6  => 1,
94
+                	11 => 1,
95
+            	];
96
+        	default:
97
+            	return [];
98 98
         }//end switch
99 99
 
100 100
     }//end getWarningList()
Please login to merge, or discard this patch.
src/Standards/Generic/Tests/PHP/ForbiddenFunctionsUnitTest.inc 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
 delete($filepath);
5 5
 unset($filepath);
6 6
 $size = \sizeof($array);
7
-$size = \my\ns\sizeof('abc');($array);
7
+$size = \my\ns\sizeof('abc'); ($array);
8 8
 
9 9
 // No errors thrown for class methods.
10 10
 $size = MyClass::sizeof($array);
Please login to merge, or discard this patch.
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.
src/Standards/Generic/Tests/PHP/DisallowAlternativePHPTagsUnitTest.php 3 patches
Switch Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -67,22 +67,22 @@
 block discarded – undo
67 67
     public function getErrorList($testFile='')
68 68
     {
69 69
         switch ($testFile) {
70
-        case 'DisallowAlternativePHPTagsUnitTest.1.inc':
71
-            return [
72
-                4  => 1,
73
-                7  => 1,
74
-                8  => 1,
75
-                11 => 1,
76
-            ];
77
-        case 'DisallowAlternativePHPTagsUnitTest.2.inc':
78
-            return [
79
-                2 => 1,
80
-                3 => 1,
81
-                4 => 1,
82
-                5 => 1,
83
-            ];
84
-        default:
85
-            return [];
70
+        	case 'DisallowAlternativePHPTagsUnitTest.1.inc':
71
+            	return [
72
+                	4  => 1,
73
+                	7  => 1,
74
+                	8  => 1,
75
+                	11 => 1,
76
+            	];
77
+        	case 'DisallowAlternativePHPTagsUnitTest.2.inc':
78
+            	return [
79
+                	2 => 1,
80
+                	3 => 1,
81
+                	4 => 1,
82
+                	5 => 1,
83
+            	];
84
+        	default:
85
+            	return [];
86 86
         }//end switch
87 87
 
88 88
     }//end getErrorList()
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
      *
65 65
      * @return array<int, int>
66 66
      */
67
-    public function getErrorList($testFile='')
67
+    public function getErrorList($testFile = '')
68 68
     {
69 69
         switch ($testFile) {
70 70
         case 'DisallowAlternativePHPTagsUnitTest.1.inc':
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
      *
99 99
      * @return array<int, int>
100 100
      */
101
-    public function getWarningList($testFile='')
101
+    public function getWarningList($testFile = '')
102 102
     {
103 103
         if ($testFile === 'DisallowAlternativePHPTagsUnitTest.3.inc') {
104 104
             return [
Please login to merge, or discard this patch.
Indentation   +85 added lines, -85 removed lines patch added patch discarded remove patch
@@ -15,91 +15,91 @@
 block discarded – undo
15 15
 {
16 16
 
17 17
 
18
-    /**
19
-     * Get a list of all test files to check.
20
-     *
21
-     * @param string $testFileBase The base path that the unit tests files will have.
22
-     *
23
-     * @return string[]
24
-     */
25
-    protected function getTestFiles($testFileBase)
26
-    {
27
-        $testFiles = [$testFileBase.'1.inc'];
28
-
29
-        $aspTags = false;
30
-        if (PHP_VERSION_ID < 70000) {
31
-            $aspTags = (bool) ini_get('asp_tags');
32
-        }
33
-
34
-        if ($aspTags === true) {
35
-            $testFiles[] = $testFileBase.'2.inc';
36
-        } else {
37
-            $testFiles[] = $testFileBase.'3.inc';
38
-        }
39
-
40
-        return $testFiles;
41
-
42
-    }//end getTestFiles()
43
-
44
-
45
-    /**
46
-     * Returns the lines where errors should occur.
47
-     *
48
-     * The key of the array should represent the line number and the value
49
-     * should represent the number of errors that should occur on that line.
50
-     *
51
-     * @param string $testFile The name of the file being tested.
52
-     *
53
-     * @return array<int, int>
54
-     */
55
-    public function getErrorList($testFile='')
56
-    {
57
-        switch ($testFile) {
58
-        case 'DisallowAlternativePHPTagsUnitTest.1.inc':
59
-            return [
60
-                4  => 1,
61
-                7  => 1,
62
-                8  => 1,
63
-                11 => 1,
64
-            ];
65
-        case 'DisallowAlternativePHPTagsUnitTest.2.inc':
66
-            return [
67
-                2 => 1,
68
-                3 => 1,
69
-                4 => 1,
70
-                5 => 1,
71
-            ];
72
-        default:
73
-            return [];
74
-        }//end switch
75
-
76
-    }//end getErrorList()
77
-
78
-
79
-    /**
80
-     * Returns the lines where warnings should occur.
81
-     *
82
-     * The key of the array should represent the line number and the value
83
-     * should represent the number of warnings that should occur on that line.
84
-     *
85
-     * @param string $testFile The name of the file being tested.
86
-     *
87
-     * @return array<int, int>
88
-     */
89
-    public function getWarningList($testFile='')
90
-    {
91
-        if ($testFile === 'DisallowAlternativePHPTagsUnitTest.3.inc') {
92
-            return [
93
-                3 => 1,
94
-                4 => 1,
95
-                5 => 1,
96
-                6 => 1,
97
-            ];
98
-        }
99
-
100
-        return [];
101
-
102
-    }//end getWarningList()
18
+	/**
19
+	 * Get a list of all test files to check.
20
+	 *
21
+	 * @param string $testFileBase The base path that the unit tests files will have.
22
+	 *
23
+	 * @return string[]
24
+	 */
25
+	protected function getTestFiles($testFileBase)
26
+	{
27
+		$testFiles = [$testFileBase.'1.inc'];
28
+
29
+		$aspTags = false;
30
+		if (PHP_VERSION_ID < 70000) {
31
+			$aspTags = (bool) ini_get('asp_tags');
32
+		}
33
+
34
+		if ($aspTags === true) {
35
+			$testFiles[] = $testFileBase.'2.inc';
36
+		} else {
37
+			$testFiles[] = $testFileBase.'3.inc';
38
+		}
39
+
40
+		return $testFiles;
41
+
42
+	}//end getTestFiles()
43
+
44
+
45
+	/**
46
+	 * Returns the lines where errors should occur.
47
+	 *
48
+	 * The key of the array should represent the line number and the value
49
+	 * should represent the number of errors that should occur on that line.
50
+	 *
51
+	 * @param string $testFile The name of the file being tested.
52
+	 *
53
+	 * @return array<int, int>
54
+	 */
55
+	public function getErrorList($testFile='')
56
+	{
57
+		switch ($testFile) {
58
+		case 'DisallowAlternativePHPTagsUnitTest.1.inc':
59
+			return [
60
+				4  => 1,
61
+				7  => 1,
62
+				8  => 1,
63
+				11 => 1,
64
+			];
65
+		case 'DisallowAlternativePHPTagsUnitTest.2.inc':
66
+			return [
67
+				2 => 1,
68
+				3 => 1,
69
+				4 => 1,
70
+				5 => 1,
71
+			];
72
+		default:
73
+			return [];
74
+		}//end switch
75
+
76
+	}//end getErrorList()
77
+
78
+
79
+	/**
80
+	 * Returns the lines where warnings should occur.
81
+	 *
82
+	 * The key of the array should represent the line number and the value
83
+	 * should represent the number of warnings that should occur on that line.
84
+	 *
85
+	 * @param string $testFile The name of the file being tested.
86
+	 *
87
+	 * @return array<int, int>
88
+	 */
89
+	public function getWarningList($testFile='')
90
+	{
91
+		if ($testFile === 'DisallowAlternativePHPTagsUnitTest.3.inc') {
92
+			return [
93
+				3 => 1,
94
+				4 => 1,
95
+				5 => 1,
96
+				6 => 1,
97
+			];
98
+		}
99
+
100
+		return [];
101
+
102
+	}//end getWarningList()
103 103
 
104 104
 
105 105
 }//end class
Please login to merge, or discard this patch.