Completed
Pull Request — develop (#1492)
by Zack
33:18 queued 12:17
created
src/Standards/Generic/Tests/CodeAnalysis/AssignmentInConditionUnitTest.inc 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
 } else if($a ??= $b) {
61 61
 } elseif( $a = 'abc' && $b = 'def' ) {
62 62
 } elseif(
63
-    $a = 'abc'
63
+	$a = 'abc'
64 64
 	&& $a .= 'def'
65 65
 ) {}
66 66
 
Please login to merge, or discard this patch.
Standards/Generic/Tests/CodeAnalysis/UnconditionalIfStatementUnitTest.php 1 patch
Indentation   +32 added lines, -32 removed lines patch added patch discarded remove patch
@@ -15,38 +15,38 @@
 block discarded – undo
15 15
 {
16 16
 
17 17
 
18
-    /**
19
-     * Returns the lines where errors should occur.
20
-     *
21
-     * The key of the array should represent the line number and the value
22
-     * should represent the number of errors that should occur on that line.
23
-     *
24
-     * @return array<int, int>
25
-     */
26
-    public function getErrorList()
27
-    {
28
-        return [];
29
-
30
-    }//end getErrorList()
31
-
32
-
33
-    /**
34
-     * Returns the lines where warnings should occur.
35
-     *
36
-     * The key of the array should represent the line number and the value
37
-     * should represent the number of warnings that should occur on that line.
38
-     *
39
-     * @return array<int, int>
40
-     */
41
-    public function getWarningList()
42
-    {
43
-        return [
44
-            3 => 1,
45
-            5 => 1,
46
-            7 => 1,
47
-        ];
48
-
49
-    }//end getWarningList()
18
+	/**
19
+	 * Returns the lines where errors should occur.
20
+	 *
21
+	 * The key of the array should represent the line number and the value
22
+	 * should represent the number of errors that should occur on that line.
23
+	 *
24
+	 * @return array<int, int>
25
+	 */
26
+	public function getErrorList()
27
+	{
28
+		return [];
29
+
30
+	}//end getErrorList()
31
+
32
+
33
+	/**
34
+	 * Returns the lines where warnings should occur.
35
+	 *
36
+	 * The key of the array should represent the line number and the value
37
+	 * should represent the number of warnings that should occur on that line.
38
+	 *
39
+	 * @return array<int, int>
40
+	 */
41
+	public function getWarningList()
42
+	{
43
+		return [
44
+			3 => 1,
45
+			5 => 1,
46
+			7 => 1,
47
+		];
48
+
49
+	}//end getWarningList()
50 50
 
51 51
 
52 52
 }//end class
Please login to merge, or discard this patch.
src/Standards/Generic/Tests/Files/EndFileNewlineUnitTest.4.inc 1 patch
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -1,2 +1,1 @@
 block discarded – undo
1 1
 <?php
2
-/** Why me?
3 2
\ No newline at end of file
Please login to merge, or discard this patch.
src/Standards/Generic/Tests/Files/OneInterfacePerFileUnitTest.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/ByteOrderMarkUnitTest.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 [1 => 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 [1 => 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.
php_codesniffer/src/Standards/Generic/Tests/Files/InlineHTMLUnitTest.php 1 patch
Indentation   +41 added lines, -41 removed lines patch added patch discarded remove patch
@@ -15,51 +15,51 @@
 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 'InlineHTMLUnitTest.3.inc':
32
-            return [4 => 1];
33
-            break;
34
-        case 'InlineHTMLUnitTest.4.inc':
35
-            return [1 => 1];
36
-            break;
37
-        case 'InlineHTMLUnitTest.7.inc':
38
-            return [1 => 1];
39
-            break;
40
-        default:
41
-            return [];
42
-            break;
43
-        }//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 'InlineHTMLUnitTest.3.inc':
32
+			return [4 => 1];
33
+			break;
34
+		case 'InlineHTMLUnitTest.4.inc':
35
+			return [1 => 1];
36
+			break;
37
+		case 'InlineHTMLUnitTest.7.inc':
38
+			return [1 => 1];
39
+			break;
40
+		default:
41
+			return [];
42
+			break;
43
+		}//end switch
44 44
 
45
-    }//end getErrorList()
45
+	}//end getErrorList()
46 46
 
47 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
-     * @param string $testFile The name of the file being tested.
55
-     *
56
-     * @return array<int, int>
57
-     */
58
-    public function getWarningList($testFile='')
59
-    {
60
-        return [];
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
+	 * @param string $testFile The name of the file being tested.
55
+	 *
56
+	 * @return array<int, int>
57
+	 */
58
+	public function getWarningList($testFile='')
59
+	{
60
+		return [];
61 61
 
62
-    }//end getWarningList()
62
+	}//end getWarningList()
63 63
 
64 64
 
65 65
 }//end class
Please login to merge, or discard this patch.
src/Standards/Generic/Tests/Files/EndFileNoNewlineUnitTest.6.inc 1 patch
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -1,2 +1,1 @@
 block discarded – undo
1 1
 <?php
2
-/** Why me?
Please login to merge, or discard this patch.
src/Standards/Generic/Tests/Files/EndFileNoNewlineUnitTest.7.inc 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,4 +3,4 @@
 block discarded – undo
3 3
 // Testing that the fixer does not remove superfluous whitespace (not the concern of this sniff).
4 4
 echo 'foo';
5 5
 
6
-         
7 6
\ No newline at end of file
7
+		 
8 8
\ No newline at end of file
Please login to merge, or discard this patch.
php_codesniffer/src/Standards/Generic/Tests/Files/LineLengthUnitTest.php 1 patch
Indentation   +80 added lines, -80 removed lines patch added patch discarded remove patch
@@ -15,93 +15,93 @@
 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
-            ];
91
-            break;
92
-        case 'LineLengthUnitTest.2.inc':
93
-        case 'LineLengthUnitTest.3.inc':
94
-            return [6 => 1];
95
-            break;
96
-        case 'LineLengthUnitTest.4.inc':
97
-            return [10 => 1];
98
-            break;
99
-        default:
100
-            return [];
101
-            break;
102
-        }//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
+			];
91
+			break;
92
+		case 'LineLengthUnitTest.2.inc':
93
+		case 'LineLengthUnitTest.3.inc':
94
+			return [6 => 1];
95
+			break;
96
+		case 'LineLengthUnitTest.4.inc':
97
+			return [10 => 1];
98
+			break;
99
+		default:
100
+			return [];
101
+			break;
102
+		}//end switch
103 103
 
104
-    }//end getWarningList()
104
+	}//end getWarningList()
105 105
 
106 106
 
107 107
 }//end class
Please login to merge, or discard this patch.