Skip to content

Commit 269bda2

Browse files
committed
Apply fixes from StyleCI
[ci skip] [skip ci]
1 parent 2682e31 commit 269bda2

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

src/ThemeServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class ThemeServiceProvider extends ServiceProvider
1414
protected string $packageName = 'theme-name';
1515
protected array $commands = [];
1616
protected bool $theme = true;
17-
protected null|string $componentsNamespace = null;
17+
protected ?string $componentsNamespace = null;
1818

1919
/**
2020
* -------------------------

src/app/Http/Controllers/Auth/VerifyEmailController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
class VerifyEmailController extends Controller
1313
{
14-
public null|string $redirectTo = null;
14+
public ?string $redirectTo = null;
1515

1616
/**
1717
* Create a new controller instance.

src/app/Library/Uploaders/Support/RegisterUploadEvents.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public static function handle(CrudField|CrudColumn $crudObject, array $uploaderC
3535
/*******************************
3636
* Private methods - implementation
3737
*******************************/
38-
private function registerEvents(array|null $subfield = [], ?bool $registerModelEvents = true): void
38+
private function registerEvents(?array $subfield = [], ?bool $registerModelEvents = true): void
3939
{
4040
if (! empty($subfield)) {
4141
$this->registerSubfieldEvent($subfield, $registerModelEvents);

src/app/Library/Uploaders/Support/Traits/HandleRepeatableUploads.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ trait HandleRepeatableUploads
1414
{
1515
public bool $handleRepeatableFiles = false;
1616

17-
public null|string $repeatableContainerName = null;
17+
public ?string $repeatableContainerName = null;
1818

1919
/*******************************
2020
* Setters - fluently configure the uploader
@@ -31,7 +31,7 @@ public function repeats(string $repeatableContainerName): self
3131
/*******************************
3232
* Getters
3333
*******************************/
34-
public function getRepeatableContainerName(): null|string
34+
public function getRepeatableContainerName(): ?string
3535
{
3636
return $this->repeatableContainerName;
3737
}

src/app/Library/Validation/Rules/ValidFileArray.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ protected function validateItems(string $attribute, array $items, Closure $fail)
6363
}
6464
}
6565

66-
protected function validateArrayData(string $attribute, Closure $fail, null|array $data = null, null|array $rules = null): void
66+
protected function validateArrayData(string $attribute, Closure $fail, ?array $data = null, ?array $rules = null): void
6767
{
6868
$data = $data ?? $this->data;
6969
$rules = $rules ?? $this->getFieldRules();

0 commit comments

Comments
 (0)