Passed
Push — master ( abd6e9...1b457a )
by Arne
02:53
created
src/docblock/elements/VarElement.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php declare(strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 namespace TheSeer\phpDox\DocBlock;
3 3
 
4 4
 class VarElement extends GenericElement {
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
         if (count($types) > 1) {
22 22
             $node->setAttribute('type', 'mixed');
23 23
 
24
-            foreach ($types as $oneType) {
24
+            foreach($types as $oneType) {
25 25
                 $this->typeResolver($node, $oneType);
26 26
             }
27 27
 
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
         }
62 62
         $nodeType = $node->appendElementNS(self::XMLNS, 'type');
63 63
         $nodeType->setAttribute('full', $type);
64
-        $nodeType->setAttribute('array', $isArray?'true':'false');
64
+        $nodeType->setAttribute('array', $isArray ? 'true' : 'false');
65 65
 
66 66
         if (\in_array($type, $this->types, true)) {
67 67
             $nodeType->setAttribute('name', $type);
Please login to merge, or discard this patch.
src/docblock/parser/GenericParser.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php declare(strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 namespace TheSeer\phpDox\DocBlock;
3 3
 
4 4
 class GenericParser {
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
     }
30 30
 
31 31
     public function getObject(array $buffer) {
32
-        $this->payload .= ' ' . \implode(' ', \array_map('trim', $buffer));
32
+        $this->payload .= ' '.\implode(' ', \array_map('trim', $buffer));
33 33
         $obj = $this->buildObject('generic', []);
34 34
         $obj->setValue(\trim($this->payload));
35 35
 
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
     protected function lookupType($type) {
50 50
         $types = explode('|', $type);
51 51
 
52
-        foreach ($types as &$oneType) {
52
+        foreach($types as &$oneType) {
53 53
             $isArray = false;
54 54
             if (substr($oneType, -2, 2) === '[]') {
55 55
                 $isArray = true;
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
 
89 89
         // relative to local namespace?
90 90
         if (isset($this->aliasMap['::context'])) {
91
-            return $this->aliasMap['::context'] . '\\' . $type;
91
+            return $this->aliasMap['::context'].'\\'.$type;
92 92
         }
93 93
 
94 94
         // don't know any better ..
Please login to merge, or discard this patch.