Completed
Pull Request — develop (#1492)
by Zack
15:57
created
src/Standards/Generic/Tests/PHP/DeprecatedFunctionsUnitTest.php 1 patch
Indentation   +38 added lines, -38 removed lines patch added patch discarded remove patch
@@ -15,44 +15,44 @@
 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
-
30
-        if (PHP_VERSION_ID >= 70200) {
31
-            $errors[3] = 1;
32
-        }
33
-
34
-        if (PHP_VERSION_ID >= 70300) {
35
-            $errors[4] = 1;
36
-        }
37
-
38
-        return $errors;
39
-
40
-    }//end getErrorList()
41
-
42
-
43
-    /**
44
-     * Returns the lines where warnings should occur.
45
-     *
46
-     * The key of the array should represent the line number and the value
47
-     * should represent the number of warnings that should occur on that line.
48
-     *
49
-     * @return array<int, int>
50
-     */
51
-    public function getWarningList()
52
-    {
53
-        return [];
54
-
55
-    }//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
+
30
+		if (PHP_VERSION_ID >= 70200) {
31
+			$errors[3] = 1;
32
+		}
33
+
34
+		if (PHP_VERSION_ID >= 70300) {
35
+			$errors[4] = 1;
36
+		}
37
+
38
+		return $errors;
39
+
40
+	}//end getErrorList()
41
+
42
+
43
+	/**
44
+	 * Returns the lines where warnings should occur.
45
+	 *
46
+	 * The key of the array should represent the line number and the value
47
+	 * should represent the number of warnings that should occur on that line.
48
+	 *
49
+	 * @return array<int, int>
50
+	 */
51
+	public function getWarningList()
52
+	{
53
+		return [];
54
+
55
+	}//end getWarningList()
56 56
 
57 57
 
58 58
 }//end class
Please login to merge, or discard this patch.
src/Standards/Generic/Tests/PHP/NoSilencedErrorsUnitTest.inc 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,6 +4,6 @@
 block discarded – undo
4 4
  */
5 5
 if (@in_array($array, $needle))
6 6
 {
7
-    echo '@';
7
+	echo '@';
8 8
 }
9 9
 ?>
Please login to merge, or discard this patch.
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.