Completed
Branch dev (f99e72)
by
unknown
12:52 queued 05:01
created
src/Standards/Generic/Tests/PHP/UpperCaseConstantUnitTest.inc 3 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -61,10 +61,10 @@  discard block
 block discarded – undo
61 61
 use Something\True;
62 62
 class MyClass
63 63
 {
64
-    public function myFunction()
65
-    {
66
-        $var = array('foo' => new True());
67
-    }
64
+	public function myFunction()
65
+	{
66
+		$var = array('foo' => new True());
67
+	}
68 68
 }
69 69
 
70 70
 $x = $f?false:TRUE;
@@ -72,8 +72,8 @@  discard block
 block discarded – undo
72 72
 
73 73
 class MyClass
74 74
 {
75
-    // Spice things up a little.
76
-    const true = FALSE;
75
+	// Spice things up a little.
76
+	const true = FALSE;
77 77
 }
78 78
 
79 79
 var_dump(MyClass::true);
Please login to merge, or discard this patch.
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -1,13 +1,13 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 // True
4
-function myFunction($arg1, $arg2=TRUE)
4
+function myFunction($arg1, $arg2 = TRUE)
5 5
 {
6 6
 }
7
-function myFunction($arg1, $arg2=true)
7
+function myFunction($arg1, $arg2 = true)
8 8
 {
9 9
 }
10
-function myFunction($arg1, $arg2=True)
10
+function myFunction($arg1, $arg2 = True)
11 11
 {
12 12
 }
13 13
 
@@ -17,13 +17,13 @@  discard block
 block discarded – undo
17 17
 
18 18
 
19 19
 // False
20
-function myFunction($arg1, $arg2=FALSE)
20
+function myFunction($arg1, $arg2 = FALSE)
21 21
 {
22 22
 }
23
-function myFunction($arg1, $arg2=false)
23
+function myFunction($arg1, $arg2 = false)
24 24
 {
25 25
 }
26
-function myFunction($arg1, $arg2=False)
26
+function myFunction($arg1, $arg2 = False)
27 27
 {
28 28
 }
29 29
 
@@ -33,13 +33,13 @@  discard block
 block discarded – undo
33 33
 
34 34
 
35 35
 // Null
36
-function myFunction($arg1, $arg2=NULL)
36
+function myFunction($arg1, $arg2 = NULL)
37 37
 {
38 38
 }
39
-function myFunction($arg1, $arg2=null)
39
+function myFunction($arg1, $arg2 = null)
40 40
 {
41 41
 }
42
-function myFunction($arg1, $arg2=Null)
42
+function myFunction($arg1, $arg2 = Null)
43 43
 {
44 44
 }
45 45
 
@@ -67,8 +67,8 @@  discard block
 block discarded – undo
67 67
     }
68 68
 }
69 69
 
70
-$x = $f?false:TRUE;
71
-$x = $f? false:TRUE;
70
+$x = $f ?false:TRUE;
71
+$x = $f ? false:TRUE;
72 72
 
73 73
 class MyClass
74 74
 {
Please login to merge, or discard this patch.
Switch Indentation   +53 added lines, -53 removed lines patch added patch discarded remove patch
@@ -1,81 +1,81 @@
 block discarded – undo
1
-<?php
1
+	<?php
2 2
 
3
-// True
4
-function myFunction($arg1, $arg2=TRUE)
5
-{
3
+	// True
4
+	function myFunction($arg1, $arg2=TRUE)
5
+	{
6 6
 }
7
-function myFunction($arg1, $arg2=true)
8
-{
7
+	function myFunction($arg1, $arg2=true)
8
+	{
9 9
 }
10
-function myFunction($arg1, $arg2=True)
11
-{
10
+	function myFunction($arg1, $arg2=True)
11
+	{
12 12
 }
13 13
 
14
-if ($variable === TRUE) { }
15
-if ($variable === true) { }
16
-if ($variable === True) { }
14
+	if ($variable === TRUE) { }
15
+	if ($variable === true) { }
16
+	if ($variable === True) { }
17 17
 
18 18
 
19
-// False
20
-function myFunction($arg1, $arg2=FALSE)
21
-{
19
+	// False
20
+	function myFunction($arg1, $arg2=FALSE)
21
+	{
22 22
 }
23
-function myFunction($arg1, $arg2=false)
24
-{
23
+	function myFunction($arg1, $arg2=false)
24
+	{
25 25
 }
26
-function myFunction($arg1, $arg2=False)
27
-{
26
+	function myFunction($arg1, $arg2=False)
27
+	{
28 28
 }
29 29
 
30
-if ($variable === FALSE) { }
31
-if ($variable === false) { }
32
-if ($variable === False) { }
30
+	if ($variable === FALSE) { }
31
+	if ($variable === false) { }
32
+	if ($variable === False) { }
33 33
 
34 34
 
35
-// Null
36
-function myFunction($arg1, $arg2=NULL)
37
-{
35
+	// Null
36
+	function myFunction($arg1, $arg2=NULL)
37
+	{
38 38
 }
39
-function myFunction($arg1, $arg2=null)
40
-{
39
+	function myFunction($arg1, $arg2=null)
40
+	{
41 41
 }
42
-function myFunction($arg1, $arg2=Null)
43
-{
42
+	function myFunction($arg1, $arg2=Null)
43
+	{
44 44
 }
45 45
 
46
-if ($variable === NULL) { }
47
-if ($variable === null) { }
48
-if ($variable === Null) { }
46
+	if ($variable === NULL) { }
47
+	if ($variable === null) { }
48
+	if ($variable === Null) { }
49 49
 
50
-$x = new stdClass();
51
-$x->null = 7;
50
+	$x = new stdClass();
51
+	$x->null = 7;
52 52
 
53
-use Zend\Log\Writer\Null as NullWriter;
54
-new \Zend\Log\Writer\Null();
53
+	use Zend\Log\Writer\Null as NullWriter;
54
+	new \Zend\Log\Writer\Null();
55 55
 
56
-namespace False;
56
+	namespace False;
57 57
 
58
-class True extends Null implements False {}
58
+	class True extends Null implements False {}
59 59
 
60
-use True\Something;
61
-use Something\True;
62
-class MyClass
63
-{
64
-    public function myFunction()
65
-    {
66
-        $var = array('foo' => new True());
67
-    }
60
+	use True\Something;
61
+	use Something\True;
62
+	class MyClass
63
+	{
64
+    	public function myFunction()
65
+    	{
66
+        	$var = array('foo' => new True());
67
+    	}
68 68
 }
69 69
 
70
-$x = $f?false:TRUE;
71
-$x = $f? false:TRUE;
70
+	$x = $f?false:TRUE;
71
+	$x = $f? false:TRUE;
72 72
 
73
-class MyClass
74
-{
75
-    // Spice things up a little.
76
-    const true = FALSE;
73
+	class MyClass
74
+	{
75
+    	// Spice things up a little.
76
+    	const true = FALSE;
77 77
 }
78 78
 
79
-var_dump(MyClass::true);
79
+	var_dump(MyClass::true);
80 80
 
81
-function true() {}
82 81
\ No newline at end of file
82
+	function true() {}
83 83
\ No newline at end of file
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.
php_codesniffer/src/Standards/Generic/Tests/PHP/DiscourageGotoUnitTest.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
-
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
-            6  => 1,
46
-            11 => 1,
47
-            16 => 1,
48
-        ];
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
+
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
+			6  => 1,
46
+			11 => 1,
47
+			16 => 1,
48
+		];
49
+
50
+	}//end getWarningList()
51 51
 
52 52
 
53 53
 }//end class
Please login to merge, or discard this patch.
php_codesniffer/src/Standards/Generic/Tests/PHP/SAPIUsageUnitTest.php 1 patch
Indentation   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -15,34 +15,34 @@
 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 [2 => 1];
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
-
45
-    }//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 [2 => 1];
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
+
45
+	}//end getWarningList()
46 46
 
47 47
 
48 48
 }//end class
Please login to merge, or discard this patch.
src/Standards/Generic/Tests/PHP/ForbiddenFunctionsUnitTest.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
-        $errors = [
29
-            2 => 1,
30
-            4 => 1,
31
-            6 => 1,
32
-        ];
33
-
34
-        return $errors;
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
+		$errors = [
29
+			2 => 1,
30
+			4 => 1,
31
+			6 => 1,
32
+		];
33
+
34
+		return $errors;
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/Generic/Tests/PHP/BacktickOperatorUnitTest.php 1 patch
Indentation   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -15,34 +15,34 @@
 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 [2 => 2];
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
-
45
-    }//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 [2 => 2];
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
+
45
+	}//end getWarningList()
46 46
 
47 47
 
48 48
 }//end class
Please login to merge, or discard this patch.
src/Standards/Generic/Tests/PHP/UpperCaseConstantUnitTest.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
-     * 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
-            10 => 1,
31
-            15 => 1,
32
-            16 => 1,
33
-            23 => 1,
34
-            26 => 1,
35
-            31 => 1,
36
-            32 => 1,
37
-            39 => 1,
38
-            42 => 1,
39
-            47 => 1,
40
-            48 => 1,
41
-            70 => 1,
42
-            71 => 1,
43
-        ];
44
-
45
-    }//end getErrorList()
46
-
47
-
48
-    /**
49
-     * Returns the lines where warnings should occur.
50
-     *
51
-     * The key of the array should represent the line number and the value
52
-     * should represent the number of warnings that should occur on that line.
53
-     *
54
-     * @return array<int, int>
55
-     */
56
-    public function getWarningList()
57
-    {
58
-        return [];
59
-
60
-    }//end getWarningList()
18
+	/**
19
+	 * Returns the lines where errors should occur.
20
+	 *
21
+	 * The key of the array should represent the line number and the value
22
+	 * should represent the number of errors that should occur on that line.
23
+	 *
24
+	 * @return array<int, int>
25
+	 */
26
+	public function getErrorList()
27
+	{
28
+		return [
29
+			7  => 1,
30
+			10 => 1,
31
+			15 => 1,
32
+			16 => 1,
33
+			23 => 1,
34
+			26 => 1,
35
+			31 => 1,
36
+			32 => 1,
37
+			39 => 1,
38
+			42 => 1,
39
+			47 => 1,
40
+			48 => 1,
41
+			70 => 1,
42
+			71 => 1,
43
+		];
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.
php_codesniffer/src/Standards/Generic/Tests/PHP/DiscourageGotoUnitTest.inc 3 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -7,9 +7,9 @@
 block discarded – undo
7 7
 echo 'Bar';
8 8
 
9 9
 for($i=0,$j=50; $i<100; $i++) {
10
-    while($j--) {
11
-        if($j==17) goto end;
12
-    }
10
+	while($j--) {
11
+		if($j==17) goto end;
12
+	}
13 13
 }
14 14
 echo "i = $i";
15 15
 
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -6,9 +6,9 @@
 block discarded – undo
6 6
 a:
7 7
 echo 'Bar';
8 8
 
9
-for($i=0,$j=50; $i<100; $i++) {
10
-    while($j--) {
11
-        if($j==17) goto end;
9
+for ($i = 0, $j = 50; $i < 100; $i++) {
10
+    while ($j--) {
11
+        if ($j == 17) goto end;
12 12
     }
13 13
 }
14 14
 echo "i = $i";
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,9 @@
 block discarded – undo
8 8
 
9 9
 for($i=0,$j=50; $i<100; $i++) {
10 10
     while($j--) {
11
-        if($j==17) goto end;
11
+        if($j==17) {
12
+        	goto end;
13
+        }
12 14
     }
13 15
 }
14 16
 echo "i = $i";
Please login to merge, or discard this patch.
src/Standards/Generic/Tests/WhiteSpace/DisallowSpaceIndentUnitTest.php 3 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
      *
45 45
      * @return array<int, int>
46 46
      */
47
-    public function getErrorList($testFile='DisallowSpaceIndentUnitTest.1.inc')
47
+    public function getErrorList($testFile = 'DisallowSpaceIndentUnitTest.1.inc')
48 48
     {
49 49
         switch ($testFile) {
50 50
         case 'DisallowSpaceIndentUnitTest.1.inc':
Please login to merge, or discard this patch.
Indentation   +101 added lines, -101 removed lines patch added patch discarded remove patch
@@ -15,115 +15,115 @@
 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
-        if ($testFile === 'DisallowSpaceIndentUnitTest.2.inc') {
29
-            return;
30
-        }
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
+		if ($testFile === 'DisallowSpaceIndentUnitTest.2.inc') {
29
+			return;
30
+		}
31 31
 
32
-        $config->tabWidth = 4;
32
+		$config->tabWidth = 4;
33 33
 
34
-    }//end setCliValues()
34
+	}//end setCliValues()
35 35
 
36 36
 
37
-    /**
38
-     * Returns the lines where errors should occur.
39
-     *
40
-     * The key of the array should represent the line number and the value
41
-     * should represent the number of errors that should occur on that line.
42
-     *
43
-     * @param string $testFile The name of the file being tested.
44
-     *
45
-     * @return array<int, int>
46
-     */
47
-    public function getErrorList($testFile='DisallowSpaceIndentUnitTest.1.inc')
48
-    {
49
-        switch ($testFile) {
50
-        case 'DisallowSpaceIndentUnitTest.1.inc':
51
-        case 'DisallowSpaceIndentUnitTest.2.inc':
52
-            return [
53
-                5   => 1,
54
-                9   => 1,
55
-                15  => 1,
56
-                22  => 1,
57
-                24  => 1,
58
-                30  => 1,
59
-                35  => 1,
60
-                50  => 1,
61
-                55  => 1,
62
-                57  => 1,
63
-                58  => 1,
64
-                59  => 1,
65
-                60  => 1,
66
-                65  => 1,
67
-                66  => 1,
68
-                67  => 1,
69
-                68  => 1,
70
-                69  => 1,
71
-                70  => 1,
72
-                73  => 1,
73
-                77  => 1,
74
-                81  => 1,
75
-                104 => 1,
76
-                105 => 1,
77
-                106 => 1,
78
-                107 => 1,
79
-                108 => 1,
80
-                110 => 1,
81
-                111 => 1,
82
-                112 => 1,
83
-                114 => 1,
84
-                115 => 1,
85
-                117 => 1,
86
-                118 => 1,
87
-            ];
88
-            break;
89
-        case 'DisallowSpaceIndentUnitTest.3.inc':
90
-            return [
91
-                2  => 1,
92
-                5  => 1,
93
-                10 => 1,
94
-                12 => 1,
95
-                13 => 1,
96
-                14 => 1,
97
-                15 => 1,
98
-            ];
99
-            break;
100
-        case 'DisallowSpaceIndentUnitTest.js':
101
-            return [3 => 1];
102
-            break;
103
-        case 'DisallowSpaceIndentUnitTest.css':
104
-            return [2 => 1];
105
-            break;
106
-        default:
107
-            return [];
108
-            break;
109
-        }//end switch
37
+	/**
38
+	 * Returns the lines where errors should occur.
39
+	 *
40
+	 * The key of the array should represent the line number and the value
41
+	 * should represent the number of errors that should occur on that line.
42
+	 *
43
+	 * @param string $testFile The name of the file being tested.
44
+	 *
45
+	 * @return array<int, int>
46
+	 */
47
+	public function getErrorList($testFile='DisallowSpaceIndentUnitTest.1.inc')
48
+	{
49
+		switch ($testFile) {
50
+		case 'DisallowSpaceIndentUnitTest.1.inc':
51
+		case 'DisallowSpaceIndentUnitTest.2.inc':
52
+			return [
53
+				5   => 1,
54
+				9   => 1,
55
+				15  => 1,
56
+				22  => 1,
57
+				24  => 1,
58
+				30  => 1,
59
+				35  => 1,
60
+				50  => 1,
61
+				55  => 1,
62
+				57  => 1,
63
+				58  => 1,
64
+				59  => 1,
65
+				60  => 1,
66
+				65  => 1,
67
+				66  => 1,
68
+				67  => 1,
69
+				68  => 1,
70
+				69  => 1,
71
+				70  => 1,
72
+				73  => 1,
73
+				77  => 1,
74
+				81  => 1,
75
+				104 => 1,
76
+				105 => 1,
77
+				106 => 1,
78
+				107 => 1,
79
+				108 => 1,
80
+				110 => 1,
81
+				111 => 1,
82
+				112 => 1,
83
+				114 => 1,
84
+				115 => 1,
85
+				117 => 1,
86
+				118 => 1,
87
+			];
88
+			break;
89
+		case 'DisallowSpaceIndentUnitTest.3.inc':
90
+			return [
91
+				2  => 1,
92
+				5  => 1,
93
+				10 => 1,
94
+				12 => 1,
95
+				13 => 1,
96
+				14 => 1,
97
+				15 => 1,
98
+			];
99
+			break;
100
+		case 'DisallowSpaceIndentUnitTest.js':
101
+			return [3 => 1];
102
+			break;
103
+		case 'DisallowSpaceIndentUnitTest.css':
104
+			return [2 => 1];
105
+			break;
106
+		default:
107
+			return [];
108
+			break;
109
+		}//end switch
110 110
 
111
-    }//end getErrorList()
111
+	}//end getErrorList()
112 112
 
113 113
 
114
-    /**
115
-     * Returns the lines where warnings should occur.
116
-     *
117
-     * The key of the array should represent the line number and the value
118
-     * should represent the number of warnings that should occur on that line.
119
-     *
120
-     * @return array<int, int>
121
-     */
122
-    public function getWarningList()
123
-    {
124
-        return [];
114
+	/**
115
+	 * Returns the lines where warnings should occur.
116
+	 *
117
+	 * The key of the array should represent the line number and the value
118
+	 * should represent the number of warnings that should occur on that line.
119
+	 *
120
+	 * @return array<int, int>
121
+	 */
122
+	public function getWarningList()
123
+	{
124
+		return [];
125 125
 
126
-    }//end getWarningList()
126
+	}//end getWarningList()
127 127
 
128 128
 
129 129
 }//end class
Please login to merge, or discard this patch.
Switch Indentation   +59 added lines, -59 removed lines patch added patch discarded remove patch
@@ -47,65 +47,65 @@
 block discarded – undo
47 47
     public function getErrorList($testFile='DisallowSpaceIndentUnitTest.1.inc')
48 48
     {
49 49
         switch ($testFile) {
50
-        case 'DisallowSpaceIndentUnitTest.1.inc':
51
-        case 'DisallowSpaceIndentUnitTest.2.inc':
52
-            return [
53
-                5   => 1,
54
-                9   => 1,
55
-                15  => 1,
56
-                22  => 1,
57
-                24  => 1,
58
-                30  => 1,
59
-                35  => 1,
60
-                50  => 1,
61
-                55  => 1,
62
-                57  => 1,
63
-                58  => 1,
64
-                59  => 1,
65
-                60  => 1,
66
-                65  => 1,
67
-                66  => 1,
68
-                67  => 1,
69
-                68  => 1,
70
-                69  => 1,
71
-                70  => 1,
72
-                73  => 1,
73
-                77  => 1,
74
-                81  => 1,
75
-                104 => 1,
76
-                105 => 1,
77
-                106 => 1,
78
-                107 => 1,
79
-                108 => 1,
80
-                110 => 1,
81
-                111 => 1,
82
-                112 => 1,
83
-                114 => 1,
84
-                115 => 1,
85
-                117 => 1,
86
-                118 => 1,
87
-            ];
88
-            break;
89
-        case 'DisallowSpaceIndentUnitTest.3.inc':
90
-            return [
91
-                2  => 1,
92
-                5  => 1,
93
-                10 => 1,
94
-                12 => 1,
95
-                13 => 1,
96
-                14 => 1,
97
-                15 => 1,
98
-            ];
99
-            break;
100
-        case 'DisallowSpaceIndentUnitTest.js':
101
-            return [3 => 1];
102
-            break;
103
-        case 'DisallowSpaceIndentUnitTest.css':
104
-            return [2 => 1];
105
-            break;
106
-        default:
107
-            return [];
108
-            break;
50
+        	case 'DisallowSpaceIndentUnitTest.1.inc':
51
+        	case 'DisallowSpaceIndentUnitTest.2.inc':
52
+            	return [
53
+                	5   => 1,
54
+                	9   => 1,
55
+                	15  => 1,
56
+                	22  => 1,
57
+                	24  => 1,
58
+                	30  => 1,
59
+                	35  => 1,
60
+                	50  => 1,
61
+                	55  => 1,
62
+                	57  => 1,
63
+                	58  => 1,
64
+                	59  => 1,
65
+                	60  => 1,
66
+                	65  => 1,
67
+                	66  => 1,
68
+                	67  => 1,
69
+                	68  => 1,
70
+                	69  => 1,
71
+                	70  => 1,
72
+                	73  => 1,
73
+                	77  => 1,
74
+                	81  => 1,
75
+                	104 => 1,
76
+                	105 => 1,
77
+                	106 => 1,
78
+                	107 => 1,
79
+                	108 => 1,
80
+                	110 => 1,
81
+                	111 => 1,
82
+                	112 => 1,
83
+                	114 => 1,
84
+                	115 => 1,
85
+                	117 => 1,
86
+                	118 => 1,
87
+            	];
88
+            	break;
89
+        	case 'DisallowSpaceIndentUnitTest.3.inc':
90
+            	return [
91
+                	2  => 1,
92
+                	5  => 1,
93
+                	10 => 1,
94
+                	12 => 1,
95
+                	13 => 1,
96
+                	14 => 1,
97
+                	15 => 1,
98
+            	];
99
+            	break;
100
+        	case 'DisallowSpaceIndentUnitTest.js':
101
+            	return [3 => 1];
102
+            	break;
103
+        	case 'DisallowSpaceIndentUnitTest.css':
104
+            	return [2 => 1];
105
+            	break;
106
+        	default:
107
+            	return [];
108
+            	break;
109 109
         }//end switch
110 110
 
111 111
     }//end getErrorList()
Please login to merge, or discard this patch.