Skip to content

Commit d86c18b

Browse files
pascalbaljetgithub-actions[bot]
authored andcommitted
Fix styling
1 parent 9d9a40b commit d86c18b

28 files changed

+55
-110
lines changed

app/app/Models/User.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
class User extends Authenticatable implements HasMedia
1414
{
15-
use HasApiTokens, HasFactory, Notifiable, InteractsWithMedia;
15+
use HasApiTokens, HasFactory, InteractsWithMedia, Notifiable;
1616

1717
/**
1818
* The attributes that are mass assignable.
@@ -61,7 +61,7 @@ public function registerMediaCollections(): void
6161
$this->addMediaCollection('photos');
6262
}
6363

64-
public function registerMediaConversions(Media $media = null): void
64+
public function registerMediaConversions(?Media $media = null): void
6565
{
6666
$this->addMediaConversion('thumb')->fit('contain', 50, 50);
6767
}

src/AbstractForm.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public static function rules(...$arguments): array
7575
*
7676
* @param mixed ...$params
7777
*/
78-
public function validate(Request $request = null, ...$params): array
78+
public function validate(?Request $request = null, ...$params): array
7979
{
8080
/** @var Request */
8181
$request = $request ?? request();

src/AbstractTable.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ abstract class AbstractTable
1010
{
1111
/**
1212
* The SpladeTable instance.
13-
*
14-
* @var \ProtoneMedia\Splade\SpladeTable|null
1513
*/
1614
private ?SpladeTable $table = null;
1715

@@ -37,8 +35,6 @@ public function for()
3735

3836
/**
3937
* Helper method to create a new SpladeTable instance.
40-
*
41-
* @return \ProtoneMedia\Splade\SpladeTable
4238
*/
4339
public static function build(...$arguments): SpladeTable
4440
{
@@ -50,8 +46,6 @@ public static function build(...$arguments): SpladeTable
5046
/**
5147
* Creates a new SpladeTable instance with the resource or
5248
* query builder from the 'for()' method of this class.
53-
*
54-
* @return \ProtoneMedia\Splade\SpladeTable
5549
*/
5650
public function make(): SpladeTable
5751
{
@@ -71,7 +65,6 @@ function (SpladeTable $table) {
7165
/**
7266
* Configure the given SpladeTable.
7367
*
74-
* @param \ProtoneMedia\Splade\SpladeTable $table
7568
* @return void
7669
*/
7770
public function configure(SpladeTable $table)
@@ -81,8 +74,6 @@ public function configure(SpladeTable $table)
8174

8275
/**
8376
* Returns a TableExporter instance.
84-
*
85-
* @return \ProtoneMedia\Splade\TableExporter|null
8677
*/
8778
public function makeExporter(int $key): ?TableExporter
8879
{

src/Components/Form.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919

2020
class Form extends Component
2121
{
22-
use ParsesJsonDataAttribute;
2322
use InteractsWithFormElement;
23+
use ParsesJsonDataAttribute;
2424

2525
public string $spladeId;
2626

src/Components/Form/Select.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,6 @@ public function options(): array
197197

198198
/**
199199
* Returns the placeholder option when necessary.
200-
*
201-
* @return \ProtoneMedia\Splade\FormSelectOption
202200
*/
203201
public function placeholderOption(): ?FormSelectOption
204202
{

src/EventRedirectFactory.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ public function __construct(
3636
*
3737
* @param string $method
3838
* @param array $parameters
39-
* @return \ProtoneMedia\Splade\EventRedirect
4039
*/
4140
public function __call($method, $parameters): EventRedirect
4241
{

src/FileUploads/ExistingFile.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,6 @@ public static function fromMediaLibraryWithoutPreview($media)
126126

127127
/**
128128
* Returns an instance of ExistingFileFromDisk to load the file from a disk.
129-
*
130-
* @return \ProtoneMedia\Splade\FileUploads\ExistingFileFromDisk
131129
*/
132130
public static function fromDisk(string $disk): ExistingFileFromDisk
133131
{
@@ -137,8 +135,6 @@ public static function fromDisk(string $disk): ExistingFileFromDisk
137135
/**
138136
* Returns an instance of ExistingFileFromDisk to load the file from a disk,
139137
* but without a preview.
140-
*
141-
* @return \ProtoneMedia\Splade\FileUploads\ExistingFileFromDisk
142138
*/
143139
public static function fromDiskWithoutPreview(string $disk): ExistingFileFromDisk
144140
{
@@ -254,7 +250,7 @@ public function getIdentifier(): string
254250
*
255251
* @return string
256252
*/
257-
public function getMetadata(string $key = null)
253+
public function getMetadata(?string $key = null)
258254
{
259255
return $key ? Arr::get($this->metadata, $key) : $this->metadata;
260256
}

src/FileUploads/Filesystem.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ public function __construct(private string $disk)
2525

2626
/**
2727
* Stores the uploaded file as a temporary file.
28-
*
29-
* @return \ProtoneMedia\Splade\FileUploads\TemporaryFileUpload
3028
*/
3129
public function storeUploadedFileTemporarely(UploadedFile $file): TemporaryFileUpload
3230
{
@@ -68,8 +66,6 @@ public function deleteTemporaryFiles()
6866

6967
/**
7068
* Returns a boolean whether the file exists.
71-
*
72-
* @param \ProtoneMedia\Splade\FileUploads\TemporaryFileUpload $temporaryFileUpload
7369
*/
7470
public function exists(TemporaryFileUpload $temporaryFileUpload): bool
7571
{
@@ -78,9 +74,6 @@ public function exists(TemporaryFileUpload $temporaryFileUpload): bool
7874

7975
/**
8076
* Returns an instance of SpladeUploadedFile when the temporary file exists.
81-
*
82-
* @param \ProtoneMedia\Splade\FileUploads\TemporaryFileUpload $temporaryFileUpload
83-
* @return \ProtoneMedia\Splade\FileUploads\SpladeUploadedFile|null
8477
*/
8578
public function makeUploadedFile(TemporaryFileUpload $temporaryFileUpload): ?SpladeUploadedFile
8679
{
@@ -99,8 +92,6 @@ public function makeUploadedFile(TemporaryFileUpload $temporaryFileUpload): ?Spl
9992

10093
/**
10194
* Deletes the temporary file.
102-
*
103-
* @param \ProtoneMedia\Splade\FileUploads\TemporaryFileUpload $temporaryFileUpload
10495
*/
10596
public function delete(TemporaryFileUpload $temporaryFileUpload): bool
10697
{

src/FileUploads/SpladeUploadedFile.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ public function isValid(): bool
2121

2222
/**
2323
* Sets the temporary file upload.
24-
*
25-
* @param \ProtoneMedia\Splade\FileUploads\TemporaryFileUpload $temporaryFileUpload
2624
*/
2725
public function setTemporaryFileUpload(TemporaryFileUpload $temporaryFileUpload): self
2826
{

src/FormBuilder/Checkboxes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
class Checkboxes extends Component
1010
{
11-
use HasOptions;
1211
use CanBeInline;
12+
use HasOptions;
1313

1414
/**
1515
* Renders the SpladeCheckboxex

0 commit comments

Comments
 (0)