@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace phpDocumentor\Reflection\Php\Factory; |
| 5 | 5 | |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | /** |
| 5 | 5 | * This file is part of phpDocumentor. |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | */ |
| 95 | 95 | public function addNamespace(Namespace_ $namespace): void |
| 96 | 96 | { |
| 97 | - $this->namespaces[(string) $namespace->getFqsen()] = $namespace; |
|
| 97 | + $this->namespaces[(string)$namespace->getFqsen()] = $namespace; |
|
| 98 | 98 | } |
| 99 | 99 | |
| 100 | 100 | /** |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | /** |
| 5 | 5 | * This file is part of phpDocumentor. |
@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | */ |
| 82 | 82 | public function addMethod(Method $method): void |
| 83 | 83 | { |
| 84 | - $this->methods[(string) $method->getFqsen()] = $method; |
|
| 84 | + $this->methods[(string)$method->getFqsen()] = $method; |
|
| 85 | 85 | } |
| 86 | 86 | |
| 87 | 87 | /** |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | */ |
| 100 | 100 | public function addProperty(Property $property): void |
| 101 | 101 | { |
| 102 | - $this->properties[(string) $property->getFqsen()] = $property; |
|
| 102 | + $this->properties[(string)$property->getFqsen()] = $property; |
|
| 103 | 103 | } |
| 104 | 104 | |
| 105 | 105 | /** |
@@ -138,7 +138,7 @@ discard block |
||
| 138 | 138 | */ |
| 139 | 139 | public function addUsedTrait(Fqsen $fqsen): void |
| 140 | 140 | { |
| 141 | - $this->usedTraits[(string) $fqsen] = $fqsen; |
|
| 141 | + $this->usedTraits[(string)$fqsen] = $fqsen; |
|
| 142 | 142 | } |
| 143 | 143 | |
| 144 | 144 | public function getLocation(): Location |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | /** |
| 5 | 5 | * This file is part of phpDocumentor. |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | */ |
| 68 | 68 | public function addClass(Fqsen $class): void |
| 69 | 69 | { |
| 70 | - $this->classes[(string) $class] = $class; |
|
| 70 | + $this->classes[(string)$class] = $class; |
|
| 71 | 71 | } |
| 72 | 72 | |
| 73 | 73 | /** |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | */ |
| 88 | 88 | public function addConstant(Fqsen $contant): void |
| 89 | 89 | { |
| 90 | - $this->constants[(string) $contant] = $contant; |
|
| 90 | + $this->constants[(string)$contant] = $contant; |
|
| 91 | 91 | } |
| 92 | 92 | |
| 93 | 93 | /** |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | */ |
| 106 | 106 | public function addFunction(Fqsen $function): void |
| 107 | 107 | { |
| 108 | - $this->functions[(string) $function] = $function; |
|
| 108 | + $this->functions[(string)$function] = $function; |
|
| 109 | 109 | } |
| 110 | 110 | |
| 111 | 111 | /** |
@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | */ |
| 124 | 124 | public function addInterface(Fqsen $interface): void |
| 125 | 125 | { |
| 126 | - $this->interfaces[(string) $interface] = $interface; |
|
| 126 | + $this->interfaces[(string)$interface] = $interface; |
|
| 127 | 127 | } |
| 128 | 128 | |
| 129 | 129 | /** |
@@ -141,7 +141,7 @@ discard block |
||
| 141 | 141 | */ |
| 142 | 142 | public function addTrait(Fqsen $trait): void |
| 143 | 143 | { |
| 144 | - $this->traits[(string) $trait] = $trait; |
|
| 144 | + $this->traits[(string)$trait] = $trait; |
|
| 145 | 145 | } |
| 146 | 146 | |
| 147 | 147 | /** |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | /** |
| 5 | 5 | * This file is part of phpDocumentor. |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | */ |
| 87 | 87 | public function addConstant(Constant $constant): void |
| 88 | 88 | { |
| 89 | - $this->constants[(string) $constant->getFqsen()] = $constant; |
|
| 89 | + $this->constants[(string)$constant->getFqsen()] = $constant; |
|
| 90 | 90 | } |
| 91 | 91 | |
| 92 | 92 | /** |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | */ |
| 105 | 105 | public function addMethod(Method $method): void |
| 106 | 106 | { |
| 107 | - $this->methods[(string) $method->getFqsen()] = $method; |
|
| 107 | + $this->methods[(string)$method->getFqsen()] = $method; |
|
| 108 | 108 | } |
| 109 | 109 | |
| 110 | 110 | /** |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | /** |
| 5 | 5 | * This file is part of phpDocumentor. |
@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | */ |
| 108 | 108 | public function addNamespace(Fqsen $fqsen): void |
| 109 | 109 | { |
| 110 | - $this->namespaces[(string) $fqsen] = $fqsen; |
|
| 110 | + $this->namespaces[(string)$fqsen] = $fqsen; |
|
| 111 | 111 | } |
| 112 | 112 | |
| 113 | 113 | /** |
@@ -140,7 +140,7 @@ discard block |
||
| 140 | 140 | */ |
| 141 | 141 | public function addConstant(Constant $constant): void |
| 142 | 142 | { |
| 143 | - $this->constants[(string) $constant->getFqsen()] = $constant; |
|
| 143 | + $this->constants[(string)$constant->getFqsen()] = $constant; |
|
| 144 | 144 | } |
| 145 | 145 | |
| 146 | 146 | /** |
@@ -158,7 +158,7 @@ discard block |
||
| 158 | 158 | */ |
| 159 | 159 | public function addFunction(Function_ $function): void |
| 160 | 160 | { |
| 161 | - $this->functions[(string) $function->getFqsen()] = $function; |
|
| 161 | + $this->functions[(string)$function->getFqsen()] = $function; |
|
| 162 | 162 | } |
| 163 | 163 | |
| 164 | 164 | /** |
@@ -176,7 +176,7 @@ discard block |
||
| 176 | 176 | */ |
| 177 | 177 | public function addClass(Class_ $class): void |
| 178 | 178 | { |
| 179 | - $this->classes[(string) $class->getFqsen()] = $class; |
|
| 179 | + $this->classes[(string)$class->getFqsen()] = $class; |
|
| 180 | 180 | } |
| 181 | 181 | |
| 182 | 182 | /** |
@@ -194,7 +194,7 @@ discard block |
||
| 194 | 194 | */ |
| 195 | 195 | public function addInterface(Interface_ $interface): void |
| 196 | 196 | { |
| 197 | - $this->interfaces[(string) $interface->getFqsen()] = $interface; |
|
| 197 | + $this->interfaces[(string)$interface->getFqsen()] = $interface; |
|
| 198 | 198 | } |
| 199 | 199 | |
| 200 | 200 | /** |
@@ -212,7 +212,7 @@ discard block |
||
| 212 | 212 | */ |
| 213 | 213 | public function addTrait(Trait_ $trait): void |
| 214 | 214 | { |
| 215 | - $this->traits[(string) $trait->getFqsen()] = $trait; |
|
| 215 | + $this->traits[(string)$trait->getFqsen()] = $trait; |
|
| 216 | 216 | } |
| 217 | 217 | |
| 218 | 218 | /** |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | /** |
| 5 | 5 | * This file is part of phpDocumentor. |
@@ -71,13 +71,13 @@ discard block |
||
| 71 | 71 | { |
| 72 | 72 | switch (get_class($node)) { |
| 73 | 73 | case Namespace_::class: |
| 74 | - $this->resetState('\\' . $node->name . '\\'); |
|
| 74 | + $this->resetState('\\'.$node->name.'\\'); |
|
| 75 | 75 | $node->fqsen = new Fqsen($this->buildName()); |
| 76 | 76 | break; |
| 77 | 77 | case Class_::class: |
| 78 | 78 | case Trait_::class: |
| 79 | 79 | case Interface_::class: |
| 80 | - $this->parts->push((string) $node->name); |
|
| 80 | + $this->parts->push((string)$node->name); |
|
| 81 | 81 | |
| 82 | 82 | if (empty($node->name)) { |
| 83 | 83 | return NodeTraverser::DONT_TRAVERSE_CHILDREN; |
@@ -86,11 +86,11 @@ discard block |
||
| 86 | 86 | $node->fqsen = new Fqsen($this->buildName()); |
| 87 | 87 | break; |
| 88 | 88 | case Function_::class: |
| 89 | - $this->parts->push($node->name . '()'); |
|
| 89 | + $this->parts->push($node->name.'()'); |
|
| 90 | 90 | $node->fqsen = new Fqsen($this->buildName()); |
| 91 | 91 | break; |
| 92 | 92 | case ClassMethod::class: |
| 93 | - $this->parts->push('::' . $node->name . '()'); |
|
| 93 | + $this->parts->push('::'.$node->name.'()'); |
|
| 94 | 94 | $node->fqsen = new Fqsen($this->buildName()); |
| 95 | 95 | break; |
| 96 | 96 | case ClassConst::class: |
@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | $node->fqsen = new Fqsen($this->buildName()); |
| 102 | 102 | break; |
| 103 | 103 | case PropertyProperty::class: |
| 104 | - $this->parts->push('::$' . $node->name); |
|
| 104 | + $this->parts->push('::$'.$node->name); |
|
| 105 | 105 | $node->fqsen = new Fqsen($this->buildName()); |
| 106 | 106 | break; |
| 107 | 107 | } |
@@ -111,6 +111,7 @@ |
||
| 111 | 111 | |
| 112 | 112 | /** |
| 113 | 113 | * Resets the state of the object to an empty state. |
| 114 | + * @param string $namespace |
|
| 114 | 115 | */ |
| 115 | 116 | private function resetState(?string $namespace = null): void |
| 116 | 117 | { |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | /** |
| 5 | 5 | * This file is part of phpDocumentor. |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | ); |
| 35 | 35 | } |
| 36 | 36 | |
| 37 | - $lastCallable = function ($command) use ($middleware, $lastCallable) { |
|
| 37 | + $lastCallable = function($command) use ($middleware, $lastCallable) { |
|
| 38 | 38 | return $middleware->execute($command, $lastCallable); |
| 39 | 39 | }; |
| 40 | 40 | } |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | /** |
| 5 | 5 | * This file is part of phpDocumentor. |