Completed
Pull Request — develop (#144)
by Jaap
08:03
created
src/phpDocumentor/Reflection/NodeVisitor/ElementNameResolver.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
     {
79 79
         switch (get_class($node)) {
80 80
             case Namespace_::class:
81
-                $this->resetState('\\' . $node->name . '\\');
81
+                $this->resetState('\\'.$node->name.'\\');
82 82
                 $node->fqsen = new Fqsen($this->buildName());
83 83
                 break;
84 84
             case Class_::class:
@@ -88,15 +88,15 @@  discard block
 block discarded – undo
88 88
                     return NodeTraverser::DONT_TRAVERSE_CHILDREN;
89 89
                 }
90 90
 
91
-                $this->parts->push((string) $node->name);
91
+                $this->parts->push((string)$node->name);
92 92
                 $node->fqsen = new Fqsen($this->buildName());
93 93
                 break;
94 94
             case Function_::class:
95
-                $this->parts->push($node->name . '()');
95
+                $this->parts->push($node->name.'()');
96 96
                 $node->fqsen = new Fqsen($this->buildName());
97 97
                 return NodeTraverser::DONT_TRAVERSE_CHILDREN;
98 98
             case ClassMethod::class:
99
-                $this->parts->push('::' . $node->name . '()');
99
+                $this->parts->push('::'.$node->name.'()');
100 100
                 $node->fqsen = new Fqsen($this->buildName());
101 101
                 return NodeTraverser::DONT_TRAVERSE_CHILDREN;
102 102
             case ClassConst::class:
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
                 $node->fqsen = new Fqsen($this->buildName());
108 108
                 break;
109 109
             case PropertyProperty::class:
110
-                $this->parts->push('::$' . $node->name);
110
+                $this->parts->push('::$'.$node->name);
111 111
                 $node->fqsen = new Fqsen($this->buildName());
112 112
                 break;
113 113
         }
@@ -134,6 +134,6 @@  discard block
 block discarded – undo
134 134
             $name .= $part;
135 135
         }
136 136
 
137
-        return rtrim((string) $name, '\\');
137
+        return rtrim((string)$name, '\\');
138 138
     }
139 139
 }
Please login to merge, or discard this patch.
src/phpDocumentor/Reflection/Types/NamespaceNodeToContext.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -34,17 +34,17 @@  discard block
 block discarded – undo
34 34
     private function aliasesToFullyQualifiedNames(Namespace_ $namespace) : array
35 35
     {
36 36
         // flatten(flatten(map(stuff)))
37
-        return array_merge([], ...array_merge([], ...array_map(static function ($use) : array {
37
+        return array_merge([], ...array_merge([], ...array_map(static function($use) : array {
38 38
             /** @var $use Use_|GroupUse */
39 39
 
40
-            return array_map(static function (UseUse $useUse) use ($use) : array {
40
+            return array_map(static function(UseUse $useUse) use ($use) : array {
41 41
                 if ($use instanceof GroupUse) {
42 42
                     return [
43
-                        (string) $useUse->getAlias() => $use->prefix->toString() . '\\' . $useUse->name->toString(),
43
+                        (string)$useUse->getAlias() => $use->prefix->toString().'\\'.$useUse->name->toString(),
44 44
                     ];
45 45
                 }
46 46
 
47
-                return [(string) $useUse->getAlias() => $useUse->name->toString()];
47
+                return [(string)$useUse->getAlias() => $useUse->name->toString()];
48 48
             }, $use->uses);
49 49
         }, $this->classAlikeUses($namespace))));
50 50
     }
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
     {
57 57
         return array_filter(
58 58
             $namespace->stmts ?? [],
59
-            static function (Node $node) : bool {
59
+            static function(Node $node) : bool {
60 60
                 return (
61 61
                         $node instanceof Use_
62 62
                         || $node instanceof GroupUse
Please login to merge, or discard this patch.
src/phpDocumentor/Reflection/File/LocalFile.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
      */
47 47
     public function getContents() : string
48 48
     {
49
-        return (string) file_get_contents($this->path);
49
+        return (string)file_get_contents($this->path);
50 50
     }
51 51
 
52 52
     /**
Please login to merge, or discard this patch.
src/phpDocumentor/Reflection/Middleware/ChainFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
                 );
39 39
             }
40 40
 
41
-            $lastCallable = static function ($command) use ($middleware, $lastCallable) {
41
+            $lastCallable = static function($command) use ($middleware, $lastCallable) {
42 42
                 return $middleware->execute($command, $lastCallable);
43 43
             };
44 44
         }
Please login to merge, or discard this patch.
src/phpDocumentor/Reflection/Php/File.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
      */
104 104
     public function addNamespace(Fqsen $fqsen) : void
105 105
     {
106
-        $this->namespaces[(string) $fqsen] = $fqsen;
106
+        $this->namespaces[(string)$fqsen] = $fqsen;
107 107
     }
108 108
 
109 109
     /**
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
      */
137 137
     public function addConstant(Constant $constant) : void
138 138
     {
139
-        $this->constants[(string) $constant->getFqsen()] = $constant;
139
+        $this->constants[(string)$constant->getFqsen()] = $constant;
140 140
     }
141 141
 
142 142
     /**
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
      */
155 155
     public function addFunction(Function_ $function) : void
156 156
     {
157
-        $this->functions[(string) $function->getFqsen()] = $function;
157
+        $this->functions[(string)$function->getFqsen()] = $function;
158 158
     }
159 159
 
160 160
     /**
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
      */
173 173
     public function addClass(Class_ $class) : void
174 174
     {
175
-        $this->classes[(string) $class->getFqsen()] = $class;
175
+        $this->classes[(string)$class->getFqsen()] = $class;
176 176
     }
177 177
 
178 178
     /**
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
      */
191 191
     public function addInterface(Interface_ $interface) : void
192 192
     {
193
-        $this->interfaces[(string) $interface->getFqsen()] = $interface;
193
+        $this->interfaces[(string)$interface->getFqsen()] = $interface;
194 194
     }
195 195
 
196 196
     /**
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
      */
209 209
     public function addTrait(Trait_ $trait) : void
210 210
     {
211
-        $this->traits[(string) $trait->getFqsen()] = $trait;
211
+        $this->traits[(string)$trait->getFqsen()] = $trait;
212 212
     }
213 213
 
214 214
     /**
Please login to merge, or discard this patch.
src/phpDocumentor/Reflection/Php/Class_.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
      */
121 121
     public function addInterface(Fqsen $interface) : void
122 122
     {
123
-        $this->implements[(string) $interface] = $interface;
123
+        $this->implements[(string)$interface] = $interface;
124 124
     }
125 125
 
126 126
     /**
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
      */
139 139
     public function addConstant(Constant $constant) : void
140 140
     {
141
-        $this->constants[(string) $constant->getFqsen()] = $constant;
141
+        $this->constants[(string)$constant->getFqsen()] = $constant;
142 142
     }
143 143
 
144 144
     /**
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
      */
157 157
     public function addMethod(Method $method) : void
158 158
     {
159
-        $this->methods[(string) $method->getFqsen()] = $method;
159
+        $this->methods[(string)$method->getFqsen()] = $method;
160 160
     }
161 161
 
162 162
     /**
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
      */
175 175
     public function addProperty(Property $property) : void
176 176
     {
177
-        $this->properties[(string) $property->getFqsen()] = $property;
177
+        $this->properties[(string)$property->getFqsen()] = $property;
178 178
     }
179 179
 
180 180
     /**
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
      */
193 193
     public function addUsedTrait(Fqsen $fqsen) : void
194 194
     {
195
-        $this->usedTraits[(string) $fqsen] = $fqsen;
195
+        $this->usedTraits[(string)$fqsen] = $fqsen;
196 196
     }
197 197
 
198 198
     /**
Please login to merge, or discard this patch.
src/phpDocumentor/Reflection/Php/Trait_.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
      */
73 73
     public function addMethod(Method $method) : void
74 74
     {
75
-        $this->methods[(string) $method->getFqsen()] = $method;
75
+        $this->methods[(string)$method->getFqsen()] = $method;
76 76
     }
77 77
 
78 78
     /**
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
      */
91 91
     public function addProperty(Property $property) : void
92 92
     {
93
-        $this->properties[(string) $property->getFqsen()] = $property;
93
+        $this->properties[(string)$property->getFqsen()] = $property;
94 94
     }
95 95
 
96 96
     /**
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
      */
130 130
     public function addUsedTrait(Fqsen $fqsen) : void
131 131
     {
132
-        $this->usedTraits[(string) $fqsen] = $fqsen;
132
+        $this->usedTraits[(string)$fqsen] = $fqsen;
133 133
     }
134 134
 
135 135
     public function getLocation() : Location
Please login to merge, or discard this patch.
src/phpDocumentor/Reflection/Php/Interface_.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
      */
80 80
     public function addConstant(Constant $constant) : void
81 81
     {
82
-        $this->constants[(string) $constant->getFqsen()] = $constant;
82
+        $this->constants[(string)$constant->getFqsen()] = $constant;
83 83
     }
84 84
 
85 85
     /**
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
      */
98 98
     public function addMethod(Method $method) : void
99 99
     {
100
-        $this->methods[(string) $method->getFqsen()] = $method;
100
+        $this->methods[(string)$method->getFqsen()] = $method;
101 101
     }
102 102
 
103 103
     /**
Please login to merge, or discard this patch.
src/phpDocumentor/Reflection/Php/Factory/PropertyIterator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@
 block discarded – undo
99 99
      */
100 100
     public function getName() : string
101 101
     {
102
-        return (string) $this->property->props[$this->index]->name;
102
+        return (string)$this->property->props[$this->index]->name;
103 103
     }
104 104
 
105 105
     /**
Please login to merge, or discard this patch.