@@ -1,8 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | namespace exussum12\CoverageChecker; |
3 | 3 | |
4 | -use XMLReader; |
|
5 | - |
|
6 | 4 | /** |
7 | 5 | * Class PhpMdLoaderStrict |
8 | 6 | * Used for parsing phpmd xml output |
@@ -13,6 +13,6 @@ |
||
13 | 13 | |
14 | 14 | public function isValid($line) |
15 | 15 | { |
16 | - return true; |
|
16 | + return true; |
|
17 | 17 | } |
18 | 18 | } |
@@ -17,7 +17,7 @@ |
||
17 | 17 | $newTo |
18 | 18 | ); |
19 | 19 | |
20 | - $this->diffFileState->setCurrentPosition($newFrom -1); |
|
20 | + $this->diffFileState->setCurrentPosition($newFrom - 1); |
|
21 | 21 | } |
22 | 22 | |
23 | 23 | public function isValid($line) |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | $extra = PHP_EOL; |
83 | 83 | |
84 | 84 | if ($lines['uncoveredLines']) { |
85 | - $extra = ', Missed lines '. |
|
85 | + $extra = ', Missed lines ' . |
|
86 | 86 | $extra . |
87 | 87 | print_r($lines['uncoveredLines'], true) |
88 | 88 | ; |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | function addExceptionHandler() |
109 | 109 | { |
110 | 110 | set_exception_handler( |
111 | - function (Exception $exception) { |
|
111 | + function(Exception $exception) { |
|
112 | 112 | // @codeCoverageIgnoreStart |
113 | 113 | error_log(get_class($exception)); |
114 | 114 | error_log($exception->getMessage()); |
@@ -141,8 +141,7 @@ |
||
141 | 141 | } |
142 | 142 | |
143 | 143 | $message = isset($this->cache->coveredLines[$matchedFile][$line]) |
144 | - ? $this->cache->coveredLines[$matchedFile][$line] : |
|
145 | - "No cover" |
|
144 | + ? $this->cache->coveredLines[$matchedFile][$line] : "No cover" |
|
146 | 145 | ; |
147 | 146 | |
148 | 147 | $this->addUnCoveredLine( |
@@ -64,7 +64,7 @@ |
||
64 | 64 | protected function addInvalidLine($file, $line, $error) |
65 | 65 | { |
66 | 66 | if (!isset($this->invalidLines[$file][$line])) { |
67 | - $this->invalidLines[$file][$line] = []; |
|
67 | + $this->invalidLines[$file][$line] = []; |
|
68 | 68 | } |
69 | 69 | $this->invalidLines[$file][$line][] = $error; |
70 | 70 | } |
@@ -33,8 +33,7 @@ |
||
33 | 33 | protected function letterArg($name) |
34 | 34 | { |
35 | 35 | $name = strlen($name) == 1 ? |
36 | - "-" . $name : |
|
37 | - "--" . $name; |
|
36 | + "-" . $name : "--" . $name; |
|
38 | 37 | foreach ($this->args as $arg) { |
39 | 38 | if ($arg{0} == '-' && $name == $arg) { |
40 | 39 | return true; |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -spl_autoload_register(function ($className) { |
|
3 | +spl_autoload_register(function($className) { |
|
4 | 4 | $classPrefix = 'exussum12\CoverageChecker'; |
5 | 5 | if (strpos($className, $classPrefix) === 0) { |
6 | 6 | $classPrefix = str_replace("\\", "\\\\", $classPrefix); |