Remove redundant typing from DocBlocks

This commit is contained in:
Shift
2023-05-24 21:33:17 +00:00
parent 4d7d0ed74d
commit 5faf49688d
86 changed files with 3 additions and 396 deletions

View File

@@ -39,7 +39,6 @@ class ArticleConductor extends Conductor
* Run a scope query on the collection before anything else.
*
* @param Builder $builder The builder in use.
* @return void
*/
public function scope(Builder $builder): void
{

View File

@@ -143,7 +143,6 @@ class Conductor
*
* @param Request $request The user request.
* @param array|null $limitFields A list of fields to limit the filter request to.
* @return void
*/
private function filter(Request $request, array|null $limitFields = null): void
{
@@ -210,8 +209,6 @@ class Conductor
/**
* Apple the filter array to the collection.
*
* @return void
*/
final public function applyFilters(): void
{
@@ -503,7 +500,6 @@ class Conductor
* @param Builder $query The custom query.
* @param Request $request The request.
* @param array|null $limitFields Limit the request to these fields.
* @return Builder
*/
public static function filterQuery(Builder $query, Request $request, array|null $limitFields = null): Builder
{
@@ -619,7 +615,6 @@ class Conductor
* Sort the conductor collection.
*
* @param mixed $fields A field name or array of field names to sort. Supports prefix of +/- to change direction.
* @return void
*/
final public function sort(mixed $fields = null): void
{
@@ -698,7 +693,6 @@ class Conductor
*
* @param Model $model The model to append.
* @param array $includes The list of includes to include.
* @return void
*/
final public function applyIncludes(Model $model, array $includes): void
{
@@ -718,7 +712,6 @@ class Conductor
* Limit the returned fields in the conductor collection.
*
* @param array $fields An array of field names.
* @return void
*/
final public function limitFields(array $fields): void
{
@@ -733,7 +726,6 @@ class Conductor
* @param string $rawFilter The raw filter string to parse.
* @param array|null $limitFields The fields to allow in the filter string.
* @param string $outerJoin The join for this filter group.
* @return void
*/
final public function appendFilterString(string $rawFilter, array|null $limitFields = null, string $outerJoin = 'OR'): void
{
@@ -847,7 +839,6 @@ class Conductor
* @param string $operator The operator to append.
* @param string $value The value to append.
* @param string $join The join to append.
* @return void
*/
final public function appendFilter(string $field, string $operator, string $value, string $join = 'OR'): void
{
@@ -861,7 +852,6 @@ class Conductor
* Run a scope query on the collection before anything else.
*
* @param Builder $builder The builder in use.
* @return void
*/
public function scope(Builder $builder): void
{

View File

@@ -33,7 +33,6 @@ class EventConductor extends Conductor
* Run a scope query on the collection before anything else.
*
* @param Builder $builder The builder in use.
* @return void
*/
public function scope(Builder $builder): void
{

View File

@@ -59,7 +59,6 @@ class MediaConductor extends Conductor
* Run a scope query on the collection before anything else.
*
* @param Builder $builder The builder in use.
* @return void
*/
public function scope(Builder $builder): void
{

View File

@@ -27,8 +27,6 @@ class MediaMigrate extends Command
/**
* Configure the command options.
*
* @return void
*/
protected function configure(): void
{
@@ -42,8 +40,6 @@ class MediaMigrate extends Command
/**
* Execute the console command.
*
* @return void
*/
public function handle(): void
{

View File

@@ -26,8 +26,6 @@ class MediaRebuild extends Command
/**
* Configure the command options.
*
* @return void
*/
protected function configure(): void
{
@@ -48,8 +46,6 @@ class MediaRebuild extends Command
/**
* Execute the console command.
*
* @return void
*/
public function handle(): void
{

View File

@@ -11,7 +11,6 @@ class Kernel extends ConsoleKernel
* Define the application's command schedule.
*
* @param \Illuminate\Console\Scheduling\Schedule $schedule The schedule.
* @return void
*/
protected function schedule(Schedule $schedule): void
{
@@ -20,8 +19,6 @@ class Kernel extends ConsoleKernel
/**
* Register the commands for the application.
*
* @return void
*/
protected function commands(): void
{

View File

@@ -57,8 +57,6 @@ class Enum
/**
* Returns a message from the enum subclass
*
* @return string
*/
public static function getMessage(int $messageIndex, string $defaultMessage = 'Unknown'): string
{

View File

@@ -26,8 +26,6 @@ class Handler extends ExceptionHandler
/**
* Register the exception handling callbacks for the application.
*
* @return void
*/
public function register(): void
{

View File

@@ -24,7 +24,6 @@ class ApiController extends Controller
* @param array $data Response data.
* @param integer $respondCode Response status code.
* @param array $headers Response headers.
* @return \Illuminate\Http\JsonResponse
*/
public function respondJson(array $data, int $respondCode = HttpResponseCodes::HTTP_OK, array $headers = []): JsonResponse
{
@@ -35,7 +34,6 @@ class ApiController extends Controller
* Return forbidden message
*
* @param string $message Response message.
* @return \Illuminate\Http\JsonResponse
*/
public function respondForbidden(string $message = 'You do not have permission to access the resource.'): JsonResponse
{
@@ -46,7 +44,6 @@ class ApiController extends Controller
* Return forbidden message
*
* @param string $message Response message.
* @return \Illuminate\Http\JsonResponse
*/
public function respondNotFound(string $message = 'The resource was not found.'): JsonResponse
{
@@ -57,7 +54,6 @@ class ApiController extends Controller
* Return too large message
*
* @param string $message Response message.
* @return \Illuminate\Http\JsonResponse
*/
public function respondTooLarge(string $message = 'The request entity is too large.'): JsonResponse
{
@@ -66,7 +62,6 @@ class ApiController extends Controller
/**
* Return no content
* @return \Illuminate\Http\JsonResponse
*/
public function respondNoContent(): JsonResponse
{
@@ -75,7 +70,6 @@ class ApiController extends Controller
/**
* Return created
* @return \Illuminate\Http\JsonResponse
*/
public function respondCreated(): JsonResponse
{
@@ -84,7 +78,6 @@ class ApiController extends Controller
/**
* Return accepted
* @return \Illuminate\Http\JsonResponse
*/
public function respondAccepted(): JsonResponse
{
@@ -96,7 +89,6 @@ class ApiController extends Controller
*
* @param string $message Error message.
* @param integer $responseCode Resource code.
* @return \Illuminate\Http\JsonResponse
*/
public function respondError(string $message, int $responseCode = HttpResponseCodes::HTTP_UNPROCESSABLE_ENTITY): JsonResponse
{
@@ -110,7 +102,6 @@ class ApiController extends Controller
*
* @param array $errors Error messages.
* @param integer $responseCode Resource code.
* @return \Illuminate\Http\JsonResponse
*/
public function respondWithErrors(array $errors, int $responseCode = HttpResponseCodes::HTTP_UNPROCESSABLE_ENTITY): JsonResponse
{
@@ -133,7 +124,6 @@ class ApiController extends Controller
*
* @param array|Model|Collection $data Resource data.
* @param array $options Respond options.
* @return \Illuminate\Http\JsonResponse
*/
protected function respondAsResource(
mixed $data,

View File

@@ -167,7 +167,6 @@ class ArticleController extends ApiController
*
* @param Request $request The user request.
* @param Article $article The related model.
* @return JsonResponse
* @throws BindingResolutionException
* @throws MassAssignmentException
*/
@@ -216,7 +215,6 @@ class ArticleController extends ApiController
* @param Request $request The user request.
* @param Article $article The model.
* @param Media $medium The attachment medium.
* @return JsonResponse
* @throws BindingResolutionException
*/
public function deleteAttachment(Request $request, Article $article, Media $medium): JsonResponse

View File

@@ -29,7 +29,6 @@ class AttachmentController extends ApiController
/**
* Store a newly created resource in storage.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response
*/
public function store(Request $request)
@@ -40,7 +39,6 @@ class AttachmentController extends ApiController
/**
* Display the specified resource.
*
* @param \App\Models\Attachment $attachment
* @return \Illuminate\Http\Response
*/
public function show(Attachment $attachment)
@@ -51,7 +49,6 @@ class AttachmentController extends ApiController
/**
* Show the form for editing the specified resource.
*
* @param \App\Models\Attachment $attachment
* @return \Illuminate\Http\Response
*/
public function edit(Attachment $attachment)
@@ -62,8 +59,6 @@ class AttachmentController extends ApiController
/**
* Update the specified resource in storage.
*
* @param \Illuminate\Http\Request $request
* @param \App\Models\Attachment $attachment
* @return \Illuminate\Http\Response
*/
public function update(Request $request, Attachment $attachment)
@@ -74,7 +69,6 @@ class AttachmentController extends ApiController
/**
* Remove the specified resource from storage.
*
* @param \App\Models\Attachment $attachment
* @return \Illuminate\Http\Response
*/
public function destroy(Attachment $attachment)

View File

@@ -31,7 +31,6 @@ class AuthController extends ApiController
* Current User details
*
* @param Request $request Current request data.
* @return JsonResponse
*/
public function me(Request $request): JsonResponse
{
@@ -87,7 +86,6 @@ class AuthController extends ApiController
* Logout current user
*
* @param Request $request Current request data.
* @return JsonResponse
*/
public function logout(Request $request): JsonResponse
{

View File

@@ -155,7 +155,6 @@ class EventController extends ApiController
*
* @param Request $request The user request.
* @param Event $event The related model.
* @return JsonResponse
*/
public function updateAttachments(Request $request, Event $event): JsonResponse
{
@@ -203,7 +202,6 @@ class EventController extends ApiController
* @param Request $request The user request.
* @param Event $event The model.
* @param Media $medium The attachment medium.
* @return JsonResponse
*/
public function deleteAttachment(Request $request, Event $event, Media $medium): JsonResponse
{

View File

@@ -145,7 +145,6 @@ class UserController extends ApiController
* Register a new user
*
* @param \App\Http\Requests\UserRegisterRequest $request The register user request.
* @return \Illuminate\Http\Response
*/
public function register(UserRegisterRequest $request): JsonResponse
{
@@ -286,7 +285,6 @@ class UserController extends ApiController
* Resend a new verify email
*
* @param \App\Http\Requests\UserResendVerifyEmailRequest $request The resend verify email request.
* @return \Illuminate\Http\Response
*/
public function resendVerifyEmail(UserResendVerifyEmailRequest $request): JsonResponse
{
@@ -340,7 +338,6 @@ class UserController extends ApiController
*
* @param Request $request The http request.
* @param User $user The specified user.
* @return JsonResponse
*/
public function eventList(Request $request, User $user): JsonResponse
{

View File

@@ -10,7 +10,6 @@ class Authenticate extends Middleware
* Get the path the user should be redirected to when they are not authenticated.
*
* @param mixed $request Request.
* @return string|null
*/
protected function redirectTo(mixed $request): ?string
{

View File

@@ -11,9 +11,7 @@ class ForceJsonResponse
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure(\Illuminate\Http\Request): (\Illuminate\Http\Response|\Illuminate\Http\RedirectResponse) $next
* @return \Illuminate\Http\Response|\Illuminate\Http\RedirectResponse
*/
public function handle(Request $request, Closure $next): Response
{

View File

@@ -12,9 +12,7 @@ class LogRequest
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure(\Illuminate\Http\Request): (\Illuminate\Http\Response|\Illuminate\Http\RedirectResponse) $next
* @return \Illuminate\Http\Response|\Illuminate\Http\RedirectResponse
*/
public function handle(Request $request, Closure $next): Response
{

View File

@@ -14,9 +14,8 @@ class RedirectIfAuthenticated
* Handle an incoming request.
*
* @param Request $request Request.
* @param Closure(Request): (Response|RedirectResponse) $next Next.
* @param \Closure(\Illuminate\Http\Request): (\Illuminate\Http\Response|\Illuminate\Http\RedirectResponse) $next
* @param string|null ...$guards Guards.
* @return Response|RedirectResponse
*/
public function handle(Request $request, Closure $next, string ...$guards): Response
{

View File

@@ -12,9 +12,7 @@ class UseSanctumGuard
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure(\Illuminate\Http\Request): (\Illuminate\Http\Response|\Illuminate\Http\RedirectResponse) $next
* @return \Illuminate\Http\Response|\Illuminate\Http\RedirectResponse
*/
public function handle(Request $request, Closure $next): Response
{

View File

@@ -9,8 +9,6 @@ class BaseRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return boolean
*/
public function authorize(): bool
{
@@ -54,7 +52,6 @@ class BaseRequest extends FormRequest
*
* @param array $collection1 The first collection of rules.
* @param array $collection2 The second collection of rules to merge.
* @return array
*/
private function mergeRules(array $collection1, array $collection2): array
{

View File

@@ -34,8 +34,6 @@ class SubscriptionRequest extends BaseRequest
/**
* Get the custom error messages.
*
* @return array
*/
public function messages(): array
{

View File

@@ -48,8 +48,6 @@ class MoveMediaJob implements ShouldQueue
/**
* Execute the job.
*
* @return void
*/
public function handle(): void
{

View File

@@ -47,8 +47,6 @@ class SendEmailJob implements ShouldQueue
/**
* Execute the job.
*
* @return void
*/
public function handle(): void
{

View File

@@ -62,8 +62,6 @@ class StoreUploadedFileJob implements ShouldQueue
/**
* Execute the job.
*
* @return void
*/
public function handle(): void
{

View File

@@ -54,8 +54,6 @@ class ChangeEmailVerify extends Mailable
/**
* Get the message envelope.
*
* @return \Illuminate\Mail\Mailables\Envelope
*/
public function envelope(): Envelope
{
@@ -66,8 +64,6 @@ class ChangeEmailVerify extends Mailable
/**
* Get the message content definition.
*
* @return \Illuminate\Mail\Mailables\Content
*/
public function content(): Content
{

View File

@@ -54,8 +54,6 @@ class ChangedEmail extends Mailable
/**
* Get the message envelope.
*
* @return \Illuminate\Mail\Mailables\Envelope
*/
public function envelope(): Envelope
{
@@ -66,8 +64,6 @@ class ChangedEmail extends Mailable
/**
* Get the message content definition.
*
* @return \Illuminate\Mail\Mailables\Content
*/
public function content(): Content
{

View File

@@ -36,8 +36,6 @@ class ChangedPassword extends Mailable
/**
* Get the message envelope.
*
* @return \Illuminate\Mail\Mailables\Envelope
*/
public function envelope(): Envelope
{
@@ -48,8 +46,6 @@ class ChangedPassword extends Mailable
/**
* Get the message content definition.
*
* @return \Illuminate\Mail\Mailables\Content
*/
public function content(): Content
{

View File

@@ -53,8 +53,6 @@ class Contact extends Mailable
/**
* Get the message envelope.
*
* @return \Illuminate\Mail\Mailables\Envelope
*/
public function envelope(): Envelope
{
@@ -65,8 +63,6 @@ class Contact extends Mailable
/**
* Get the message content definition.
*
* @return \Illuminate\Mail\Mailables\Content
*/
public function content(): Content
{

View File

@@ -45,8 +45,6 @@ class EmailVerify extends Mailable
/**
* Get the message envelope.
*
* @return \Illuminate\Mail\Mailables\Envelope
*/
public function envelope(): Envelope
{
@@ -57,8 +55,6 @@ class EmailVerify extends Mailable
/**
* Get the message content definition.
*
* @return \Illuminate\Mail\Mailables\Content
*/
public function content(): Content
{

View File

@@ -45,8 +45,6 @@ class ForgotPassword extends Mailable
/**
* Get the message envelope.
*
* @return \Illuminate\Mail\Mailables\Envelope
*/
public function envelope(): Envelope
{
@@ -57,8 +55,6 @@ class ForgotPassword extends Mailable
/**
* Get the message content definition.
*
* @return \Illuminate\Mail\Mailables\Content
*/
public function content(): Content
{

View File

@@ -36,8 +36,6 @@ class SubscriptionConfirm extends Mailable
/**
* Get the message envelope.
*
* @return \Illuminate\Mail\Mailables\Envelope
*/
public function envelope(): Envelope
{
@@ -48,8 +46,6 @@ class SubscriptionConfirm extends Mailable
/**
* Get the message content definition.
*
* @return \Illuminate\Mail\Mailables\Content
*/
public function content(): Content
{

View File

@@ -36,8 +36,6 @@ class SubscriptionUnsubscribed extends Mailable
/**
* Get the message envelope.
*
* @return \Illuminate\Mail\Mailables\Envelope
*/
public function envelope(): Envelope
{
@@ -48,8 +46,6 @@ class SubscriptionUnsubscribed extends Mailable
/**
* Get the message content definition.
*
* @return \Illuminate\Mail\Mailables\Content
*/
public function content(): Content
{

View File

@@ -22,7 +22,6 @@ class Analytics extends Model
* automatically assigning a session value based on previous rows.
*
* @param array $attributes Model attributes.
* @return static
*/
public static function createWithSession(array $attributes): static
{

View File

@@ -29,8 +29,6 @@ class Article extends Model
/**
* Get the article user
*
* @return BelongsTo
*/
public function user(): BelongsTo
{
@@ -39,8 +37,6 @@ class Article extends Model
/**
* Get all of the article's attachments.
*
* @return MorphMany
*/
public function attachments(): MorphMany
{

View File

@@ -33,8 +33,6 @@ class Attachment extends Model
/**
* Get attachments attachable
*
* @return MorphTo
*/
public function attachable(): MorphTo
{
@@ -43,8 +41,6 @@ class Attachment extends Model
/**
* Get the media for this attachment.
*
* @return BelongsTo
*/
public function media(): BelongsTo
{

View File

@@ -38,8 +38,6 @@ class Event extends Model
/**
* Get all of the article's attachments.
*
* @return MorphMany
*/
public function attachments(): MorphMany
{
@@ -48,8 +46,6 @@ class Event extends Model
/**
* Get all the associated users.
*
* @return BelongsToMany
*/
public function users(): BelongsToMany
{

View File

@@ -24,8 +24,6 @@ class EventUser extends Model
/**
* Get the event for this attachment.
*
* @return BelongsTo
*/
public function event(): BelongsTo
{
@@ -34,8 +32,6 @@ class EventUser extends Model
/**
* Get the user for this attachment.
*
* @return BelongsTo
*/
public function user(): BelongsTo
{

View File

@@ -100,8 +100,6 @@ class Media extends Model
/**
* Model Boot
*
* @return void
*/
protected static function boot(): void
{
@@ -164,7 +162,6 @@ class Media extends Model
* Variants Set Mutator.
*
* @param mixed $value The value to mutate.
* @return void
*/
public function setVariantsAttribute(mixed $value): void
{
@@ -256,8 +253,6 @@ class Media extends Model
/**
* Delete file and associated files with the modal.
*
* @return void
*/
public function deleteFile(): void
{
@@ -279,7 +274,6 @@ class Media extends Model
/**
* Invalidate Cloudflare Cache.
*
* @return void
* @throws InvalidArgumentException Exception.
*/
private function invalidateCFCache(): void
@@ -311,8 +305,6 @@ class Media extends Model
/**
* Get URL path
*
* @return string
*/
public function getUrlPath(): string
{
@@ -322,8 +314,6 @@ class Media extends Model
/**
* Return the file URL
*
* @return string
*/
public function getUrlAttribute(): string
{
@@ -336,8 +326,6 @@ class Media extends Model
/**
* Return the file owner
*
* @return BelongsTo
*/
public function user(): BelongsTo
{
@@ -348,7 +336,6 @@ class Media extends Model
* Move files to new storage device.
*
* @param string $storage The storage ID to move to.
* @return void
*/
public function moveToStorage(string $storage): void
{
@@ -494,8 +481,6 @@ class Media extends Model
/**
* Get the server maximum upload size
*
* @return integer
*/
public static function getMaxUploadSize(): int
{
@@ -620,7 +605,6 @@ class Media extends Model
* Sanitize fileName for upload
*
* @param string $fileName Filename to sanitize.
* @return string
*/
private static function sanitizeFilename(string $fileName): string
{

View File

@@ -24,8 +24,6 @@ class Permission extends Model
/**
* Get the User associated with this model
*
* @return BelongsTo
*/
public function user(): BelongsTo
{

View File

@@ -79,8 +79,6 @@ class User extends Authenticatable implements Auditable
/**
* Get the list of files of the user
*
* @return HasMany
*/
public function permissions(): HasMany
{
@@ -89,8 +87,6 @@ class User extends Authenticatable implements Auditable
/**
* Get the permission attribute
*
* @return array
*/
public function getPermissionsAttribute(): array
{
@@ -101,7 +97,6 @@ class User extends Authenticatable implements Auditable
* Test if user has permission
*
* @param string $permission Permission to test.
* @return boolean
*/
public function hasPermission(string $permission): bool
{
@@ -112,7 +107,6 @@ class User extends Authenticatable implements Auditable
* Give permissions to the user
*
* @param string|array $permissions The permission(s) to give.
* @return Collection
*/
public function givePermission($permissions): Collection
{
@@ -137,7 +131,6 @@ class User extends Authenticatable implements Auditable
* Revoke permissions from the user
*
* @param string|array $permissions The permission(s) to revoke.
* @return integer
*/
public function revokePermission($permissions): int
{
@@ -152,8 +145,6 @@ class User extends Authenticatable implements Auditable
/**
* Get the list of files of the user
*
* @return HasMany
*/
public function media(): HasMany
{
@@ -162,8 +153,6 @@ class User extends Authenticatable implements Auditable
/**
* Get the list of files of the user
*
* @return HasMany
*/
public function articles(): HasMany
{
@@ -172,8 +161,6 @@ class User extends Authenticatable implements Auditable
/**
* Get associated user codes
*
* @return HasMany
*/
public function codes(): HasMany
{
@@ -182,8 +169,6 @@ class User extends Authenticatable implements Auditable
/**
* Get the list of logins of the user
*
* @return HasMany
*/
public function logins(): HasMany
{
@@ -192,8 +177,6 @@ class User extends Authenticatable implements Auditable
/**
* Get the events associated with the user.
*
* @return BelongsToMany
*/
public function events(): BelongsToMany
{

View File

@@ -23,8 +23,6 @@ class UserCode extends Model
/**
* Boot function from Laravel.
*
* @return void
*/
protected static function boot(): void
{
@@ -46,8 +44,6 @@ class UserCode extends Model
/**
* Generate new code
*
* @return void
*/
public function regenerate(): void
{
@@ -62,8 +58,6 @@ class UserCode extends Model
/**
* Clear expired user codes
*
* @return void
*/
public static function clearExpired(): void
{
@@ -72,8 +66,6 @@ class UserCode extends Model
/**
* Get associated user
*
* @return BelongsTo
*/
public function user(): BelongsTo
{

View File

@@ -28,8 +28,6 @@ class UserLogins extends Model
/**
* Get the file user
*
* @return BelongsTo
*/
public function user(): BelongsTo
{

View File

@@ -16,8 +16,6 @@ class AppServiceProvider extends ServiceProvider
{
/**
* Register any application services.
*
* @return void
*/
public function register(): void
{
@@ -26,8 +24,6 @@ class AppServiceProvider extends ServiceProvider
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot(): void
{

View File

@@ -19,8 +19,6 @@ class AuthServiceProvider extends ServiceProvider
/**
* Register any authentication / authorization services.
*
* @return void
*/
public function boot(): void
{

View File

@@ -26,8 +26,6 @@ class EventServiceProvider extends ServiceProvider
/**
* Register any events for your application.
*
* @return void
*/
public function boot(): void
{
@@ -36,8 +34,6 @@ class EventServiceProvider extends ServiceProvider
/**
* Determine if events and listeners should be automatically discovered.
*
* @return boolean
*/
public function shouldDiscoverEvents(): bool
{

View File

@@ -23,8 +23,6 @@ class RouteServiceProvider extends ServiceProvider
/**
* Define your route model bindings, pattern filters, and other route configuration.
*
* @return void
*/
public function boot(): void
{

View File

@@ -22,7 +22,6 @@ class Recaptcha implements Rule
*
* @param mixed $attribute Attribute name.
* @param mixed $value Attribute value.
* @return boolean
*/
public function passes(mixed $attribute, mixed $value): bool
{
@@ -42,8 +41,6 @@ class Recaptcha implements Rule
/**
* Get the validation error message.
*
* @return string
*/
public function message(): string
{

View File

@@ -20,9 +20,7 @@ class UniqueFileName implements Rule
/**
* Determine if the validation rule passes.
*
* @param string $attribute
* @param mixed $value
* @return boolean
*/
public function passes(string $attribute, $value): bool
{
@@ -31,8 +29,6 @@ class UniqueFileName implements Rule
/**
* Get the validation error message.
*
* @return string
*/
public function message(): string
{

View File

@@ -47,7 +47,6 @@ class Uniqueish implements Rule
* Set the ID of the record to be ignored.
*
* @param mixed $id The ID to ignore.
* @return $this
*/
public function ignore(mixed $id): static
{
@@ -60,7 +59,6 @@ class Uniqueish implements Rule
*
* @param mixed $attribute Not used.
* @param mixed $value The value to compare.
* @return boolean
*/
public function passes(mixed $attribute, mixed $value): bool
{
@@ -97,8 +95,6 @@ class Uniqueish implements Rule
/**
* Get the validation error message.
*
* @return string
*/
public function message(): string
{

View File

@@ -41,8 +41,6 @@ class AnimatedGifService
* @param string $filenameOrBlob GIF filename path
* @param integer $dataSize GIF blob size.
* @param boolean $originalFrames Get original frames (with transparent background)
*
* @return array
*/
public function extract(string $filenameOrBlob, int $dataSize = 0, bool $originalFrames = false): array
{
@@ -275,8 +273,6 @@ class GifFrameExtractor
/**
* Parse the graphic extension of the frames (old: get_graphics_extension)
*
* @param integer $type
*/
private function parseGraphicsExtension(int $type)
{
@@ -303,8 +299,6 @@ class GifFrameExtractor
/**
* Get the full frame string block (old: get_image_block)
*
* @param integer $type
*/
private function getFrameString(int $type)
{
@@ -400,12 +394,6 @@ class GifFrameExtractor
/**
* Get the image data byte (old: get_imagedata_byte)
*
* @param string $type
* @param integer $start
* @param integer $length
*
* @return string
*/
private function getImageDataByte(string $type, int $start, int $length): string
{
@@ -419,13 +407,6 @@ class GifFrameExtractor
/**
* Get the image data bit (old: get_imagedata_bit)
*
* @param string $type
* @param integer $byteIndex
* @param integer $bitStart
* @param integer $bitLength
*
* @return number
*/
private function getImageDataBit(string $type, int $byteIndex, int $bitStart, int $bitLength): number
{
@@ -439,10 +420,6 @@ class GifFrameExtractor
/**
* Return the value of 2 ASCII chars (old: dualbyteval)
*
* @param string $s
*
* @return integer
*/
private function dualByteVal(string $s): int
{
@@ -453,8 +430,6 @@ class GifFrameExtractor
/**
* Read the data stream (old: read_data_stream)
*
* @param integer $firstLength
*/
private function readDataStream(int $firstLength)
{
@@ -471,8 +446,6 @@ class GifFrameExtractor
/**
* Open the gif file (old: loadfile)
*
* @param string $filename
*/
private function openFile(string $filename)
{
@@ -495,10 +468,6 @@ class GifFrameExtractor
/**
* Read the file from the beginning to $byteCount in binary (old: readbyte)
*
* @param integer $byteCount
*
* @return string
*/
private function readByte(int $byteCount): string
{
@@ -510,8 +479,6 @@ class GifFrameExtractor
/**
* Read a byte and return ASCII value (old: readbyte_int)
*
* @return integer
*/
private function readByteInt(): int
{
@@ -523,12 +490,6 @@ class GifFrameExtractor
/**
* Convert a $byte to decimal (old: readbits)
*
* @param string $byte
* @param integer $start
* @param integer $length
*
* @return number
*/
private function readBits(string $byte, int $start, int $length): number
{
@@ -540,8 +501,6 @@ class GifFrameExtractor
/**
* Rewind the file pointer reader (old: p_rewind)
*
* @param integer $length
*/
private function pointerRewind(int $length)
{
@@ -551,8 +510,6 @@ class GifFrameExtractor
/**
* Forward the file pointer reader (old: p_forward)
*
* @param integer $length
*/
private function pointerForward(int $length)
{
@@ -562,11 +519,6 @@ class GifFrameExtractor
/**
* Get a section of the data from $start to $start + $length (old: datapart)
*
* @param integer $start
* @param integer $length
*
* @return string
*/
private function dataPart(int $start, int $length): string
{
@@ -579,10 +531,6 @@ class GifFrameExtractor
/**
* Check if a character if a byte (old: checkbyte)
*
* @param integer $byte
*
* @return boolean
*/
private function checkByte(int $byte): bool
{
@@ -598,8 +546,6 @@ class GifFrameExtractor
/**
* Check the end of the file (old: checkEOF)
*
* @return boolean
*/
private function checkEOF(): bool
{
@@ -628,8 +574,6 @@ class GifFrameExtractor
/**
* Get the total of all added frame duration
*
* @return integer
*/
public function getTotalDuration(): int
{
@@ -638,8 +582,6 @@ class GifFrameExtractor
/**
* Get the number of extracted frames
*
* @return integer
*/
public function getFrameNumber(): int
{
@@ -648,8 +590,6 @@ class GifFrameExtractor
/**
* Get the extracted frames (images and durations)
*
* @return array
*/
public function getFrames(): array
{
@@ -658,8 +598,6 @@ class GifFrameExtractor
/**
* Get the extracted frame positions
*
* @return array
*/
public function getFramePositions(): array
{
@@ -668,8 +606,6 @@ class GifFrameExtractor
/**
* Get the extracted frame dimensions
*
* @return array
*/
public function getFrameDimensions(): array
{
@@ -678,8 +614,6 @@ class GifFrameExtractor
/**
* Get the extracted frame images
*
* @return array
*/
public function getFrameImages(): array
{
@@ -688,8 +622,6 @@ class GifFrameExtractor
/**
* Get the extracted frame durations
*
* @return array
*/
public function getFrameDurations(): array
{

View File

@@ -8,8 +8,6 @@ trait Uuids
{
/**
* Boot function from Laravel.
*
* @return void
*/
protected static function bootUuids(): void
{
@@ -22,8 +20,6 @@ trait Uuids
/**
* Get the value indicating whether the IDs are incrementing.
*
* @return boolean
*/
public function getIncrementing(): bool
{
@@ -32,8 +28,6 @@ trait Uuids
/**
* Get the auto-incrementing key type.
*
* @return string
*/
public function getKeyType(): string
{

View File

@@ -39,8 +39,6 @@ class UserFactory extends Factory
/**
* Indicate that the model's email address should be unverified.
*
* @return static
*/
public function unverified(): static
{

View File

@@ -8,8 +8,6 @@ return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up(): void
{
@@ -30,8 +28,6 @@ return new class extends Migration
/**
* Reverse the migrations.
*
* @return void
*/
public function down(): void
{

View File

@@ -8,8 +8,6 @@ return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up(): void
{
@@ -22,8 +20,6 @@ return new class extends Migration
/**
* Reverse the migrations.
*
* @return void
*/
public function down(): void
{

View File

@@ -8,8 +8,6 @@ return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up(): void
{
@@ -26,8 +24,6 @@ return new class extends Migration
/**
* Reverse the migrations.
*
* @return void
*/
public function down(): void
{

View File

@@ -8,8 +8,6 @@ return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up(): void
{
@@ -27,8 +25,6 @@ return new class extends Migration
/**
* Reverse the migrations.
*
* @return void
*/
public function down(): void
{

View File

@@ -8,8 +8,6 @@ return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up(): void
{
@@ -27,8 +25,6 @@ return new class extends Migration
/**
* Reverse the migrations.
*
* @return void
*/
public function down(): void
{

View File

@@ -8,8 +8,6 @@ return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up(): void
{
@@ -27,8 +25,6 @@ return new class extends Migration
/**
* Reverse the migrations.
*
* @return void
*/
public function down(): void
{

View File

@@ -8,8 +8,6 @@ return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up(): void
{
@@ -25,8 +23,6 @@ return new class extends Migration
/**
* Reverse the migrations.
*
* @return void
*/
public function down(): void
{

View File

@@ -8,8 +8,6 @@ return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up(): void
{
@@ -32,8 +30,6 @@ return new class extends Migration
/**
* Reverse the migrations.
*
* @return void
*/
public function down(): void
{

View File

@@ -8,8 +8,6 @@ return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up(): void
{
@@ -23,8 +21,6 @@ return new class extends Migration
/**
* Reverse the migrations.
*
* @return void
*/
public function down(): void
{

View File

@@ -8,8 +8,6 @@ return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up(): void
{
@@ -26,8 +24,6 @@ return new class extends Migration
/**
* Reverse the migrations.
*
* @return void
*/
public function down(): void
{

View File

@@ -8,8 +8,6 @@ return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up(): void
{
@@ -27,8 +25,6 @@ return new class extends Migration
/**
* Reverse the migrations.
*
* @return void
*/
public function down(): void
{

View File

@@ -9,8 +9,6 @@ return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up(): void
{
@@ -37,8 +35,6 @@ return new class extends Migration
/**
* Reverse the migrations.
*
* @return void
*/
public function down(): void
{

View File

@@ -8,8 +8,6 @@ return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up(): void
{
@@ -29,8 +27,6 @@ return new class extends Migration
/**
* Reverse the migrations.
*
* @return void
*/
public function down(): void
{

View File

@@ -8,8 +8,6 @@ return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up(): void
{
@@ -25,8 +23,6 @@ return new class extends Migration
/**
* Reverse the migrations.
*
* @return void
*/
public function down(): void
{

View File

@@ -8,8 +8,6 @@ return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up(): void
{
@@ -25,8 +23,6 @@ return new class extends Migration
/**
* Reverse the migrations.
*
* @return void
*/
public function down(): void
{

View File

@@ -8,8 +8,6 @@ return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up(): void
{
@@ -20,8 +18,6 @@ return new class extends Migration
/**
* Reverse the migrations.
*
* @return void
*/
public function down(): void
{

View File

@@ -8,8 +8,6 @@ return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up(): void
{
@@ -20,8 +18,6 @@ return new class extends Migration
/**
* Reverse the migrations.
*
* @return void
*/
public function down(): void
{

View File

@@ -9,8 +9,6 @@ return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up(): void
{
@@ -37,8 +35,6 @@ return new class extends Migration
/**
* Reverse the migrations.
*
* @return void
*/
public function down(): void
{

View File

@@ -9,8 +9,6 @@ return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up(): void
{
@@ -23,8 +21,6 @@ return new class extends Migration
/**
* Reverse the migrations.
*
* @return void
*/
public function down(): void
{

View File

@@ -9,8 +9,6 @@ return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up(): void
{
@@ -28,8 +26,6 @@ return new class extends Migration
/**
* Reverse the migrations.
*
* @return void
*/
public function down(): void
{

View File

@@ -8,8 +8,6 @@ return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up(): void
{
@@ -18,8 +16,6 @@ return new class extends Migration
/**
* Reverse the migrations.
*
* @return void
*/
public function down(): void
{

View File

@@ -9,8 +9,6 @@ return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up(): void
{
@@ -22,8 +20,6 @@ return new class extends Migration
/**
* Reverse the migrations.
*
* @return void
*/
public function down(): void
{

View File

@@ -9,8 +9,6 @@ return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up(): void
{
@@ -97,8 +95,6 @@ return new class extends Migration
/**
* Reverse the migrations.
*
* @return void
*/
public function down(): void
{

View File

@@ -9,8 +9,6 @@ return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up(): void
{
@@ -21,8 +19,6 @@ return new class extends Migration
/**
* Reverse the migrations.
*
* @return void
*/
public function down(): void
{

View File

@@ -8,8 +8,6 @@ return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up(): void
{
@@ -23,8 +21,6 @@ return new class extends Migration
/**
* Reverse the migrations.
*
* @return void
*/
public function down(): void
{

View File

@@ -8,8 +8,6 @@ return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up(): void
{
@@ -20,8 +18,6 @@ return new class extends Migration
/**
* Reverse the migrations.
*
* @return void
*/
public function down(): void
{

View File

@@ -8,8 +8,6 @@ return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up(): void
{
@@ -21,8 +19,6 @@ return new class extends Migration
/**
* Reverse the migrations.
*
* @return void
*/
public function down(): void
{

View File

@@ -8,8 +8,6 @@ return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up(): void
{
@@ -20,8 +18,6 @@ return new class extends Migration
/**
* Reverse the migrations.
*
* @return void
*/
public function down(): void
{

View File

@@ -8,8 +8,6 @@ return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up(): void
{
@@ -20,8 +18,6 @@ return new class extends Migration
/**
* Reverse the migrations.
*
* @return void
*/
public function down(): void
{

View File

@@ -8,8 +8,6 @@ return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up(): void
{
@@ -26,8 +24,6 @@ return new class extends Migration
/**
* Reverse the migrations.
*
* @return void
*/
public function down(): void
{

View File

@@ -8,8 +8,6 @@ return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up(): void
{
@@ -18,8 +16,6 @@ return new class extends Migration
/**
* Reverse the migrations.
*
* @return void
*/
public function down(): void
{

View File

@@ -12,8 +12,6 @@ class DatabaseSeeder extends Seeder
{
/**
* Seed the application's database.
*
* @return void
*/
public function run(): void
{

View File

@@ -8,8 +8,6 @@ class ExampleTest extends TestCase
{
/**
* A basic test example.
*
* @return void
*/
public function test_that_true_is_true(): void
{