Skip to content

Commit c27cb63

Browse files
hafijul233github-actions[bot]
authored andcommitted
Fix styling
1 parent e9182a5 commit c27cb63

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

config/crud.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
| command with default laravel commands. You can change it to `make:crud`
2323
| Default is : 'laraflow:make-crud'
2424
*/
25-
'command' => "laraflow:make-crud",
25+
'command' => 'laraflow:make-crud',
2626

2727
/*
2828
|--------------------------------------------------------------------------
@@ -56,7 +56,7 @@
5656
| {CONTROLLER} => full namespace controller path
5757
|
5858
*/
59-
'route_template' => <<<HTML
59+
'route_template' => <<<'HTML'
6060
Route::apiResource('{RESOURCE_URI}', {CONTROLLER});
6161
HTML,
6262

src/Commands/CrudMakeCommand.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -214,25 +214,25 @@ private function updateRouteFile(): void
214214
file_put_contents($filePath, $fileContent);
215215
}
216216

217-
private function renderRouteTemplate():string
217+
private function renderRouteTemplate(): string
218218
{
219219
$singleName = Str::kebab(basename($this->getResourceName()));
220220

221221
$resourceName = Str::plural($singleName);
222222

223223
$controller = GeneratorPath::convertPathToNamespace(
224224
'\\'
225-
. $this->getModuleName()
226-
. '\\'
227-
. GenerateConfigReader::read('controller')->getNamespace()
228-
. '\\'
229-
. $this->getResourceName()
230-
. 'Controller::class'
225+
.$this->getModuleName()
226+
.'\\'
227+
.GenerateConfigReader::read('controller')->getNamespace()
228+
.'\\'
229+
.$this->getResourceName()
230+
.'Controller::class'
231231
);
232232

233233
$layout = config('crud.route_template', "Route::apiResource('{RESOURCE_URI}', {CONTROLLER});\n");
234234

235-
$template = $layout . "\n\n //DO NOT REMOVE THIS LINE//\n";
235+
$template = $layout."\n\n //DO NOT REMOVE THIS LINE//\n";
236236

237237
$replacements = [
238238
'{RESOURCE_URI}' => $resourceName,

0 commit comments

Comments
 (0)