Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
JasperTey committed Nov 9, 2024
1 parent 1955228 commit 44afc19
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Commands/DomainControllerMakeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,21 +62,21 @@ 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, [
'{{ storeRequest }}' => $storeRequestClass,
'{{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,
]);
Expand Down

0 comments on commit 44afc19

Please sign in to comment.