diff --git a/app/Legacy/Actions/Photo/Create.php b/app/Legacy/Actions/Photo/Create.php index 2c05ab3b790..1cb59c7a718 100644 --- a/app/Legacy/Actions/Photo/Create.php +++ b/app/Legacy/Actions/Photo/Create.php @@ -35,7 +35,7 @@ use Illuminate\Database\Eloquent\ModelNotFoundException; use function Safe\filemtime; -class Create +final class Create { /** @var ImportParam the strategy parameters prepared and compiled by this class */ protected ImportParam $strategyParameters; diff --git a/app/Legacy/Actions/Photo/Strategies/AddDuplicateStrategy.php b/app/Legacy/Actions/Photo/Strategies/AddDuplicateStrategy.php index cc6e28142bc..9a4f383312f 100644 --- a/app/Legacy/Actions/Photo/Strategies/AddDuplicateStrategy.php +++ b/app/Legacy/Actions/Photo/Strategies/AddDuplicateStrategy.php @@ -16,7 +16,7 @@ use Illuminate\Database\Eloquent\ModelNotFoundException; use Illuminate\Support\Facades\Log; -class AddDuplicateStrategy extends AbstractAddStrategy +final class AddDuplicateStrategy extends AbstractAddStrategy { public function __construct(ImportParam $parameters, Photo $existing) { diff --git a/app/Legacy/Actions/Photo/Strategies/AddPhotoPartnerStrategy.php b/app/Legacy/Actions/Photo/Strategies/AddPhotoPartnerStrategy.php index ef93bb27fe4..65e34a0b295 100644 --- a/app/Legacy/Actions/Photo/Strategies/AddPhotoPartnerStrategy.php +++ b/app/Legacy/Actions/Photo/Strategies/AddPhotoPartnerStrategy.php @@ -25,7 +25,7 @@ * requires the photo file to be a native, local file in order to be able to * extract EXIF data. */ -class AddPhotoPartnerStrategy extends AddStandaloneStrategy +final class AddPhotoPartnerStrategy extends AddStandaloneStrategy { protected Photo $existingVideo; diff --git a/app/Legacy/Actions/Photo/Strategies/AddVideoPartnerStrategy.php b/app/Legacy/Actions/Photo/Strategies/AddVideoPartnerStrategy.php index 9b5809b90fc..313a39506ae 100644 --- a/app/Legacy/Actions/Photo/Strategies/AddVideoPartnerStrategy.php +++ b/app/Legacy/Actions/Photo/Strategies/AddVideoPartnerStrategy.php @@ -32,7 +32,7 @@ * This allows to use {@link MediaFile} as the source of the video, because * no EXIF data needs to be extracted from the video. */ -class AddVideoPartnerStrategy extends AbstractAddStrategy +final class AddVideoPartnerStrategy extends AbstractAddStrategy { protected BaseMediaFile $videoSourceFile; diff --git a/app/Legacy/Actions/Settings/UpdateLogin.php b/app/Legacy/Actions/Settings/UpdateLogin.php index c57c0493fa7..7ca04a4876e 100644 --- a/app/Legacy/Actions/Settings/UpdateLogin.php +++ b/app/Legacy/Actions/Settings/UpdateLogin.php @@ -19,7 +19,7 @@ use Illuminate\Support\Facades\Hash; use Illuminate\Support\Facades\Log; -class UpdateLogin +final class UpdateLogin { /** * Changes and modifies login parameters of CURRENT user (may be admin). diff --git a/app/Legacy/Legacy.php b/app/Legacy/Legacy.php index 6b738d71d3a..97d63690064 100644 --- a/app/Legacy/Legacy.php +++ b/app/Legacy/Legacy.php @@ -20,7 +20,7 @@ /** * Stuff we need to delete in the future. */ -class Legacy +final class Legacy { public static function isLegacyModelID(string $id): bool { diff --git a/app/Legacy/V1/Actions/Albums/Tree.php b/app/Legacy/V1/Actions/Albums/Tree.php index ed51dc8273b..2df1866f5cd 100644 --- a/app/Legacy/V1/Actions/Albums/Tree.php +++ b/app/Legacy/V1/Actions/Albums/Tree.php @@ -22,7 +22,7 @@ use Illuminate\Support\Facades\Auth; use Kalnoy\Nestedset\Collection as NsCollection; -class Tree +final class Tree { private AlbumQueryPolicy $albumQueryPolicy; private AlbumSortingCriterion $sorting; diff --git a/app/Legacy/V1/Controllers/Administration/DiagnosticsController.php b/app/Legacy/V1/Controllers/Administration/DiagnosticsController.php index d951322252a..44ebf663829 100644 --- a/app/Legacy/V1/Controllers/Administration/DiagnosticsController.php +++ b/app/Legacy/V1/Controllers/Administration/DiagnosticsController.php @@ -34,7 +34,7 @@ use Illuminate\Support\Facades\Gate; use function Safe\json_encode; -class DiagnosticsController extends Controller +final class DiagnosticsController extends Controller { public const ERROR_MSG = 'You must have administrator rights to see this.'; diff --git a/app/Legacy/V1/Controllers/Administration/JobController.php b/app/Legacy/V1/Controllers/Administration/JobController.php index 68ec97a18b1..ef08a0e7f14 100644 --- a/app/Legacy/V1/Controllers/Administration/JobController.php +++ b/app/Legacy/V1/Controllers/Administration/JobController.php @@ -16,7 +16,7 @@ use Illuminate\Routing\Controller; use Illuminate\View\View; -class JobController extends Controller +final class JobController extends Controller { /** * @param string $order diff --git a/app/Legacy/V1/Controllers/Administration/OptimizeController.php b/app/Legacy/V1/Controllers/Administration/OptimizeController.php index 90648646da8..1a5834c5548 100644 --- a/app/Legacy/V1/Controllers/Administration/OptimizeController.php +++ b/app/Legacy/V1/Controllers/Administration/OptimizeController.php @@ -15,7 +15,7 @@ use Illuminate\Routing\Controller; use Illuminate\View\View; -class OptimizeController extends Controller +final class OptimizeController extends Controller { protected OptimizeDb $optimizeDb; protected OptimizeTables $optimizeTables; diff --git a/app/Legacy/V1/Controllers/Administration/SettingsController.php b/app/Legacy/V1/Controllers/Administration/SettingsController.php index bea49215e74..e7255b0d3b9 100644 --- a/app/Legacy/V1/Controllers/Administration/SettingsController.php +++ b/app/Legacy/V1/Controllers/Administration/SettingsController.php @@ -43,7 +43,7 @@ use Illuminate\Support\Facades\Storage; use Symfony\Component\HttpFoundation\Exception\BadRequestException; -class SettingsController extends Controller +final class SettingsController extends Controller { /** * Define the default sorting type. diff --git a/app/Legacy/V1/Controllers/Administration/SharingController.php b/app/Legacy/V1/Controllers/Administration/SharingController.php index 8350d2338e4..396ee325d6b 100644 --- a/app/Legacy/V1/Controllers/Administration/SharingController.php +++ b/app/Legacy/V1/Controllers/Administration/SharingController.php @@ -22,7 +22,7 @@ use Illuminate\Routing\Controller; use Illuminate\Support\Facades\DB; -class SharingController extends Controller +final class SharingController extends Controller { /** * Returns the list of sharing permissions wrt. the authenticated user. diff --git a/app/Legacy/V1/Controllers/Administration/UpdateController.php b/app/Legacy/V1/Controllers/Administration/UpdateController.php index aa169bc939a..c5488bf8870 100644 --- a/app/Legacy/V1/Controllers/Administration/UpdateController.php +++ b/app/Legacy/V1/Controllers/Administration/UpdateController.php @@ -49,7 +49,7 @@ * * TODO: Revise and refactor the whole logic around installation/upgrade/migration. */ -class UpdateController extends Controller +final class UpdateController extends Controller { protected ApplyUpdate $applyUpdate; diff --git a/app/Legacy/V1/Controllers/Administration/UserController.php b/app/Legacy/V1/Controllers/Administration/UserController.php index e0eea235da6..3ea2729606d 100644 --- a/app/Legacy/V1/Controllers/Administration/UserController.php +++ b/app/Legacy/V1/Controllers/Administration/UserController.php @@ -23,7 +23,7 @@ use Illuminate\Routing\Controller; use Illuminate\Support\Facades\Auth; -class UserController extends Controller +final class UserController extends Controller { /** * Update the Login information of the current user. diff --git a/app/Legacy/V1/Controllers/Administration/UsersController.php b/app/Legacy/V1/Controllers/Administration/UsersController.php index 87639781c73..c08a70ce4a9 100644 --- a/app/Legacy/V1/Controllers/Administration/UsersController.php +++ b/app/Legacy/V1/Controllers/Administration/UsersController.php @@ -26,7 +26,7 @@ use Illuminate\Routing\Controller; use Illuminate\Support\Facades\Auth; -class UsersController extends Controller +final class UsersController extends Controller { /** * @return ResourceCollection diff --git a/app/Legacy/V1/Controllers/AlbumController.php b/app/Legacy/V1/Controllers/AlbumController.php index beb1d39f73c..64504170baa 100644 --- a/app/Legacy/V1/Controllers/AlbumController.php +++ b/app/Legacy/V1/Controllers/AlbumController.php @@ -57,7 +57,7 @@ use Illuminate\Support\Facades\Auth; use Symfony\Component\HttpFoundation\StreamedResponse; -class AlbumController extends Controller +final class AlbumController extends Controller { /** * Add a new Album. diff --git a/app/Legacy/V1/Controllers/AlbumsController.php b/app/Legacy/V1/Controllers/AlbumsController.php index ed6ccd6713c..0602a577aa1 100644 --- a/app/Legacy/V1/Controllers/AlbumsController.php +++ b/app/Legacy/V1/Controllers/AlbumsController.php @@ -19,7 +19,7 @@ use App\Models\Configs; use Illuminate\Routing\Controller; -class AlbumsController extends Controller +final class AlbumsController extends Controller { /** * @return TopAlbumsResource returns the top albums diff --git a/app/Legacy/V1/Controllers/ImportController.php b/app/Legacy/V1/Controllers/ImportController.php index d053c4ca1d8..56bea4dfd8e 100644 --- a/app/Legacy/V1/Controllers/ImportController.php +++ b/app/Legacy/V1/Controllers/ImportController.php @@ -53,7 +53,7 @@ * * TODO: Refactor this, see problem description above. */ -class ImportController extends Controller +final class ImportController extends Controller { /** * @param ImportFromUrlRequest $request diff --git a/app/Legacy/V1/Controllers/IndexController.php b/app/Legacy/V1/Controllers/IndexController.php index 9f377a76ae8..b13b423e32d 100644 --- a/app/Legacy/V1/Controllers/IndexController.php +++ b/app/Legacy/V1/Controllers/IndexController.php @@ -23,7 +23,7 @@ use function Safe\file_get_contents; use function Safe\phpinfo; -class IndexController extends Controller +final class IndexController extends Controller { private SymLinkFunctions $symLinkFunctions; diff --git a/app/Legacy/V1/Controllers/LegacyController.php b/app/Legacy/V1/Controllers/LegacyController.php index 7404670c3e8..abdff04ca61 100644 --- a/app/Legacy/V1/Controllers/LegacyController.php +++ b/app/Legacy/V1/Controllers/LegacyController.php @@ -19,7 +19,7 @@ * * API calls which should not exist. ;-) */ -class LegacyController extends Controller +final class LegacyController extends Controller { /** * Translates IDs from legacy to modern format. diff --git a/app/Legacy/V1/Controllers/PhotoController.php b/app/Legacy/V1/Controllers/PhotoController.php index ef23fc90f4e..db80676e34a 100644 --- a/app/Legacy/V1/Controllers/PhotoController.php +++ b/app/Legacy/V1/Controllers/PhotoController.php @@ -44,7 +44,7 @@ use Illuminate\Support\Facades\App; use Symfony\Component\HttpFoundation\Response as SymfonyResponse; -class PhotoController extends Controller +final class PhotoController extends Controller { /** * @param SymLinkFunctions $symLinkFunctions diff --git a/app/Legacy/V1/Controllers/PhotoEditorController.php b/app/Legacy/V1/Controllers/PhotoEditorController.php index 2824b45fdb9..feccc6bcae8 100644 --- a/app/Legacy/V1/Controllers/PhotoEditorController.php +++ b/app/Legacy/V1/Controllers/PhotoEditorController.php @@ -16,7 +16,7 @@ use App\Models\Configs; use Illuminate\Routing\Controller; -class PhotoEditorController extends Controller +final class PhotoEditorController extends Controller { /** * Given a photoID and a direction (+1: 90° clockwise, -1: 90° counterclockwise) rotate an image. diff --git a/app/Legacy/V1/Controllers/RSSController.php b/app/Legacy/V1/Controllers/RSSController.php index 8cd784613a7..6c01181c20b 100644 --- a/app/Legacy/V1/Controllers/RSSController.php +++ b/app/Legacy/V1/Controllers/RSSController.php @@ -16,7 +16,10 @@ use Illuminate\Support\Collection; use Spatie\Feed\FeedItem; -class RSSController extends Controller +/** + * @codeCoverageIgnore Legacy stuff + */ +final class RSSController extends Controller { /** * @param Generate $generate diff --git a/app/Legacy/V1/Controllers/RedirectController.php b/app/Legacy/V1/Controllers/RedirectController.php index 8f3acbaace8..137ad2da0f2 100644 --- a/app/Legacy/V1/Controllers/RedirectController.php +++ b/app/Legacy/V1/Controllers/RedirectController.php @@ -23,7 +23,7 @@ use Illuminate\View\View; use Symfony\Component\HttpFoundation\Response as SymfonyResponse; -class RedirectController extends Controller +final class RedirectController extends Controller { protected Unlock $unlock; protected AlbumFactory $albumFactory; diff --git a/app/Legacy/V1/Controllers/SearchController.php b/app/Legacy/V1/Controllers/SearchController.php index 32214792c80..6386ca38fc3 100644 --- a/app/Legacy/V1/Controllers/SearchController.php +++ b/app/Legacy/V1/Controllers/SearchController.php @@ -15,7 +15,7 @@ use App\Legacy\V1\Resources\SearchResource; use Illuminate\Routing\Controller; -class SearchController extends Controller +final class SearchController extends Controller { /** * Given a string split it by spaces to get terms and make a like search on the database. diff --git a/app/Legacy/V1/Controllers/SessionController.php b/app/Legacy/V1/Controllers/SessionController.php index ff82aea8055..f91c5ad9323 100644 --- a/app/Legacy/V1/Controllers/SessionController.php +++ b/app/Legacy/V1/Controllers/SessionController.php @@ -23,7 +23,7 @@ use Illuminate\Support\Facades\Log; use Illuminate\Support\Facades\Session; -class SessionController extends Controller +final class SessionController extends Controller { /** * First function being called via AJAX. diff --git a/app/Legacy/V1/DTO/DiagnosticInfo.php b/app/Legacy/V1/DTO/DiagnosticInfo.php index 1f8cc2beab0..5b5d3530757 100644 --- a/app/Legacy/V1/DTO/DiagnosticInfo.php +++ b/app/Legacy/V1/DTO/DiagnosticInfo.php @@ -11,7 +11,7 @@ use App\DTO\ArrayableDTO; use App\Enum\UpdateStatus; -class DiagnosticInfo extends ArrayableDTO +final class DiagnosticInfo extends ArrayableDTO { /** * @param string[] $errors list of error messages diff --git a/app/Legacy/V1/Middleware/LoginRequiredV1.php b/app/Legacy/V1/Middleware/LoginRequiredV1.php index e8a641ed66e..eaaefffcfb2 100644 --- a/app/Legacy/V1/Middleware/LoginRequiredV1.php +++ b/app/Legacy/V1/Middleware/LoginRequiredV1.php @@ -22,7 +22,7 @@ * * This middleware is ensures that only logged in users can access Lychee. */ -class LoginRequiredV1 +final class LoginRequiredV1 { public const ROOT = 'root'; public const ALBUM = 'album'; diff --git a/app/Legacy/V1/Requests/Album/AddAlbumRequest.php b/app/Legacy/V1/Requests/Album/AddAlbumRequest.php index b5bd1a3b71c..ee717c8b064 100644 --- a/app/Legacy/V1/Requests/Album/AddAlbumRequest.php +++ b/app/Legacy/V1/Requests/Album/AddAlbumRequest.php @@ -20,7 +20,7 @@ use App\Policies\AlbumPolicy; use Illuminate\Support\Facades\Gate; -class AddAlbumRequest extends BaseApiRequest implements HasTitle, HasParentAlbum +final class AddAlbumRequest extends BaseApiRequest implements HasTitle, HasParentAlbum { use HasTitleTrait; use HasParentAlbumTrait; diff --git a/app/Legacy/V1/Requests/Album/AddTagAlbumRequest.php b/app/Legacy/V1/Requests/Album/AddTagAlbumRequest.php index 1b01de334b9..2ce78e1f469 100644 --- a/app/Legacy/V1/Requests/Album/AddTagAlbumRequest.php +++ b/app/Legacy/V1/Requests/Album/AddTagAlbumRequest.php @@ -19,7 +19,7 @@ use App\Policies\AlbumPolicy; use Illuminate\Support\Facades\Gate; -class AddTagAlbumRequest extends BaseApiRequest implements HasTitle, HasTags +final class AddTagAlbumRequest extends BaseApiRequest implements HasTitle, HasTags { use HasTitleTrait; use HasTagsTrait; diff --git a/app/Legacy/V1/Requests/Album/ArchiveAlbumsRequest.php b/app/Legacy/V1/Requests/Album/ArchiveAlbumsRequest.php index 2d4c294b1aa..b432462f7de 100644 --- a/app/Legacy/V1/Requests/Album/ArchiveAlbumsRequest.php +++ b/app/Legacy/V1/Requests/Album/ArchiveAlbumsRequest.php @@ -20,7 +20,7 @@ /** * @implements HasAlbums<\App\Contracts\Models\AbstractAlbum> */ -class ArchiveAlbumsRequest extends BaseApiRequest implements HasAlbums +final class ArchiveAlbumsRequest extends BaseApiRequest implements HasAlbums { /** @use HasAlbumsTrait */ use HasAlbumsTrait; diff --git a/app/Legacy/V1/Requests/Album/DeleteAlbumsRequest.php b/app/Legacy/V1/Requests/Album/DeleteAlbumsRequest.php index 97734660a27..0a9b614fc57 100644 --- a/app/Legacy/V1/Requests/Album/DeleteAlbumsRequest.php +++ b/app/Legacy/V1/Requests/Album/DeleteAlbumsRequest.php @@ -17,7 +17,7 @@ use App\Policies\AlbumPolicy; use Illuminate\Support\Facades\Gate; -class DeleteAlbumsRequest extends BaseApiRequest implements HasAlbumIDs +final class DeleteAlbumsRequest extends BaseApiRequest implements HasAlbumIDs { use HasAlbumIDsTrait; diff --git a/app/Legacy/V1/Requests/Album/DeleteTrackRequest.php b/app/Legacy/V1/Requests/Album/DeleteTrackRequest.php index fa0a1d78333..dcf16897150 100644 --- a/app/Legacy/V1/Requests/Album/DeleteTrackRequest.php +++ b/app/Legacy/V1/Requests/Album/DeleteTrackRequest.php @@ -16,7 +16,7 @@ use App\Legacy\V1\RuleSets\Album\BasicAlbumIdRuleSet; use App\Models\Album; -class DeleteTrackRequest extends BaseApiRequest implements HasAlbum +final class DeleteTrackRequest extends BaseApiRequest implements HasAlbum { use HasAlbumTrait; use AuthorizeCanEditAlbumTrait; diff --git a/app/Legacy/V1/Requests/Album/GetAlbumPositionDataRequest.php b/app/Legacy/V1/Requests/Album/GetAlbumPositionDataRequest.php index 01cb6b9f05a..47270ede119 100644 --- a/app/Legacy/V1/Requests/Album/GetAlbumPositionDataRequest.php +++ b/app/Legacy/V1/Requests/Album/GetAlbumPositionDataRequest.php @@ -17,7 +17,7 @@ use App\Rules\AlbumIDRule; use Illuminate\Support\Facades\Gate; -class GetAlbumPositionDataRequest extends BaseApiRequest implements HasAbstractAlbum +final class GetAlbumPositionDataRequest extends BaseApiRequest implements HasAbstractAlbum { use HasAbstractAlbumTrait; diff --git a/app/Legacy/V1/Requests/Album/GetAlbumRequest.php b/app/Legacy/V1/Requests/Album/GetAlbumRequest.php index b2698c55ed5..ed3206927ea 100644 --- a/app/Legacy/V1/Requests/Album/GetAlbumRequest.php +++ b/app/Legacy/V1/Requests/Album/GetAlbumRequest.php @@ -19,7 +19,7 @@ use App\Policies\AlbumPolicy; use Illuminate\Support\Facades\Gate; -class GetAlbumRequest extends BaseApiRequest implements HasAbstractAlbum +final class GetAlbumRequest extends BaseApiRequest implements HasAbstractAlbum { use HasAbstractAlbumTrait; diff --git a/app/Legacy/V1/Requests/Album/MergeAlbumsRequest.php b/app/Legacy/V1/Requests/Album/MergeAlbumsRequest.php index 0e10cbe2a89..db586d35187 100644 --- a/app/Legacy/V1/Requests/Album/MergeAlbumsRequest.php +++ b/app/Legacy/V1/Requests/Album/MergeAlbumsRequest.php @@ -21,7 +21,7 @@ /** * @implements HasAlbums */ -class MergeAlbumsRequest extends BaseApiRequest implements HasAlbum, HasAlbums +final class MergeAlbumsRequest extends BaseApiRequest implements HasAlbum, HasAlbums { use HasAlbumTrait; /** @phpstan-use HasAlbumsTrait */ diff --git a/app/Legacy/V1/Requests/Album/MoveAlbumsRequest.php b/app/Legacy/V1/Requests/Album/MoveAlbumsRequest.php index 652bb83f426..36da0867b0b 100644 --- a/app/Legacy/V1/Requests/Album/MoveAlbumsRequest.php +++ b/app/Legacy/V1/Requests/Album/MoveAlbumsRequest.php @@ -21,7 +21,7 @@ /** * @implements HasAlbums */ -class MoveAlbumsRequest extends BaseApiRequest implements HasAlbum, HasAlbums +final class MoveAlbumsRequest extends BaseApiRequest implements HasAlbum, HasAlbums { use HasAlbumTrait; /** @phpstan-use HasAlbumsTrait */ diff --git a/app/Legacy/V1/Requests/Album/SetAlbumCopyrightRequest.php b/app/Legacy/V1/Requests/Album/SetAlbumCopyrightRequest.php index 19b4bf0ad1a..f652f3ea1ff 100644 --- a/app/Legacy/V1/Requests/Album/SetAlbumCopyrightRequest.php +++ b/app/Legacy/V1/Requests/Album/SetAlbumCopyrightRequest.php @@ -18,7 +18,7 @@ use App\Rules\CopyrightRule; use App\Rules\RandomIDRule; -class SetAlbumCopyrightRequest extends BaseApiRequest implements HasBaseAlbum, HasCopyright +final class SetAlbumCopyrightRequest extends BaseApiRequest implements HasBaseAlbum, HasCopyright { use HasBaseAlbumTrait; use HasCopyrightTrait; diff --git a/app/Legacy/V1/Requests/Album/SetAlbumCoverRequest.php b/app/Legacy/V1/Requests/Album/SetAlbumCoverRequest.php index 9dcbec7840e..f6fb8a56d2e 100644 --- a/app/Legacy/V1/Requests/Album/SetAlbumCoverRequest.php +++ b/app/Legacy/V1/Requests/Album/SetAlbumCoverRequest.php @@ -22,7 +22,7 @@ use App\Policies\PhotoPolicy; use Illuminate\Support\Facades\Gate; -class SetAlbumCoverRequest extends BaseApiRequest implements HasAlbum, HasPhoto +final class SetAlbumCoverRequest extends BaseApiRequest implements HasAlbum, HasPhoto { use HasAlbumTrait; use HasPhotoTrait; diff --git a/app/Legacy/V1/Requests/Album/SetAlbumDescriptionRequest.php b/app/Legacy/V1/Requests/Album/SetAlbumDescriptionRequest.php index 1dd4d60b490..7f8d2216be4 100644 --- a/app/Legacy/V1/Requests/Album/SetAlbumDescriptionRequest.php +++ b/app/Legacy/V1/Requests/Album/SetAlbumDescriptionRequest.php @@ -18,7 +18,7 @@ use App\Rules\DescriptionRule; use App\Rules\RandomIDRule; -class SetAlbumDescriptionRequest extends BaseApiRequest implements HasBaseAlbum, HasDescription +final class SetAlbumDescriptionRequest extends BaseApiRequest implements HasBaseAlbum, HasDescription { use HasBaseAlbumTrait; use HasDescriptionTrait; diff --git a/app/Legacy/V1/Requests/Album/SetAlbumHeaderRequest.php b/app/Legacy/V1/Requests/Album/SetAlbumHeaderRequest.php index f17a49612b4..9fac85b73a8 100644 --- a/app/Legacy/V1/Requests/Album/SetAlbumHeaderRequest.php +++ b/app/Legacy/V1/Requests/Album/SetAlbumHeaderRequest.php @@ -22,7 +22,7 @@ use App\Policies\PhotoPolicy; use Illuminate\Support\Facades\Gate; -class SetAlbumHeaderRequest extends BaseApiRequest implements HasAlbum, HasPhoto +final class SetAlbumHeaderRequest extends BaseApiRequest implements HasAlbum, HasPhoto { use HasAlbumTrait; use HasPhotoTrait; diff --git a/app/Legacy/V1/Requests/Album/SetAlbumLicenseRequest.php b/app/Legacy/V1/Requests/Album/SetAlbumLicenseRequest.php index c90ae4e23a8..a6b4e312a33 100644 --- a/app/Legacy/V1/Requests/Album/SetAlbumLicenseRequest.php +++ b/app/Legacy/V1/Requests/Album/SetAlbumLicenseRequest.php @@ -20,7 +20,7 @@ use App\Rules\RandomIDRule; use Illuminate\Validation\Rules\Enum; -class SetAlbumLicenseRequest extends BaseApiRequest implements HasAlbum, HasLicense +final class SetAlbumLicenseRequest extends BaseApiRequest implements HasAlbum, HasLicense { use HasAlbumTrait; use HasLicenseTrait; diff --git a/app/Legacy/V1/Requests/Album/SetAlbumNSFWRequest.php b/app/Legacy/V1/Requests/Album/SetAlbumNSFWRequest.php index 640c1c76855..72f2588fc48 100644 --- a/app/Legacy/V1/Requests/Album/SetAlbumNSFWRequest.php +++ b/app/Legacy/V1/Requests/Album/SetAlbumNSFWRequest.php @@ -18,7 +18,7 @@ /** * Class SetAlbumNSFWRequest. */ -class SetAlbumNSFWRequest extends BaseApiRequest implements HasBaseAlbum +final class SetAlbumNSFWRequest extends BaseApiRequest implements HasBaseAlbum { use HasBaseAlbumTrait; use AuthorizeCanEditAlbumTrait; diff --git a/app/Legacy/V1/Requests/Album/SetAlbumProtectionPolicyRequest.php b/app/Legacy/V1/Requests/Album/SetAlbumProtectionPolicyRequest.php index d4658886361..5f4935f19ee 100644 --- a/app/Legacy/V1/Requests/Album/SetAlbumProtectionPolicyRequest.php +++ b/app/Legacy/V1/Requests/Album/SetAlbumProtectionPolicyRequest.php @@ -19,7 +19,7 @@ use App\Rules\PasswordRule; use App\Rules\RandomIDRule; -class SetAlbumProtectionPolicyRequest extends BaseApiRequest implements HasBaseAlbum, HasPassword +final class SetAlbumProtectionPolicyRequest extends BaseApiRequest implements HasBaseAlbum, HasPassword { use HasBaseAlbumTrait; use HasPasswordTrait; diff --git a/app/Legacy/V1/Requests/Album/SetAlbumSortingRequest.php b/app/Legacy/V1/Requests/Album/SetAlbumSortingRequest.php index 4809ee12c36..a28d1f78e33 100644 --- a/app/Legacy/V1/Requests/Album/SetAlbumSortingRequest.php +++ b/app/Legacy/V1/Requests/Album/SetAlbumSortingRequest.php @@ -21,7 +21,7 @@ use App\Rules\RandomIDRule; use Illuminate\Validation\Rules\Enum; -class SetAlbumSortingRequest extends BaseApiRequest implements HasBaseAlbum, HasSortingCriterion +final class SetAlbumSortingRequest extends BaseApiRequest implements HasBaseAlbum, HasSortingCriterion { use HasBaseAlbumTrait; use HasSortingCriterionTrait; diff --git a/app/Legacy/V1/Requests/Album/SetAlbumTagsRequest.php b/app/Legacy/V1/Requests/Album/SetAlbumTagsRequest.php index 1e7f1e7ae7d..be306050d1a 100644 --- a/app/Legacy/V1/Requests/Album/SetAlbumTagsRequest.php +++ b/app/Legacy/V1/Requests/Album/SetAlbumTagsRequest.php @@ -18,7 +18,7 @@ use App\Legacy\V1\RuleSets\Album\SetAlbumTagRuleSet; use App\Models\TagAlbum; -class SetAlbumTagsRequest extends BaseApiRequest implements HasTagAlbum, HasTags +final class SetAlbumTagsRequest extends BaseApiRequest implements HasTagAlbum, HasTags { use HasTagAlbumTrait; use HasTagsTrait; diff --git a/app/Legacy/V1/Requests/Album/SetAlbumTrackRequest.php b/app/Legacy/V1/Requests/Album/SetAlbumTrackRequest.php index 7173f38d456..5b532dcfc3c 100644 --- a/app/Legacy/V1/Requests/Album/SetAlbumTrackRequest.php +++ b/app/Legacy/V1/Requests/Album/SetAlbumTrackRequest.php @@ -17,7 +17,7 @@ use App\Rules\AlbumIDRule; use Illuminate\Http\UploadedFile; -class SetAlbumTrackRequest extends BaseApiRequest implements HasAlbum +final class SetAlbumTrackRequest extends BaseApiRequest implements HasAlbum { use HasAlbumTrait; use AuthorizeCanEditAlbumTrait; diff --git a/app/Legacy/V1/Requests/Album/SetAlbumsTitleRequest.php b/app/Legacy/V1/Requests/Album/SetAlbumsTitleRequest.php index e21f709d261..d30f7955446 100644 --- a/app/Legacy/V1/Requests/Album/SetAlbumsTitleRequest.php +++ b/app/Legacy/V1/Requests/Album/SetAlbumsTitleRequest.php @@ -27,7 +27,7 @@ * * @implements HasAlbums<\App\Models\Album|\App\Models\TagAlbum> */ -class SetAlbumsTitleRequest extends BaseApiRequest implements HasTitle, HasAlbums +final class SetAlbumsTitleRequest extends BaseApiRequest implements HasTitle, HasAlbums { use HasTitleTrait; /** @use HasAlbumsTrait<\App\Models\Album|\App\Models\TagAlbum> */ diff --git a/app/Legacy/V1/Requests/Album/UnlockAlbumRequest.php b/app/Legacy/V1/Requests/Album/UnlockAlbumRequest.php index 4d216d08657..30c84ea0294 100644 --- a/app/Legacy/V1/Requests/Album/UnlockAlbumRequest.php +++ b/app/Legacy/V1/Requests/Album/UnlockAlbumRequest.php @@ -16,7 +16,7 @@ use App\Legacy\V1\Requests\Traits\HasPasswordTrait; use App\Legacy\V1\RuleSets\Album\UnlockAlbumRuleSet; -class UnlockAlbumRequest extends BaseApiRequest implements HasBaseAlbum, HasPassword +final class UnlockAlbumRequest extends BaseApiRequest implements HasBaseAlbum, HasPassword { use HasBaseAlbumTrait; use HasPasswordTrait; diff --git a/app/Legacy/V1/Requests/Import/CancelImportServerRequest.php b/app/Legacy/V1/Requests/Import/CancelImportServerRequest.php index e9140d271f0..9ce7cdee492 100644 --- a/app/Legacy/V1/Requests/Import/CancelImportServerRequest.php +++ b/app/Legacy/V1/Requests/Import/CancelImportServerRequest.php @@ -13,7 +13,7 @@ use App\Policies\AlbumPolicy; use Illuminate\Support\Facades\Gate; -class CancelImportServerRequest extends AbstractEmptyRequest +final class CancelImportServerRequest extends AbstractEmptyRequest { /** * {@inheritDoc} diff --git a/app/Legacy/V1/Requests/Import/ImportFromUrlRequest.php b/app/Legacy/V1/Requests/Import/ImportFromUrlRequest.php index 06c1bd8789f..747f7c2f258 100644 --- a/app/Legacy/V1/Requests/Import/ImportFromUrlRequest.php +++ b/app/Legacy/V1/Requests/Import/ImportFromUrlRequest.php @@ -16,7 +16,7 @@ use App\Legacy\V1\RuleSets\Import\ImportFromUrlRuleSet; use App\Models\Album; -class ImportFromUrlRequest extends BaseApiRequest implements HasAlbum +final class ImportFromUrlRequest extends BaseApiRequest implements HasAlbum { use HasAlbumTrait; use AuthorizeCanEditAlbumTrait; diff --git a/app/Legacy/V1/Requests/Import/ImportServerRequest.php b/app/Legacy/V1/Requests/Import/ImportServerRequest.php index 14b11ce807d..e829e36fa1f 100644 --- a/app/Legacy/V1/Requests/Import/ImportServerRequest.php +++ b/app/Legacy/V1/Requests/Import/ImportServerRequest.php @@ -20,7 +20,7 @@ use App\Policies\AlbumPolicy; use Illuminate\Support\Facades\Gate; -class ImportServerRequest extends BaseApiRequest implements HasAlbum +final class ImportServerRequest extends BaseApiRequest implements HasAlbum { use HasAlbumTrait; diff --git a/app/Legacy/V1/Requests/Legacy/TranslateIDRequest.php b/app/Legacy/V1/Requests/Legacy/TranslateIDRequest.php index 2fdb1fa82c5..a52a9cd45e1 100644 --- a/app/Legacy/V1/Requests/Legacy/TranslateIDRequest.php +++ b/app/Legacy/V1/Requests/Legacy/TranslateIDRequest.php @@ -12,7 +12,7 @@ use App\Legacy\V1\Contracts\Http\Requests\RequestAttribute; use App\Rules\IntegerIDRule; -class TranslateIDRequest extends BaseApiRequest +final class TranslateIDRequest extends BaseApiRequest { protected ?int $albumID = null; protected ?int $photoID = null; diff --git a/app/Legacy/V1/Requests/Logs/ShowJobsRequest.php b/app/Legacy/V1/Requests/Logs/ShowJobsRequest.php index 645df152087..446975899a7 100644 --- a/app/Legacy/V1/Requests/Logs/ShowJobsRequest.php +++ b/app/Legacy/V1/Requests/Logs/ShowJobsRequest.php @@ -13,7 +13,7 @@ use App\Policies\SettingsPolicy; use Illuminate\Support\Facades\Gate; -class ShowJobsRequest extends AbstractEmptyRequest +final class ShowJobsRequest extends AbstractEmptyRequest { /** * {@inheritDoc} diff --git a/app/Legacy/V1/Requests/Photo/AddPhotoRequest.php b/app/Legacy/V1/Requests/Photo/AddPhotoRequest.php index 4b5e59cfd9a..dbab3f5a16a 100644 --- a/app/Legacy/V1/Requests/Photo/AddPhotoRequest.php +++ b/app/Legacy/V1/Requests/Photo/AddPhotoRequest.php @@ -16,7 +16,7 @@ use App\Legacy\V1\RuleSets\Photo\AddPhotoRuleSet; use Illuminate\Http\UploadedFile; -class AddPhotoRequest extends BaseApiRequest implements HasAbstractAlbum +final class AddPhotoRequest extends BaseApiRequest implements HasAbstractAlbum { use HasAbstractAlbumTrait; use AuthorizeCanEditAlbumTrait; diff --git a/app/Legacy/V1/Requests/Photo/ArchivePhotosRequest.php b/app/Legacy/V1/Requests/Photo/ArchivePhotosRequest.php index abe800f84e8..d333ce1ca61 100644 --- a/app/Legacy/V1/Requests/Photo/ArchivePhotosRequest.php +++ b/app/Legacy/V1/Requests/Photo/ArchivePhotosRequest.php @@ -20,7 +20,7 @@ use App\Policies\PhotoPolicy; use Illuminate\Support\Facades\Gate; -class ArchivePhotosRequest extends BaseApiRequest implements HasPhotos, HasSizeVariant +final class ArchivePhotosRequest extends BaseApiRequest implements HasPhotos, HasSizeVariant { use HasPhotosTrait; use HasSizeVariantTrait; diff --git a/app/Legacy/V1/Requests/Photo/ClearSymLinkRequest.php b/app/Legacy/V1/Requests/Photo/ClearSymLinkRequest.php index 6e8067fe30b..8b4a0f8cb31 100644 --- a/app/Legacy/V1/Requests/Photo/ClearSymLinkRequest.php +++ b/app/Legacy/V1/Requests/Photo/ClearSymLinkRequest.php @@ -11,7 +11,7 @@ use App\Http\Requests\AbstractEmptyRequest; use Illuminate\Support\Facades\Auth; -class ClearSymLinkRequest extends AbstractEmptyRequest +final class ClearSymLinkRequest extends AbstractEmptyRequest { /** * {@inheritDoc} diff --git a/app/Legacy/V1/Requests/Photo/DeletePhotosRequest.php b/app/Legacy/V1/Requests/Photo/DeletePhotosRequest.php index 4f56017f72f..3150bc3385c 100644 --- a/app/Legacy/V1/Requests/Photo/DeletePhotosRequest.php +++ b/app/Legacy/V1/Requests/Photo/DeletePhotosRequest.php @@ -17,7 +17,7 @@ use App\Policies\PhotoPolicy; use Illuminate\Support\Facades\Gate; -class DeletePhotosRequest extends BaseApiRequest implements HasPhotoIDs +final class DeletePhotosRequest extends BaseApiRequest implements HasPhotoIDs { use HasPhotoIDsTrait; diff --git a/app/Legacy/V1/Requests/Photo/DuplicatePhotosRequest.php b/app/Legacy/V1/Requests/Photo/DuplicatePhotosRequest.php index 693061b36d1..ca98eff29ef 100644 --- a/app/Legacy/V1/Requests/Photo/DuplicatePhotosRequest.php +++ b/app/Legacy/V1/Requests/Photo/DuplicatePhotosRequest.php @@ -19,7 +19,7 @@ use App\Models\Album; use App\Models\Photo; -class DuplicatePhotosRequest extends BaseApiRequest implements HasPhotos, HasAlbum +final class DuplicatePhotosRequest extends BaseApiRequest implements HasPhotos, HasAlbum { use HasPhotosTrait; use HasAlbumTrait; diff --git a/app/Legacy/V1/Requests/Photo/GetPhotoRequest.php b/app/Legacy/V1/Requests/Photo/GetPhotoRequest.php index ab66dcca614..c7235387d46 100644 --- a/app/Legacy/V1/Requests/Photo/GetPhotoRequest.php +++ b/app/Legacy/V1/Requests/Photo/GetPhotoRequest.php @@ -17,7 +17,7 @@ use App\Policies\PhotoPolicy; use Illuminate\Support\Facades\Gate; -class GetPhotoRequest extends BaseApiRequest implements HasPhoto +final class GetPhotoRequest extends BaseApiRequest implements HasPhoto { use HasPhotoTrait; diff --git a/app/Legacy/V1/Requests/Photo/MovePhotosRequest.php b/app/Legacy/V1/Requests/Photo/MovePhotosRequest.php index 9809f475f47..4fc634706f1 100644 --- a/app/Legacy/V1/Requests/Photo/MovePhotosRequest.php +++ b/app/Legacy/V1/Requests/Photo/MovePhotosRequest.php @@ -19,7 +19,7 @@ use App\Models\Album; use App\Models\Photo; -class MovePhotosRequest extends BaseApiRequest implements HasPhotos, HasAlbum +final class MovePhotosRequest extends BaseApiRequest implements HasPhotos, HasAlbum { use HasPhotosTrait; use HasAlbumTrait; diff --git a/app/Legacy/V1/Requests/Photo/RotatePhotoRequest.php b/app/Legacy/V1/Requests/Photo/RotatePhotoRequest.php index 85c93c5ed74..1730bfcefbc 100644 --- a/app/Legacy/V1/Requests/Photo/RotatePhotoRequest.php +++ b/app/Legacy/V1/Requests/Photo/RotatePhotoRequest.php @@ -16,7 +16,7 @@ use App\Legacy\V1\RuleSets\Photo\RotatePhotoRuleSet; use App\Models\Photo; -class RotatePhotoRequest extends BaseApiRequest implements HasPhoto +final class RotatePhotoRequest extends BaseApiRequest implements HasPhoto { use HasPhotoTrait; use AuthorizeCanEditPhotoTrait; diff --git a/app/Legacy/V1/Requests/Photo/SetPhotoDescriptionRequest.php b/app/Legacy/V1/Requests/Photo/SetPhotoDescriptionRequest.php index 6b248c34985..907986e06a5 100644 --- a/app/Legacy/V1/Requests/Photo/SetPhotoDescriptionRequest.php +++ b/app/Legacy/V1/Requests/Photo/SetPhotoDescriptionRequest.php @@ -18,7 +18,7 @@ use App\Legacy\V1\RuleSets\Photo\SetPhotoDescriptionRuleSet; use App\Models\Photo; -class SetPhotoDescriptionRequest extends BaseApiRequest implements HasPhoto, HasDescription +final class SetPhotoDescriptionRequest extends BaseApiRequest implements HasPhoto, HasDescription { use HasPhotoTrait; use HasDescriptionTrait; diff --git a/app/Legacy/V1/Requests/Photo/SetPhotoLicenseRequest.php b/app/Legacy/V1/Requests/Photo/SetPhotoLicenseRequest.php index a56fb1f8090..9a71227538f 100644 --- a/app/Legacy/V1/Requests/Photo/SetPhotoLicenseRequest.php +++ b/app/Legacy/V1/Requests/Photo/SetPhotoLicenseRequest.php @@ -19,7 +19,7 @@ use App\Legacy\V1\RuleSets\Photo\SetPhotoLicenseRuleSet; use App\Models\Photo; -class SetPhotoLicenseRequest extends BaseApiRequest implements HasPhoto, HasLicense +final class SetPhotoLicenseRequest extends BaseApiRequest implements HasPhoto, HasLicense { use HasPhotoTrait; use HasLicenseTrait; diff --git a/app/Legacy/V1/Requests/Photo/SetPhotoUploadDateRequest.php b/app/Legacy/V1/Requests/Photo/SetPhotoUploadDateRequest.php index 811cc741270..d96d146d268 100644 --- a/app/Legacy/V1/Requests/Photo/SetPhotoUploadDateRequest.php +++ b/app/Legacy/V1/Requests/Photo/SetPhotoUploadDateRequest.php @@ -19,7 +19,7 @@ use App\Models\Photo; use Illuminate\Support\Carbon; -class SetPhotoUploadDateRequest extends BaseApiRequest implements HasPhoto, HasDate +final class SetPhotoUploadDateRequest extends BaseApiRequest implements HasPhoto, HasDate { use HasPhotoTrait; use HasDateTrait; diff --git a/app/Legacy/V1/Requests/Photo/SetPhotosStarredRequest.php b/app/Legacy/V1/Requests/Photo/SetPhotosStarredRequest.php index b0daced7d19..ba06f220e94 100644 --- a/app/Legacy/V1/Requests/Photo/SetPhotosStarredRequest.php +++ b/app/Legacy/V1/Requests/Photo/SetPhotosStarredRequest.php @@ -19,7 +19,7 @@ /** * Class SetPhotosStarredRequest. */ -class SetPhotosStarredRequest extends BaseApiRequest implements HasPhotos +final class SetPhotosStarredRequest extends BaseApiRequest implements HasPhotos { use HasPhotosTrait; use AuthorizeCanEditPhotosTrait; diff --git a/app/Legacy/V1/Requests/Photo/SetPhotosTagsRequest.php b/app/Legacy/V1/Requests/Photo/SetPhotosTagsRequest.php index 9ccbc6154c4..e65ef17f22f 100644 --- a/app/Legacy/V1/Requests/Photo/SetPhotosTagsRequest.php +++ b/app/Legacy/V1/Requests/Photo/SetPhotosTagsRequest.php @@ -18,7 +18,7 @@ use App\Legacy\V1\RuleSets\Photo\SetPhotosTagsRuleSet; use App\Models\Photo; -class SetPhotosTagsRequest extends BaseApiRequest implements HasPhotos, HasTags +final class SetPhotosTagsRequest extends BaseApiRequest implements HasPhotos, HasTags { use HasPhotosTrait; use HasTagsTrait; diff --git a/app/Legacy/V1/Requests/Photo/SetPhotosTitleRequest.php b/app/Legacy/V1/Requests/Photo/SetPhotosTitleRequest.php index b41d74bcefa..9dcd1158802 100644 --- a/app/Legacy/V1/Requests/Photo/SetPhotosTitleRequest.php +++ b/app/Legacy/V1/Requests/Photo/SetPhotosTitleRequest.php @@ -18,7 +18,7 @@ use App\Legacy\V1\RuleSets\Photo\SetPhotosTitleRuleSet; use App\Models\Photo; -class SetPhotosTitleRequest extends BaseApiRequest implements HasPhotos, HasTitle +final class SetPhotosTitleRequest extends BaseApiRequest implements HasPhotos, HasTitle { use HasPhotosTrait; use HasTitleTrait; diff --git a/app/Legacy/V1/Requests/Search/SearchRequest.php b/app/Legacy/V1/Requests/Search/SearchRequest.php index 158061ac24a..f3e63686933 100644 --- a/app/Legacy/V1/Requests/Search/SearchRequest.php +++ b/app/Legacy/V1/Requests/Search/SearchRequest.php @@ -12,7 +12,7 @@ use App\Models\Configs; use Illuminate\Support\Facades\Auth; -class SearchRequest extends BaseApiRequest +final class SearchRequest extends BaseApiRequest { public const TERM_ATTRIBUTE = 'term'; diff --git a/app/Legacy/V1/Requests/Settings/GetSetAllSettingsRequest.php b/app/Legacy/V1/Requests/Settings/GetSetAllSettingsRequest.php index 029b2f57454..d095759f1d9 100644 --- a/app/Legacy/V1/Requests/Settings/GetSetAllSettingsRequest.php +++ b/app/Legacy/V1/Requests/Settings/GetSetAllSettingsRequest.php @@ -17,7 +17,7 @@ /** * @mixin Request */ -class GetSetAllSettingsRequest extends AbstractEmptyRequest +final class GetSetAllSettingsRequest extends AbstractEmptyRequest { /** * {@inheritDoc} diff --git a/app/Legacy/V1/Requests/Settings/MigrateRequest.php b/app/Legacy/V1/Requests/Settings/MigrateRequest.php index dee541a15b0..60fe770a2c7 100644 --- a/app/Legacy/V1/Requests/Settings/MigrateRequest.php +++ b/app/Legacy/V1/Requests/Settings/MigrateRequest.php @@ -27,7 +27,7 @@ /** * @mixin Request */ -class MigrateRequest extends BaseApiRequest implements HasUsername, HasPassword +final class MigrateRequest extends BaseApiRequest implements HasUsername, HasPassword { use HasUsernameTrait; use HasPasswordTrait; diff --git a/app/Legacy/V1/Requests/Settings/OptimizeRequest.php b/app/Legacy/V1/Requests/Settings/OptimizeRequest.php index b6898d1966f..6ca3f9bfe60 100644 --- a/app/Legacy/V1/Requests/Settings/OptimizeRequest.php +++ b/app/Legacy/V1/Requests/Settings/OptimizeRequest.php @@ -17,7 +17,7 @@ /** * @mixin Request */ -class OptimizeRequest extends AbstractEmptyRequest +final class OptimizeRequest extends AbstractEmptyRequest { /** * {@inheritDoc} diff --git a/app/Legacy/V1/Requests/Settings/SetAlbumDecorationRequest.php b/app/Legacy/V1/Requests/Settings/SetAlbumDecorationRequest.php index ed3b0442966..03af9c2bdc5 100644 --- a/app/Legacy/V1/Requests/Settings/SetAlbumDecorationRequest.php +++ b/app/Legacy/V1/Requests/Settings/SetAlbumDecorationRequest.php @@ -17,7 +17,7 @@ use Illuminate\Support\Facades\Gate; use Illuminate\Validation\Rules\Enum; -class SetAlbumDecorationRequest extends BaseApiRequest +final class SetAlbumDecorationRequest extends BaseApiRequest { protected AlbumDecorationType $albumDecoration; protected AlbumDecorationOrientation $albumDecorationOrientation; diff --git a/app/Legacy/V1/Requests/Settings/SetCSSSettingRequest.php b/app/Legacy/V1/Requests/Settings/SetCSSSettingRequest.php index a7654964d87..dd9ee34aa84 100644 --- a/app/Legacy/V1/Requests/Settings/SetCSSSettingRequest.php +++ b/app/Legacy/V1/Requests/Settings/SetCSSSettingRequest.php @@ -8,7 +8,7 @@ namespace App\Legacy\V1\Requests\Settings; -class SetCSSSettingRequest extends AbstractSettingRequest +final class SetCSSSettingRequest extends AbstractSettingRequest { public const ATTRIBUTE = 'css'; diff --git a/app/Legacy/V1/Requests/Settings/SetDefaultLicenseSettingRequest.php b/app/Legacy/V1/Requests/Settings/SetDefaultLicenseSettingRequest.php index d8783de46c1..2e2a2c4c68c 100644 --- a/app/Legacy/V1/Requests/Settings/SetDefaultLicenseSettingRequest.php +++ b/app/Legacy/V1/Requests/Settings/SetDefaultLicenseSettingRequest.php @@ -11,7 +11,7 @@ use App\Enum\LicenseType; use Illuminate\Validation\Rules\Enum; -class SetDefaultLicenseSettingRequest extends AbstractSettingRequest +final class SetDefaultLicenseSettingRequest extends AbstractSettingRequest { public function rules(): array { diff --git a/app/Legacy/V1/Requests/Settings/SetDropboxKeySettingRequest.php b/app/Legacy/V1/Requests/Settings/SetDropboxKeySettingRequest.php index ef4fa7108e6..1e6b8c77933 100644 --- a/app/Legacy/V1/Requests/Settings/SetDropboxKeySettingRequest.php +++ b/app/Legacy/V1/Requests/Settings/SetDropboxKeySettingRequest.php @@ -8,7 +8,7 @@ namespace App\Legacy\V1\Requests\Settings; -class SetDropboxKeySettingRequest extends AbstractSettingRequest +final class SetDropboxKeySettingRequest extends AbstractSettingRequest { public function rules(): array { diff --git a/app/Legacy/V1/Requests/Settings/SetImageOverlaySettingRequest.php b/app/Legacy/V1/Requests/Settings/SetImageOverlaySettingRequest.php index f6d6892523a..c17aab4e500 100644 --- a/app/Legacy/V1/Requests/Settings/SetImageOverlaySettingRequest.php +++ b/app/Legacy/V1/Requests/Settings/SetImageOverlaySettingRequest.php @@ -11,7 +11,7 @@ use App\Enum\ImageOverlayType; use Illuminate\Validation\Rules\Enum; -class SetImageOverlaySettingRequest extends AbstractSettingRequest +final class SetImageOverlaySettingRequest extends AbstractSettingRequest { public const ATTRIBUTE = 'image_overlay_type'; diff --git a/app/Legacy/V1/Requests/Settings/SetJSSettingRequest.php b/app/Legacy/V1/Requests/Settings/SetJSSettingRequest.php index 1305a1615ec..c19e187502a 100644 --- a/app/Legacy/V1/Requests/Settings/SetJSSettingRequest.php +++ b/app/Legacy/V1/Requests/Settings/SetJSSettingRequest.php @@ -8,7 +8,7 @@ namespace App\Legacy\V1\Requests\Settings; -class SetJSSettingRequest extends AbstractSettingRequest +final class SetJSSettingRequest extends AbstractSettingRequest { public const ATTRIBUTE = 'js'; diff --git a/app/Legacy/V1/Requests/Settings/SetLangSettingRequest.php b/app/Legacy/V1/Requests/Settings/SetLangSettingRequest.php index 769994cefc9..ba7f3fc5c7e 100644 --- a/app/Legacy/V1/Requests/Settings/SetLangSettingRequest.php +++ b/app/Legacy/V1/Requests/Settings/SetLangSettingRequest.php @@ -10,7 +10,7 @@ use Illuminate\Validation\Rule; -class SetLangSettingRequest extends AbstractSettingRequest +final class SetLangSettingRequest extends AbstractSettingRequest { public const ATTRIBUTE = 'lang'; diff --git a/app/Legacy/V1/Requests/Settings/SetLayoutSettingRequest.php b/app/Legacy/V1/Requests/Settings/SetLayoutSettingRequest.php index 248023712fb..79cdbb75a69 100644 --- a/app/Legacy/V1/Requests/Settings/SetLayoutSettingRequest.php +++ b/app/Legacy/V1/Requests/Settings/SetLayoutSettingRequest.php @@ -11,7 +11,7 @@ use App\Enum\PhotoLayoutType; use Illuminate\Validation\Rules\Enum; -class SetLayoutSettingRequest extends AbstractSettingRequest +final class SetLayoutSettingRequest extends AbstractSettingRequest { public const ATTRIBUTE = 'layout'; diff --git a/app/Legacy/V1/Requests/Settings/SetLocationDecodingSettingRequest.php b/app/Legacy/V1/Requests/Settings/SetLocationDecodingSettingRequest.php index 99f10553201..085bbb49543 100644 --- a/app/Legacy/V1/Requests/Settings/SetLocationDecodingSettingRequest.php +++ b/app/Legacy/V1/Requests/Settings/SetLocationDecodingSettingRequest.php @@ -8,7 +8,7 @@ namespace App\Legacy\V1\Requests\Settings; -class SetLocationDecodingSettingRequest extends AbstractSettingRequest +final class SetLocationDecodingSettingRequest extends AbstractSettingRequest { public const ATTRIBUTE = 'location_decoding'; diff --git a/app/Legacy/V1/Requests/Settings/SetLocationShowPublicSettingRequest.php b/app/Legacy/V1/Requests/Settings/SetLocationShowPublicSettingRequest.php index 5978d2bb4b6..c87e36baba7 100644 --- a/app/Legacy/V1/Requests/Settings/SetLocationShowPublicSettingRequest.php +++ b/app/Legacy/V1/Requests/Settings/SetLocationShowPublicSettingRequest.php @@ -8,7 +8,7 @@ namespace App\Legacy\V1\Requests\Settings; -class SetLocationShowPublicSettingRequest extends AbstractSettingRequest +final class SetLocationShowPublicSettingRequest extends AbstractSettingRequest { public const ATTRIBUTE = 'location_show_public'; diff --git a/app/Legacy/V1/Requests/Settings/SetLocationShowSettingRequest.php b/app/Legacy/V1/Requests/Settings/SetLocationShowSettingRequest.php index 796bb147bcd..3e945c540ac 100644 --- a/app/Legacy/V1/Requests/Settings/SetLocationShowSettingRequest.php +++ b/app/Legacy/V1/Requests/Settings/SetLocationShowSettingRequest.php @@ -8,7 +8,7 @@ namespace App\Legacy\V1\Requests\Settings; -class SetLocationShowSettingRequest extends AbstractSettingRequest +final class SetLocationShowSettingRequest extends AbstractSettingRequest { public const ATTRIBUTE = 'location_show'; diff --git a/app/Legacy/V1/Requests/Settings/SetMapDisplayPublicSettingRequest.php b/app/Legacy/V1/Requests/Settings/SetMapDisplayPublicSettingRequest.php index 2ac6077ba81..bf94d3ea902 100644 --- a/app/Legacy/V1/Requests/Settings/SetMapDisplayPublicSettingRequest.php +++ b/app/Legacy/V1/Requests/Settings/SetMapDisplayPublicSettingRequest.php @@ -8,7 +8,7 @@ namespace App\Legacy\V1\Requests\Settings; -class SetMapDisplayPublicSettingRequest extends AbstractSettingRequest +final class SetMapDisplayPublicSettingRequest extends AbstractSettingRequest { public const ATTRIBUTE = 'map_display_public'; diff --git a/app/Legacy/V1/Requests/Settings/SetMapDisplaySettingRequest.php b/app/Legacy/V1/Requests/Settings/SetMapDisplaySettingRequest.php index 2619be6c4fe..91b72b906b4 100644 --- a/app/Legacy/V1/Requests/Settings/SetMapDisplaySettingRequest.php +++ b/app/Legacy/V1/Requests/Settings/SetMapDisplaySettingRequest.php @@ -8,7 +8,7 @@ namespace App\Legacy\V1\Requests\Settings; -class SetMapDisplaySettingRequest extends AbstractSettingRequest +final class SetMapDisplaySettingRequest extends AbstractSettingRequest { public const ATTRIBUTE = 'map_display'; diff --git a/app/Legacy/V1/Requests/Settings/SetMapIncludeSubAlbumsSettingRequest.php b/app/Legacy/V1/Requests/Settings/SetMapIncludeSubAlbumsSettingRequest.php index 48c8c12cd81..42613df560e 100644 --- a/app/Legacy/V1/Requests/Settings/SetMapIncludeSubAlbumsSettingRequest.php +++ b/app/Legacy/V1/Requests/Settings/SetMapIncludeSubAlbumsSettingRequest.php @@ -8,7 +8,7 @@ namespace App\Legacy\V1\Requests\Settings; -class SetMapIncludeSubAlbumsSettingRequest extends AbstractSettingRequest +final class SetMapIncludeSubAlbumsSettingRequest extends AbstractSettingRequest { public const ATTRIBUTE = 'map_include_subalbums'; diff --git a/app/Legacy/V1/Requests/Settings/SetMapProviderSettingRequest.php b/app/Legacy/V1/Requests/Settings/SetMapProviderSettingRequest.php index 0353fc69312..274c55bd18a 100644 --- a/app/Legacy/V1/Requests/Settings/SetMapProviderSettingRequest.php +++ b/app/Legacy/V1/Requests/Settings/SetMapProviderSettingRequest.php @@ -11,7 +11,7 @@ use App\Enum\MapProviders; use Illuminate\Validation\Rules\Enum; -class SetMapProviderSettingRequest extends AbstractSettingRequest +final class SetMapProviderSettingRequest extends AbstractSettingRequest { public const ATTRIBUTE = 'map_provider'; diff --git a/app/Legacy/V1/Requests/Settings/SetNSFWVisibilityRequest.php b/app/Legacy/V1/Requests/Settings/SetNSFWVisibilityRequest.php index 03fba1a03a1..6e78daa744a 100644 --- a/app/Legacy/V1/Requests/Settings/SetNSFWVisibilityRequest.php +++ b/app/Legacy/V1/Requests/Settings/SetNSFWVisibilityRequest.php @@ -8,7 +8,7 @@ namespace App\Legacy\V1\Requests\Settings; -class SetNSFWVisibilityRequest extends AbstractSettingRequest +final class SetNSFWVisibilityRequest extends AbstractSettingRequest { public const ATTRIBUTE = 'nsfw_visible'; diff --git a/app/Legacy/V1/Requests/Settings/SetNewPhotosNotificationSettingRequest.php b/app/Legacy/V1/Requests/Settings/SetNewPhotosNotificationSettingRequest.php index ac8fed257c7..8aa00a9f15e 100644 --- a/app/Legacy/V1/Requests/Settings/SetNewPhotosNotificationSettingRequest.php +++ b/app/Legacy/V1/Requests/Settings/SetNewPhotosNotificationSettingRequest.php @@ -8,7 +8,7 @@ namespace App\Legacy\V1\Requests\Settings; -class SetNewPhotosNotificationSettingRequest extends AbstractSettingRequest +final class SetNewPhotosNotificationSettingRequest extends AbstractSettingRequest { public const ATTRIBUTE = 'new_photos_notification'; diff --git a/app/Legacy/V1/Requests/Settings/SetPublicSearchSettingRequest.php b/app/Legacy/V1/Requests/Settings/SetPublicSearchSettingRequest.php index 010d24bda6a..b61b0eeb146 100644 --- a/app/Legacy/V1/Requests/Settings/SetPublicSearchSettingRequest.php +++ b/app/Legacy/V1/Requests/Settings/SetPublicSearchSettingRequest.php @@ -8,7 +8,7 @@ namespace App\Legacy\V1\Requests\Settings; -class SetPublicSearchSettingRequest extends AbstractSettingRequest +final class SetPublicSearchSettingRequest extends AbstractSettingRequest { public const ATTRIBUTE = 'search_public'; diff --git a/app/Legacy/V1/Requests/Settings/SetSmartAlbumVisibilityRequest.php b/app/Legacy/V1/Requests/Settings/SetSmartAlbumVisibilityRequest.php index ccba6371abe..4acd6783619 100644 --- a/app/Legacy/V1/Requests/Settings/SetSmartAlbumVisibilityRequest.php +++ b/app/Legacy/V1/Requests/Settings/SetSmartAlbumVisibilityRequest.php @@ -20,7 +20,7 @@ use Illuminate\Support\Facades\Gate; use Illuminate\Validation\Rules\In; -class SetSmartAlbumVisibilityRequest extends BaseApiRequest implements HasAbstractAlbum, HasIsPublic +final class SetSmartAlbumVisibilityRequest extends BaseApiRequest implements HasAbstractAlbum, HasIsPublic { use HasAbstractAlbumTrait; use HasIsPublicTrait; diff --git a/app/Legacy/V1/Requests/Settings/SetSortingSettingsRequest.php b/app/Legacy/V1/Requests/Settings/SetSortingSettingsRequest.php index dbfdc4f617a..e5a38935b10 100644 --- a/app/Legacy/V1/Requests/Settings/SetSortingSettingsRequest.php +++ b/app/Legacy/V1/Requests/Settings/SetSortingSettingsRequest.php @@ -17,7 +17,7 @@ use Illuminate\Support\Facades\Gate; use Illuminate\Validation\Rules\Enum; -class SetSortingSettingsRequest extends BaseApiRequest +final class SetSortingSettingsRequest extends BaseApiRequest { public const PHOTO_SORTING_COLUMN_ATTRIBUTE = 'sorting_photos_column'; public const PHOTO_SORTING_ORDER_ATTRIBUTE = 'sorting_photos_order'; diff --git a/app/Legacy/V1/Requests/Settings/UpdateRequest.php b/app/Legacy/V1/Requests/Settings/UpdateRequest.php index 387b467cdea..963a7ea7347 100644 --- a/app/Legacy/V1/Requests/Settings/UpdateRequest.php +++ b/app/Legacy/V1/Requests/Settings/UpdateRequest.php @@ -17,7 +17,7 @@ /** * @mixin Request */ -class UpdateRequest extends AbstractEmptyRequest +final class UpdateRequest extends AbstractEmptyRequest { /** * {@inheritDoc} diff --git a/app/Legacy/V1/Requests/Sharing/AddSharesRequest.php b/app/Legacy/V1/Requests/Sharing/AddSharesRequest.php index db74d276a90..c7e96f2bf78 100644 --- a/app/Legacy/V1/Requests/Sharing/AddSharesRequest.php +++ b/app/Legacy/V1/Requests/Sharing/AddSharesRequest.php @@ -20,7 +20,7 @@ use App\Rules\RandomIDRule; use Illuminate\Support\Facades\Gate; -class AddSharesRequest extends BaseApiRequest implements HasAlbumIDs, HasUserIDs +final class AddSharesRequest extends BaseApiRequest implements HasAlbumIDs, HasUserIDs { use HasAlbumIDsTrait; use HasUserIDsTrait; diff --git a/app/Legacy/V1/Requests/Sharing/DeleteSharingRequest.php b/app/Legacy/V1/Requests/Sharing/DeleteSharingRequest.php index 6e35d5d9d00..878ef91605c 100644 --- a/app/Legacy/V1/Requests/Sharing/DeleteSharingRequest.php +++ b/app/Legacy/V1/Requests/Sharing/DeleteSharingRequest.php @@ -14,7 +14,7 @@ use App\Rules\IntegerIDRule; use Illuminate\Support\Facades\Gate; -class DeleteSharingRequest extends BaseApiRequest +final class DeleteSharingRequest extends BaseApiRequest { public const SHARE_IDS_ATTRIBUTE = 'shareIDs'; diff --git a/app/Legacy/V1/Requests/Sharing/ListSharingRequest.php b/app/Legacy/V1/Requests/Sharing/ListSharingRequest.php index 25b06c13016..369763b670f 100644 --- a/app/Legacy/V1/Requests/Sharing/ListSharingRequest.php +++ b/app/Legacy/V1/Requests/Sharing/ListSharingRequest.php @@ -36,7 +36,7 @@ * user ID or owner ID or an album ID they own in the request. * Only the admin is allowed to make an unrestricted query. */ -class ListSharingRequest extends BaseApiRequest implements HasBaseAlbum +final class ListSharingRequest extends BaseApiRequest implements HasBaseAlbum { use HasBaseAlbumTrait; public const OWNER_ID_ATTRIBUTE = 'ownerID'; diff --git a/app/Legacy/V1/Requests/Sharing/SetSharesByAlbumRequest.php b/app/Legacy/V1/Requests/Sharing/SetSharesByAlbumRequest.php index bc19a9849c1..53d920335ff 100644 --- a/app/Legacy/V1/Requests/Sharing/SetSharesByAlbumRequest.php +++ b/app/Legacy/V1/Requests/Sharing/SetSharesByAlbumRequest.php @@ -25,7 +25,7 @@ * * Only the owner (or the admin) of the album can set the shares. */ -class SetSharesByAlbumRequest extends BaseApiRequest implements HasBaseAlbum, HasUserIDs +final class SetSharesByAlbumRequest extends BaseApiRequest implements HasBaseAlbum, HasUserIDs { use HasBaseAlbumTrait; use HasUserIDsTrait; diff --git a/app/Legacy/V1/Requests/User/ChangeLoginRequest.php b/app/Legacy/V1/Requests/User/ChangeLoginRequest.php index 5f116b1408b..2a114430192 100644 --- a/app/Legacy/V1/Requests/User/ChangeLoginRequest.php +++ b/app/Legacy/V1/Requests/User/ChangeLoginRequest.php @@ -17,7 +17,7 @@ use App\Policies\UserPolicy; use Illuminate\Support\Facades\Gate; -class ChangeLoginRequest extends BaseApiRequest implements HasPassword +final class ChangeLoginRequest extends BaseApiRequest implements HasPassword { use HasPasswordTrait; diff --git a/app/Legacy/V1/Requests/User/ChangeTokenRequest.php b/app/Legacy/V1/Requests/User/ChangeTokenRequest.php index 420141eb293..9f4d4293332 100644 --- a/app/Legacy/V1/Requests/User/ChangeTokenRequest.php +++ b/app/Legacy/V1/Requests/User/ChangeTokenRequest.php @@ -13,7 +13,7 @@ use App\Policies\UserPolicy; use Illuminate\Support\Facades\Gate; -class ChangeTokenRequest extends AbstractEmptyRequest +final class ChangeTokenRequest extends AbstractEmptyRequest { /** * {@inheritDoc} diff --git a/app/Legacy/V1/Requests/User/SetEmailRequest.php b/app/Legacy/V1/Requests/User/SetEmailRequest.php index 0116b06505e..76d3cdf53a2 100644 --- a/app/Legacy/V1/Requests/User/SetEmailRequest.php +++ b/app/Legacy/V1/Requests/User/SetEmailRequest.php @@ -15,7 +15,7 @@ use App\Policies\UserPolicy; use Illuminate\Support\Facades\Gate; -class SetEmailRequest extends BaseApiRequest +final class SetEmailRequest extends BaseApiRequest { protected ?string $email = null; diff --git a/app/Legacy/V1/Requests/Users/AddUserRequest.php b/app/Legacy/V1/Requests/Users/AddUserRequest.php index 88349c81029..f2e0a1ebef7 100644 --- a/app/Legacy/V1/Requests/Users/AddUserRequest.php +++ b/app/Legacy/V1/Requests/Users/AddUserRequest.php @@ -19,7 +19,7 @@ use App\Policies\UserPolicy; use Illuminate\Support\Facades\Gate; -class AddUserRequest extends BaseApiRequest implements HasUsername, HasPassword +final class AddUserRequest extends BaseApiRequest implements HasUsername, HasPassword { use HasUsernameTrait; use HasPasswordTrait; diff --git a/app/Legacy/V1/Requests/Users/DeleteUserRequest.php b/app/Legacy/V1/Requests/Users/DeleteUserRequest.php index 373abbf552d..ded5057fc5f 100644 --- a/app/Legacy/V1/Requests/Users/DeleteUserRequest.php +++ b/app/Legacy/V1/Requests/Users/DeleteUserRequest.php @@ -17,7 +17,7 @@ use App\Rules\IntegerIDRule; use Illuminate\Support\Facades\Gate; -class DeleteUserRequest extends BaseApiRequest implements HasUser +final class DeleteUserRequest extends BaseApiRequest implements HasUser { use HasUserTrait; diff --git a/app/Legacy/V1/Requests/Users/ListUsersRequest.php b/app/Legacy/V1/Requests/Users/ListUsersRequest.php index e63dc28f4ae..a00ae8cb4ea 100644 --- a/app/Legacy/V1/Requests/Users/ListUsersRequest.php +++ b/app/Legacy/V1/Requests/Users/ListUsersRequest.php @@ -13,7 +13,7 @@ use App\Policies\UserPolicy; use Illuminate\Support\Facades\Gate; -class ListUsersRequest extends AbstractEmptyRequest +final class ListUsersRequest extends AbstractEmptyRequest { /** * {@inheritDoc} diff --git a/app/Legacy/V1/Requests/Users/SetUserSettingsRequest.php b/app/Legacy/V1/Requests/Users/SetUserSettingsRequest.php index 1d232b6b0b6..7136284382c 100644 --- a/app/Legacy/V1/Requests/Users/SetUserSettingsRequest.php +++ b/app/Legacy/V1/Requests/Users/SetUserSettingsRequest.php @@ -21,7 +21,7 @@ use App\Policies\UserPolicy; use Illuminate\Support\Facades\Gate; -class SetUserSettingsRequest extends BaseApiRequest implements HasUsername, HasPassword, HasUser +final class SetUserSettingsRequest extends BaseApiRequest implements HasUsername, HasPassword, HasUser { use HasUsernameTrait; use HasPasswordTrait; diff --git a/app/Legacy/V1/Requests/View/GetPhotoViewRequest.php b/app/Legacy/V1/Requests/View/GetPhotoViewRequest.php index 6b21682eb2b..a7e38d3cb6f 100644 --- a/app/Legacy/V1/Requests/View/GetPhotoViewRequest.php +++ b/app/Legacy/V1/Requests/View/GetPhotoViewRequest.php @@ -16,7 +16,7 @@ use App\Rules\RandomIDRule; use Illuminate\Support\Facades\Gate; -class GetPhotoViewRequest extends BaseApiRequest implements HasPhoto +final class GetPhotoViewRequest extends BaseApiRequest implements HasPhoto { use HasPhotoTrait; public const URL_QUERY_PARAM = 'p'; diff --git a/app/Legacy/V1/Resources/Collections/AlbumCollectionResource.php b/app/Legacy/V1/Resources/Collections/AlbumCollectionResource.php index e383820b934..ae4ad68839b 100644 --- a/app/Legacy/V1/Resources/Collections/AlbumCollectionResource.php +++ b/app/Legacy/V1/Resources/Collections/AlbumCollectionResource.php @@ -14,7 +14,7 @@ /** * Provide stronger typechecking for Album collections. */ -class AlbumCollectionResource extends ResourceCollection +final class AlbumCollectionResource extends ResourceCollection { /** * The resource that this resource collects. diff --git a/app/Legacy/V1/Resources/Collections/AlbumForestResource.php b/app/Legacy/V1/Resources/Collections/AlbumForestResource.php index 90f818d844a..dfb440fff3d 100644 --- a/app/Legacy/V1/Resources/Collections/AlbumForestResource.php +++ b/app/Legacy/V1/Resources/Collections/AlbumForestResource.php @@ -15,7 +15,7 @@ /** * Resource returned when querying for the full tree of acccessible albums. */ -class AlbumForestResource extends JsonResource +final class AlbumForestResource extends JsonResource { /** * @param Collection $albums diff --git a/app/Legacy/V1/Resources/Collections/PhotoCollectionResource.php b/app/Legacy/V1/Resources/Collections/PhotoCollectionResource.php index 10d66e84601..42e994102fb 100644 --- a/app/Legacy/V1/Resources/Collections/PhotoCollectionResource.php +++ b/app/Legacy/V1/Resources/Collections/PhotoCollectionResource.php @@ -17,7 +17,7 @@ * It does not provides with the next/previous photo connection. * This aims to solve this problem. */ -class PhotoCollectionResource extends ResourceCollection +final class PhotoCollectionResource extends ResourceCollection { /** * The resource that this resource collects. diff --git a/app/Legacy/V1/Resources/Collections/PositionDataResource.php b/app/Legacy/V1/Resources/Collections/PositionDataResource.php index a66a94b4ad6..3de1dffb3dc 100644 --- a/app/Legacy/V1/Resources/Collections/PositionDataResource.php +++ b/app/Legacy/V1/Resources/Collections/PositionDataResource.php @@ -15,7 +15,7 @@ /** * Resource returned when querying for pictures on the map. */ -class PositionDataResource extends JsonResource +final class PositionDataResource extends JsonResource { public ?string $id; public ?string $title; diff --git a/app/Legacy/V1/Resources/Collections/TopAlbumsResource.php b/app/Legacy/V1/Resources/Collections/TopAlbumsResource.php index 9c95e27439f..dd5cf3db206 100644 --- a/app/Legacy/V1/Resources/Collections/TopAlbumsResource.php +++ b/app/Legacy/V1/Resources/Collections/TopAlbumsResource.php @@ -24,7 +24,7 @@ * other users.) * Actually, in this context "shared albums" means "foreign albums". */ -class TopAlbumsResource extends JsonResource +final class TopAlbumsResource extends JsonResource { /** * @param Collection $smart_albums diff --git a/app/Legacy/V1/Resources/ConfigurationResource.php b/app/Legacy/V1/Resources/ConfigurationResource.php index c834586666f..63753b69e0a 100644 --- a/app/Legacy/V1/Resources/ConfigurationResource.php +++ b/app/Legacy/V1/Resources/ConfigurationResource.php @@ -30,7 +30,7 @@ use Illuminate\Support\Facades\Auth; use Spatie\Feed\Helpers\FeedContentType; -class ConfigurationResource extends JsonResource +final class ConfigurationResource extends JsonResource { public function __construct() { diff --git a/app/Legacy/V1/Resources/InitResource.php b/app/Legacy/V1/Resources/InitResource.php index 6330581048e..cb25af4c9d5 100644 --- a/app/Legacy/V1/Resources/InitResource.php +++ b/app/Legacy/V1/Resources/InitResource.php @@ -16,7 +16,7 @@ use Illuminate\Http\Resources\Json\JsonResource; use Illuminate\Support\Facades\Auth; -class InitResource extends JsonResource +final class InitResource extends JsonResource { public function __construct() { diff --git a/app/Legacy/V1/Resources/Models/AlbumResource.php b/app/Legacy/V1/Resources/Models/AlbumResource.php index 690c7f4e1ad..84c9adcd054 100644 --- a/app/Legacy/V1/Resources/Models/AlbumResource.php +++ b/app/Legacy/V1/Resources/Models/AlbumResource.php @@ -20,7 +20,7 @@ /** * Basic album conversion when using get(). */ -class AlbumResource extends JsonResource +final class AlbumResource extends JsonResource { use WithStatus; diff --git a/app/Legacy/V1/Resources/Models/AlbumTreeResource.php b/app/Legacy/V1/Resources/Models/AlbumTreeResource.php index 62e10912b24..699b392c139 100644 --- a/app/Legacy/V1/Resources/Models/AlbumTreeResource.php +++ b/app/Legacy/V1/Resources/Models/AlbumTreeResource.php @@ -14,7 +14,7 @@ /** * Slimmed-down when requesting the tree of accessible albums. */ -class AlbumTreeResource extends JsonResource +final class AlbumTreeResource extends JsonResource { /** * Album to slim down. diff --git a/app/Legacy/V1/Resources/Models/PhotoResource.php b/app/Legacy/V1/Resources/Models/PhotoResource.php index b3b30e0f4d3..a70e441efa6 100644 --- a/app/Legacy/V1/Resources/Models/PhotoResource.php +++ b/app/Legacy/V1/Resources/Models/PhotoResource.php @@ -30,7 +30,7 @@ * * @property Photo $resource */ -class PhotoResource extends JsonResource +final class PhotoResource extends JsonResource { use WithStatus; diff --git a/app/Legacy/V1/Resources/Models/SizeVariantResource.php b/app/Legacy/V1/Resources/Models/SizeVariantResource.php index 5cccc54e63e..bf3ab10d785 100644 --- a/app/Legacy/V1/Resources/Models/SizeVariantResource.php +++ b/app/Legacy/V1/Resources/Models/SizeVariantResource.php @@ -15,7 +15,7 @@ * Size variant conversions. * Supports a noUrl flag which will remove the url on output. */ -class SizeVariantResource extends JsonResource +final class SizeVariantResource extends JsonResource { private bool $noUrl = false; diff --git a/app/Legacy/V1/Resources/Models/SmartAlbumResource.php b/app/Legacy/V1/Resources/Models/SmartAlbumResource.php index ef2c8e79b76..85b9cc6656b 100644 --- a/app/Legacy/V1/Resources/Models/SmartAlbumResource.php +++ b/app/Legacy/V1/Resources/Models/SmartAlbumResource.php @@ -17,7 +17,7 @@ /** * Converts a Smart album into a resource with all the required data. */ -class SmartAlbumResource extends JsonResource +final class SmartAlbumResource extends JsonResource { public function __construct(BaseSmartAlbum $smartAlbum) { diff --git a/app/Legacy/V1/Resources/Models/TagAlbumResource.php b/app/Legacy/V1/Resources/Models/TagAlbumResource.php index 075bb805566..defab864ef0 100644 --- a/app/Legacy/V1/Resources/Models/TagAlbumResource.php +++ b/app/Legacy/V1/Resources/Models/TagAlbumResource.php @@ -19,7 +19,7 @@ /** * Format a Tag album with all the required data. */ -class TagAlbumResource extends JsonResource +final class TagAlbumResource extends JsonResource { use WithStatus; diff --git a/app/Legacy/V1/Resources/Models/UserManagementResource.php b/app/Legacy/V1/Resources/Models/UserManagementResource.php index 88afd2c9dd4..fc1cc702552 100644 --- a/app/Legacy/V1/Resources/Models/UserManagementResource.php +++ b/app/Legacy/V1/Resources/Models/UserManagementResource.php @@ -16,7 +16,7 @@ /** * Format a User for user management tasks, only give the required info. */ -class UserManagementResource extends JsonResource +final class UserManagementResource extends JsonResource { use WithStatus; diff --git a/app/Legacy/V1/Resources/Models/UserResource.php b/app/Legacy/V1/Resources/Models/UserResource.php index bb09da5dffd..5e51f60ea4d 100644 --- a/app/Legacy/V1/Resources/Models/UserResource.php +++ b/app/Legacy/V1/Resources/Models/UserResource.php @@ -16,7 +16,7 @@ /** * Format a User for their own profile. */ -class UserResource extends JsonResource +final class UserResource extends JsonResource { use WithStatus; diff --git a/app/Legacy/V1/Resources/Rights/AlbumRightsResource.php b/app/Legacy/V1/Resources/Rights/AlbumRightsResource.php index f6ac0e2ecd1..f88deab0293 100644 --- a/app/Legacy/V1/Resources/Rights/AlbumRightsResource.php +++ b/app/Legacy/V1/Resources/Rights/AlbumRightsResource.php @@ -16,7 +16,7 @@ /** * This DTO provides the information whether some actions are available to the user. */ -class AlbumRightsResource extends JsonResource +final class AlbumRightsResource extends JsonResource { public bool $can_edit; public bool $can_share_with_users; diff --git a/app/Legacy/V1/Resources/Rights/GlobalRightsResource.php b/app/Legacy/V1/Resources/Rights/GlobalRightsResource.php index b110ab459fb..58be8cf6d13 100644 --- a/app/Legacy/V1/Resources/Rights/GlobalRightsResource.php +++ b/app/Legacy/V1/Resources/Rights/GlobalRightsResource.php @@ -13,7 +13,7 @@ /** * This DTO provides the application rights of the user. */ -class GlobalRightsResource extends JsonResource +final class GlobalRightsResource extends JsonResource { public function __construct() { diff --git a/app/Legacy/V1/Resources/Rights/PhotoRightsResource.php b/app/Legacy/V1/Resources/Rights/PhotoRightsResource.php index 5c30cabc6bb..bf7db704e30 100644 --- a/app/Legacy/V1/Resources/Rights/PhotoRightsResource.php +++ b/app/Legacy/V1/Resources/Rights/PhotoRightsResource.php @@ -16,7 +16,7 @@ /** * This DTO provides the information whether some actions are available to the user. */ -class PhotoRightsResource extends JsonResource +final class PhotoRightsResource extends JsonResource { public bool $can_edit; public bool $can_download; diff --git a/app/Legacy/V1/Resources/Rights/RootAlbumRightsResource.php b/app/Legacy/V1/Resources/Rights/RootAlbumRightsResource.php index 444b635717f..ffbe1d91290 100644 --- a/app/Legacy/V1/Resources/Rights/RootAlbumRightsResource.php +++ b/app/Legacy/V1/Resources/Rights/RootAlbumRightsResource.php @@ -16,7 +16,7 @@ /** * Data Transfer Object (DTO) to transmit the rights of an user at the root level. */ -class RootAlbumRightsResource extends JsonResource +final class RootAlbumRightsResource extends JsonResource { public function __construct() { diff --git a/app/Legacy/V1/Resources/Rights/SettingsRightsResource.php b/app/Legacy/V1/Resources/Rights/SettingsRightsResource.php index 3e6bb4901eb..36b695a2fa8 100644 --- a/app/Legacy/V1/Resources/Rights/SettingsRightsResource.php +++ b/app/Legacy/V1/Resources/Rights/SettingsRightsResource.php @@ -16,7 +16,7 @@ /** * Data Transfer Object (DTO) to transmit the rights of an user on the application settings. */ -class SettingsRightsResource extends JsonResource +final class SettingsRightsResource extends JsonResource { public function __construct() { diff --git a/app/Legacy/V1/Resources/Rights/UserManagementRightsResource.php b/app/Legacy/V1/Resources/Rights/UserManagementRightsResource.php index de6283ebd2d..5bda30ae11d 100644 --- a/app/Legacy/V1/Resources/Rights/UserManagementRightsResource.php +++ b/app/Legacy/V1/Resources/Rights/UserManagementRightsResource.php @@ -16,7 +16,7 @@ /** * Data Transfer Object (DTO) to transmit the rights of an user on different user accounts. */ -class UserManagementRightsResource extends JsonResource +final class UserManagementRightsResource extends JsonResource { public function __construct() { diff --git a/app/Legacy/V1/Resources/Rights/UserRightsResource.php b/app/Legacy/V1/Resources/Rights/UserRightsResource.php index 8dc31475228..faca579b64a 100644 --- a/app/Legacy/V1/Resources/Rights/UserRightsResource.php +++ b/app/Legacy/V1/Resources/Rights/UserRightsResource.php @@ -16,7 +16,7 @@ /** * Data Transfer Object (DTO) to transmit the rights of an user. */ -class UserRightsResource extends JsonResource +final class UserRightsResource extends JsonResource { public function __construct() { diff --git a/app/Legacy/V1/Resources/SearchResource.php b/app/Legacy/V1/Resources/SearchResource.php index 348191d176b..b69ebebfa45 100644 --- a/app/Legacy/V1/Resources/SearchResource.php +++ b/app/Legacy/V1/Resources/SearchResource.php @@ -17,7 +17,7 @@ use Illuminate\Http\Resources\Json\JsonResource; use Illuminate\Support\Collection; -class SearchResource extends JsonResource +final class SearchResource extends JsonResource { /** * @param Collection $albums