Skip to content

Commit 08bcb81

Browse files
committed
Fixes
1 parent c85fa91 commit 08bcb81

File tree

90 files changed

+1899
-91
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+1899
-91
lines changed

phpstan.neon

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ parameters:
1313
treatPhpDocTypesAsCertain: false
1414
reportUnmatchedIgnoredErrors: false
1515
ignoreErrors:
16+
- identifier: argument.type
17+
- identifier: new.static
1618
- identifier: trait.unused
1719
- identifier: deadCode.unreachable
1820
- identifier: booleanNot.alwaysTrue

src/Commands/MakeCommand.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,11 @@ private function generateColumns(string $modelName): string
217217
return $columns;
218218
}
219219

220+
/**
221+
* Undocumented function
222+
*
223+
* @return array<mixed>
224+
*/
220225
protected function possibleModels(): array
221226
{
222227
$modelPath = is_dir(app_path('Models')) ? app_path('Models') : app_path();

src/DataTransferObjects/Filters/FilterPillData.php

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,22 @@ class FilterPillData
88
{
99
public string $separatedValues = '';
1010

11+
/**
12+
* Undocumented function
13+
*
14+
* @param string $filterKey
15+
* @param string $filterPillTitle
16+
* @param string|array<mixed>|null $filterPillValue
17+
* @param string $separator
18+
* @param boolean $isAnExternalLivewireFilter
19+
* @param boolean $hasCustomPillBlade
20+
* @param string|null $customPillBlade
21+
* @param array<mixed> $filterPillsItemAttributes
22+
* @param boolean $renderPillsAsHtml
23+
* @param boolean $watchForEvents
24+
* @param array<mixed> $customResetButtonAttributes
25+
* @param boolean $renderPillsTitleAsHtml
26+
*/
1127
public function __construct(
1228
protected string $filterKey,
1329
protected string $filterPillTitle,
@@ -36,6 +52,11 @@ public function getTitle(): string
3652
return $this->filterPillTitle;
3753
}
3854

55+
/**
56+
* Undocumented function
57+
*
58+
* @return array<mixed>|string|null
59+
*/
3960
public function getPillValue(): array|string|null
4061
{
4162
return $this->filterPillValue;

src/Events/ColumnsSelected.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,21 @@
88
class ColumnsSelected extends LaravelLivewireTablesEvent
99
{
1010
use Dispatchable, SerializesModels;
11-
11+
1212
/**
1313
* Undocumented variable
1414
*
1515
* @var array<mixed>
1616
*/
1717
public array $columns;
1818

19+
/**
20+
* Undocumented function
21+
*
22+
* @param string $tableName
23+
* @param string $key
24+
* @param array<mixed> $columns
25+
*/
1926
public function __construct(string $tableName, string $key, array $columns = [])
2027
{
2128
$this->setTableForEvent($tableName)

src/Events/FilterApplied.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@ class FilterApplied extends LaravelLivewireTablesEvent
99
{
1010
use Dispatchable, SerializesModels;
1111

12+
/**
13+
* Undocumented function
14+
*
15+
* @param string $tableName
16+
* @param string $key
17+
* @param string|array<mixed>|null|null $value
18+
*/
1219
public function __construct(string $tableName, string $key, string|array|null $value = null)
1320
{
1421
$this->setTableForEvent($tableName)

src/Events/LaravelLivewireTablesEvent.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ class LaravelLivewireTablesEvent
1414

1515
public ?string $key;
1616

17+
/**
18+
* Undocumented variable
19+
*
20+
* @var string|array<mixed>|null
21+
*/
1722
public string|array|null $value;
1823

1924
public ?Authenticatable $user;
@@ -25,6 +30,12 @@ public function setKeyForEvent(string $key): self
2530
return $this;
2631
}
2732

33+
/**
34+
* Undocumented function
35+
*
36+
* @param string|array<mixed> $value
37+
* @return self
38+
*/
2839
public function setValueForEvent(string|array $value): self
2940
{
3041
$this->value = $value;

src/External/Filters/Traits/HandlesTableEventsForExternalFilter.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,15 @@
66

77
trait HandlesTableEventsForExternalFilter
88
{
9+
10+
/**
11+
* Undocumented function
12+
*
13+
* @param string $tableName
14+
* @param string $filterKey
15+
* @param array<mixed> $value
16+
* @return void
17+
*/
918
#[On('filter-was-set')]
1019
public function setFilterValues(string $tableName, string $filterKey, string|array|null $value = []): void
1120
{
@@ -14,6 +23,14 @@ public function setFilterValues(string $tableName, string $filterKey, string|arr
1423
}
1524
}
1625

26+
27+
/**
28+
* Undocumented function
29+
*
30+
* @param \Illuminate\View\View $view
31+
* @param array<mixed> $data
32+
* @return void
33+
*/
1734
#[Renderless]
1835
public function renderingHandlesTableEventsForExternalFilter(\Illuminate\View\View $view, array $data = []): void
1936
{

src/Traits/ComponentUtilities.php

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,17 @@ trait ComponentUtilities
2626
*/
2727
public array $table = [];
2828

29+
/**
30+
* Undocumented variable
31+
*
32+
*/
2933
protected $model;
3034

35+
/**
36+
* Undocumented variable
37+
*
38+
* @var boolean
39+
*/
3140
protected bool $hasRunConfigure = false;
3241

3342
/**
@@ -37,6 +46,8 @@ abstract public function configure(): void;
3746

3847
/**
3948
* Sets the Theme if not set on first mount
49+
*
50+
* @return void
4051
*/
4152
public function mountComponentUtilities(): void
4253
{
@@ -50,6 +61,8 @@ public function mountComponentUtilities(): void
5061

5162
/**
5263
* Runs configure() with Lifecycle Hooks on each Lifecycle
64+
*
65+
* @return void
5366
*/
5467
public function bootedComponentUtilities(): void
5568
{
@@ -62,6 +75,11 @@ public function bootedComponentUtilities(): void
6275

6376
}
6477

78+
/**
79+
* Calls the hooks for configuring/configured pre/post configure()
80+
*
81+
* @return void
82+
*/
6583
protected function runCoreConfiguration(): void
6684
{
6785
if (! $this->hasRunConfigure) {
@@ -82,8 +100,10 @@ protected function runCoreConfiguration(): void
82100
}
83101

84102
/**
85-
* 1. After the sorting method is hit we need to tell the table to go back into reordering mode
86-
*/
103+
* After the sorting method is hit we need to tell the table to go back into reordering mode
104+
*
105+
* @return void
106+
*/
87107
public function hydrate(): void
88108
{
89109
$this->restartReorderingIfNecessary();

src/Traits/Configuration/BulkActionsConfiguration.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,12 @@ public function setHideBulkActionsWhenEmptyDisabled(): self
7777
return $this;
7878
}
7979

80+
/**
81+
* Undocumented function
82+
*
83+
* @param array<mixed> $bulkActionConfirms
84+
* @return self
85+
*/
8086
public function setBulkActionConfirms(array $bulkActionConfirms): self
8187
{
8288
foreach ($bulkActionConfirms as $bulkAction) {
@@ -95,6 +101,12 @@ public function setBulkActionConfirmMessage(string $action, string $confirmation
95101
return $this;
96102
}
97103

104+
/**
105+
* Undocumented function
106+
*
107+
* @param array<mixed> $bulkActionMessages
108+
* @return self
109+
*/
98110
public function setBulkActionConfirmMessages(array $bulkActionMessages): self
99111
{
100112
foreach ($bulkActionMessages as $bulkAction => $confirmationMessage) {

src/Traits/Configuration/ColumnConfiguration.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,24 @@
44

55
trait ColumnConfiguration
66
{
7+
/**
8+
* Undocumented function
9+
*
10+
* @param array<mixed> $prependedColumns
11+
* @return void
12+
*/
713
public function setPrependedColumns(array $prependedColumns): void
814
{
915
$this->prependedColumns = collect($prependedColumns);
1016
$this->hasRunColumnSetup = false;
1117
}
1218

19+
/**
20+
* Undocumented function
21+
*
22+
* @param array<mixed> $appendedColumns
23+
* @return void
24+
*/
1325
public function setAppendedColumns(array $appendedColumns): void
1426
{
1527
$this->appendedColumns = collect($appendedColumns);

0 commit comments

Comments
 (0)