Skip to content

Commit 2626062

Browse files
yajragithub-actions[bot]
authored andcommitted
fix: pint
1 parent 1d3379f commit 2626062

File tree

10 files changed

+20
-174
lines changed

10 files changed

+20
-174
lines changed

src/ButtonsServiceProvider.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ class ButtonsServiceProvider extends ServiceProvider
1212
{
1313
/**
1414
* Bootstrap the application events.
15-
*
16-
* @return void
1715
*/
1816
public function boot(): void
1917
{
@@ -54,8 +52,6 @@ protected function registerCommands(): void
5452

5553
/**
5654
* Register the service provider.
57-
*
58-
* @return void
5955
*/
6056
public function register(): void
6157
{

src/Exports/DataTablesCollectionExport.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,6 @@ public function collection()
3333
return $this->collection;
3434
}
3535

36-
/**
37-
* @return array
38-
*/
3936
public function headings(): array
4037
{
4138
/** @var array $first */

src/Generators/DataTablesHtmlCommand.php

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ class DataTablesHtmlCommand extends DataTablesMakeCommand
3737
* Build the class with the given name.
3838
*
3939
* @param string $name
40-
* @return string
4140
*
4241
* @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
4342
*/
@@ -48,18 +47,16 @@ protected function buildClass($name): string
4847
$stub = $this->replaceNamespace($stub, $name)->replaceClass($stub, $name);
4948

5049
$this->replaceBuilder($stub)
51-
->replaceColumns($stub)
52-
->replaceButtons($stub)
53-
->replaceDOM($stub)
54-
->replaceTableId($stub);
50+
->replaceColumns($stub)
51+
->replaceButtons($stub)
52+
->replaceDOM($stub)
53+
->replaceTableId($stub);
5554

5655
return $stub;
5756
}
5857

5958
/**
6059
* Get the stub file for the generator.
61-
*
62-
* @return string
6360
*/
6461
protected function getStub(): string
6562
{
@@ -72,7 +69,6 @@ protected function getStub(): string
7269
* Parse the name and format according to the root namespace.
7370
*
7471
* @param string $name
75-
* @return string
7672
*/
7773
protected function qualifyClass($name): string
7874
{

src/Generators/DataTablesMakeCommand.php

Lines changed: 8 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -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
{

src/Generators/DataTablesScopeCommand.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ class DataTablesScopeCommand extends GeneratorCommand
3131
* Get the default namespace for the class.
3232
*
3333
* @param string $rootNamespace
34-
* @return string
3534
*/
3635
protected function getDefaultNamespace($rootNamespace): string
3736
{
@@ -40,8 +39,6 @@ protected function getDefaultNamespace($rootNamespace): string
4039

4140
/**
4241
* Get the stub file for the generator.
43-
*
44-
* @return string
4542
*/
4643
protected function getStub(): string
4744
{

src/Html/DataTableHtml.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ public static function make(): Builder
2525
}
2626

2727
/**
28-
* @param string $method
2928
* @param mixed $parameters
3029
* @return \Yajra\DataTables\Html\Builder
3130
*

0 commit comments

Comments
 (0)