Completed
Pull Request — develop (#1492)
by Zack
33:18 queued 12:17
created
src/Standards/Generic/Tests/PHP/ForbiddenFunctionsUnitTest.inc 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -24,27 +24,27 @@
 block discarded – undo
24 24
 
25 25
 trait DelProvider {
26 26
   public function delete() {
27
-    //irrelevant
27
+	//irrelevant
28 28
   }
29 29
 }
30 30
 
31 31
 class LeftSideTest {
32
-    use DelProvider {
33
-        delete as protected unsetter;
34
-    }
32
+	use DelProvider {
33
+		delete as protected unsetter;
34
+	}
35 35
 }
36 36
 
37 37
 class RightSideTest {
38
-    use DelProvider {
39
-        delete as delete;
40
-    }
38
+	use DelProvider {
39
+		delete as delete;
40
+	}
41 41
 }
42 42
 
43 43
 class RightSideVisTest {
44
-    use DelProvider {
45
-        delete as protected delete;
46
-        DelProvider::delete insteadof delete;
47
-    }
44
+	use DelProvider {
45
+		delete as protected delete;
46
+		DelProvider::delete insteadof delete;
47
+	}
48 48
 }
49 49
 
50 50
 namespace Something\sizeof;
Please login to merge, or discard this patch.
src/Standards/Generic/Tests/PHP/DisallowShortOpenTagUnitTest.php 1 patch
Indentation   +83 added lines, -83 removed lines patch added patch discarded remove patch
@@ -15,89 +15,89 @@
 block discarded – undo
15 15
 {
16 16
 
17 17
 
18
-    /**
19
-     * Get a list of all test files to check.
20
-     *
21
-     * @param string $testFileBase The base path that the unit tests files will have.
22
-     *
23
-     * @return string[]
24
-     */
25
-    protected function getTestFiles($testFileBase)
26
-    {
27
-        $testFiles = [$testFileBase.'1.inc'];
28
-
29
-        $option = (bool) ini_get('short_open_tag');
30
-        if ($option === true) {
31
-            $testFiles[] = $testFileBase.'2.inc';
32
-        } else {
33
-            $testFiles[] = $testFileBase.'3.inc';
34
-        }
35
-
36
-        return $testFiles;
37
-
38
-    }//end getTestFiles()
39
-
40
-
41
-    /**
42
-     * Returns the lines where errors should occur.
43
-     *
44
-     * The key of the array should represent the line number and the value
45
-     * should represent the number of errors that should occur on that line.
46
-     *
47
-     * @param string $testFile The name of the file being tested.
48
-     *
49
-     * @return array<int, int>
50
-     */
51
-    public function getErrorList($testFile='')
52
-    {
53
-        switch ($testFile) {
54
-        case 'DisallowShortOpenTagUnitTest.1.inc':
55
-            return [
56
-                5  => 1,
57
-                6  => 1,
58
-                7  => 1,
59
-                10 => 1,
60
-            ];
61
-        case 'DisallowShortOpenTagUnitTest.2.inc':
62
-            return [
63
-                2 => 1,
64
-                3 => 1,
65
-                4 => 1,
66
-                7 => 1,
67
-            ];
68
-        default:
69
-            return [];
70
-        }//end switch
71
-
72
-    }//end getErrorList()
73
-
74
-
75
-    /**
76
-     * Returns the lines where warnings should occur.
77
-     *
78
-     * The key of the array should represent the line number and the value
79
-     * should represent the number of warnings that should occur on that line.
80
-     *
81
-     * @param string $testFile The name of the file being tested.
82
-     *
83
-     * @return array<int, int>
84
-     */
85
-    public function getWarningList($testFile='')
86
-    {
87
-        switch ($testFile) {
88
-        case 'DisallowShortOpenTagUnitTest.1.inc':
89
-            return [];
90
-        case 'DisallowShortOpenTagUnitTest.3.inc':
91
-            return [
92
-                3  => 1,
93
-                6  => 1,
94
-                11 => 1,
95
-            ];
96
-        default:
97
-            return [];
98
-        }//end switch
99
-
100
-    }//end getWarningList()
18
+	/**
19
+	 * Get a list of all test files to check.
20
+	 *
21
+	 * @param string $testFileBase The base path that the unit tests files will have.
22
+	 *
23
+	 * @return string[]
24
+	 */
25
+	protected function getTestFiles($testFileBase)
26
+	{
27
+		$testFiles = [$testFileBase.'1.inc'];
28
+
29
+		$option = (bool) ini_get('short_open_tag');
30
+		if ($option === true) {
31
+			$testFiles[] = $testFileBase.'2.inc';
32
+		} else {
33
+			$testFiles[] = $testFileBase.'3.inc';
34
+		}
35
+
36
+		return $testFiles;
37
+
38
+	}//end getTestFiles()
39
+
40
+
41
+	/**
42
+	 * Returns the lines where errors should occur.
43
+	 *
44
+	 * The key of the array should represent the line number and the value
45
+	 * should represent the number of errors that should occur on that line.
46
+	 *
47
+	 * @param string $testFile The name of the file being tested.
48
+	 *
49
+	 * @return array<int, int>
50
+	 */
51
+	public function getErrorList($testFile='')
52
+	{
53
+		switch ($testFile) {
54
+		case 'DisallowShortOpenTagUnitTest.1.inc':
55
+			return [
56
+				5  => 1,
57
+				6  => 1,
58
+				7  => 1,
59
+				10 => 1,
60
+			];
61
+		case 'DisallowShortOpenTagUnitTest.2.inc':
62
+			return [
63
+				2 => 1,
64
+				3 => 1,
65
+				4 => 1,
66
+				7 => 1,
67
+			];
68
+		default:
69
+			return [];
70
+		}//end switch
71
+
72
+	}//end getErrorList()
73
+
74
+
75
+	/**
76
+	 * Returns the lines where warnings should occur.
77
+	 *
78
+	 * The key of the array should represent the line number and the value
79
+	 * should represent the number of warnings that should occur on that line.
80
+	 *
81
+	 * @param string $testFile The name of the file being tested.
82
+	 *
83
+	 * @return array<int, int>
84
+	 */
85
+	public function getWarningList($testFile='')
86
+	{
87
+		switch ($testFile) {
88
+		case 'DisallowShortOpenTagUnitTest.1.inc':
89
+			return [];
90
+		case 'DisallowShortOpenTagUnitTest.3.inc':
91
+			return [
92
+				3  => 1,
93
+				6  => 1,
94
+				11 => 1,
95
+			];
96
+		default:
97
+			return [];
98
+		}//end switch
99
+
100
+	}//end getWarningList()
101 101
 
102 102
 
103 103
 }//end class
Please login to merge, or discard this patch.
src/Standards/Generic/Tests/PHP/LowerCaseKeywordUnitTest.inc 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -17,15 +17,15 @@
 block discarded – undo
17 17
 const PRIVATE;
18 18
 HttpStatus::CONTINUE;
19 19
 $c = Function ($f) {
20
-    Yield $f;
21
-    Yield From fun();
20
+	Yield $f;
21
+	Yield From fun();
22 22
 };
23 23
 class X extends Y {
24
-    public function m() {
25
-        Parent::m();
26
-    }
27
-    public function n() {
28
-        Self::n();
29
-    }
24
+	public function m() {
25
+		Parent::m();
26
+	}
27
+	public function n() {
28
+		Self::n();
29
+	}
30 30
 }
31 31
 function
Please login to merge, or discard this patch.
php_codesniffer/src/Standards/Generic/Tests/PHP/DiscourageGotoUnitTest.inc 1 patch
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.
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.
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.
php_codesniffer/src/Standards/Generic/Tests/PHP/SyntaxUnitTest.php 1 patch
Indentation   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -16,34 +16,34 @@
 block discarded – undo
16 16
 {
17 17
 
18 18
 
19
-    /**
20
-     * Returns the lines where errors should occur.
21
-     *
22
-     * The key of the array should represent the line number and the value
23
-     * should represent the number of errors that should occur on that line.
24
-     *
25
-     * @return array<int, int>
26
-     */
27
-    public function getErrorList()
28
-    {
29
-        return [3 => 1];
30
-
31
-    }//end getErrorList()
32
-
33
-
34
-    /**
35
-     * Returns the lines where warnings should occur.
36
-     *
37
-     * The key of the array should represent the line number and the value
38
-     * should represent the number of warnings that should occur on that line.
39
-     *
40
-     * @return array<int, int>
41
-     */
42
-    public function getWarningList()
43
-    {
44
-        return [];
45
-
46
-    }//end getWarningList()
19
+	/**
20
+	 * Returns the lines where errors should occur.
21
+	 *
22
+	 * The key of the array should represent the line number and the value
23
+	 * should represent the number of errors that should occur on that line.
24
+	 *
25
+	 * @return array<int, int>
26
+	 */
27
+	public function getErrorList()
28
+	{
29
+		return [3 => 1];
30
+
31
+	}//end getErrorList()
32
+
33
+
34
+	/**
35
+	 * Returns the lines where warnings should occur.
36
+	 *
37
+	 * The key of the array should represent the line number and the value
38
+	 * should represent the number of warnings that should occur on that line.
39
+	 *
40
+	 * @return array<int, int>
41
+	 */
42
+	public function getWarningList()
43
+	{
44
+		return [];
45
+
46
+	}//end getWarningList()
47 47
 
48 48
 
49 49
 }//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.