Skip to content

Commit 994a4e9

Browse files
committed
Cs fixer.
1 parent e1c563f commit 994a4e9

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

src/Generators/DataTablesHtmlCommand.php

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,21 @@ protected function buildClass($name)
5252

5353
return $stub;
5454
}
55+
56+
/**
57+
* Get the stub file for the generator.
58+
*
59+
* @return string
60+
*/
61+
protected function getStub()
62+
{
63+
$config = $this->laravel['config'];
64+
65+
return $config->get('datatables-buttons.stub')
66+
? base_path() . $config->get('datatables-buttons.stub') . '/html.stub'
67+
: __DIR__ . '/stubs/html.stub';
68+
}
69+
5570
/**
5671
* Parse the name and format according to the root namespace.
5772
*
@@ -76,18 +91,4 @@ protected function qualifyClass($name)
7691

7792
return $this->getDefaultNamespace(trim($rootNamespace, '\\')) . '\\' . $name;
7893
}
79-
80-
/**
81-
* Get the stub file for the generator.
82-
*
83-
* @return string
84-
*/
85-
protected function getStub()
86-
{
87-
$config = $this->laravel['config'];
88-
89-
return $config->get('datatables-buttons.stub')
90-
? base_path() . $config->get('datatables-buttons.stub') . '/html.stub'
91-
: __DIR__ . '/stubs/html.stub';
92-
}
9394
}

0 commit comments

Comments
 (0)