Completed
Push — master ( 436419...a05edf )
by Andreas
66:48 queued 57:53
created
src/JUnitParser.php 1 patch
Spacing   +5 added lines, -5 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)
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
         $items = $xpath->query('//testcase');
78 78
         foreach ($items as $item) {
79 79
             $class = $item->getAttribute('class');
80
-            if (! $class) {
80
+            if (!$class) {
81 81
                 $class = explode('::', $item->parentNode->getAttribute('name'))[0];
82 82
             }
83 83
 
@@ -98,14 +98,14 @@  discard block
 block discarded – undo
98 98
             switch ($type) {
99 99
                 case 'error':
100 100
                 case 'failure':
101
-                    if (! $element->hasAttributes()) {
101
+                    if (!$element->hasAttributes()) {
102 102
                         break;
103 103
                     }
104 104
                     $message = $element->attributes->getNamedItem('message');
105 105
                     if ($message instanceof \DOMAttr) {
106 106
                         $message = $message->value;
107 107
                     }
108
-                    $ftype   = $element->attributes->getNamedItem('type');
108
+                    $ftype = $element->attributes->getNamedItem('type');
109 109
                     if ($ftype instanceof \DOMAttr) {
110 110
                         $ftype = $ftype->value;
111 111
                     }
Please login to merge, or discard this patch.
src/Command/DiffCommand.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -41,12 +41,12 @@
 block discarded – undo
41 41
     protected function configure()
42 42
     {
43 43
         $this->setName('diff')
44
-             ->setDescription('Shows a diff between two JUnit log files')
45
-             ->setDefinition([
46
-                 new InputOption('input1', '1', InputOption::VALUE_REQUIRED, 'First input file'),
47
-                 new InputOption('input2', '2', InputOption::VALUE_REQUIRED, 'Second input file')
48
-             ])
49
-             ->setHelp('');
44
+                ->setDescription('Shows a diff between two JUnit log files')
45
+                ->setDefinition([
46
+                    new InputOption('input1', '1', InputOption::VALUE_REQUIRED, 'First input file'),
47
+                    new InputOption('input2', '2', InputOption::VALUE_REQUIRED, 'Second input file')
48
+                ])
49
+                ->setHelp('');
50 50
     }
51 51
 
52 52
 
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -78,11 +78,11 @@
 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
             }
Please login to merge, or discard this patch.
src/Command/CompareCommand.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -49,12 +49,12 @@
 block discarded – undo
49 49
     protected function configure()
50 50
     {
51 51
         $this->setName('compare')
52
-             ->setDescription('Compares two JUnit log files')
53
-             ->setDefinition([
54
-                 new InputArgument('base', InputArgument::REQUIRED, 'Base file for the comparison'),
55
-                 new InputArgument('current', InputArgument::REQUIRED, 'Current file to compare against the base file')
56
-             ])
57
-             ->setHelp('');
52
+                ->setDescription('Compares two JUnit log files')
53
+                ->setDefinition([
54
+                    new InputArgument('base', InputArgument::REQUIRED, 'Base file for the comparison'),
55
+                    new InputArgument('current', InputArgument::REQUIRED, 'Current file to compare against the base file')
56
+                ])
57
+                ->setHelp('');
58 58
     }
59 59
 
60 60
 
Please login to merge, or discard this patch.