@@ -50,7 +50,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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) { |