Passed
Branch master (28c9d6)
by Scott
08:19
created
src/PhpMdLoaderStrict.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -1,8 +1,6 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/DiffLineHandle/ContextLine.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,6 +13,6 @@
 block discarded – undo
13 13
 
14 14
     public function isValid($line)
15 15
     {
16
-         return true;
16
+            return true;
17 17
     }
18 18
 }
Please login to merge, or discard this patch.
src/functions.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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());
Please login to merge, or discard this patch.
src/CoverageCheck.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -141,8 +141,7 @@
 block discarded – undo
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(
Please login to merge, or discard this patch.
src/PhpCsLoader.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/ArgParser.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,8 +33,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
autoload.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.