diff --git a/src/Commands/DomainControllerMakeCommand.php b/src/Commands/DomainControllerMakeCommand.php index 8e99617..ad1f749 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, ]);