Completed
Branch RELEASE (416965)
by
unknown
20:13 queued 10:38
created
src/Standards/Squiz/Tests/CSS/EmptyClassDefinitionUnitTest.php 1 patch
Indentation   +34 added lines, -34 removed lines patch added patch discarded remove patch
@@ -15,40 +15,40 @@
 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
-            1  => 1,
30
-            2  => 1,
31
-            4  => 1,
32
-            7  => 1,
33
-            10 => 1,
34
-        ];
35
-
36
-    }//end getErrorList()
37
-
38
-
39
-    /**
40
-     * Returns the lines where warnings should occur.
41
-     *
42
-     * The key of the array should represent the line number and the value
43
-     * should represent the number of warnings that should occur on that line.
44
-     *
45
-     * @return array<int, int>
46
-     */
47
-    public function getWarningList()
48
-    {
49
-        return [];
50
-
51
-    }//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
+			1  => 1,
30
+			2  => 1,
31
+			4  => 1,
32
+			7  => 1,
33
+			10 => 1,
34
+		];
35
+
36
+	}//end getErrorList()
37
+
38
+
39
+	/**
40
+	 * Returns the lines where warnings should occur.
41
+	 *
42
+	 * The key of the array should represent the line number and the value
43
+	 * should represent the number of warnings that should occur on that line.
44
+	 *
45
+	 * @return array<int, int>
46
+	 */
47
+	public function getWarningList()
48
+	{
49
+		return [];
50
+
51
+	}//end getWarningList()
52 52
 
53 53
 
54 54
 }//end class
Please login to merge, or discard this patch.
src/Standards/Squiz/Tests/CSS/ClassDefinitionNameSpacingUnitTest.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
-            7  => 1,
30
-            19 => 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
+			7  => 1,
30
+			19 => 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/Commenting/ClassCommentUnitTest.php 1 patch
Indentation   +39 added lines, -39 removed lines patch added patch discarded remove patch
@@ -15,45 +15,45 @@
 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
-            15 => 1,
31
-            31 => 1,
32
-            54 => 1,
33
-        ];
34
-
35
-    }//end getErrorList()
36
-
37
-
38
-    /**
39
-     * Returns the lines where warnings should occur.
40
-     *
41
-     * The key of the array should represent the line number and the value
42
-     * should represent the number of warnings that should occur on that line.
43
-     *
44
-     * @return array<int, int>
45
-     */
46
-    public function getWarningList()
47
-    {
48
-        return [
49
-            29 => 1,
50
-            30 => 1,
51
-            50 => 1,
52
-            66 => 1,
53
-            67 => 1,
54
-        ];
55
-
56
-    }//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
+			15 => 1,
31
+			31 => 1,
32
+			54 => 1,
33
+		];
34
+
35
+	}//end getErrorList()
36
+
37
+
38
+	/**
39
+	 * Returns the lines where warnings should occur.
40
+	 *
41
+	 * The key of the array should represent the line number and the value
42
+	 * should represent the number of warnings that should occur on that line.
43
+	 *
44
+	 * @return array<int, int>
45
+	 */
46
+	public function getWarningList()
47
+	{
48
+		return [
49
+			29 => 1,
50
+			30 => 1,
51
+			50 => 1,
52
+			66 => 1,
53
+			67 => 1,
54
+		];
55
+
56
+	}//end getWarningList()
57 57
 
58 58
 
59 59
 }//end class
Please login to merge, or discard this patch.
src/Standards/Squiz/Tests/Commenting/ClassCommentUnitTest.inc 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,9 +51,9 @@
 block discarded – undo
51 51
  */
52 52
 class Checking_Tags
53 53
 {
54
-    class Sub_Class {
54
+	class Sub_Class {
55 55
 
56
-    }//end class
56
+	}//end class
57 57
 
58 58
 
59 59
 }//end class
Please login to merge, or discard this patch.
src/Standards/Squiz/Tests/Commenting/EmptyCatchCommentUnitTest.inc 1 patch
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -1,51 +1,51 @@
 block discarded – undo
1 1
 <?php
2 2
 try {
3
-    // Try something.
4
-    $variable = 'string';
3
+	// Try something.
4
+	$variable = 'string';
5 5
 } catch (Exception $e) {
6
-    // Comment.
7
-    echo 'something broke';
6
+	// Comment.
7
+	echo 'something broke';
8 8
 }
9 9
 
10 10
 try {
11
-    // Try something.
12
-    $variable = 'string';
11
+	// Try something.
12
+	$variable = 'string';
13 13
 } catch (Exception $e) {
14 14
 }
15 15
 
16 16
 try {
17
-    // Try something.
18
-    $variable = 'string';
17
+	// Try something.
18
+	$variable = 'string';
19 19
 } catch (Exception $e) {
20
-    // Dont want to do anything.
20
+	// Dont want to do anything.
21 21
 }
22 22
 
23 23
 try {
24
-    $variable = 'string';
24
+	$variable = 'string';
25 25
 } catch (MyException $e) {
26
-    echo 'something broke';
26
+	echo 'something broke';
27 27
 } catch (Exception $e) {
28
-    echo 'something broke';
28
+	echo 'something broke';
29 29
 }
30 30
 
31 31
 try {
32
-    $variable = 'string';
32
+	$variable = 'string';
33 33
 } catch (MyException $e) {
34 34
 
35 35
 } catch (Exception $e) {
36
-    echo 'something broke';
36
+	echo 'something broke';
37 37
 }
38 38
 
39 39
 try {
40
-    $variable = 'string';
40
+	$variable = 'string';
41 41
 } catch (MyException $e) {
42
-    // Dont do anything.
42
+	// Dont do anything.
43 43
 } catch (Exception $e) {
44
-    // Do nothing.
44
+	// Do nothing.
45 45
 }
46 46
 
47 47
 try {
48
-    $variable = 'string';
48
+	$variable = 'string';
49 49
 } catch (MyException $e) {
50 50
 } catch (YourException $e) {
51 51
 } catch (OurException $e) {
Please login to merge, or discard this patch.
Standards/Squiz/Tests/Commenting/LongConditionClosingCommentUnitTest.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='LongConditionClosingCommentUnitTest.inc')
28
+    public function getErrorList($testFile = 'LongConditionClosingCommentUnitTest.inc')
29 29
     {
30 30
         switch ($testFile) {
31 31
         case 'LongConditionClosingCommentUnitTest.inc':
Please login to merge, or discard this patch.
Indentation   +79 added lines, -79 removed lines patch added patch discarded remove patch
@@ -15,89 +15,89 @@
 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='LongConditionClosingCommentUnitTest.inc')
29
-    {
30
-        switch ($testFile) {
31
-        case 'LongConditionClosingCommentUnitTest.inc':
32
-            return [
33
-                49   => 1,
34
-                99   => 1,
35
-                146  => 1,
36
-                192  => 1,
37
-                215  => 1,
38
-                238  => 1,
39
-                261  => 1,
40
-                286  => 1,
41
-                309  => 1,
42
-                332  => 1,
43
-                355  => 1,
44
-                378  => 1,
45
-                493  => 1,
46
-                531  => 1,
47
-                536  => 1,
48
-                540  => 1,
49
-                562  => 1,
50
-                601  => 1,
51
-                629  => 1,
52
-                663  => 1,
53
-                765  => 1,
54
-                798  => 1,
55
-                811  => 1,
56
-                897  => 1,
57
-                931  => 1,
58
-                962  => 1,
59
-                985  => 2,
60
-                1008 => 1,
61
-                1032 => 1,
62
-            ];
63
-            break;
64
-        case 'LongConditionClosingCommentUnitTest.js':
65
-            return [
66
-                47  => 1,
67
-                97  => 1,
68
-                144 => 1,
69
-                190 => 1,
70
-                213 => 1,
71
-                238 => 1,
72
-                261 => 1,
73
-                284 => 1,
74
-                307 => 1,
75
-                401 => 1,
76
-                439 => 1,
77
-                444 => 1,
78
-            ];
79
-            break;
80
-        default:
81
-            return [];
82
-            break;
83
-        }//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='LongConditionClosingCommentUnitTest.inc')
29
+	{
30
+		switch ($testFile) {
31
+		case 'LongConditionClosingCommentUnitTest.inc':
32
+			return [
33
+				49   => 1,
34
+				99   => 1,
35
+				146  => 1,
36
+				192  => 1,
37
+				215  => 1,
38
+				238  => 1,
39
+				261  => 1,
40
+				286  => 1,
41
+				309  => 1,
42
+				332  => 1,
43
+				355  => 1,
44
+				378  => 1,
45
+				493  => 1,
46
+				531  => 1,
47
+				536  => 1,
48
+				540  => 1,
49
+				562  => 1,
50
+				601  => 1,
51
+				629  => 1,
52
+				663  => 1,
53
+				765  => 1,
54
+				798  => 1,
55
+				811  => 1,
56
+				897  => 1,
57
+				931  => 1,
58
+				962  => 1,
59
+				985  => 2,
60
+				1008 => 1,
61
+				1032 => 1,
62
+			];
63
+			break;
64
+		case 'LongConditionClosingCommentUnitTest.js':
65
+			return [
66
+				47  => 1,
67
+				97  => 1,
68
+				144 => 1,
69
+				190 => 1,
70
+				213 => 1,
71
+				238 => 1,
72
+				261 => 1,
73
+				284 => 1,
74
+				307 => 1,
75
+				401 => 1,
76
+				439 => 1,
77
+				444 => 1,
78
+			];
79
+			break;
80
+		default:
81
+			return [];
82
+			break;
83
+		}//end switch
84 84
 
85
-    }//end getErrorList()
85
+	}//end getErrorList()
86 86
 
87 87
 
88
-    /**
89
-     * Returns the lines where warnings should occur.
90
-     *
91
-     * The key of the array should represent the line number and the value
92
-     * should represent the number of warnings that should occur on that line.
93
-     *
94
-     * @return array<int, int>
95
-     */
96
-    public function getWarningList()
97
-    {
98
-        return [];
88
+	/**
89
+	 * Returns the lines where warnings should occur.
90
+	 *
91
+	 * The key of the array should represent the line number and the value
92
+	 * should represent the number of warnings that should occur on that line.
93
+	 *
94
+	 * @return array<int, int>
95
+	 */
96
+	public function getWarningList()
97
+	{
98
+		return [];
99 99
 
100
-    }//end getWarningList()
100
+	}//end getWarningList()
101 101
 
102 102
 
103 103
 }//end class
Please login to merge, or discard this patch.
Switch Indentation   +52 added lines, -52 removed lines patch added patch discarded remove patch
@@ -28,58 +28,58 @@
 block discarded – undo
28 28
     public function getErrorList($testFile='LongConditionClosingCommentUnitTest.inc')
29 29
     {
30 30
         switch ($testFile) {
31
-        case 'LongConditionClosingCommentUnitTest.inc':
32
-            return [
33
-                49   => 1,
34
-                99   => 1,
35
-                146  => 1,
36
-                192  => 1,
37
-                215  => 1,
38
-                238  => 1,
39
-                261  => 1,
40
-                286  => 1,
41
-                309  => 1,
42
-                332  => 1,
43
-                355  => 1,
44
-                378  => 1,
45
-                493  => 1,
46
-                531  => 1,
47
-                536  => 1,
48
-                540  => 1,
49
-                562  => 1,
50
-                601  => 1,
51
-                629  => 1,
52
-                663  => 1,
53
-                765  => 1,
54
-                798  => 1,
55
-                811  => 1,
56
-                897  => 1,
57
-                931  => 1,
58
-                962  => 1,
59
-                985  => 2,
60
-                1008 => 1,
61
-                1032 => 1,
62
-            ];
63
-            break;
64
-        case 'LongConditionClosingCommentUnitTest.js':
65
-            return [
66
-                47  => 1,
67
-                97  => 1,
68
-                144 => 1,
69
-                190 => 1,
70
-                213 => 1,
71
-                238 => 1,
72
-                261 => 1,
73
-                284 => 1,
74
-                307 => 1,
75
-                401 => 1,
76
-                439 => 1,
77
-                444 => 1,
78
-            ];
79
-            break;
80
-        default:
81
-            return [];
82
-            break;
31
+        	case 'LongConditionClosingCommentUnitTest.inc':
32
+            	return [
33
+                	49   => 1,
34
+                	99   => 1,
35
+                	146  => 1,
36
+                	192  => 1,
37
+                	215  => 1,
38
+                	238  => 1,
39
+                	261  => 1,
40
+                	286  => 1,
41
+                	309  => 1,
42
+                	332  => 1,
43
+                	355  => 1,
44
+                	378  => 1,
45
+                	493  => 1,
46
+                	531  => 1,
47
+                	536  => 1,
48
+                	540  => 1,
49
+                	562  => 1,
50
+                	601  => 1,
51
+                	629  => 1,
52
+                	663  => 1,
53
+                	765  => 1,
54
+                	798  => 1,
55
+                	811  => 1,
56
+                	897  => 1,
57
+                	931  => 1,
58
+                	962  => 1,
59
+                	985  => 2,
60
+                	1008 => 1,
61
+                	1032 => 1,
62
+            	];
63
+            	break;
64
+        	case 'LongConditionClosingCommentUnitTest.js':
65
+            	return [
66
+                	47  => 1,
67
+                	97  => 1,
68
+                	144 => 1,
69
+                	190 => 1,
70
+                	213 => 1,
71
+                	238 => 1,
72
+                	261 => 1,
73
+                	284 => 1,
74
+                	307 => 1,
75
+                	401 => 1,
76
+                	439 => 1,
77
+                	444 => 1,
78
+            	];
79
+            	break;
80
+        	default:
81
+            	return [];
82
+            	break;
83 83
         }//end switch
84 84
 
85 85
     }//end getErrorList()
Please login to merge, or discard this patch.
src/Standards/Squiz/Tests/Commenting/ClosingDeclarationCommentUnitTest.inc 2 patches
Indentation   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -18,39 +18,39 @@  discard block
 block discarded – undo
18 18
 
19 19
 class TestClass
20 20
 {
21
-    function __construct()
22
-    {
23
-    }//end __construct()
21
+	function __construct()
22
+	{
23
+	}//end __construct()
24 24
 
25
-    function myFunction()
26
-    {
27
-    }//end myFunction()
25
+	function myFunction()
26
+	{
27
+	}//end myFunction()
28 28
 
29
-    function yourFunction()
30
-    {
31
-    }//end myFunction()
29
+	function yourFunction()
30
+	{
31
+	}//end myFunction()
32 32
 
33 33
 }//end class
34 34
 
35 35
 abstract class TestClass
36 36
 {
37
-    abstract function myFunction();
37
+	abstract function myFunction();
38 38
 
39
-    function ourFunction()
40
-    {
41
-    }//end myFunction()
39
+	function ourFunction()
40
+	{
41
+	}//end myFunction()
42 42
 
43
-    function yourFunction()
44
-    {
45
-    }//end yourFunction()
43
+	function yourFunction()
44
+	{
45
+	}//end yourFunction()
46 46
 
47 47
 }//end class
48 48
 
49 49
 interface TestClass
50 50
 {
51
-    function myFunction();
52
-    function ourFunction();
53
-    function yourFunction();
51
+	function myFunction();
52
+	function ourFunction();
53
+	function yourFunction();
54 54
 
55 55
 }//end interface
56 56
 
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
 
69 69
 class MyClass
70 70
 {
71
-    public function myFunction();
71
+	public function myFunction();
72 72
 }//end class
73 73
 
74 74
 // Closures don't need end comments.
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
 }//end class
73 73
 
74 74
 // Closures don't need end comments.
75
-echo preg_replace_callback('~-([a-z])~', function ($match) { return strtoupper($match[1]); }, 'hello-world');
75
+echo preg_replace_callback('~-([a-z])~', function($match) { return strtoupper($match[1]); }, 'hello-world');
76 76
 
77 77
 class TestClass
78 78
 {
Please login to merge, or discard this patch.
src/Standards/Squiz/Tests/Commenting/DocCommentAlignmentUnitTest.php 2 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='DocCommentAlignmentUnitTest.inc')
28
+    public function getErrorList($testFile = 'DocCommentAlignmentUnitTest.inc')
29 29
     {
30 30
         $errors = [
31 31
             3  => 1,
Please login to merge, or discard this patch.
Indentation   +50 added lines, -50 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
-     * @param string $testFile The name of the file being tested.
25
-     *
26
-     * @return array<int, int>
27
-     */
28
-    public function getErrorList($testFile='DocCommentAlignmentUnitTest.inc')
29
-    {
30
-        $errors = [
31
-            3  => 1,
32
-            11 => 1,
33
-            17 => 1,
34
-            18 => 1,
35
-            19 => 1,
36
-            23 => 2,
37
-            24 => 1,
38
-            25 => 2,
39
-            26 => 1,
40
-            32 => 1,
41
-            33 => 1,
42
-            38 => 1,
43
-            39 => 1,
44
-        ];
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='DocCommentAlignmentUnitTest.inc')
29
+	{
30
+		$errors = [
31
+			3  => 1,
32
+			11 => 1,
33
+			17 => 1,
34
+			18 => 1,
35
+			19 => 1,
36
+			23 => 2,
37
+			24 => 1,
38
+			25 => 2,
39
+			26 => 1,
40
+			32 => 1,
41
+			33 => 1,
42
+			38 => 1,
43
+			39 => 1,
44
+		];
45 45
 
46
-        if ($testFile === 'DocCommentAlignmentUnitTest.inc') {
47
-            $errors[75] = 1;
48
-            $errors[83] = 1;
49
-            $errors[84] = 1;
50
-            $errors[90] = 1;
51
-            $errors[91] = 1;
52
-            $errors[95] = 1;
53
-            $errors[96] = 1;
54
-        }
46
+		if ($testFile === 'DocCommentAlignmentUnitTest.inc') {
47
+			$errors[75] = 1;
48
+			$errors[83] = 1;
49
+			$errors[84] = 1;
50
+			$errors[90] = 1;
51
+			$errors[91] = 1;
52
+			$errors[95] = 1;
53
+			$errors[96] = 1;
54
+		}
55 55
 
56
-        return $errors;
56
+		return $errors;
57 57
 
58
-    }//end getErrorList()
58
+	}//end getErrorList()
59 59
 
60 60
 
61
-    /**
62
-     * Returns the lines where warnings should occur.
63
-     *
64
-     * The key of the array should represent the line number and the value
65
-     * should represent the number of warnings that should occur on that line.
66
-     *
67
-     * @return array<int, int>
68
-     */
69
-    public function getWarningList()
70
-    {
71
-        return [];
61
+	/**
62
+	 * Returns the lines where warnings should occur.
63
+	 *
64
+	 * The key of the array should represent the line number and the value
65
+	 * should represent the number of warnings that should occur on that line.
66
+	 *
67
+	 * @return array<int, int>
68
+	 */
69
+	public function getWarningList()
70
+	{
71
+		return [];
72 72
 
73
-    }//end getWarningList()
73
+	}//end getWarningList()
74 74
 
75 75
 
76 76
 }//end class
Please login to merge, or discard this patch.
src/Standards/Squiz/Tests/Commenting/InlineCommentUnitTest.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='InlineCommentUnitTest.inc')
28
+    public function getErrorList($testFile = 'InlineCommentUnitTest.inc')
29 29
     {
30 30
         switch ($testFile) {
31 31
         case 'InlineCommentUnitTest.inc':
Please login to merge, or discard this patch.
Indentation   +66 added lines, -66 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='InlineCommentUnitTest.inc')
29
-    {
30
-        switch ($testFile) {
31
-        case 'InlineCommentUnitTest.inc':
32
-            $errors = [
33
-                17  => 1,
34
-                27  => 1,
35
-                28  => 1,
36
-                32  => 2,
37
-                36  => 1,
38
-                44  => 2,
39
-                58  => 1,
40
-                61  => 1,
41
-                64  => 1,
42
-                67  => 1,
43
-                95  => 1,
44
-                96  => 1,
45
-                97  => 3,
46
-                118 => 1,
47
-                126 => 2,
48
-                130 => 2,
49
-                149 => 1,
50
-            ];
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='InlineCommentUnitTest.inc')
29
+	{
30
+		switch ($testFile) {
31
+		case 'InlineCommentUnitTest.inc':
32
+			$errors = [
33
+				17  => 1,
34
+				27  => 1,
35
+				28  => 1,
36
+				32  => 2,
37
+				36  => 1,
38
+				44  => 2,
39
+				58  => 1,
40
+				61  => 1,
41
+				64  => 1,
42
+				67  => 1,
43
+				95  => 1,
44
+				96  => 1,
45
+				97  => 3,
46
+				118 => 1,
47
+				126 => 2,
48
+				130 => 2,
49
+				149 => 1,
50
+			];
51 51
 
52
-            return $errors;
53
-        case 'InlineCommentUnitTest.js':
54
-            return [
55
-                31  => 1,
56
-                36  => 2,
57
-                48  => 1,
58
-                51  => 1,
59
-                54  => 1,
60
-                57  => 1,
61
-                102 => 1,
62
-                103 => 1,
63
-                104 => 3,
64
-                118 => 1,
65
-                121 => 1,
66
-                125 => 2,
67
-                129 => 2,
68
-            ];
69
-        default:
70
-            return [];
71
-        }//end switch
52
+			return $errors;
53
+		case 'InlineCommentUnitTest.js':
54
+			return [
55
+				31  => 1,
56
+				36  => 2,
57
+				48  => 1,
58
+				51  => 1,
59
+				54  => 1,
60
+				57  => 1,
61
+				102 => 1,
62
+				103 => 1,
63
+				104 => 3,
64
+				118 => 1,
65
+				121 => 1,
66
+				125 => 2,
67
+				129 => 2,
68
+			];
69
+		default:
70
+			return [];
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   +39 added lines, -39 removed lines patch added patch discarded remove patch
@@ -28,46 +28,46 @@
 block discarded – undo
28 28
     public function getErrorList($testFile='InlineCommentUnitTest.inc')
29 29
     {
30 30
         switch ($testFile) {
31
-        case 'InlineCommentUnitTest.inc':
32
-            $errors = [
33
-                17  => 1,
34
-                27  => 1,
35
-                28  => 1,
36
-                32  => 2,
37
-                36  => 1,
38
-                44  => 2,
39
-                58  => 1,
40
-                61  => 1,
41
-                64  => 1,
42
-                67  => 1,
43
-                95  => 1,
44
-                96  => 1,
45
-                97  => 3,
46
-                118 => 1,
47
-                126 => 2,
48
-                130 => 2,
49
-                149 => 1,
50
-            ];
31
+        	case 'InlineCommentUnitTest.inc':
32
+            	$errors = [
33
+                	17  => 1,
34
+                	27  => 1,
35
+                	28  => 1,
36
+                	32  => 2,
37
+                	36  => 1,
38
+                	44  => 2,
39
+                	58  => 1,
40
+                	61  => 1,
41
+                	64  => 1,
42
+                	67  => 1,
43
+                	95  => 1,
44
+                	96  => 1,
45
+                	97  => 3,
46
+                	118 => 1,
47
+                	126 => 2,
48
+                	130 => 2,
49
+                	149 => 1,
50
+            	];
51 51
 
52
-            return $errors;
53
-        case 'InlineCommentUnitTest.js':
54
-            return [
55
-                31  => 1,
56
-                36  => 2,
57
-                48  => 1,
58
-                51  => 1,
59
-                54  => 1,
60
-                57  => 1,
61
-                102 => 1,
62
-                103 => 1,
63
-                104 => 3,
64
-                118 => 1,
65
-                121 => 1,
66
-                125 => 2,
67
-                129 => 2,
68
-            ];
69
-        default:
70
-            return [];
52
+            	return $errors;
53
+        	case 'InlineCommentUnitTest.js':
54
+            	return [
55
+                	31  => 1,
56
+                	36  => 2,
57
+                	48  => 1,
58
+                	51  => 1,
59
+                	54  => 1,
60
+                	57  => 1,
61
+                	102 => 1,
62
+                	103 => 1,
63
+                	104 => 3,
64
+                	118 => 1,
65
+                	121 => 1,
66
+                	125 => 2,
67
+                	129 => 2,
68
+            	];
69
+        	default:
70
+            	return [];
71 71
         }//end switch
72 72
 
73 73
     }//end getErrorList()
Please login to merge, or discard this patch.