Test Failed
Push — master ( 4bdf7b...97fe68 )
by Kirill
02:15
created
src/Type.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -141,7 +141,7 @@
 block discarded – undo
141 141
     /**
142 142
      * {@inheritDoc}
143 143
      */
144
-    public function instanceOf(TypeInterface $type): bool
144
+    public function instanceof(TypeInterface $type): bool
145 145
     {
146 146
         $needle = $type->getName();
147 147
 
Please login to merge, or discard this patch.
src/Definition/Behaviour/HasName.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
     public function getName(): string
28 28
     {
29 29
         if ($this->name === null) {
30
-            return \spl_object_hash($this) . '@anonymous';
30
+            return \spl_object_hash($this).'@anonymous';
31 31
         }
32 32
 
33 33
         return $this->name;
Please login to merge, or discard this patch.
src/Definition/InterfaceDefinition.php 1 patch
Upper-Lower-Casing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -30,18 +30,18 @@
 block discarded – undo
30 30
      */
31 31
     public static function getType(): TypeInterface
32 32
     {
33
-        return Type::of(Type::INTERFACE);
33
+        return Type::of(Type::interface);
34 34
     }
35 35
 
36 36
     /**
37 37
      * @param TypeDefinition $definition
38 38
      * @return bool
39 39
      */
40
-    public function instanceOf($definition): bool
40
+    public function instanceof($definition): bool
41 41
     {
42 42
         // Return a positive response if the parent type (like Object or Interface)
43 43
         // can implement the desired type.
44 44
         return $this->isImplements($definition) ||
45
-            parent::instanceOf($definition);
45
+            parent::instanceof($definition);
46 46
     }
47 47
 }
Please login to merge, or discard this patch.
src/Definition/ObjectDefinition.php 1 patch
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,11 +37,11 @@
 block discarded – undo
37 37
      * @param TypeDefinition $definition
38 38
      * @return bool
39 39
      */
40
-    public function instanceOf($definition): bool
40
+    public function instanceof($definition): bool
41 41
     {
42 42
         // Return a positive response if the parent type (like Object or Interface)
43 43
         // can implement the desired type.
44 44
         return $this->isImplements($definition) ||
45
-            parent::instanceOf($definition);
45
+            parent::instanceof($definition);
46 46
     }
47 47
 }
Please login to merge, or discard this patch.