Completed
Pull Request — master (#13)
by Scott
02:08
created
tests/DiffFileLoadOldVersionTest.php 2 patches
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -31,20 +31,20 @@
 block discarded – undo
31 31
                     'changedFile.php' => [3]
32 32
                 ]
33 33
             ],
34
-             'multipleFiles' => [
35
-                 __DIR__ . '/fixtures/multiple.txt',
36
-                 [
37
-                     'changedFile.php' => [3],
38
-                     'dev/null' => [-1],
39
-                     'deletedFile.php' => [1,2,3]
40
-                 ]
41
-             ],
42
-             'removeFile' => [
43
-                 __DIR__ . '/fixtures/removeFile.txt',
44
-                 [
45
-                     'deletedFile.php' => [1,2,3]
46
-                 ]
47
-             ],
34
+                'multipleFiles' => [
35
+                    __DIR__ . '/fixtures/multiple.txt',
36
+                    [
37
+                        'changedFile.php' => [3],
38
+                        'dev/null' => [-1],
39
+                        'deletedFile.php' => [1,2,3]
40
+                    ]
41
+                ],
42
+                'removeFile' => [
43
+                    __DIR__ . '/fixtures/removeFile.txt',
44
+                    [
45
+                        'deletedFile.php' => [1,2,3]
46
+                    ]
47
+                ],
48 48
         ];
49 49
     }
50 50
 
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,13 +36,13 @@
 block discarded – undo
36 36
                  [
37 37
                      'changedFile.php' => [3],
38 38
                      'dev/null' => [-1],
39
-                     'deletedFile.php' => [1,2,3]
39
+                     'deletedFile.php' => [1, 2, 3]
40 40
                  ]
41 41
              ],
42 42
              'removeFile' => [
43 43
                  __DIR__ . '/fixtures/removeFile.txt',
44 44
                  [
45
-                     'deletedFile.php' => [1,2,3]
45
+                     'deletedFile.php' => [1, 2, 3]
46 46
                  ]
47 47
              ],
48 48
         ];
Please login to merge, or discard this patch.
tests/PhpStanTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
             ],
26 26
             'src/PhpCsLoader.php' => [
27 27
                 71 => 'Parameter $message of method ' .
28
-                    'exussum12\CoverageChecker\PhpCsLoader::addInvalidLine() has '.
28
+                    'exussum12\CoverageChecker\PhpCsLoader::addInvalidLine() has ' .
29 29
                     'invalid typehint type exussum12\CoverageChecker\stdClass.',
30 30
             ],
31 31
         ];
Please login to merge, or discard this patch.
src/PhpStanLoader.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@
 block discarded – undo
84 84
         $matches = [];
85 85
         if (!preg_match($this->lineRegex, $line, $matches)) {
86 86
             if (preg_match('#^\s{3,}#', $line)) {
87
-                 return $currentLineNumber;
87
+                    return $currentLineNumber;
88 88
             }
89 89
 
90 90
             return false;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@
 block discarded – undo
100 100
 
101 101
     protected function trimLines()
102 102
     {
103
-        array_walk_recursive($this->invalidLines, function (&$item) {
103
+        array_walk_recursive($this->invalidLines, function(&$item) {
104 104
             if (is_string($item)) {
105 105
                 $item = trim($item);
106 106
             }
Please login to merge, or discard this patch.
src/functions.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -83,9 +83,9 @@  discard block
 block discarded – undo
83 83
     $extra = PHP_EOL;
84 84
 
85 85
     if ($lines['uncoveredLines']) {
86
-        $extra = ', Missed lines '.
86
+        $extra = ', Missed lines ' .
87 87
             $extra .
88
-            generateOutput($lines['uncoveredLines']) .  "\n"
88
+            generateOutput($lines['uncoveredLines']) . "\n"
89 89
         ;
90 90
     }
91 91
 
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
 function addExceptionHandler()
110 110
 {
111 111
     set_exception_handler(
112
-        function (Exception $exception) {
112
+        function(Exception $exception) {
113 113
             // @codeCoverageIgnoreStart
114 114
             error_log($exception->getMessage());
115 115
             exit($exception->getCode());
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
 {
175 175
     $output = "Line $line:\n";
176 176
     if (!empty($message)) {
177
-        foreach ((array)$message as $part) {
177
+        foreach ((array) $message as $part) {
178 178
             $output .= "\t$part\n";
179 179
         }
180 180
     }
Please login to merge, or discard this patch.