Test Failed
Push — master ( 33bfdc...47f867 )
by Kirill
02:32
created
src/Frontend/AST/Value/NumberValueNode.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
src/Frontend/Context/ContextVariablesInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,5 +28,5 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Naming/Strategy.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
src/IR/SymbolTableInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/IR/Type/ListType.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,6 +28,6 @@
 block discarded – undo
28 28
      */
29 29
     public function __toString(): string
30 30
     {
31
-        return '[' . $this->of . ']';
31
+        return '['.$this->of.']';
32 32
     }
33 33
 }
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
src/IR/Type/TypeConstructors/BuiltinTypeConstructors.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/IR/Type/InternalTypes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
src/IR/Type/NonNullType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
30 30
      */
31 31
     public function __toString(): string
32 32
     {
33
-        return $this->of . '!';
33
+        return $this->of.'!';
34 34
     }
35 35
 }
Please login to merge, or discard this patch.
src/IR/Type/InternalTypes/BuiltinTypes.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
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),
Please login to merge, or discard this patch.