Passed
Pull Request — 1.x (#336)
by Akihito
02:35
created
src/Meta.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
         array_shift($classPath); // "/Resource/"
51 51
         $scheme = array_shift($classPath);
52 52
 
53
-        return strtolower("{$scheme}://self/" . implode('/', $classPath));
53
+        return strtolower("{$scheme}://self/".implode('/', $classPath));
54 54
     }
55 55
 
56 56
     /**
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
      */
61 61
     private function getOptions(string $class): Options
62 62
     {
63
-        if (! class_exists($class)) {
63
+        if (!class_exists($class)) {
64 64
             throw new LogicException(); // @codeCoverageIgnore
65 65
         }
66 66
 
@@ -84,8 +84,8 @@  discard block
 block discarded – undo
84 84
     {
85 85
         $allows = [];
86 86
         foreach ($methods as $method) {
87
-            $isRequestMethod = str_starts_with($method->name, 'on') && ! str_starts_with($method->name, 'onLink');
88
-            if (! $isRequestMethod) {
87
+            $isRequestMethod = str_starts_with($method->name, 'on') && !str_starts_with($method->name, 'onLink');
88
+            if (!$isRequestMethod) {
89 89
                 continue;
90 90
             }
91 91
 
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
     /** @param ResourceClassName $class */
99 99
     private function getParams(string $class, string $method): Params
100 100
     {
101
-        $refMethod = new ReflectionMethod($class, 'on' . $method);
101
+        $refMethod = new ReflectionMethod($class, 'on'.$method);
102 102
         $parameters = $refMethod->getParameters();
103 103
         $optionalParams = $requiredParams = [];
104 104
         foreach ($parameters as $parameter) {
Please login to merge, or discard this patch.