Completed
Branch dev (588c07)
by
unknown
24:15 queued 17:27
created
src/Standards/Generic/Tests/Arrays/DisallowShortArraySyntaxUnitTest.php 1 patch
Indentation   +33 added lines, -33 removed lines patch added patch discarded remove patch
@@ -15,39 +15,39 @@
 block discarded – undo
15 15
 {
16 16
 
17 17
 
18
-    /**
19
-     * Returns the lines where errors should occur.
20
-     *
21
-     * The key of the array should represent the line number and the value
22
-     * should represent the number of errors that should occur on that line.
23
-     *
24
-     * @return array<int, int>
25
-     */
26
-    public function getErrorList()
27
-    {
28
-        return [
29
-            3 => 1,
30
-            5 => 1,
31
-            7 => 1,
32
-            8 => 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
-
50
-    }//end getWarningList()
18
+	/**
19
+	 * Returns the lines where errors should occur.
20
+	 *
21
+	 * The key of the array should represent the line number and the value
22
+	 * should represent the number of errors that should occur on that line.
23
+	 *
24
+	 * @return array<int, int>
25
+	 */
26
+	public function getErrorList()
27
+	{
28
+		return [
29
+			3 => 1,
30
+			5 => 1,
31
+			7 => 1,
32
+			8 => 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
+
50
+	}//end getWarningList()
51 51
 
52 52
 
53 53
 }//end class
Please login to merge, or discard this patch.
src/Standards/Generic/Tests/Arrays/DisallowLongArraySyntaxUnitTest.php 3 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
      *
48 48
      * @return array<int, int>
49 49
      */
50
-    public function getErrorList($testFile='')
50
+    public function getErrorList($testFile = '')
51 51
     {
52 52
         switch ($testFile) {
53 53
         case 'DisallowLongArraySyntaxUnitTest.1.inc':
Please login to merge, or discard this patch.
Indentation   +42 added lines, -42 removed lines patch added patch discarded remove patch
@@ -15,52 +15,52 @@
 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 'DisallowLongArraySyntaxUnitTest.1.inc':
32
-            return [
33
-                2  => 1,
34
-                4  => 1,
35
-                6  => 1,
36
-                7  => 1,
37
-                12 => 1,
38
-            ];
39
-        case 'DisallowLongArraySyntaxUnitTest.2.inc':
40
-            return [
41
-                2 => 1,
42
-                9 => 1,
43
-            ];
44
-        default:
45
-            return [];
46
-        }//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='')
29
+	{
30
+		switch ($testFile) {
31
+		case 'DisallowLongArraySyntaxUnitTest.1.inc':
32
+			return [
33
+				2  => 1,
34
+				4  => 1,
35
+				6  => 1,
36
+				7  => 1,
37
+				12 => 1,
38
+			];
39
+		case 'DisallowLongArraySyntaxUnitTest.2.inc':
40
+			return [
41
+				2 => 1,
42
+				9 => 1,
43
+			];
44
+		default:
45
+			return [];
46
+		}//end switch
47 47
 
48
-    }//end getErrorList()
48
+	}//end getErrorList()
49 49
 
50 50
 
51
-    /**
52
-     * Returns the lines where warnings should occur.
53
-     *
54
-     * The key of the array should represent the line number and the value
55
-     * should represent the number of warnings that should occur on that line.
56
-     *
57
-     * @return array<int, int>
58
-     */
59
-    public function getWarningList()
60
-    {
61
-        return [];
51
+	/**
52
+	 * Returns the lines where warnings should occur.
53
+	 *
54
+	 * The key of the array should represent the line number and the value
55
+	 * should represent the number of warnings that should occur on that line.
56
+	 *
57
+	 * @return array<int, int>
58
+	 */
59
+	public function getWarningList()
60
+	{
61
+		return [];
62 62
 
63
-    }//end getWarningList()
63
+	}//end getWarningList()
64 64
 
65 65
 
66 66
 }//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,21 +28,21 @@
 block discarded – undo
28 28
     public function getErrorList($testFile='')
29 29
     {
30 30
         switch ($testFile) {
31
-        case 'DisallowLongArraySyntaxUnitTest.1.inc':
32
-            return [
33
-                2  => 1,
34
-                4  => 1,
35
-                6  => 1,
36
-                7  => 1,
37
-                12 => 1,
38
-            ];
39
-        case 'DisallowLongArraySyntaxUnitTest.2.inc':
40
-            return [
41
-                2 => 1,
42
-                9 => 1,
43
-            ];
44
-        default:
45
-            return [];
31
+        	case 'DisallowLongArraySyntaxUnitTest.1.inc':
32
+            	return [
33
+                	2  => 1,
34
+                	4  => 1,
35
+                	6  => 1,
36
+                	7  => 1,
37
+                	12 => 1,
38
+            	];
39
+        	case 'DisallowLongArraySyntaxUnitTest.2.inc':
40
+            	return [
41
+                	2 => 1,
42
+                	9 => 1,
43
+            	];
44
+        	default:
45
+            	return [];
46 46
         }//end switch
47 47
 
48 48
     }//end getErrorList()
Please login to merge, or discard this patch.
Standards/Generic/Tests/Formatting/MultipleStatementAlignmentUnitTest.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='MultipleStatementAlignmentUnitTest.inc')
43
+    public function getWarningList($testFile = 'MultipleStatementAlignmentUnitTest.inc')
44 44
     {
45 45
         switch ($testFile) {
46 46
         case 'MultipleStatementAlignmentUnitTest.inc':
Please login to merge, or discard this patch.
Indentation   +142 added lines, -142 removed lines patch added patch discarded remove patch
@@ -15,152 +15,152 @@
 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='MultipleStatementAlignmentUnitTest.inc')
44
-    {
45
-        switch ($testFile) {
46
-        case 'MultipleStatementAlignmentUnitTest.inc':
47
-            return [
48
-                11  => 1,
49
-                12  => 1,
50
-                23  => 1,
51
-                24  => 1,
52
-                26  => 1,
53
-                27  => 1,
54
-                37  => 1,
55
-                38  => 1,
56
-                48  => 1,
57
-                50  => 1,
58
-                51  => 1,
59
-                61  => 1,
60
-                62  => 1,
61
-                64  => 1,
62
-                65  => 1,
63
-                71  => 1,
64
-                78  => 1,
65
-                79  => 1,
66
-                86  => 1,
67
-                92  => 1,
68
-                93  => 1,
69
-                94  => 1,
70
-                95  => 1,
71
-                123 => 1,
72
-                124 => 1,
73
-                126 => 1,
74
-                129 => 1,
75
-                154 => 1,
76
-                161 => 1,
77
-                178 => 1,
78
-                179 => 1,
79
-                182 => 1,
80
-                206 => 1,
81
-                207 => 1,
82
-                252 => 1,
83
-                257 => 1,
84
-                263 => 1,
85
-                269 => 1,
86
-                293 => 1,
87
-                295 => 1,
88
-                296 => 1,
89
-                297 => 1,
90
-                301 => 1,
91
-                303 => 1,
92
-                308 => 1,
93
-                311 => 1,
94
-                313 => 1,
95
-                314 => 1,
96
-                321 => 1,
97
-                322 => 1,
98
-                324 => 1,
99
-                329 => 1,
100
-                331 => 1,
101
-                336 => 1,
102
-                339 => 1,
103
-                341 => 1,
104
-                342 => 1,
105
-                349 => 1,
106
-                350 => 1,
107
-                352 => 1,
108
-                357 => 1,
109
-                364 => 1,
110
-                396 => 1,
111
-                398 => 1,
112
-                399 => 1,
113
-                401 => 1,
114
-                420 => 1,
115
-                422 => 1,
116
-                436 => 1,
117
-                438 => 1,
118
-                442 => 1,
119
-                443 => 1,
120
-                454 => 1,
121
-                487 => 1,
122
-                499 => 1,
123
-                500 => 1,
124
-            ];
125
-        break;
126
-        case 'MultipleStatementAlignmentUnitTest.js':
127
-            return [
128
-                11  => 1,
129
-                12  => 1,
130
-                23  => 1,
131
-                24  => 1,
132
-                26  => 1,
133
-                27  => 1,
134
-                37  => 1,
135
-                38  => 1,
136
-                48  => 1,
137
-                50  => 1,
138
-                51  => 1,
139
-                61  => 1,
140
-                62  => 1,
141
-                64  => 1,
142
-                65  => 1,
143
-                71  => 1,
144
-                78  => 1,
145
-                79  => 1,
146
-                81  => 1,
147
-                82  => 1,
148
-                83  => 1,
149
-                85  => 1,
150
-                86  => 1,
151
-                100 => 1,
152
-                112 => 1,
153
-                113 => 1,
154
-                114 => 1,
155
-                117 => 1,
156
-            ];
157
-            break;
158
-        default:
159
-            return [];
160
-            break;
161
-        }//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='MultipleStatementAlignmentUnitTest.inc')
44
+	{
45
+		switch ($testFile) {
46
+		case 'MultipleStatementAlignmentUnitTest.inc':
47
+			return [
48
+				11  => 1,
49
+				12  => 1,
50
+				23  => 1,
51
+				24  => 1,
52
+				26  => 1,
53
+				27  => 1,
54
+				37  => 1,
55
+				38  => 1,
56
+				48  => 1,
57
+				50  => 1,
58
+				51  => 1,
59
+				61  => 1,
60
+				62  => 1,
61
+				64  => 1,
62
+				65  => 1,
63
+				71  => 1,
64
+				78  => 1,
65
+				79  => 1,
66
+				86  => 1,
67
+				92  => 1,
68
+				93  => 1,
69
+				94  => 1,
70
+				95  => 1,
71
+				123 => 1,
72
+				124 => 1,
73
+				126 => 1,
74
+				129 => 1,
75
+				154 => 1,
76
+				161 => 1,
77
+				178 => 1,
78
+				179 => 1,
79
+				182 => 1,
80
+				206 => 1,
81
+				207 => 1,
82
+				252 => 1,
83
+				257 => 1,
84
+				263 => 1,
85
+				269 => 1,
86
+				293 => 1,
87
+				295 => 1,
88
+				296 => 1,
89
+				297 => 1,
90
+				301 => 1,
91
+				303 => 1,
92
+				308 => 1,
93
+				311 => 1,
94
+				313 => 1,
95
+				314 => 1,
96
+				321 => 1,
97
+				322 => 1,
98
+				324 => 1,
99
+				329 => 1,
100
+				331 => 1,
101
+				336 => 1,
102
+				339 => 1,
103
+				341 => 1,
104
+				342 => 1,
105
+				349 => 1,
106
+				350 => 1,
107
+				352 => 1,
108
+				357 => 1,
109
+				364 => 1,
110
+				396 => 1,
111
+				398 => 1,
112
+				399 => 1,
113
+				401 => 1,
114
+				420 => 1,
115
+				422 => 1,
116
+				436 => 1,
117
+				438 => 1,
118
+				442 => 1,
119
+				443 => 1,
120
+				454 => 1,
121
+				487 => 1,
122
+				499 => 1,
123
+				500 => 1,
124
+			];
125
+		break;
126
+		case 'MultipleStatementAlignmentUnitTest.js':
127
+			return [
128
+				11  => 1,
129
+				12  => 1,
130
+				23  => 1,
131
+				24  => 1,
132
+				26  => 1,
133
+				27  => 1,
134
+				37  => 1,
135
+				38  => 1,
136
+				48  => 1,
137
+				50  => 1,
138
+				51  => 1,
139
+				61  => 1,
140
+				62  => 1,
141
+				64  => 1,
142
+				65  => 1,
143
+				71  => 1,
144
+				78  => 1,
145
+				79  => 1,
146
+				81  => 1,
147
+				82  => 1,
148
+				83  => 1,
149
+				85  => 1,
150
+				86  => 1,
151
+				100 => 1,
152
+				112 => 1,
153
+				113 => 1,
154
+				114 => 1,
155
+				117 => 1,
156
+			];
157
+			break;
158
+		default:
159
+			return [];
160
+			break;
161
+		}//end switch
162 162
 
163
-    }//end getWarningList()
163
+	}//end getWarningList()
164 164
 
165 165
 
166 166
 }//end class
Please login to merge, or discard this patch.
Switch Indentation   +115 added lines, -115 removed lines patch added patch discarded remove patch
@@ -43,121 +43,121 @@
 block discarded – undo
43 43
     public function getWarningList($testFile='MultipleStatementAlignmentUnitTest.inc')
44 44
     {
45 45
         switch ($testFile) {
46
-        case 'MultipleStatementAlignmentUnitTest.inc':
47
-            return [
48
-                11  => 1,
49
-                12  => 1,
50
-                23  => 1,
51
-                24  => 1,
52
-                26  => 1,
53
-                27  => 1,
54
-                37  => 1,
55
-                38  => 1,
56
-                48  => 1,
57
-                50  => 1,
58
-                51  => 1,
59
-                61  => 1,
60
-                62  => 1,
61
-                64  => 1,
62
-                65  => 1,
63
-                71  => 1,
64
-                78  => 1,
65
-                79  => 1,
66
-                86  => 1,
67
-                92  => 1,
68
-                93  => 1,
69
-                94  => 1,
70
-                95  => 1,
71
-                123 => 1,
72
-                124 => 1,
73
-                126 => 1,
74
-                129 => 1,
75
-                154 => 1,
76
-                161 => 1,
77
-                178 => 1,
78
-                179 => 1,
79
-                182 => 1,
80
-                206 => 1,
81
-                207 => 1,
82
-                252 => 1,
83
-                257 => 1,
84
-                263 => 1,
85
-                269 => 1,
86
-                293 => 1,
87
-                295 => 1,
88
-                296 => 1,
89
-                297 => 1,
90
-                301 => 1,
91
-                303 => 1,
92
-                308 => 1,
93
-                311 => 1,
94
-                313 => 1,
95
-                314 => 1,
96
-                321 => 1,
97
-                322 => 1,
98
-                324 => 1,
99
-                329 => 1,
100
-                331 => 1,
101
-                336 => 1,
102
-                339 => 1,
103
-                341 => 1,
104
-                342 => 1,
105
-                349 => 1,
106
-                350 => 1,
107
-                352 => 1,
108
-                357 => 1,
109
-                364 => 1,
110
-                396 => 1,
111
-                398 => 1,
112
-                399 => 1,
113
-                401 => 1,
114
-                420 => 1,
115
-                422 => 1,
116
-                436 => 1,
117
-                438 => 1,
118
-                442 => 1,
119
-                443 => 1,
120
-                454 => 1,
121
-                487 => 1,
122
-                499 => 1,
123
-                500 => 1,
124
-            ];
125
-        break;
126
-        case 'MultipleStatementAlignmentUnitTest.js':
127
-            return [
128
-                11  => 1,
129
-                12  => 1,
130
-                23  => 1,
131
-                24  => 1,
132
-                26  => 1,
133
-                27  => 1,
134
-                37  => 1,
135
-                38  => 1,
136
-                48  => 1,
137
-                50  => 1,
138
-                51  => 1,
139
-                61  => 1,
140
-                62  => 1,
141
-                64  => 1,
142
-                65  => 1,
143
-                71  => 1,
144
-                78  => 1,
145
-                79  => 1,
146
-                81  => 1,
147
-                82  => 1,
148
-                83  => 1,
149
-                85  => 1,
150
-                86  => 1,
151
-                100 => 1,
152
-                112 => 1,
153
-                113 => 1,
154
-                114 => 1,
155
-                117 => 1,
156
-            ];
157
-            break;
158
-        default:
159
-            return [];
160
-            break;
46
+        	case 'MultipleStatementAlignmentUnitTest.inc':
47
+            	return [
48
+                	11  => 1,
49
+                	12  => 1,
50
+                	23  => 1,
51
+                	24  => 1,
52
+                	26  => 1,
53
+                	27  => 1,
54
+                	37  => 1,
55
+                	38  => 1,
56
+                	48  => 1,
57
+                	50  => 1,
58
+                	51  => 1,
59
+                	61  => 1,
60
+                	62  => 1,
61
+                	64  => 1,
62
+                	65  => 1,
63
+                	71  => 1,
64
+                	78  => 1,
65
+                	79  => 1,
66
+                	86  => 1,
67
+                	92  => 1,
68
+                	93  => 1,
69
+                	94  => 1,
70
+                	95  => 1,
71
+                	123 => 1,
72
+                	124 => 1,
73
+                	126 => 1,
74
+                	129 => 1,
75
+                	154 => 1,
76
+                	161 => 1,
77
+                	178 => 1,
78
+                	179 => 1,
79
+                	182 => 1,
80
+                	206 => 1,
81
+                	207 => 1,
82
+                	252 => 1,
83
+                	257 => 1,
84
+                	263 => 1,
85
+                	269 => 1,
86
+                	293 => 1,
87
+                	295 => 1,
88
+                	296 => 1,
89
+                	297 => 1,
90
+                	301 => 1,
91
+                	303 => 1,
92
+                	308 => 1,
93
+                	311 => 1,
94
+                	313 => 1,
95
+                	314 => 1,
96
+                	321 => 1,
97
+                	322 => 1,
98
+                	324 => 1,
99
+                	329 => 1,
100
+                	331 => 1,
101
+                	336 => 1,
102
+                	339 => 1,
103
+                	341 => 1,
104
+                	342 => 1,
105
+                	349 => 1,
106
+                	350 => 1,
107
+                	352 => 1,
108
+                	357 => 1,
109
+                	364 => 1,
110
+                	396 => 1,
111
+                	398 => 1,
112
+                	399 => 1,
113
+                	401 => 1,
114
+                	420 => 1,
115
+                	422 => 1,
116
+                	436 => 1,
117
+                	438 => 1,
118
+                	442 => 1,
119
+                	443 => 1,
120
+                	454 => 1,
121
+                	487 => 1,
122
+                	499 => 1,
123
+                	500 => 1,
124
+            	];
125
+        	break;
126
+        	case 'MultipleStatementAlignmentUnitTest.js':
127
+            	return [
128
+                	11  => 1,
129
+                	12  => 1,
130
+                	23  => 1,
131
+                	24  => 1,
132
+                	26  => 1,
133
+                	27  => 1,
134
+                	37  => 1,
135
+                	38  => 1,
136
+                	48  => 1,
137
+                	50  => 1,
138
+                	51  => 1,
139
+                	61  => 1,
140
+                	62  => 1,
141
+                	64  => 1,
142
+                	65  => 1,
143
+                	71  => 1,
144
+                	78  => 1,
145
+                	79  => 1,
146
+                	81  => 1,
147
+                	82  => 1,
148
+                	83  => 1,
149
+                	85  => 1,
150
+                	86  => 1,
151
+                	100 => 1,
152
+                	112 => 1,
153
+                	113 => 1,
154
+                	114 => 1,
155
+                	117 => 1,
156
+            	];
157
+            	break;
158
+        	default:
159
+            	return [];
160
+            	break;
161 161
         }//end switch
162 162
 
163 163
     }//end getWarningList()
Please login to merge, or discard this patch.
src/Standards/Generic/Tests/Strings/UnnecessaryStringConcatUnitTest.inc 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,6 +16,6 @@
 block discarded – undo
16 16
 $code = '<'.'?php ';
17 17
 
18 18
 $string = 'This is a really long string. '
19
-        . 'It is being used for errors. '
20
-        . 'The message is not translated.';
19
+		. 'It is being used for errors. '
20
+		. 'The message is not translated.';
21 21
 ?>
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
1 1
 <?php
2 2
 $x = 'My '.'string';
3
-$x = 'My '. 1234;
3
+$x = 'My '.1234;
4 4
 $x = 'My '.$y.' test';
5 5
 
6 6
 echo $data['my'.'index'];
7
-echo $data['my'. 4];
7
+echo $data['my'.4];
8 8
 echo $data['my'.$x];
9 9
 echo $data[$x.$y.'My'.'String'];
10 10
 
Please login to merge, or discard this patch.
src/Standards/Generic/Tests/Strings/UnnecessaryStringConcatUnitTest.php 3 patches
Indentation   +49 added lines, -49 removed lines patch added patch discarded remove patch
@@ -15,59 +15,59 @@
 block discarded – undo
15 15
 {
16 16
 
17 17
 
18
-    /**
19
-     * Returns the lines where errors should occur.
20
-     *
21
-     * The key of the array should represent the line number and the value
22
-     * should represent the number of errors that should occur on that line.
23
-     *
24
-     * @param string $testFile The name of the file being tested.
25
-     *
26
-     * @return array<int, int>
27
-     */
28
-    public function getErrorList($testFile='UnnecessaryStringConcatUnitTest.inc')
29
-    {
30
-        switch ($testFile) {
31
-        case 'UnnecessaryStringConcatUnitTest.inc':
32
-            return [
33
-                2  => 1,
34
-                6  => 1,
35
-                9  => 1,
36
-                12 => 1,
37
-                19 => 1,
38
-                20 => 1,
39
-            ];
40
-            break;
41
-        case 'UnnecessaryStringConcatUnitTest.js':
42
-            return [
43
-                1  => 1,
44
-                8  => 1,
45
-                11 => 1,
46
-                14 => 1,
47
-                15 => 1,
48
-            ];
49
-            break;
50
-        default:
51
-            return [];
52
-            break;
53
-        }//end switch
18
+	/**
19
+	 * Returns the lines where errors should occur.
20
+	 *
21
+	 * The key of the array should represent the line number and the value
22
+	 * should represent the number of errors that should occur on that line.
23
+	 *
24
+	 * @param string $testFile The name of the file being tested.
25
+	 *
26
+	 * @return array<int, int>
27
+	 */
28
+	public function getErrorList($testFile='UnnecessaryStringConcatUnitTest.inc')
29
+	{
30
+		switch ($testFile) {
31
+		case 'UnnecessaryStringConcatUnitTest.inc':
32
+			return [
33
+				2  => 1,
34
+				6  => 1,
35
+				9  => 1,
36
+				12 => 1,
37
+				19 => 1,
38
+				20 => 1,
39
+			];
40
+			break;
41
+		case 'UnnecessaryStringConcatUnitTest.js':
42
+			return [
43
+				1  => 1,
44
+				8  => 1,
45
+				11 => 1,
46
+				14 => 1,
47
+				15 => 1,
48
+			];
49
+			break;
50
+		default:
51
+			return [];
52
+			break;
53
+		}//end switch
54 54
 
55
-    }//end getErrorList()
55
+	}//end getErrorList()
56 56
 
57 57
 
58
-    /**
59
-     * Returns the lines where warnings should occur.
60
-     *
61
-     * The key of the array should represent the line number and the value
62
-     * should represent the number of warnings that should occur on that line.
63
-     *
64
-     * @return array<int, int>
65
-     */
66
-    public function getWarningList()
67
-    {
68
-        return [];
58
+	/**
59
+	 * Returns the lines where warnings should occur.
60
+	 *
61
+	 * The key of the array should represent the line number and the value
62
+	 * should represent the number of warnings that should occur on that line.
63
+	 *
64
+	 * @return array<int, int>
65
+	 */
66
+	public function getWarningList()
67
+	{
68
+		return [];
69 69
 
70
-    }//end getWarningList()
70
+	}//end getWarningList()
71 71
 
72 72
 
73 73
 }//end class
Please login to merge, or discard this patch.
Switch Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -28,28 +28,28 @@
 block discarded – undo
28 28
     public function getErrorList($testFile='UnnecessaryStringConcatUnitTest.inc')
29 29
     {
30 30
         switch ($testFile) {
31
-        case 'UnnecessaryStringConcatUnitTest.inc':
32
-            return [
33
-                2  => 1,
34
-                6  => 1,
35
-                9  => 1,
36
-                12 => 1,
37
-                19 => 1,
38
-                20 => 1,
39
-            ];
40
-            break;
41
-        case 'UnnecessaryStringConcatUnitTest.js':
42
-            return [
43
-                1  => 1,
44
-                8  => 1,
45
-                11 => 1,
46
-                14 => 1,
47
-                15 => 1,
48
-            ];
49
-            break;
50
-        default:
51
-            return [];
52
-            break;
31
+        	case 'UnnecessaryStringConcatUnitTest.inc':
32
+            	return [
33
+                	2  => 1,
34
+                	6  => 1,
35
+                	9  => 1,
36
+                	12 => 1,
37
+                	19 => 1,
38
+                	20 => 1,
39
+            	];
40
+            	break;
41
+        	case 'UnnecessaryStringConcatUnitTest.js':
42
+            	return [
43
+                	1  => 1,
44
+                	8  => 1,
45
+                	11 => 1,
46
+                	14 => 1,
47
+                	15 => 1,
48
+            	];
49
+            	break;
50
+        	default:
51
+            	return [];
52
+            	break;
53 53
         }//end switch
54 54
 
55 55
     }//end getErrorList()
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
      *
26 26
      * @return array<int, int>
27 27
      */
28
-    public function getErrorList($testFile='UnnecessaryStringConcatUnitTest.inc')
28
+    public function getErrorList($testFile = 'UnnecessaryStringConcatUnitTest.inc')
29 29
     {
30 30
         switch ($testFile) {
31 31
         case 'UnnecessaryStringConcatUnitTest.inc':
Please login to merge, or discard this patch.
php_codesniffer/src/Standards/Generic/Tests/Files/LineLengthUnitTest.php 3 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
      *
41 41
      * @return array<int, int>
42 42
      */
43
-    public function getErrorList($testFile='')
43
+    public function getErrorList($testFile = '')
44 44
     {
45 45
         switch ($testFile) {
46 46
         case 'LineLengthUnitTest.1.inc':
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
      *
74 74
      * @return array<int, int>
75 75
      */
76
-    public function getWarningList($testFile='')
76
+    public function getWarningList($testFile = '')
77 77
     {
78 78
         switch ($testFile) {
79 79
         case 'LineLengthUnitTest.1.inc':
Please login to merge, or discard this patch.
Indentation   +84 added lines, -84 removed lines patch added patch discarded remove patch
@@ -15,97 +15,97 @@
 block discarded – undo
15 15
 {
16 16
 
17 17
 
18
-    /**
19
-     * Get a list of CLI values to set before the file is tested.
20
-     *
21
-     * @param string                  $testFile The name of the file being tested.
22
-     * @param \PHP_CodeSniffer\Config $config   The config data for the test run.
23
-     *
24
-     * @return void
25
-     */
26
-    public function setCliValues($testFile, $config)
27
-    {
28
-        $config->tabWidth = 4;
18
+	/**
19
+	 * Get a list of CLI values to set before the file is tested.
20
+	 *
21
+	 * @param string                  $testFile The name of the file being tested.
22
+	 * @param \PHP_CodeSniffer\Config $config   The config data for the test run.
23
+	 *
24
+	 * @return void
25
+	 */
26
+	public function setCliValues($testFile, $config)
27
+	{
28
+		$config->tabWidth = 4;
29 29
 
30
-    }//end setCliValues()
30
+	}//end setCliValues()
31 31
 
32 32
 
33
-    /**
34
-     * Returns the lines where errors should occur.
35
-     *
36
-     * The key of the array should represent the line number and the value
37
-     * should represent the number of errors 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 getErrorList($testFile='')
44
-    {
45
-        switch ($testFile) {
46
-        case 'LineLengthUnitTest.1.inc':
47
-            return [
48
-                31 => 1,
49
-                34 => 1,
50
-                45 => 1,
51
-                82 => 1,
52
-            ];
53
-            break;
54
-        case 'LineLengthUnitTest.2.inc':
55
-        case 'LineLengthUnitTest.3.inc':
56
-            return [7 => 1];
57
-            break;
58
-        default:
59
-            return [];
60
-            break;
61
-        }//end switch
33
+	/**
34
+	 * Returns the lines where errors should occur.
35
+	 *
36
+	 * The key of the array should represent the line number and the value
37
+	 * should represent the number of errors 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 getErrorList($testFile='')
44
+	{
45
+		switch ($testFile) {
46
+		case 'LineLengthUnitTest.1.inc':
47
+			return [
48
+				31 => 1,
49
+				34 => 1,
50
+				45 => 1,
51
+				82 => 1,
52
+			];
53
+			break;
54
+		case 'LineLengthUnitTest.2.inc':
55
+		case 'LineLengthUnitTest.3.inc':
56
+			return [7 => 1];
57
+			break;
58
+		default:
59
+			return [];
60
+			break;
61
+		}//end switch
62 62
 
63
-    }//end getErrorList()
63
+	}//end getErrorList()
64 64
 
65 65
 
66
-    /**
67
-     * Returns the lines where warnings should occur.
68
-     *
69
-     * The key of the array should represent the line number and the value
70
-     * should represent the number of warnings that should occur on that line.
71
-     *
72
-     * @param string $testFile The name of the file being tested.
73
-     *
74
-     * @return array<int, int>
75
-     */
76
-    public function getWarningList($testFile='')
77
-    {
78
-        switch ($testFile) {
79
-        case 'LineLengthUnitTest.1.inc':
80
-            return [
81
-                9  => 1,
82
-                15 => 1,
83
-                21 => 1,
84
-                24 => 1,
85
-                29 => 1,
86
-                37 => 1,
87
-                63 => 1,
88
-                73 => 1,
89
-                75 => 1,
90
-                84 => 1,
91
-            ];
92
-            break;
93
-        case 'LineLengthUnitTest.2.inc':
94
-        case 'LineLengthUnitTest.3.inc':
95
-            return [6 => 1];
96
-            break;
97
-        case 'LineLengthUnitTest.4.inc':
98
-            return [
99
-                10 => 1,
100
-                14 => 1,
101
-            ];
102
-            break;
103
-        default:
104
-            return [];
105
-            break;
106
-        }//end switch
66
+	/**
67
+	 * Returns the lines where warnings should occur.
68
+	 *
69
+	 * The key of the array should represent the line number and the value
70
+	 * should represent the number of warnings that should occur on that line.
71
+	 *
72
+	 * @param string $testFile The name of the file being tested.
73
+	 *
74
+	 * @return array<int, int>
75
+	 */
76
+	public function getWarningList($testFile='')
77
+	{
78
+		switch ($testFile) {
79
+		case 'LineLengthUnitTest.1.inc':
80
+			return [
81
+				9  => 1,
82
+				15 => 1,
83
+				21 => 1,
84
+				24 => 1,
85
+				29 => 1,
86
+				37 => 1,
87
+				63 => 1,
88
+				73 => 1,
89
+				75 => 1,
90
+				84 => 1,
91
+			];
92
+			break;
93
+		case 'LineLengthUnitTest.2.inc':
94
+		case 'LineLengthUnitTest.3.inc':
95
+			return [6 => 1];
96
+			break;
97
+		case 'LineLengthUnitTest.4.inc':
98
+			return [
99
+				10 => 1,
100
+				14 => 1,
101
+			];
102
+			break;
103
+		default:
104
+			return [];
105
+			break;
106
+		}//end switch
107 107
 
108
-    }//end getWarningList()
108
+	}//end getWarningList()
109 109
 
110 110
 
111 111
 }//end class
Please login to merge, or discard this patch.
Switch Indentation   +42 added lines, -42 removed lines patch added patch discarded remove patch
@@ -43,21 +43,21 @@  discard block
 block discarded – undo
43 43
     public function getErrorList($testFile='')
44 44
     {
45 45
         switch ($testFile) {
46
-        case 'LineLengthUnitTest.1.inc':
47
-            return [
48
-                31 => 1,
49
-                34 => 1,
50
-                45 => 1,
51
-                82 => 1,
52
-            ];
53
-            break;
54
-        case 'LineLengthUnitTest.2.inc':
55
-        case 'LineLengthUnitTest.3.inc':
56
-            return [7 => 1];
57
-            break;
58
-        default:
59
-            return [];
60
-            break;
46
+        	case 'LineLengthUnitTest.1.inc':
47
+            	return [
48
+                	31 => 1,
49
+                	34 => 1,
50
+                	45 => 1,
51
+                	82 => 1,
52
+            	];
53
+            	break;
54
+        	case 'LineLengthUnitTest.2.inc':
55
+        	case 'LineLengthUnitTest.3.inc':
56
+            	return [7 => 1];
57
+            	break;
58
+        	default:
59
+            	return [];
60
+            	break;
61 61
         }//end switch
62 62
 
63 63
     }//end getErrorList()
@@ -76,33 +76,33 @@  discard block
 block discarded – undo
76 76
     public function getWarningList($testFile='')
77 77
     {
78 78
         switch ($testFile) {
79
-        case 'LineLengthUnitTest.1.inc':
80
-            return [
81
-                9  => 1,
82
-                15 => 1,
83
-                21 => 1,
84
-                24 => 1,
85
-                29 => 1,
86
-                37 => 1,
87
-                63 => 1,
88
-                73 => 1,
89
-                75 => 1,
90
-                84 => 1,
91
-            ];
92
-            break;
93
-        case 'LineLengthUnitTest.2.inc':
94
-        case 'LineLengthUnitTest.3.inc':
95
-            return [6 => 1];
96
-            break;
97
-        case 'LineLengthUnitTest.4.inc':
98
-            return [
99
-                10 => 1,
100
-                14 => 1,
101
-            ];
102
-            break;
103
-        default:
104
-            return [];
105
-            break;
79
+        	case 'LineLengthUnitTest.1.inc':
80
+            	return [
81
+                	9  => 1,
82
+                	15 => 1,
83
+                	21 => 1,
84
+                	24 => 1,
85
+                	29 => 1,
86
+                	37 => 1,
87
+                	63 => 1,
88
+                	73 => 1,
89
+                	75 => 1,
90
+                	84 => 1,
91
+            	];
92
+            	break;
93
+        	case 'LineLengthUnitTest.2.inc':
94
+        	case 'LineLengthUnitTest.3.inc':
95
+            	return [6 => 1];
96
+            	break;
97
+        	case 'LineLengthUnitTest.4.inc':
98
+            	return [
99
+                	10 => 1,
100
+                	14 => 1,
101
+            	];
102
+            	break;
103
+        	default:
104
+            	return [];
105
+            	break;
106 106
         }//end switch
107 107
 
108 108
     }//end getWarningList()
Please login to merge, or discard this patch.
php_codesniffer/src/Standards/Generic/Tests/Files/LineEndingsUnitTest.php 1 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
-     * Get a list of CLI values to set before the file is tested.
20
-     *
21
-     * @param string                  $testFile The name of the file being tested.
22
-     * @param \PHP_CodeSniffer\Config $config   The config data for the test run.
23
-     *
24
-     * @return void
25
-     */
26
-    public function setCliValues($testFile, $config)
27
-    {
28
-        $config->tabWidth = 4;
29
-
30
-    }//end setCliValues()
31
-
32
-
33
-    /**
34
-     * Returns the lines where errors should occur.
35
-     *
36
-     * The key of the array should represent the line number and the value
37
-     * should represent the number of errors that should occur on that line.
38
-     *
39
-     * @return array<int, int>
40
-     */
41
-    public function getErrorList()
42
-    {
43
-        return [1 => 1];
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
+	 * Get a list of CLI values to set before the file is tested.
20
+	 *
21
+	 * @param string                  $testFile The name of the file being tested.
22
+	 * @param \PHP_CodeSniffer\Config $config   The config data for the test run.
23
+	 *
24
+	 * @return void
25
+	 */
26
+	public function setCliValues($testFile, $config)
27
+	{
28
+		$config->tabWidth = 4;
29
+
30
+	}//end setCliValues()
31
+
32
+
33
+	/**
34
+	 * Returns the lines where errors should occur.
35
+	 *
36
+	 * The key of the array should represent the line number and the value
37
+	 * should represent the number of errors that should occur on that line.
38
+	 *
39
+	 * @return array<int, int>
40
+	 */
41
+	public function getErrorList()
42
+	{
43
+		return [1 => 1];
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.
src/Standards/Generic/Tests/Files/OneClassPerFileUnitTest.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
-            6  => 1,
30
-            10 => 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
+			6  => 1,
30
+			10 => 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/Generic/Tests/Files/LineLengthUnitTest.1.inc 2 patches
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -2,18 +2,18 @@  discard block
 block discarded – undo
2 2
 
3 3
 // This line is okay... just!
4 4
 if (($reallyLongVarName === true) || (is_array($anotherLongVarName) == false)) {
5
-    // Do something.
5
+	// Do something.
6 6
 }
7 7
 
8 8
 // This line is not okay... just!
9 9
 if (($reallyLongVarName === true) || (is_array($anotherLongVarName) === false)) {
10
-    // Do something.
10
+	// Do something.
11 11
 }
12 12
 
13 13
 
14 14
 // This line is is too long.
15 15
 if (($anotherReallyLongVarName === true) || (is_array($anotherReallyLongVarName) === false)) {
16
-    // Do something.
16
+	// Do something.
17 17
 }
18 18
 
19 19
 // This is a really really long comment that is going to go to exactly 80 chars.
@@ -57,14 +57,14 @@  discard block
 block discarded – undo
57 57
 # http://en.wikipedia.org/wiki/Binomial_proportion_confidence_interval#Wilson_score_interval
58 58
 
59 59
 if ($foo) {
60
-    if ($bar) {
61
-        if ($baz) {
62
-            // Next line can be broken:
63
-            // foo bar baz http://en.wikipedia.org/wiki/Binomial_proportion#blahblahblahblah
64
-            // But this one is just too long to break with this indent:
65
-            // foo bar baz http://en.wikipedia.org/wiki/Binomial_proportion#blahblahblahblahblah
66
-        }
67
-    }
60
+	if ($bar) {
61
+		if ($baz) {
62
+			// Next line can be broken:
63
+			// foo bar baz http://en.wikipedia.org/wiki/Binomial_proportion#blahblahblahblah
64
+			// But this one is just too long to break with this indent:
65
+			// foo bar baz http://en.wikipedia.org/wiki/Binomial_proportion#blahblahblahblahblah
66
+		}
67
+	}
68 68
 }
69 69
 
70 70
 /* -------------------------------- 80 chars -------------------------------- */
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -68,12 +68,12 @@
 block discarded – undo
68 68
 }
69 69
 
70 70
 /* -------------------------------- 80 chars -------------------------------- */
71
-$ab	= function () { /* comment */ if ($foo === true) { return (int) $foo; } };
72
-$ab	= function ()	{ /* comment */ if ($foo === true){ return	(int)$foo; }};
73
-$ab	= function ()	{ /* comment */ if ($foo === true) { return	(int) $foo; }  };
74
-	$ab	= function () { /* comment */ if ($foo === true) { return(int) $foo; }};
75
-	$ab	= function () { /* comment */ if ($foo === true) {	return(int) $foo; }};
76
-$ab	=  	$ab	=  	$ab	=  	$ab	=  	$ab	=  	$ab	=  	$ab	=  	$ab	=  	$ab	=  	$ab;
71
+$ab	= function() { /* comment */ if ($foo === true) { return (int) $foo; } };
72
+$ab	= function() { /* comment */ if ($foo === true) { return	(int) $foo; }};
73
+$ab	= function() { /* comment */ if ($foo === true) { return	(int) $foo; }  };
74
+	$ab	= function() { /* comment */ if ($foo === true) { return(int) $foo; }};
75
+	$ab	= function() { /* comment */ if ($foo === true) {	return(int) $foo; }};
76
+$ab	= $ab = $ab = $ab = $ab = $ab = $ab = $ab = $ab = $ab;
77 77
 
78 78
 // PHPCS annotations on a line by themselves should be ignored for the metrics.
79 79
 // phpcs:enable Standard.Category.Sniff.ErrorCode1,Standard.Category.Sniff.ErrorCode2 -- for reasons ...
Please login to merge, or discard this patch.