From b35f579db42e9faf7e71ea9f48578182f1d6e440 Mon Sep 17 00:00:00 2001 From: JasperTey Date: Sat, 9 Nov 2024 21:30:45 +0000 Subject: [PATCH] Fix styling --- src/Commands/DomainControllerMakeCommand.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Commands/DomainControllerMakeCommand.php b/src/Commands/DomainControllerMakeCommand.php index 16b57c6..51aac5c 100644 --- a/src/Commands/DomainControllerMakeCommand.php +++ b/src/Commands/DomainControllerMakeCommand.php @@ -62,10 +62,10 @@ protected function buildFormRequestReplacements(array $replace, $modelClass) ); } - $namespacedRequests = $namespace . '\\' . $storeRequestClass . ';'; + $namespacedRequests = $namespace.'\\'.$storeRequestClass.';'; if ($storeRequestClass !== $updateRequestClass) { - $namespacedRequests .= PHP_EOL . 'use ' . $namespace . '\\' . $updateRequestClass . ';'; + $namespacedRequests .= PHP_EOL.'use '.$namespace.'\\'.$updateRequestClass.';'; } return array_merge($replace, [ @@ -73,10 +73,10 @@ protected function buildFormRequestReplacements(array $replace, $modelClass) '{{storeRequest}}' => $storeRequestClass, '{{ updateRequest }}' => $updateRequestClass, '{{updateRequest}}' => $updateRequestClass, - '{{ namespacedStoreRequest }}' => $namespace . '\\' . $storeRequestClass, - '{{namespacedStoreRequest}}' => $namespace . '\\' . $storeRequestClass, - '{{ namespacedUpdateRequest }}' => $namespace . '\\' . $updateRequestClass, - '{{namespacedUpdateRequest}}' => $namespace . '\\' . $updateRequestClass, + '{{ namespacedStoreRequest }}' => $namespace.'\\'.$storeRequestClass, + '{{namespacedStoreRequest}}' => $namespace.'\\'.$storeRequestClass, + '{{ namespacedUpdateRequest }}' => $namespace.'\\'.$updateRequestClass, + '{{namespacedUpdateRequest}}' => $namespace.'\\'.$updateRequestClass, '{{ namespacedRequests }}' => $namespacedRequests, '{{namespacedRequests}}' => $namespacedRequests, ]);