diff --git a/src/Illuminate/Routing/Concerns/HasCustomAttributes.php b/src/Illuminate/Routing/Concerns/HasCustomAttributes.php index 63e783d6433..e2004d68fc0 100644 --- a/src/Illuminate/Routing/Concerns/HasCustomAttributes.php +++ b/src/Illuminate/Routing/Concerns/HasCustomAttributes.php @@ -17,7 +17,7 @@ public function callAction($method, $parameters) $attributes->each(function (ReflectionAttribute $attribute) { $instance = $attribute->newInstance(); - if(method_exists($instance, 'handle')) { + if (method_exists($instance, 'handle')) { $attribute->newInstance()->handle(...$attribute->getArguments()); } }); @@ -28,6 +28,6 @@ public function callAction($method, $parameters) private function gteCustomAttributes(ReflectionMethod $reflection): Collection { return collect($reflection->getAttributes()) - ->filter(fn(ReflectionAttribute $attr) => $attr->newInstance() instanceof ICustomAttribute); + ->filter(fn (ReflectionAttribute $attr) => $attr->newInstance() instanceof ICustomAttribute); } }