Passed
Push — master ( c773c1...043dd9 )
by Jakub
02:03
created
src/Annotations/PhpAttributesEngine.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
     /**
22 22
      * @throws ReflectionException
23 23
      */
24
-    public function hasAnnotation(string $name, string|object $class, string $method = null): bool
24
+    public function hasAnnotation(string $name, string | object $class, string $method = null): bool
25 25
     {
26 26
         return count($this->getReflection($class, $method)->getAttributes($this->getClassName($name))) > 0;
27 27
     }
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
     /**
30 30
      * @throws ReflectionException
31 31
      */
32
-    public function getAnnotation(string $name, string|object $class, string $method = null): mixed
32
+    public function getAnnotation(string $name, string | object $class, string $method = null): mixed
33 33
     {
34 34
         $attributes = $this->getReflection($class, $method)->getAttributes($this->getClassName($name));
35 35
         if (count($attributes) === 0) {
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
     /**
49 49
      * @throws ReflectionException
50 50
      */
51
-    private function getReflection(string|object $class, string $method = null): ReflectionClass|ReflectionMethod
51
+    private function getReflection(string | object $class, string $method = null): ReflectionClass | ReflectionMethod
52 52
     {
53 53
         if ($method !== null) {
54 54
             $reflection = new ReflectionMethod(is_object($class) ? get_class($class) : $class, $method);
Please login to merge, or discard this patch.