@@ -61,7 +61,6 @@ public function handle()
6161 * Build the class with the given name.
6262 *
6363 * @param string $name
64- * @return string
6564 *
6665 * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
6766 */
@@ -70,22 +69,20 @@ protected function buildClass($name): string
7069 $ stub = parent ::buildClass ($ name );
7170
7271 $ this ->replaceModelImport ($ stub )
73- ->replaceModel ($ stub )
74- ->replaceBuilder ($ stub )
75- ->replaceColumns ($ stub )
76- ->replaceButtons ($ stub )
77- ->replaceDOM ($ stub )
78- ->replaceTableId ($ stub )
79- ->replaceAction ($ stub )
80- ->replaceFilename ($ stub );
72+ ->replaceModel ($ stub )
73+ ->replaceBuilder ($ stub )
74+ ->replaceColumns ($ stub )
75+ ->replaceButtons ($ stub )
76+ ->replaceDOM ($ stub )
77+ ->replaceTableId ($ stub )
78+ ->replaceAction ($ stub )
79+ ->replaceFilename ($ stub );
8180
8281 return $ stub ;
8382 }
8483
8584 /**
8685 * Get DataTable class base name without the suffix.
87- *
88- * @return string
8986 */
9087 protected function getDataTableBaseName (): string
9188 {
@@ -94,8 +91,6 @@ protected function getDataTableBaseName(): string
9491
9592 /**
9693 * Prepare model name from input.
97- *
98- * @return string
9994 */
10095 protected function prepareModelName (): string
10196 {
@@ -105,7 +100,6 @@ protected function prepareModelName(): string
105100 /**
106101 * Replace the filename.
107102 *
108- * @param string $stub
109103 * @return $this
110104 */
111105 protected function replaceFilename (string &$ stub ): static
@@ -117,9 +111,6 @@ protected function replaceFilename(string &$stub): static
117111
118112 /**
119113 * Replace the action.
120- *
121- * @param string $stub
122- * @return static
123114 */
124115 protected function replaceAction (string &$ stub ): static
125116 {
@@ -130,8 +121,6 @@ protected function replaceAction(string &$stub): static
130121
131122 /**
132123 * Set the action view to be used.
133- *
134- * @return string
135124 */
136125 protected function getAction (): string
137126 {
@@ -148,7 +137,6 @@ protected function getAction(): string
148137 /**
149138 * Replace columns.
150139 *
151- * @param string $stub
152140 * @return $this
153141 */
154142 protected function replaceTableId (string &$ stub ): static
@@ -161,7 +149,6 @@ protected function replaceTableId(string &$stub): static
161149 /**
162150 * Replace dom.
163151 *
164- * @param string $stub
165152 * @return $this
166153 */
167154 protected function replaceDOM (string &$ stub ): static
@@ -177,7 +164,6 @@ protected function replaceDOM(string &$stub): static
177164 /**
178165 * Replace buttons.
179166 *
180- * @param string $stub
181167 * @return $this
182168 */
183169 protected function replaceButtons (string &$ stub ): static
@@ -189,8 +175,6 @@ protected function replaceButtons(string &$stub): static
189175
190176 /**
191177 * Get the columns to be used.
192- *
193- * @return string
194178 */
195179 protected function getButtons (): string
196180 {
@@ -209,10 +193,6 @@ protected function getButtons(): string
209193
210194 /**
211195 * Parse array from definition.
212- *
213- * @param string $definition
214- * @param int $indentation
215- * @return string
216196 */
217197 protected function parseButtons (string $ definition , int $ indentation = 24 ): string
218198 {
@@ -239,7 +219,6 @@ protected function parseButtons(string $definition, int $indentation = 24): stri
239219 /**
240220 * Replace columns.
241221 *
242- * @param string $stub
243222 * @return $this
244223 */
245224 protected function replaceColumns (string &$ stub ): static
@@ -251,8 +230,6 @@ protected function replaceColumns(string &$stub): static
251230
252231 /**
253232 * Get the columns to be used.
254- *
255- * @return string
256233 */
257234 protected function getColumns (): string
258235 {
@@ -278,10 +255,6 @@ protected function getColumns(): string
278255
279256 /**
280257 * Parse array from definition.
281- *
282- * @param array|string $definition
283- * @param int $indentation
284- * @return string
285258 */
286259 protected function parseColumns (array |string $ definition , int $ indentation = 12 ): string
287260 {
@@ -345,7 +318,6 @@ protected function qualifyClass($name)
345318 * Get the default namespace for the class.
346319 *
347320 * @param string $rootNamespace
348- * @return string
349321 */
350322 protected function getDefaultNamespace ($ rootNamespace ): string
351323 {
@@ -354,9 +326,6 @@ protected function getDefaultNamespace($rootNamespace): string
354326
355327 /**
356328 * Replace model name.
357- *
358- * @param string $stub
359- * @return static
360329 */
361330 protected function replaceModel (string &$ stub ): static
362331 {
@@ -369,8 +338,6 @@ protected function replaceModel(string &$stub): static
369338
370339 /**
371340 * Get model name to use.
372- *
373- * @return string
374341 */
375342 protected function getModel (): string
376343 {
@@ -393,7 +360,6 @@ protected function getModel(): string
393360 /**
394361 * Replace model import.
395362 *
396- * @param string $stub
397363 * @return $this
398364 */
399365 protected function replaceModelImport (string &$ stub ): static
@@ -405,8 +371,6 @@ protected function replaceModelImport(string &$stub): static
405371
406372 /**
407373 * Get the stub file for the generator.
408- *
409- * @return string
410374 */
411375 protected function getStub (): string
412376 {
0 commit comments