Completed
Branch RELEASE (416965)
by
unknown
11:06 queued 12s
created
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.
src/Standards/Generic/Tests/Files/EndFileNewlineUnitTest.php 3 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
      *
26 26
      * @return array<int, int>
27 27
      */
28
-    public function getErrorList($testFile='')
28
+    public function getErrorList($testFile = '')
29 29
     {
30 30
         switch ($testFile) {
31 31
         case 'EndFileNewlineUnitTest.3.inc':
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
      *
56 56
      * @return array<int, int>
57 57
      */
58
-    public function getWarningList($testFile='')
58
+    public function getWarningList($testFile = '')
59 59
     {
60 60
         return [];
61 61
 
Please login to merge, or discard this 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
-     * @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 'EndFileNewlineUnitTest.3.inc':
32
-        case 'EndFileNewlineUnitTest.3.js':
33
-        case 'EndFileNewlineUnitTest.3.css':
34
-        case 'EndFileNewlineUnitTest.4.inc':
35
-            return [2 => 1];
36
-        case 'EndFileNewlineUnitTest.6.inc':
37
-        case 'EndFileNewlineUnitTest.7.inc':
38
-            return [1 => 1];
39
-        default:
40
-            return [];
41
-        }//end switch
42
-
43
-    }//end getErrorList()
44
-
45
-
46
-    /**
47
-     * Returns the lines where warnings should occur.
48
-     *
49
-     * The key of the array should represent the line number and the value
50
-     * should represent the number of warnings that should occur on that line.
51
-     *
52
-     * @param string $testFile The name of the file being tested.
53
-     *
54
-     * @return array<int, int>
55
-     */
56
-    public function getWarningList($testFile='')
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
+	 * @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 'EndFileNewlineUnitTest.3.inc':
32
+		case 'EndFileNewlineUnitTest.3.js':
33
+		case 'EndFileNewlineUnitTest.3.css':
34
+		case 'EndFileNewlineUnitTest.4.inc':
35
+			return [2 => 1];
36
+		case 'EndFileNewlineUnitTest.6.inc':
37
+		case 'EndFileNewlineUnitTest.7.inc':
38
+			return [1 => 1];
39
+		default:
40
+			return [];
41
+		}//end switch
42
+
43
+	}//end getErrorList()
44
+
45
+
46
+	/**
47
+	 * Returns the lines where warnings should occur.
48
+	 *
49
+	 * The key of the array should represent the line number and the value
50
+	 * should represent the number of warnings that should occur on that line.
51
+	 *
52
+	 * @param string $testFile The name of the file being tested.
53
+	 *
54
+	 * @return array<int, int>
55
+	 */
56
+	public function getWarningList($testFile='')
57
+	{
58
+		return [];
59
+
60
+	}//end getWarningList()
61 61
 
62 62
 
63 63
 }//end class
Please login to merge, or discard this patch.
Switch Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -28,16 +28,16 @@
 block discarded – undo
28 28
     public function getErrorList($testFile='')
29 29
     {
30 30
         switch ($testFile) {
31
-        case 'EndFileNewlineUnitTest.3.inc':
32
-        case 'EndFileNewlineUnitTest.3.js':
33
-        case 'EndFileNewlineUnitTest.3.css':
34
-        case 'EndFileNewlineUnitTest.4.inc':
35
-            return [2 => 1];
36
-        case 'EndFileNewlineUnitTest.6.inc':
37
-        case 'EndFileNewlineUnitTest.7.inc':
38
-            return [1 => 1];
39
-        default:
40
-            return [];
31
+        	case 'EndFileNewlineUnitTest.3.inc':
32
+        	case 'EndFileNewlineUnitTest.3.js':
33
+        	case 'EndFileNewlineUnitTest.3.css':
34
+        	case 'EndFileNewlineUnitTest.4.inc':
35
+            	return [2 => 1];
36
+        	case 'EndFileNewlineUnitTest.6.inc':
37
+        	case 'EndFileNewlineUnitTest.7.inc':
38
+            	return [1 => 1];
39
+        	default:
40
+            	return [];
41 41
         }//end switch
42 42
 
43 43
     }//end getErrorList()
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.
src/Standards/Generic/Tests/Files/EndFileNoNewlineUnitTest.php 3 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
      *
26 26
      * @return array<int, int>
27 27
      */
28
-    public function getErrorList($testFile='')
28
+    public function getErrorList($testFile = '')
29 29
     {
30 30
         switch ($testFile) {
31 31
         case 'EndFileNoNewlineUnitTest.1.inc':
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
      *
66 66
      * @return array<int, int>
67 67
      */
68
-    public function getWarningList($testFile='')
68
+    public function getWarningList($testFile = '')
69 69
     {
70 70
         return [];
71 71
 
Please login to merge, or discard this patch.
Indentation   +43 added lines, -43 removed lines patch added patch discarded remove patch
@@ -15,53 +15,53 @@
 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 'EndFileNoNewlineUnitTest.1.inc':
32
-        case 'EndFileNoNewlineUnitTest.1.css':
33
-        case 'EndFileNoNewlineUnitTest.1.js':
34
-        case 'EndFileNoNewlineUnitTest.2.inc':
35
-            return [3 => 1];
36
-        case 'EndFileNoNewlineUnitTest.2.css':
37
-        case 'EndFileNoNewlineUnitTest.2.js':
38
-        case 'EndFileNoNewlineUnitTest.6.inc':
39
-            return [2 => 1];
40
-        case 'EndFileNoNewlineUnitTest.8.inc':
41
-        case 'EndFileNoNewlineUnitTest.9.inc':
42
-            return [1 => 1];
43
-        default:
44
-            return [];
45
-        }//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 'EndFileNoNewlineUnitTest.1.inc':
32
+		case 'EndFileNoNewlineUnitTest.1.css':
33
+		case 'EndFileNoNewlineUnitTest.1.js':
34
+		case 'EndFileNoNewlineUnitTest.2.inc':
35
+			return [3 => 1];
36
+		case 'EndFileNoNewlineUnitTest.2.css':
37
+		case 'EndFileNoNewlineUnitTest.2.js':
38
+		case 'EndFileNoNewlineUnitTest.6.inc':
39
+			return [2 => 1];
40
+		case 'EndFileNoNewlineUnitTest.8.inc':
41
+		case 'EndFileNoNewlineUnitTest.9.inc':
42
+			return [1 => 1];
43
+		default:
44
+			return [];
45
+		}//end switch
46 46
 
47
-    }//end getErrorList()
47
+	}//end getErrorList()
48 48
 
49 49
 
50
-    /**
51
-     * Returns the lines where warnings should occur.
52
-     *
53
-     * The key of the array should represent the line number and the value
54
-     * should represent the number of warnings that should occur on that line.
55
-     *
56
-     * @param string $testFile The name of the file being tested.
57
-     *
58
-     * @return array<int, int>
59
-     */
60
-    public function getWarningList($testFile='')
61
-    {
62
-        return [];
50
+	/**
51
+	 * Returns the lines where warnings should occur.
52
+	 *
53
+	 * The key of the array should represent the line number and the value
54
+	 * should represent the number of warnings that should occur on that line.
55
+	 *
56
+	 * @param string $testFile The name of the file being tested.
57
+	 *
58
+	 * @return array<int, int>
59
+	 */
60
+	public function getWarningList($testFile='')
61
+	{
62
+		return [];
63 63
 
64
-    }//end getWarningList()
64
+	}//end getWarningList()
65 65
 
66 66
 
67 67
 }//end class
Please login to merge, or discard this patch.
Switch Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -28,20 +28,20 @@
 block discarded – undo
28 28
     public function getErrorList($testFile='')
29 29
     {
30 30
         switch ($testFile) {
31
-        case 'EndFileNoNewlineUnitTest.1.inc':
32
-        case 'EndFileNoNewlineUnitTest.1.css':
33
-        case 'EndFileNoNewlineUnitTest.1.js':
34
-        case 'EndFileNoNewlineUnitTest.2.inc':
35
-            return [3 => 1];
36
-        case 'EndFileNoNewlineUnitTest.2.css':
37
-        case 'EndFileNoNewlineUnitTest.2.js':
38
-        case 'EndFileNoNewlineUnitTest.6.inc':
39
-            return [2 => 1];
40
-        case 'EndFileNoNewlineUnitTest.8.inc':
41
-        case 'EndFileNoNewlineUnitTest.9.inc':
42
-            return [1 => 1];
43
-        default:
44
-            return [];
31
+        	case 'EndFileNoNewlineUnitTest.1.inc':
32
+        	case 'EndFileNoNewlineUnitTest.1.css':
33
+        	case 'EndFileNoNewlineUnitTest.1.js':
34
+        	case 'EndFileNoNewlineUnitTest.2.inc':
35
+            	return [3 => 1];
36
+        	case 'EndFileNoNewlineUnitTest.2.css':
37
+        	case 'EndFileNoNewlineUnitTest.2.js':
38
+        	case 'EndFileNoNewlineUnitTest.6.inc':
39
+            	return [2 => 1];
40
+        	case 'EndFileNoNewlineUnitTest.8.inc':
41
+        	case 'EndFileNoNewlineUnitTest.9.inc':
42
+            	return [1 => 1];
43
+        	default:
44
+            	return [];
45 45
         }//end switch
46 46
 
47 47
     }//end getErrorList()
Please login to merge, or discard this patch.
php_codesniffer/src/Standards/Generic/Tests/Files/InlineHTMLUnitTest.php 3 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
      *
26 26
      * @return array<int, int>
27 27
      */
28
-    public function getErrorList($testFile='')
28
+    public function getErrorList($testFile = '')
29 29
     {
30 30
         switch ($testFile) {
31 31
         case 'InlineHTMLUnitTest.3.inc':
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
      *
53 53
      * @return array<int, int>
54 54
      */
55
-    public function getWarningList($testFile='')
55
+    public function getWarningList($testFile = '')
56 56
     {
57 57
         return [];
58 58
 
Please login to merge, or discard this 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.
Switch Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -28,18 +28,18 @@
 block discarded – undo
28 28
     public function getErrorList($testFile='')
29 29
     {
30 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;
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 43
         }//end switch
44 44
 
45 45
     }//end getErrorList()
Please login to merge, or discard this patch.
src/Standards/Generic/Tests/Functions/CallTimePassByReferenceUnitTest.php 1 patch
Indentation   +35 added lines, -35 removed lines patch added patch discarded remove patch
@@ -15,41 +15,41 @@
 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
-            9  => 1,
30
-            12 => 1,
31
-            15 => 1,
32
-            18 => 2,
33
-            23 => 1,
34
-            30 => 1,
35
-        ];
36
-
37
-    }//end getErrorList()
38
-
39
-
40
-    /**
41
-     * Returns the lines where warnings should occur.
42
-     *
43
-     * The key of the array should represent the line number and the value
44
-     * should represent the number of warnings that should occur on that line.
45
-     *
46
-     * @return array<int, int>
47
-     */
48
-    public function getWarningList()
49
-    {
50
-        return [];
51
-
52
-    }//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
+			9  => 1,
30
+			12 => 1,
31
+			15 => 1,
32
+			18 => 2,
33
+			23 => 1,
34
+			30 => 1,
35
+		];
36
+
37
+	}//end getErrorList()
38
+
39
+
40
+	/**
41
+	 * Returns the lines where warnings should occur.
42
+	 *
43
+	 * The key of the array should represent the line number and the value
44
+	 * should represent the number of warnings that should occur on that line.
45
+	 *
46
+	 * @return array<int, int>
47
+	 */
48
+	public function getWarningList()
49
+	{
50
+		return [];
51
+
52
+	}//end getWarningList()
53 53
 
54 54
 
55 55
 }//end class
Please login to merge, or discard this patch.
src/Standards/Generic/Tests/Functions/CallTimePassByReferenceUnitTest.inc 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 class myclass extends yourclass implements someint {
3
-    function myfunc($var) {
4
-        echo $var;
5
-    }
3
+	function myfunc($var) {
4
+		echo $var;
5
+	}
6 6
 }
7 7
 
8 8
 $myvar = true;
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
 myclass::myfunc(&$myvar);
16 16
 myclass::myfunc($myvar);
17 17
 
18
-while(testfunc($var1, &$var2, $var3, &$var4) === false) {
18
+while (testfunc($var1, &$var2, $var3, &$var4) === false) {
19 19
 }
20 20
 
21 21
 sprintf("0%o", 0777 & $p);
@@ -25,15 +25,15 @@  discard block
 block discarded – undo
25 25
 if (is_array($foo = &$this->bar())) {
26 26
 }
27 27
 
28
-Hooks::run( 'SecondaryDataUpdates', [ $title, $old, $recursive, $parserOutput, &$updates ] );
28
+Hooks::run('SecondaryDataUpdates', [$title, $old, $recursive, $parserOutput, &$updates]);
29 29
 
30 30
 $foo = Bar(&$fooBar);
31 31
 
32
-myfunc($myvar&$myvar);
33
-myfunc($myvar[0]&$myvar);
32
+myfunc($myvar & $myvar);
33
+myfunc($myvar[0] & $myvar);
34 34
 
35
-myfunc(myclass::MY_CONST&$myvar);
36
-myfunc(MY_CONST&$myvar);
35
+myfunc(myclass::MY_CONST & $myvar);
36
+myfunc(MY_CONST & $myvar);
37 37
 
38
-efg( true == &$b );
39
-efg( true === &$b );
38
+efg(true == &$b);
39
+efg(true === &$b);
Please login to merge, or discard this patch.
php_codesniffer/src/Standards/Generic/Tests/Commenting/TodoUnitTest.php 2 patches
Indentation   +41 added lines, -41 removed lines patch added patch discarded remove patch
@@ -15,47 +15,47 @@
 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='TodoUnitTest.inc')
29
-    {
30
-        return [];
31
-
32
-    }//end getErrorList()
33
-
34
-
35
-    /**
36
-     * Returns the lines where warnings should occur.
37
-     *
38
-     * The key of the array should represent the line number and the value
39
-     * should represent the number of warnings that should occur on that line.
40
-     *
41
-     * @param string $testFile The name of the file being tested.
42
-     *
43
-     * @return array<int, int>
44
-     */
45
-    public function getWarningList($testFile='TodoUnitTest.inc')
46
-    {
47
-        return [
48
-            3  => 1,
49
-            4  => 1,
50
-            7  => 1,
51
-            10 => 1,
52
-            13 => 1,
53
-            16 => 1,
54
-            18 => 1,
55
-            21 => 1,
56
-        ];
57
-
58
-    }//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
+	 * @param string $testFile The name of the file being tested.
25
+	 *
26
+	 * @return array<int, int>
27
+	 */
28
+	public function getErrorList($testFile='TodoUnitTest.inc')
29
+	{
30
+		return [];
31
+
32
+	}//end getErrorList()
33
+
34
+
35
+	/**
36
+	 * Returns the lines where warnings should occur.
37
+	 *
38
+	 * The key of the array should represent the line number and the value
39
+	 * should represent the number of warnings that should occur on that line.
40
+	 *
41
+	 * @param string $testFile The name of the file being tested.
42
+	 *
43
+	 * @return array<int, int>
44
+	 */
45
+	public function getWarningList($testFile='TodoUnitTest.inc')
46
+	{
47
+		return [
48
+			3  => 1,
49
+			4  => 1,
50
+			7  => 1,
51
+			10 => 1,
52
+			13 => 1,
53
+			16 => 1,
54
+			18 => 1,
55
+			21 => 1,
56
+		];
57
+
58
+	}//end getWarningList()
59 59
 
60 60
 
61 61
 }//end class
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
      *
26 26
      * @return array<int, int>
27 27
      */
28
-    public function getErrorList($testFile='TodoUnitTest.inc')
28
+    public function getErrorList($testFile = 'TodoUnitTest.inc')
29 29
     {
30 30
         return [];
31 31
 
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
      *
43 43
      * @return array<int, int>
44 44
      */
45
-    public function getWarningList($testFile='TodoUnitTest.inc')
45
+    public function getWarningList($testFile = 'TodoUnitTest.inc')
46 46
     {
47 47
         return [
48 48
             3  => 1,
Please login to merge, or discard this patch.