Skip to content

Commit c166e33

Browse files
committed
fix pint errors
1 parent 2a5be93 commit c166e33

18 files changed

+34
-50
lines changed

phpstan.neon

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,8 @@ parameters:
55
level: 7
66
paths:
77
- src
8-
checkMissingIterableValueType: false
9-
checkGenericClassInNonGenericObjectType: false
8+
ignoreErrors:
9+
-
10+
identifier: missingType.iterableValue
11+
-
12+
identifier: missingType.generics

src/Controllers/DownloadController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class DownloadController extends Controller
1616
public function __invoke(string $disk, string $path): BinaryFileResponse
1717
{
1818
if (! Storage::disk($disk)->exists($path)) {
19-
throw new FileNotFoundException();
19+
throw new FileNotFoundException;
2020
}
2121

2222
return response()->file(

src/Events/AfterMediaSaved.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,5 @@ class AfterMediaSaved
1313

1414
public function __construct(
1515
public readonly Media $media,
16-
) {
17-
}
16+
) {}
1817
}

src/Events/AfterMediaUploaded.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,5 @@ class AfterMediaUploaded
1313

1414
public function __construct(
1515
public readonly Media $media,
16-
) {
17-
}
16+
) {}
1817
}

src/Exceptions/DeleteDirectoryException.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,4 @@
55

66
use Exception;
77

8-
class DeleteDirectoryException extends Exception
9-
{
10-
}
8+
class DeleteDirectoryException extends Exception {}

src/Exceptions/DeleteFileException.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,4 @@
55

66
use Exception;
77

8-
class DeleteFileException extends Exception
9-
{
10-
}
8+
class DeleteFileException extends Exception {}

src/Exceptions/FileNotFoundException.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,4 @@
55

66
use Exception;
77

8-
class FileNotFoundException extends Exception
9-
{
10-
}
8+
class FileNotFoundException extends Exception {}

src/Exceptions/NotWritableException.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,4 @@
55

66
use Exception;
77

8-
class NotWritableException extends Exception
9-
{
10-
}
8+
class NotWritableException extends Exception {}

src/Exceptions/PersistenceFailedException.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,4 @@
55

66
use Exception;
77

8-
class PersistenceFailedException extends Exception
9-
{
10-
}
8+
class PersistenceFailedException extends Exception {}

src/Exceptions/UploadException.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,4 @@
55

66
use Exception;
77

8-
class UploadException extends Exception
9-
{
10-
}
8+
class UploadException extends Exception {}

0 commit comments

Comments
 (0)