Completed
Pull Request — master (#26)
by Andreas
02:50
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)
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
         foreach ($items as $item) {
79 79
 
80 80
             $class = $item->getAttribute('class');
81
-            if (! $class) {
81
+            if (!$class) {
82 82
                 $class = explode('::', $item->parentNode->getAttribute('name'))[0];
83 83
             }
84 84
 
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
             switch ($type) {
98 98
                 case 'error':
99 99
                 case 'failure':
100
-                    if (! $element->hasAttributes()) {
100
+                    if (!$element->hasAttributes()) {
101 101
                         var_Dump(get_Class($element));
102 102
                         break;
103 103
                     }
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
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/Writer/Standard.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -40,6 +40,9 @@
 block discarded – undo
40 40
 
41 41
     private $verbosity;
42 42
 
43
+    /**
44
+     * @param integer $verbosity
45
+     */
43 46
     public function __construct(StyleInterface $style, $verbosity = Output::VERBOSITY_NORMAL)
44 47
     {
45 48
         $this->style = $style;
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -51,11 +51,11 @@  discard block
 block discarded – undo
51 51
         $mergeResult->sort();
52 52
 
53 53
         foreach ($mergeResult as $key => $value) {
54
-            if (! isset($value['base'])) {
54
+            if (!isset($value['base'])) {
55 55
                 $this->writeAddedTest($key);
56 56
                 continue;
57 57
             }
58
-            if (! isset($value['current'])) {
58
+            if (!isset($value['current'])) {
59 59
                 $this->writeRemovedTest($key);
60 60
                 continue;
61 61
             }
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
 
113 113
     private function addVerboseInformationToChangedTest($current)
114 114
     {
115
-        if (! $current['message']) {
115
+        if (!$current['message']) {
116 116
             return;
117 117
         }
118 118
 
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
 
130 130
     private function addVeryVerboseInformationToChangedTest($current)
131 131
     {
132
-        if (! $current['info']) {
132
+        if (!$current['info']) {
133 133
             return;
134 134
         }
135 135
 
Please login to merge, or discard this patch.