@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | return $this->parseInt($value->getValue()); |
53 | 53 | } |
54 | 54 | |
55 | - return (float)$value->getValue(); |
|
55 | + return (float) $value->getValue(); |
|
56 | 56 | } |
57 | 57 | |
58 | 58 | /** |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | */ |
80 | 80 | private function parseExponential(string $value): float |
81 | 81 | { |
82 | - return (float)$value; |
|
82 | + return (float) $value; |
|
83 | 83 | } |
84 | 84 | |
85 | 85 | /** |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | */ |
89 | 89 | private function parseFloat(string $value): float |
90 | 90 | { |
91 | - return (float)$value; |
|
91 | + return (float) $value; |
|
92 | 92 | } |
93 | 93 | |
94 | 94 | /** |
@@ -28,5 +28,5 @@ |
||
28 | 28 | * @param TypeInterface|null $type |
29 | 29 | * @return VarSymbolInterface |
30 | 30 | */ |
31 | - public function declare(string $var, TypeInterface $type = null): VarSymbolInterface; |
|
31 | + public function declare(string$var,TypeInterface$type=null): VarSymbolInterface; |
|
32 | 32 | } |
@@ -48,7 +48,7 @@ |
||
48 | 48 | */ |
49 | 49 | protected function verified(string $name): string |
50 | 50 | { |
51 | - if (! \preg_match('/^[_a-zA-Z][_a-zA-Z0-9]*$/', $name)) { |
|
51 | + if (!\preg_match('/^[_a-zA-Z][_a-zA-Z0-9]*$/', $name)) { |
|
52 | 52 | $error = \sprintf('Names must match /^[_a-zA-Z][_a-zA-Z0-9]*$/ but "%s" does not.', $name); |
53 | 53 | throw new SemanticException($error); |
54 | 54 | } |
@@ -20,7 +20,7 @@ |
||
20 | 20 | * @param VarSymbolInterface $record |
21 | 21 | * @return int |
22 | 22 | */ |
23 | - public function declare(VarSymbolInterface $record): int; |
|
23 | + public function declare(VarSymbolInterface$record): int; |
|
24 | 24 | |
25 | 25 | /** |
26 | 26 | * @param int $addr |
@@ -28,6 +28,6 @@ |
||
28 | 28 | */ |
29 | 29 | public function __toString(): string |
30 | 30 | { |
31 | - return '[' . $this->of . ']'; |
|
31 | + return '['.$this->of.']'; |
|
32 | 32 | } |
33 | 33 | } |
@@ -20,7 +20,7 @@ |
||
20 | 20 | */ |
21 | 21 | public function __construct(TypeInterface $of) |
22 | 22 | { |
23 | - parent::__construct(static::LIST, $of); |
|
23 | + parent::__construct(static::list, $of); |
|
24 | 24 | } |
25 | 25 | |
26 | 26 | /** |
@@ -65,7 +65,7 @@ |
||
65 | 65 | { |
66 | 66 | \assert(Name::isValid($name), 'Interface is not generic type'); |
67 | 67 | |
68 | - $interface = static::new(static::INTERFACE); |
|
68 | + $interface = static::new(static::interface); |
|
69 | 69 | |
70 | 70 | return $name ? static::new($name, $interface) : $interface; |
71 | 71 | } |
@@ -50,7 +50,7 @@ |
||
50 | 50 | protected static function getInternalType(string $name, ?TypeInterface $of, \Closure $otherwise): TypeInterface |
51 | 51 | { |
52 | 52 | if (isset(static::$internal[$name])) { |
53 | - $subtypeOfInternal = ! $of || $of->typeOf(static::$internal[$name]); |
|
53 | + $subtypeOfInternal = !$of || $of->typeOf(static::$internal[$name]); |
|
54 | 54 | |
55 | 55 | return $subtypeOfInternal ? static::$internal[$name] : $otherwise(); |
56 | 56 | } |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | { |
23 | 23 | parent::__construct(static::NON_NULL, $parent); |
24 | 24 | |
25 | - \assert(! $this->is($parent), __CLASS__ . ' can not be wrapped by itself'); |
|
25 | + \assert(!$this->is($parent), __CLASS__.' can not be wrapped by itself'); |
|
26 | 26 | } |
27 | 27 | |
28 | 28 | /** |
@@ -30,6 +30,6 @@ discard block |
||
30 | 30 | */ |
31 | 31 | public function __toString(): string |
32 | 32 | { |
33 | - return $this->of . '!'; |
|
33 | + return $this->of.'!'; |
|
34 | 34 | } |
35 | 35 | } |
@@ -21,7 +21,7 @@ |
||
21 | 21 | { |
22 | 22 | return [ |
23 | 23 | static::ROOT_TYPE => $any = self::createInternalType(static::ROOT_TYPE), |
24 | - static::INTERFACE => $interface = self::createInternalType(static::INTERFACE), |
|
24 | + static::interface => $interface = self::createInternalType(static::interface), |
|
25 | 25 | static::OBJECT => $object = self::createInternalType(static::OBJECT, $interface), |
26 | 26 | static::INPUT_OBJECT => $input = self::createInternalType(static::INPUT_OBJECT, $object), |
27 | 27 | static::UNION => $union = self::createInternalType(static::UNION, $object), |