Skip to content

Commit fe7b70d

Browse files
committed
fix: minor fixes
1 parent 0cbd49c commit fe7b70d

File tree

4 files changed

+4
-9
lines changed

4 files changed

+4
-9
lines changed

src/Common/GeneratorConfig.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -297,11 +297,6 @@ public function getOption($option)
297297
return $this->command->option($option);
298298
}
299299

300-
public function isLocalizedTemplates()
301-
{
302-
return $this->options->localized;
303-
}
304-
305300
public function addDynamicVariable($name, $val)
306301
{
307302
$this->dynamicVars[$name] = $val;

src/Generators/API/APIControllerGenerator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public function __construct()
1919

2020
public function variables(): array
2121
{
22-
return array_merge([], $this->fillDocs());
22+
return array_merge([], $this->docsVariables());
2323
}
2424

2525
public function getViewName(): string
@@ -49,7 +49,7 @@ public function generate()
4949
$this->config->commandInfo($this->fileName);
5050
}
5151

52-
private function fillDocs(): array
52+
private function docsVariables(): array
5353
{
5454
$methods = ['controller', 'index', 'store', 'show', 'update', 'destroy'];
5555

src/Generators/Scaffold/ControllerGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ private function generateDataTableColumns(): array
108108
}
109109

110110
$dataTableColumns[] = trim(view(
111-
$this->templateType.'::stubs.scaffold.table.datatable.column',
111+
$this->templateType.'::templates.scaffold.table.datatable.column',
112112
$field->variables()
113113
)->render());
114114
}

src/Generators/Scaffold/RoutesGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public function generate()
1818
{
1919
$routeContents = g_filesystem()->getFile($this->path);
2020

21-
$routes = view('laravel-generator::templates.scaffold.routes')->render();
21+
$routes = view('laravel-generator::scaffold.routes')->render();
2222

2323
if (Str::contains($routeContents, $routes)) {
2424
$this->config->commandInfo(infy_nl().'Route '.$this->config->modelNames->dashedPlural.' already exists, Skipping Adjustment.');

0 commit comments

Comments
 (0)