Completed
Push — master ( 655866...6dac67 )
by Andreas
04:32 queued 01:54
created
src/JUnitParser.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
     public function getLastLibXmlError()
40 40
     {
41 41
         $error = libxml_get_last_error();
42
-        if (! $error instanceof \LibXMLError) {
42
+        if (!$error instanceof \LibXMLError) {
43 43
             return false;
44 44
         }
45 45
 
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
      */
55 55
     public function parseFile($filename)
56 56
     {
57
-        if (! is_readable($filename)) {
57
+        if (!is_readable($filename)) {
58 58
             throw new \UnexpectedValueException(sprintf(
59 59
                 'File %s is not readable',
60 60
                 basename($filename)
Please login to merge, or discard this patch.
src/Command/DiffCommand.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
         try {
63 63
             $file1  = $input->getOption('input1');
64 64
             $array1 = $parser->parseFile($file1);
65
-        } catch(\Exception $e) {
65
+        } catch (\Exception $e) {
66 66
             $output->writeln('<bg=red;fg=white>  ' . $e->getMessage() . '  </>');
67 67
             return;
68 68
         }
@@ -78,11 +78,11 @@  discard block
 block discarded – undo
78 78
         $array = $this->merge($array1, $array2);
79 79
 
80 80
         foreach ($array as $key => $value) {
81
-            if (! isset($value['base'])) {
81
+            if (!isset($value['base'])) {
82 82
                 $output->writeln('<bg=green;fg=black>+</> ' . $key);
83 83
                 continue;
84 84
             }
85
-            if (! isset($value['current'])) {
85
+            if (!isset($value['current'])) {
86 86
                 $output->writeln('<bg=red;fg=yellow>-</> ' . $key);
87 87
                 continue;
88 88
             }
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
             $merged[$key]['base'] = $value;
134 134
         }
135 135
 
136
-        foreach($array2 as $key => $value) {
136
+        foreach ($array2 as $key => $value) {
137 137
             $merged[$key]['current'] = $value;
138 138
         }
139 139
 
Please login to merge, or discard this patch.