@@ -128,7 +128,7 @@ discard block |
||
| 128 | 128 | * @param TypeInterface|null $type |
| 129 | 129 | * @return VarSymbolInterface |
| 130 | 130 | */ |
| 131 | - public function declare(string $var, TypeInterface $type = null): VarSymbolInterface |
|
| 131 | + public function declare(string$var,TypeInterface$type=null): VarSymbolInterface |
|
| 132 | 132 | { |
| 133 | 133 | if ($this->has($var)) { |
| 134 | 134 | $error = 'Can not define var $%s, because %s already has been defined'; |
@@ -176,6 +176,6 @@ discard block |
||
| 176 | 176 | */ |
| 177 | 177 | public function __toString(): string |
| 178 | 178 | { |
| 179 | - return $this->getName()->getFullyQualifiedName() . ' (' . $this->getFile()->getPathname() . ')'; |
|
| 179 | + return $this->getName()->getFullyQualifiedName().' ('.$this->getFile()->getPathname().')'; |
|
| 180 | 180 | } |
| 181 | 181 | } |
@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | |
| 82 | 82 | switch (true) { |
| 83 | 83 | case $isConst: |
| 84 | - return new Invocation(Name::fromString((string)$name->getValue()), $ctx); |
|
| 84 | + return new Invocation(Name::fromString((string) $name->getValue()), $ctx); |
|
| 85 | 85 | |
| 86 | 86 | case $isType: |
| 87 | 87 | /** @var Invocation $value */ |
@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | |
| 110 | 110 | $isConst = $name->getType()->typeOf(Type::const()); |
| 111 | 111 | |
| 112 | - if (! $isConst) { |
|
| 112 | + if (!$isConst) { |
|
| 113 | 113 | $error = 'Generic argument name must be a const but %s given'; |
| 114 | 114 | $exception = new TypeConflictException(\sprintf($error, $name)); |
| 115 | 115 | $exception->throwsIn($ctx->getFile(), $rule->getOffset()); |
@@ -117,7 +117,7 @@ discard block |
||
| 117 | 117 | throw $exception; |
| 118 | 118 | } |
| 119 | 119 | |
| 120 | - return Name::fromString((string)$name->getValue()); |
|
| 120 | + return Name::fromString((string) $name->getValue()); |
|
| 121 | 121 | } |
| 122 | 122 | |
| 123 | 123 | /** |
@@ -132,7 +132,7 @@ discard block |
||
| 132 | 132 | |
| 133 | 133 | $isType = $value->getType()->typeOf(Type::type()); |
| 134 | 134 | |
| 135 | - if (! $isType) { |
|
| 135 | + if (!$isType) { |
|
| 136 | 136 | $error = 'Generic argument value must be a valid type, but %s given'; |
| 137 | 137 | $exception = new TypeConflictException(\sprintf($error, $value)); |
| 138 | 138 | $exception->throwsIn($ctx->getFile(), $rule->getOffset()); |
@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | */ |
| 22 | 22 | public function __construct() |
| 23 | 23 | { |
| 24 | - parent::__construct(function (TypeNameInterface $name, iterable $arguments) { |
|
| 24 | + parent::__construct(function(TypeNameInterface $name, iterable $arguments) { |
|
| 25 | 25 | return $this->format($name, $arguments); |
| 26 | 26 | }); |
| 27 | 27 | } |
@@ -33,8 +33,8 @@ discard block |
||
| 33 | 33 | */ |
| 34 | 34 | private function format(TypeNameInterface $name, iterable $arguments): string |
| 35 | 35 | { |
| 36 | - echo \str_repeat('-', 100) . "\n"; |
|
| 37 | - echo $name . ' '; |
|
| 36 | + echo \str_repeat('-', 100)."\n"; |
|
| 37 | + echo $name.' '; |
|
| 38 | 38 | \dump($arguments); |
| 39 | 39 | |
| 40 | 40 | return $this->formatName($name); |