diff --git a/pint.json b/pint.json index c36f1f8282e2..0e7eaf5a69a0 100644 --- a/pint.json +++ b/pint.json @@ -98,6 +98,7 @@ ] }, "no_spaces_after_function_name": true, + "no_superfluous_phpdoc_tags": true, "no_trailing_comma_in_singleline": true, "no_trailing_whitespace": true, "no_trailing_whitespace_in_comment": true, diff --git a/src/Illuminate/Auth/Access/AuthorizationException.php b/src/Illuminate/Auth/Access/AuthorizationException.php index 1dd157e34e94..a9d37351a727 100644 --- a/src/Illuminate/Auth/Access/AuthorizationException.php +++ b/src/Illuminate/Auth/Access/AuthorizationException.php @@ -25,8 +25,6 @@ class AuthorizationException extends Exception * Create a new authorization exception instance. * * @param string|null $message - * @param mixed $code - * @param \Throwable|null $previous */ public function __construct($message = null, $code = null, ?Throwable $previous = null) { diff --git a/src/Illuminate/Auth/Access/Gate.php b/src/Illuminate/Auth/Access/Gate.php index f64f584ffc78..b99d81078b41 100644 --- a/src/Illuminate/Auth/Access/Gate.php +++ b/src/Illuminate/Auth/Access/Gate.php @@ -87,14 +87,6 @@ class Gate implements GateContract /** * Create a new gate instance. - * - * @param \Illuminate\Contracts\Container\Container $container - * @param callable $userResolver - * @param array $abilities - * @param array $policies - * @param array $beforeCallbacks - * @param array $afterCallbacks - * @param callable|null $guessPolicyNamesUsingCallback */ public function __construct( Container $container, @@ -226,7 +218,6 @@ public function define($ability, $callback) * * @param string $name * @param string $class - * @param array|null $abilities * @return $this */ public function resource($name, $class, ?array $abilities = null) @@ -299,7 +290,6 @@ public function policy($class, $policy) /** * Register a callback to run before all Gate checks. * - * @param callable $callback * @return $this */ public function before(callable $callback) @@ -312,7 +302,6 @@ public function before(callable $callback) /** * Register a callback to run after all Gate checks. * - * @param callable $callback * @return $this */ public function after(callable $callback) @@ -326,7 +315,6 @@ public function after(callable $callback) * Determine if all of the given abilities should be granted for the current user. * * @param iterable|\UnitEnum|string $ability - * @param mixed $arguments * @return bool */ public function allows($ability, $arguments = []) @@ -338,7 +326,6 @@ public function allows($ability, $arguments = []) * Determine if any of the given abilities should be denied for the current user. * * @param iterable|\UnitEnum|string $ability - * @param mixed $arguments * @return bool */ public function denies($ability, $arguments = []) @@ -350,7 +337,6 @@ public function denies($ability, $arguments = []) * Determine if all of the given abilities should be granted for the current user. * * @param iterable|\UnitEnum|string $abilities - * @param mixed $arguments * @return bool */ public function check($abilities, $arguments = []) @@ -364,7 +350,6 @@ public function check($abilities, $arguments = []) * Determine if any one of the given abilities should be granted for the current user. * * @param iterable|\UnitEnum|string $abilities - * @param mixed $arguments * @return bool */ public function any($abilities, $arguments = []) @@ -376,7 +361,6 @@ public function any($abilities, $arguments = []) * Determine if all of the given abilities should be denied for the current user. * * @param iterable|\UnitEnum|string $abilities - * @param mixed $arguments * @return bool */ public function none($abilities, $arguments = []) @@ -388,7 +372,6 @@ public function none($abilities, $arguments = []) * Determine if the given ability should be granted for the current user. * * @param \UnitEnum|string $ability - * @param mixed $arguments * @return \Illuminate\Auth\Access\Response * * @throws \Illuminate\Auth\Access\AuthorizationException @@ -402,7 +385,6 @@ public function authorize($ability, $arguments = []) * Inspect the user for the given ability. * * @param \UnitEnum|string $ability - * @param mixed $arguments * @return \Illuminate\Auth\Access\Response */ public function inspect($ability, $arguments = []) @@ -426,8 +408,6 @@ public function inspect($ability, $arguments = []) * Get the raw result from the authorization callback. * * @param string $ability - * @param mixed $arguments - * @return mixed * * @throws \Illuminate\Auth\Access\AuthorizationException */ @@ -543,7 +523,6 @@ protected function parameterAllowsGuests($parameter) * * @param \Illuminate\Contracts\Auth\Authenticatable|null $user * @param string $ability - * @param array $arguments * @return bool */ protected function callAuthCallback($user, $ability, array $arguments) @@ -558,7 +537,6 @@ protected function callAuthCallback($user, $ability, array $arguments) * * @param \Illuminate\Contracts\Auth\Authenticatable|null $user * @param string $ability - * @param array $arguments * @return bool|null */ protected function callBeforeCallbacks($user, $ability, array $arguments) @@ -579,7 +557,6 @@ protected function callBeforeCallbacks($user, $ability, array $arguments) * * @param \Illuminate\Contracts\Auth\Authenticatable $user * @param string $ability - * @param array $arguments * @param bool|null $result * @return bool|null */ @@ -603,7 +580,6 @@ protected function callAfterCallbacks($user, $ability, array $arguments, $result * * @param \Illuminate\Contracts\Auth\Authenticatable|null $user * @param string $ability - * @param array $arguments * @param bool|null $result * @return void */ @@ -621,7 +597,6 @@ protected function dispatchGateEvaluatedEvent($user, $ability, array $arguments, * * @param \Illuminate\Contracts\Auth\Authenticatable|null $user * @param string $ability - * @param array $arguments * @return callable */ protected function resolveAuthCallback($user, $ability, array $arguments) @@ -654,7 +629,6 @@ protected function resolveAuthCallback($user, $ability, array $arguments) * Get a policy instance for a given class. * * @param object|string $class - * @return mixed */ public function getPolicyFor($class) { @@ -739,7 +713,6 @@ protected function guessPolicyName($class) /** * Specify a callback to be used to guess policy names. * - * @param callable $callback * @return $this */ public function guessPolicyNamesUsing(callable $callback) @@ -753,7 +726,6 @@ public function guessPolicyNamesUsing(callable $callback) * Build a policy class instance of the given type. * * @param object|string $class - * @return mixed * * @throws \Illuminate\Contracts\Container\BindingResolutionException */ @@ -767,8 +739,6 @@ public function resolvePolicy($class) * * @param \Illuminate\Contracts\Auth\Authenticatable $user * @param string $ability - * @param array $arguments - * @param mixed $policy * @return bool|callable */ protected function resolvePolicyCallback($user, $ability, array $arguments, $policy) @@ -801,11 +771,9 @@ protected function resolvePolicyCallback($user, $ability, array $arguments, $pol /** * Call the "before" method on the given policy, if applicable. * - * @param mixed $policy * @param \Illuminate\Contracts\Auth\Authenticatable $user * @param string $ability * @param array $arguments - * @return mixed */ protected function callPolicyBefore($policy, $user, $ability, $arguments) { @@ -821,11 +789,8 @@ protected function callPolicyBefore($policy, $user, $ability, $arguments) /** * Call the appropriate method on the given policy. * - * @param mixed $policy * @param string $method * @param \Illuminate\Contracts\Auth\Authenticatable|null $user - * @param array $arguments - * @return mixed */ protected function callPolicyMethod($policy, $method, $user, array $arguments) { @@ -877,8 +842,6 @@ public function forUser($user) /** * Resolve the user from the user resolver. - * - * @return mixed */ protected function resolveUser() { @@ -908,7 +871,6 @@ public function policies() /** * Set the default denial response for gates and policies. * - * @param \Illuminate\Auth\Access\Response $response * @return $this */ public function defaultDenialResponse(Response $response) @@ -921,7 +883,6 @@ public function defaultDenialResponse(Response $response) /** * Set the container instance used by the gate. * - * @param \Illuminate\Contracts\Container\Container $container * @return $this */ public function setContainer(Container $container) diff --git a/src/Illuminate/Auth/Access/HandlesAuthorization.php b/src/Illuminate/Auth/Access/HandlesAuthorization.php index f1109edc2d63..2e7cfad02da6 100644 --- a/src/Illuminate/Auth/Access/HandlesAuthorization.php +++ b/src/Illuminate/Auth/Access/HandlesAuthorization.php @@ -8,7 +8,6 @@ trait HandlesAuthorization * Create a new access response. * * @param string|null $message - * @param mixed $code * @return \Illuminate\Auth\Access\Response */ protected function allow($message = null, $code = null) @@ -20,7 +19,6 @@ protected function allow($message = null, $code = null) * Throws an unauthorized exception. * * @param string|null $message - * @param mixed $code * @return \Illuminate\Auth\Access\Response */ protected function deny($message = null, $code = null) diff --git a/src/Illuminate/Auth/Access/Response.php b/src/Illuminate/Auth/Access/Response.php index d35b78ad09ff..ec5de0fd00f6 100644 --- a/src/Illuminate/Auth/Access/Response.php +++ b/src/Illuminate/Auth/Access/Response.php @@ -23,8 +23,6 @@ class Response implements Arrayable, Stringable /** * The response code. - * - * @var mixed */ protected $code; @@ -40,7 +38,6 @@ class Response implements Arrayable, Stringable * * @param bool $allowed * @param string|null $message - * @param mixed $code */ public function __construct($allowed, $message = '', $code = null) { @@ -53,7 +50,6 @@ public function __construct($allowed, $message = '', $code = null) * Create a new "allow" Response. * * @param string|null $message - * @param mixed $code * @return \Illuminate\Auth\Access\Response */ public static function allow($message = null, $code = null) @@ -65,7 +61,6 @@ public static function allow($message = null, $code = null) * Create a new "deny" Response. * * @param string|null $message - * @param mixed $code * @return \Illuminate\Auth\Access\Response */ public static function deny($message = null, $code = null) @@ -78,7 +73,6 @@ public static function deny($message = null, $code = null) * * @param int $status * @param string|null $message - * @param mixed $code * @return \Illuminate\Auth\Access\Response */ public static function denyWithStatus($status, $message = null, $code = null) @@ -90,7 +84,6 @@ public static function denyWithStatus($status, $message = null, $code = null) * Create a new "deny" Response with a 404 HTTP status code. * * @param string|null $message - * @param mixed $code * @return \Illuminate\Auth\Access\Response */ public static function denyAsNotFound($message = null, $code = null) @@ -130,8 +123,6 @@ public function message() /** * Get the response code / reason. - * - * @return mixed */ public function code() { diff --git a/src/Illuminate/Auth/AuthManager.php b/src/Illuminate/Auth/AuthManager.php index 8c12db570ae4..ddd13e64a849 100755 --- a/src/Illuminate/Auth/AuthManager.php +++ b/src/Illuminate/Auth/AuthManager.php @@ -104,8 +104,6 @@ protected function resolve($name) * Call a custom driver creator. * * @param string $name - * @param array $config - * @return mixed */ protected function callCustomCreator($name, array $config) { @@ -227,7 +225,6 @@ public function setDefaultDriver($name) * Register a new callback based request guard. * * @param string $driver - * @param callable $callback * @return $this */ public function viaRequest($driver, callable $callback) @@ -254,7 +251,6 @@ public function userResolver() /** * Set the callback to be used to resolve users. * - * @param \Closure $userResolver * @return $this */ public function resolveUsersUsing(Closure $userResolver) @@ -268,7 +264,6 @@ public function resolveUsersUsing(Closure $userResolver) * Register a custom driver creator Closure. * * @param string $driver - * @param \Closure $callback * @return $this */ public function extend($driver, Closure $callback) @@ -282,7 +277,6 @@ public function extend($driver, Closure $callback) * Register a custom provider creator Closure. * * @param string $name - * @param \Closure $callback * @return $this */ public function provider($name, Closure $callback) @@ -332,7 +326,6 @@ public function setApplication($app) * * @param string $method * @param array $parameters - * @return mixed */ public function __call($method, $parameters) { diff --git a/src/Illuminate/Auth/Authenticatable.php b/src/Illuminate/Auth/Authenticatable.php index 0145c1cc8901..c240735ec4a2 100644 --- a/src/Illuminate/Auth/Authenticatable.php +++ b/src/Illuminate/Auth/Authenticatable.php @@ -30,8 +30,6 @@ public function getAuthIdentifierName() /** * Get the unique identifier for the user. - * - * @return mixed */ public function getAuthIdentifier() { @@ -40,8 +38,6 @@ public function getAuthIdentifier() /** * Get the unique broadcast identifier for the user. - * - * @return mixed */ public function getAuthIdentifierForBroadcasting() { diff --git a/src/Illuminate/Auth/AuthenticationException.php b/src/Illuminate/Auth/AuthenticationException.php index e3da045bc9a0..2e4333b98a45 100644 --- a/src/Illuminate/Auth/AuthenticationException.php +++ b/src/Illuminate/Auth/AuthenticationException.php @@ -32,7 +32,6 @@ class AuthenticationException extends Exception * Create a new authentication exception. * * @param string $message - * @param array $guards * @param string|null $redirectTo */ public function __construct($message = 'Unauthenticated.', array $guards = [], $redirectTo = null) @@ -56,7 +55,6 @@ public function guards() /** * Get the path the user should be redirected to. * - * @param \Illuminate\Http\Request $request * @return string|null */ public function redirectTo(Request $request) @@ -73,7 +71,6 @@ public function redirectTo(Request $request) /** * Specify the callback that should be used to generate the redirect path. * - * @param callable $redirectToCallback * @return void */ public static function redirectUsing(callable $redirectToCallback) diff --git a/src/Illuminate/Auth/DatabaseUserProvider.php b/src/Illuminate/Auth/DatabaseUserProvider.php index 24fae41d4d5f..595817c09d96 100755 --- a/src/Illuminate/Auth/DatabaseUserProvider.php +++ b/src/Illuminate/Auth/DatabaseUserProvider.php @@ -35,8 +35,6 @@ class DatabaseUserProvider implements UserProvider /** * Create a new database user provider. * - * @param \Illuminate\Database\ConnectionInterface $connection - * @param \Illuminate\Contracts\Hashing\Hasher $hasher * @param string $table */ public function __construct(ConnectionInterface $connection, HasherContract $hasher, $table) @@ -49,7 +47,6 @@ public function __construct(ConnectionInterface $connection, HasherContract $has /** * Retrieve a user by their unique identifier. * - * @param mixed $identifier * @return \Illuminate\Contracts\Auth\Authenticatable|null */ public function retrieveById($identifier) @@ -62,7 +59,6 @@ public function retrieveById($identifier) /** * Retrieve a user by their unique identifier and "remember me" token. * - * @param mixed $identifier * @param string $token * @return \Illuminate\Contracts\Auth\Authenticatable|null */ @@ -80,7 +76,6 @@ public function retrieveByToken($identifier, #[\SensitiveParameter] $token) /** * Update the "remember me" token for the given user in storage. * - * @param \Illuminate\Contracts\Auth\Authenticatable $user * @param string $token * @return void */ @@ -94,7 +89,6 @@ public function updateRememberToken(UserContract $user, #[\SensitiveParameter] $ /** * Retrieve a user by the given credentials. * - * @param array $credentials * @return \Illuminate\Contracts\Auth\Authenticatable|null */ public function retrieveByCredentials(#[\SensitiveParameter] array $credentials) @@ -135,7 +129,6 @@ public function retrieveByCredentials(#[\SensitiveParameter] array $credentials) /** * Get the generic user. * - * @param mixed $user * @return \Illuminate\Auth\GenericUser|null */ protected function getGenericUser($user) @@ -148,8 +141,6 @@ protected function getGenericUser($user) /** * Validate a user against the given credentials. * - * @param \Illuminate\Contracts\Auth\Authenticatable $user - * @param array $credentials * @return bool */ public function validateCredentials(UserContract $user, #[\SensitiveParameter] array $credentials) @@ -168,9 +159,6 @@ public function validateCredentials(UserContract $user, #[\SensitiveParameter] a /** * Rehash the user's password if required and supported. * - * @param \Illuminate\Contracts\Auth\Authenticatable $user - * @param array $credentials - * @param bool $force * @return void */ public function rehashPasswordIfRequired(UserContract $user, #[\SensitiveParameter] array $credentials, bool $force = false) diff --git a/src/Illuminate/Auth/EloquentUserProvider.php b/src/Illuminate/Auth/EloquentUserProvider.php index 1bb42edc6ce4..c1c4fea3dfe3 100755 --- a/src/Illuminate/Auth/EloquentUserProvider.php +++ b/src/Illuminate/Auth/EloquentUserProvider.php @@ -34,7 +34,6 @@ class EloquentUserProvider implements UserProvider /** * Create a new database user provider. * - * @param \Illuminate\Contracts\Hashing\Hasher $hasher * @param string $model */ public function __construct(HasherContract $hasher, $model) @@ -46,7 +45,6 @@ public function __construct(HasherContract $hasher, $model) /** * Retrieve a user by their unique identifier. * - * @param mixed $identifier * @return (\Illuminate\Contracts\Auth\Authenticatable&\Illuminate\Database\Eloquent\Model)|null */ public function retrieveById($identifier) @@ -61,7 +59,6 @@ public function retrieveById($identifier) /** * Retrieve a user by their unique identifier and "remember me" token. * - * @param mixed $identifier * @param string $token * @return (\Illuminate\Contracts\Auth\Authenticatable&\Illuminate\Database\Eloquent\Model)|null */ @@ -105,7 +102,6 @@ public function updateRememberToken(UserContract $user, #[\SensitiveParameter] $ /** * Retrieve a user by the given credentials. * - * @param array $credentials * @return (\Illuminate\Contracts\Auth\Authenticatable&\Illuminate\Database\Eloquent\Model)|null */ public function retrieveByCredentials(#[\SensitiveParameter] array $credentials) @@ -141,8 +137,6 @@ public function retrieveByCredentials(#[\SensitiveParameter] array $credentials) /** * Validate a user against the given credentials. * - * @param \Illuminate\Contracts\Auth\Authenticatable $user - * @param array $credentials * @return bool */ public function validateCredentials(UserContract $user, #[\SensitiveParameter] array $credentials) @@ -162,8 +156,6 @@ public function validateCredentials(UserContract $user, #[\SensitiveParameter] a * Rehash the user's password if required and supported. * * @param \Illuminate\Contracts\Auth\Authenticatable&\Illuminate\Database\Eloquent\Model $user - * @param array $credentials - * @param bool $force * @return void */ public function rehashPasswordIfRequired(UserContract $user, #[\SensitiveParameter] array $credentials, bool $force = false) @@ -221,7 +213,6 @@ public function getHasher() /** * Sets the hasher implementation. * - * @param \Illuminate\Contracts\Hashing\Hasher $hasher * @return $this */ public function setHasher(HasherContract $hasher) diff --git a/src/Illuminate/Auth/Events/Lockout.php b/src/Illuminate/Auth/Events/Lockout.php index d01c274d4de2..ad1f3073c3b6 100644 --- a/src/Illuminate/Auth/Events/Lockout.php +++ b/src/Illuminate/Auth/Events/Lockout.php @@ -15,8 +15,6 @@ class Lockout /** * Create a new event instance. - * - * @param \Illuminate\Http\Request $request */ public function __construct(Request $request) { diff --git a/src/Illuminate/Auth/GenericUser.php b/src/Illuminate/Auth/GenericUser.php index 99b199a56b8e..9b12087c882c 100755 --- a/src/Illuminate/Auth/GenericUser.php +++ b/src/Illuminate/Auth/GenericUser.php @@ -15,8 +15,6 @@ class GenericUser implements UserContract /** * Create a new generic User object. - * - * @param array $attributes */ public function __construct(array $attributes) { @@ -35,8 +33,6 @@ public function getAuthIdentifierName() /** * Get the unique identifier for the user. - * - * @return mixed */ public function getAuthIdentifier() { @@ -98,7 +94,6 @@ public function getRememberTokenName() * Dynamically access the user's attributes. * * @param string $key - * @return mixed */ public function __get($key) { @@ -109,7 +104,6 @@ public function __get($key) * Dynamically set an attribute on the user. * * @param string $key - * @param mixed $value * @return void */ public function __set($key, $value) diff --git a/src/Illuminate/Auth/GuardHelpers.php b/src/Illuminate/Auth/GuardHelpers.php index 9cdf69776c2e..b2a7cb383d96 100644 --- a/src/Illuminate/Auth/GuardHelpers.php +++ b/src/Illuminate/Auth/GuardHelpers.php @@ -81,7 +81,6 @@ public function id() /** * Set the current user. * - * @param \Illuminate\Contracts\Auth\Authenticatable $user * @return $this */ public function setUser(AuthenticatableContract $user) @@ -116,7 +115,6 @@ public function getProvider() /** * Set the user provider used by the guard. * - * @param \Illuminate\Contracts\Auth\UserProvider $provider * @return void */ public function setProvider(UserProvider $provider) diff --git a/src/Illuminate/Auth/Listeners/SendEmailVerificationNotification.php b/src/Illuminate/Auth/Listeners/SendEmailVerificationNotification.php index 12dfa6979396..c7fa2b69e3c9 100644 --- a/src/Illuminate/Auth/Listeners/SendEmailVerificationNotification.php +++ b/src/Illuminate/Auth/Listeners/SendEmailVerificationNotification.php @@ -10,7 +10,6 @@ class SendEmailVerificationNotification /** * Handle the event. * - * @param \Illuminate\Auth\Events\Registered $event * @return void */ public function handle(Registered $event) diff --git a/src/Illuminate/Auth/Middleware/Authenticate.php b/src/Illuminate/Auth/Middleware/Authenticate.php index 30cf903610bc..a7eb77b50f3b 100644 --- a/src/Illuminate/Auth/Middleware/Authenticate.php +++ b/src/Illuminate/Auth/Middleware/Authenticate.php @@ -26,8 +26,6 @@ class Authenticate implements AuthenticatesRequests /** * Create a new middleware instance. - * - * @param \Illuminate\Contracts\Auth\Factory $auth */ public function __construct(Auth $auth) { @@ -50,9 +48,7 @@ public static function using($guard, ...$others) * Handle an incoming request. * * @param \Illuminate\Http\Request $request - * @param \Closure $next * @param string ...$guards - * @return mixed * * @throws \Illuminate\Auth\AuthenticationException */ @@ -67,7 +63,6 @@ public function handle($request, Closure $next, ...$guards) * Determine if the user is logged in to any of the given guards. * * @param \Illuminate\Http\Request $request - * @param array $guards * @return void * * @throws \Illuminate\Auth\AuthenticationException @@ -91,7 +86,6 @@ protected function authenticate($request, array $guards) * Handle an unauthenticated user. * * @param \Illuminate\Http\Request $request - * @param array $guards * @return never * * @throws \Illuminate\Auth\AuthenticationException @@ -108,7 +102,6 @@ protected function unauthenticated($request, array $guards) /** * Get the path the user should be redirected to when they are not authenticated. * - * @param \Illuminate\Http\Request $request * @return string|null */ protected function redirectTo(Request $request) @@ -121,7 +114,6 @@ protected function redirectTo(Request $request) /** * Specify the callback that should be used to generate the redirect path. * - * @param callable $redirectToCallback * @return void */ public static function redirectUsing(callable $redirectToCallback) diff --git a/src/Illuminate/Auth/Middleware/AuthenticateWithBasicAuth.php b/src/Illuminate/Auth/Middleware/AuthenticateWithBasicAuth.php index 00230191fc49..87c80e28b7f4 100644 --- a/src/Illuminate/Auth/Middleware/AuthenticateWithBasicAuth.php +++ b/src/Illuminate/Auth/Middleware/AuthenticateWithBasicAuth.php @@ -16,8 +16,6 @@ class AuthenticateWithBasicAuth /** * Create a new middleware instance. - * - * @param \Illuminate\Contracts\Auth\Factory $auth */ public function __construct(AuthFactory $auth) { @@ -42,10 +40,8 @@ public static function using($guard = null, $field = null) * Handle an incoming request. * * @param \Illuminate\Http\Request $request - * @param \Closure $next * @param string|null $guard * @param string|null $field - * @return mixed * * @throws \Symfony\Component\HttpKernel\Exception\UnauthorizedHttpException */ diff --git a/src/Illuminate/Auth/Middleware/Authorize.php b/src/Illuminate/Auth/Middleware/Authorize.php index a5a11ec796d5..641fafa96e17 100644 --- a/src/Illuminate/Auth/Middleware/Authorize.php +++ b/src/Illuminate/Auth/Middleware/Authorize.php @@ -20,8 +20,6 @@ class Authorize /** * Create a new middleware instance. - * - * @param \Illuminate\Contracts\Auth\Access\Gate $gate */ public function __construct(Gate $gate) { @@ -44,10 +42,8 @@ public static function using($ability, ...$models) * Handle an incoming request. * * @param \Illuminate\Http\Request $request - * @param \Closure $next * @param string $ability * @param array|null ...$models - * @return mixed * * @throws \Illuminate\Auth\AuthenticationException * @throws \Illuminate\Auth\Access\AuthorizationException diff --git a/src/Illuminate/Auth/Middleware/EnsureEmailIsVerified.php b/src/Illuminate/Auth/Middleware/EnsureEmailIsVerified.php index 227174df2148..77b568934de2 100644 --- a/src/Illuminate/Auth/Middleware/EnsureEmailIsVerified.php +++ b/src/Illuminate/Auth/Middleware/EnsureEmailIsVerified.php @@ -24,7 +24,6 @@ public static function redirectTo($route) * Handle an incoming request. * * @param \Illuminate\Http\Request $request - * @param \Closure $next * @param string|null $redirectToRoute * @return \Illuminate\Http\Response|\Illuminate\Http\RedirectResponse|null */ diff --git a/src/Illuminate/Auth/Middleware/RedirectIfAuthenticated.php b/src/Illuminate/Auth/Middleware/RedirectIfAuthenticated.php index 958229947daf..a4f00bd3d5aa 100644 --- a/src/Illuminate/Auth/Middleware/RedirectIfAuthenticated.php +++ b/src/Illuminate/Auth/Middleware/RedirectIfAuthenticated.php @@ -70,7 +70,6 @@ protected function defaultRedirectUri(): string /** * Specify the callback that should be used to generate the redirect path. * - * @param callable $redirectToCallback * @return void */ public static function redirectUsing(callable $redirectToCallback) diff --git a/src/Illuminate/Auth/Middleware/RequirePassword.php b/src/Illuminate/Auth/Middleware/RequirePassword.php index 06fa9698efb1..aa42620ac39a 100644 --- a/src/Illuminate/Auth/Middleware/RequirePassword.php +++ b/src/Illuminate/Auth/Middleware/RequirePassword.php @@ -33,8 +33,6 @@ class RequirePassword /** * Create a new middleware instance. * - * @param \Illuminate\Contracts\Routing\ResponseFactory $responseFactory - * @param \Illuminate\Contracts\Routing\UrlGenerator $urlGenerator * @param int|null $passwordTimeout */ public function __construct(ResponseFactory $responseFactory, UrlGenerator $urlGenerator, $passwordTimeout = null) @@ -62,10 +60,8 @@ public static function using($redirectToRoute = null, $passwordTimeoutSeconds = * Handle an incoming request. * * @param \Illuminate\Http\Request $request - * @param \Closure $next * @param string|null $redirectToRoute * @param string|int|null $passwordTimeoutSeconds - * @return mixed */ public function handle($request, Closure $next, $redirectToRoute = null, $passwordTimeoutSeconds = null) { diff --git a/src/Illuminate/Auth/Notifications/ResetPassword.php b/src/Illuminate/Auth/Notifications/ResetPassword.php index 3689cf027dac..d471d66bc6d4 100644 --- a/src/Illuminate/Auth/Notifications/ResetPassword.php +++ b/src/Illuminate/Auth/Notifications/ResetPassword.php @@ -42,7 +42,6 @@ public function __construct(#[\SensitiveParameter] $token) /** * Get the notification's channels. * - * @param mixed $notifiable * @return array|string */ public function via($notifiable) @@ -53,7 +52,6 @@ public function via($notifiable) /** * Build the mail representation of the notification. * - * @param mixed $notifiable * @return \Illuminate\Notifications\Messages\MailMessage */ public function toMail($notifiable) @@ -84,7 +82,6 @@ protected function buildMailMessage($url) /** * Get the reset URL for the given notifiable. * - * @param mixed $notifiable * @return string */ protected function resetUrl($notifiable) diff --git a/src/Illuminate/Auth/Notifications/VerifyEmail.php b/src/Illuminate/Auth/Notifications/VerifyEmail.php index 7c4efc31ca51..b616b007d730 100644 --- a/src/Illuminate/Auth/Notifications/VerifyEmail.php +++ b/src/Illuminate/Auth/Notifications/VerifyEmail.php @@ -28,7 +28,6 @@ class VerifyEmail extends Notification /** * Get the notification's channels. * - * @param mixed $notifiable * @return array|string */ public function via($notifiable) @@ -39,7 +38,6 @@ public function via($notifiable) /** * Build the mail representation of the notification. * - * @param mixed $notifiable * @return \Illuminate\Notifications\Messages\MailMessage */ public function toMail($notifiable) @@ -71,7 +69,6 @@ protected function buildMailMessage($url) /** * Get the verification URL for the given notifiable. * - * @param mixed $notifiable * @return string */ protected function verificationUrl($notifiable) diff --git a/src/Illuminate/Auth/Passwords/CacheTokenRepository.php b/src/Illuminate/Auth/Passwords/CacheTokenRepository.php index 0ea37eef06ef..0a5f6dc0001e 100644 --- a/src/Illuminate/Auth/Passwords/CacheTokenRepository.php +++ b/src/Illuminate/Auth/Passwords/CacheTokenRepository.php @@ -30,7 +30,6 @@ public function __construct( /** * Create a new token. * - * @param \Illuminate\Contracts\Auth\CanResetPassword $user * @return string */ public function create(CanResetPasswordContract $user) @@ -51,7 +50,6 @@ public function create(CanResetPasswordContract $user) /** * Determine if a token record exists and is valid. * - * @param \Illuminate\Contracts\Auth\CanResetPassword $user * @param string $token * @return bool */ @@ -78,7 +76,6 @@ protected function tokenExpired($createdAt) /** * Determine if the given user recently created a password reset token. * - * @param \Illuminate\Contracts\Auth\CanResetPassword $user * @return bool */ public function recentlyCreatedToken(CanResetPasswordContract $user) @@ -108,7 +105,6 @@ protected function tokenRecentlyCreated($createdAt) /** * Delete a token record. * - * @param \Illuminate\Contracts\Auth\CanResetPassword $user * @return void */ public function delete(CanResetPasswordContract $user) @@ -127,9 +123,6 @@ public function deleteExpired() /** * Determine the cache key for the given user. - * - * @param \Illuminate\Contracts\Auth\CanResetPassword $user - * @return string */ public function cacheKey(CanResetPasswordContract $user): string { diff --git a/src/Illuminate/Auth/Passwords/DatabaseTokenRepository.php b/src/Illuminate/Auth/Passwords/DatabaseTokenRepository.php index 935b93c2f8b6..507365d3b05e 100755 --- a/src/Illuminate/Auth/Passwords/DatabaseTokenRepository.php +++ b/src/Illuminate/Auth/Passwords/DatabaseTokenRepository.php @@ -29,7 +29,6 @@ public function __construct( /** * Create a new token record. * - * @param \Illuminate\Contracts\Auth\CanResetPassword $user * @return string */ public function create(CanResetPasswordContract $user) @@ -51,7 +50,6 @@ public function create(CanResetPasswordContract $user) /** * Delete all existing reset tokens from the database. * - * @param \Illuminate\Contracts\Auth\CanResetPassword $user * @return int */ protected function deleteExisting(CanResetPasswordContract $user) @@ -74,7 +72,6 @@ protected function getPayload($email, #[\SensitiveParameter] $token) /** * Determine if a token record exists and is valid. * - * @param \Illuminate\Contracts\Auth\CanResetPassword $user * @param string $token * @return bool */ @@ -103,7 +100,6 @@ protected function tokenExpired($createdAt) /** * Determine if the given user recently created a password reset token. * - * @param \Illuminate\Contracts\Auth\CanResetPassword $user * @return bool */ public function recentlyCreatedToken(CanResetPasswordContract $user) @@ -135,7 +131,6 @@ protected function tokenRecentlyCreated($createdAt) /** * Delete a token record by user. * - * @param \Illuminate\Contracts\Auth\CanResetPassword $user * @return void */ public function delete(CanResetPasswordContract $user) diff --git a/src/Illuminate/Auth/Passwords/PasswordBroker.php b/src/Illuminate/Auth/Passwords/PasswordBroker.php index d955f3e42e1d..2aea3f108d6f 100755 --- a/src/Illuminate/Auth/Passwords/PasswordBroker.php +++ b/src/Illuminate/Auth/Passwords/PasswordBroker.php @@ -51,12 +51,6 @@ class PasswordBroker implements PasswordBrokerContract /** * Create a new password broker instance. - * - * @param \Illuminate\Auth\Passwords\TokenRepositoryInterface $tokens - * @param \Illuminate\Contracts\Auth\UserProvider $users - * @param \Illuminate\Contracts\Events\Dispatcher|null $dispatcher - * @param \Illuminate\Support\Timebox|null $timebox - * @param int $timeboxDuration */ public function __construct( #[\SensitiveParameter] TokenRepositoryInterface $tokens, @@ -75,8 +69,6 @@ public function __construct( /** * Send a password reset link to a user. * - * @param array $credentials - * @param \Closure|null $callback * @return string */ public function sendResetLink(#[\SensitiveParameter] array $credentials, ?Closure $callback = null) @@ -115,8 +107,6 @@ public function sendResetLink(#[\SensitiveParameter] array $credentials, ?Closur /** * Reset the password for the given token. * - * @param array $credentials - * @param \Closure $callback * @return string */ public function reset(#[\SensitiveParameter] array $credentials, Closure $callback) @@ -149,7 +139,6 @@ public function reset(#[\SensitiveParameter] array $credentials, Closure $callba /** * Validate a password reset for the given credentials. * - * @param array $credentials * @return \Illuminate\Contracts\Auth\CanResetPassword|string */ protected function validateReset(#[\SensitiveParameter] array $credentials) @@ -168,7 +157,6 @@ protected function validateReset(#[\SensitiveParameter] array $credentials) /** * Get the user for the given credentials. * - * @param array $credentials * @return \Illuminate\Contracts\Auth\CanResetPassword|null * * @throws \UnexpectedValueException @@ -189,7 +177,6 @@ public function getUser(#[\SensitiveParameter] array $credentials) /** * Create a new password reset token for the given user. * - * @param \Illuminate\Contracts\Auth\CanResetPassword $user * @return string */ public function createToken(CanResetPasswordContract $user) @@ -200,7 +187,6 @@ public function createToken(CanResetPasswordContract $user) /** * Delete password reset tokens of the given user. * - * @param \Illuminate\Contracts\Auth\CanResetPassword $user * @return void */ public function deleteToken(CanResetPasswordContract $user) @@ -211,7 +197,6 @@ public function deleteToken(CanResetPasswordContract $user) /** * Validate the given password reset token. * - * @param \Illuminate\Contracts\Auth\CanResetPassword $user * @param string $token * @return bool */ diff --git a/src/Illuminate/Auth/Passwords/PasswordBrokerManager.php b/src/Illuminate/Auth/Passwords/PasswordBrokerManager.php index 6e42bba190d8..bc87187427af 100644 --- a/src/Illuminate/Auth/Passwords/PasswordBrokerManager.php +++ b/src/Illuminate/Auth/Passwords/PasswordBrokerManager.php @@ -77,7 +77,6 @@ protected function resolve($name) /** * Create a token repository instance based on the given configuration. * - * @param array $config * @return \Illuminate\Auth\Passwords\TokenRepositoryInterface */ protected function createTokenRepository(array $config) @@ -145,7 +144,6 @@ public function setDefaultDriver($name) * * @param string $method * @param array $parameters - * @return mixed */ public function __call($method, $parameters) { diff --git a/src/Illuminate/Auth/Passwords/TokenRepositoryInterface.php b/src/Illuminate/Auth/Passwords/TokenRepositoryInterface.php index db8d63da64fa..f2e485b1c2bd 100755 --- a/src/Illuminate/Auth/Passwords/TokenRepositoryInterface.php +++ b/src/Illuminate/Auth/Passwords/TokenRepositoryInterface.php @@ -9,7 +9,6 @@ interface TokenRepositoryInterface /** * Create a new token. * - * @param \Illuminate\Contracts\Auth\CanResetPassword $user * @return string */ public function create(CanResetPasswordContract $user); @@ -17,7 +16,6 @@ public function create(CanResetPasswordContract $user); /** * Determine if a token record exists and is valid. * - * @param \Illuminate\Contracts\Auth\CanResetPassword $user * @param string $token * @return bool */ @@ -26,7 +24,6 @@ public function exists(CanResetPasswordContract $user, #[\SensitiveParameter] $t /** * Determine if the given user recently created a password reset token. * - * @param \Illuminate\Contracts\Auth\CanResetPassword $user * @return bool */ public function recentlyCreatedToken(CanResetPasswordContract $user); @@ -34,7 +31,6 @@ public function recentlyCreatedToken(CanResetPasswordContract $user); /** * Delete a token record. * - * @param \Illuminate\Contracts\Auth\CanResetPassword $user * @return void */ public function delete(CanResetPasswordContract $user); diff --git a/src/Illuminate/Auth/RequestGuard.php b/src/Illuminate/Auth/RequestGuard.php index e9f4bc74a3c8..63b152d2a52d 100644 --- a/src/Illuminate/Auth/RequestGuard.php +++ b/src/Illuminate/Auth/RequestGuard.php @@ -27,10 +27,6 @@ class RequestGuard implements Guard /** * Create a new authentication guard. - * - * @param callable $callback - * @param \Illuminate\Http\Request $request - * @param \Illuminate\Contracts\Auth\UserProvider|null $provider */ public function __construct(callable $callback, Request $request, ?UserProvider $provider = null) { @@ -61,7 +57,6 @@ public function user() /** * Validate a user's credentials. * - * @param array $credentials * @return bool */ public function validate(#[\SensitiveParameter] array $credentials = []) @@ -74,7 +69,6 @@ public function validate(#[\SensitiveParameter] array $credentials = []) /** * Set the current request instance. * - * @param \Illuminate\Http\Request $request * @return $this */ public function setRequest(Request $request) diff --git a/src/Illuminate/Auth/SessionGuard.php b/src/Illuminate/Auth/SessionGuard.php index 985b0bb4407c..0cc2b39e1140 100644 --- a/src/Illuminate/Auth/SessionGuard.php +++ b/src/Illuminate/Auth/SessionGuard.php @@ -35,8 +35,6 @@ class SessionGuard implements StatefulGuard, SupportsBasicAuth * The name of the guard. Typically "web". * * Corresponds to guard name in authentication configuration. - * - * @var string */ public readonly string $name; @@ -128,12 +126,6 @@ class SessionGuard implements StatefulGuard, SupportsBasicAuth * Create a new authentication guard. * * @param string $name - * @param \Illuminate\Contracts\Auth\UserProvider $provider - * @param \Illuminate\Contracts\Session\Session $session - * @param \Symfony\Component\HttpFoundation\Request|null $request - * @param \Illuminate\Support\Timebox|null $timebox - * @param bool $rehashOnLogin - * @param int $timeboxDuration */ public function __construct( $name, @@ -200,7 +192,6 @@ public function user() * Pull a user from the repository by its "remember me" cookie token. * * @param \Illuminate\Auth\Recaller $recaller - * @return mixed */ protected function userFromRecaller($recaller) { @@ -255,7 +246,6 @@ public function id() /** * Log a user into the application without sessions or cookies. * - * @param array $credentials * @return bool */ public function once(array $credentials = []) @@ -278,7 +268,6 @@ public function once(array $credentials = []) /** * Log the given user ID into the application without sessions or cookies. * - * @param mixed $id * @return \Illuminate\Contracts\Auth\Authenticatable|false */ public function onceUsingId($id) @@ -295,7 +284,6 @@ public function onceUsingId($id) /** * Validate a user's credentials. * - * @param array $credentials * @return bool */ public function validate(array $credentials = []) @@ -359,7 +347,6 @@ public function onceBasic($field = 'email', $extraConditions = []) /** * Attempt to authenticate using basic authentication. * - * @param \Symfony\Component\HttpFoundation\Request $request * @param string $field * @param array $extraConditions * @return bool @@ -378,7 +365,6 @@ protected function attemptBasic(Request $request, $field, $extraConditions = []) /** * Get the credential array for an HTTP Basic request. * - * @param \Symfony\Component\HttpFoundation\Request $request * @param string $field * @return array */ @@ -402,7 +388,6 @@ protected function failedBasicResponse() /** * Attempt to authenticate a user using the given credentials. * - * @param array $credentials * @param bool $remember * @return bool */ @@ -438,7 +423,6 @@ public function attempt(array $credentials = [], $remember = false) /** * Attempt to authenticate a user with credentials and additional callbacks. * - * @param array $credentials * @param array|callable|null $callbacks * @param bool $remember * @return bool @@ -472,7 +456,6 @@ public function attemptWhen(array $credentials = [], $callbacks = null, $remembe /** * Determine if the user matches the credentials. * - * @param mixed $user * @param array $credentials * @return bool */ @@ -491,7 +474,6 @@ protected function hasValidCredentials($user, $credentials) * Determine if the user should login by executing the given callbacks. * * @param array|callable|null $callbacks - * @param \Illuminate\Contracts\Auth\Authenticatable $user * @return bool */ protected function shouldLogin($callbacks, AuthenticatableContract $user) @@ -508,8 +490,6 @@ protected function shouldLogin($callbacks, AuthenticatableContract $user) /** * Rehash the user's password if enabled and required. * - * @param \Illuminate\Contracts\Auth\Authenticatable $user - * @param array $credentials * @return void */ protected function rehashPasswordIfRequired(AuthenticatableContract $user, #[\SensitiveParameter] array $credentials) @@ -522,7 +502,6 @@ protected function rehashPasswordIfRequired(AuthenticatableContract $user, #[\Se /** * Log the given user ID into the application. * - * @param mixed $id * @param bool $remember * @return \Illuminate\Contracts\Auth\Authenticatable|false */ @@ -540,7 +519,6 @@ public function loginUsingId($id, $remember = false) /** * Log a user into the application. * - * @param \Illuminate\Contracts\Auth\Authenticatable $user * @param bool $remember * @return void */ @@ -581,7 +559,6 @@ protected function updateSession($id) /** * Create a new "remember me" token for the user if one doesn't already exist. * - * @param \Illuminate\Contracts\Auth\Authenticatable $user * @return void */ protected function ensureRememberTokenIsSet(AuthenticatableContract $user) @@ -594,7 +571,6 @@ protected function ensureRememberTokenIsSet(AuthenticatableContract $user) /** * Queue the recaller cookie into the cookie jar. * - * @param \Illuminate\Contracts\Auth\Authenticatable $user * @return void */ protected function queueRecallerCookie(AuthenticatableContract $user) @@ -690,7 +666,6 @@ protected function clearUserDataFromStorage() /** * Refresh the "remember me" token for the user. * - * @param \Illuminate\Contracts\Auth\Authenticatable $user * @return void */ protected function cycleRememberToken(AuthenticatableContract $user) @@ -752,7 +727,6 @@ protected function rehashUserPasswordForDeviceLogout($password) /** * Register an authentication attempt event listener. * - * @param mixed $callback * @return void */ public function attempting($callback) @@ -763,7 +737,6 @@ public function attempting($callback) /** * Fire the attempt event with the arguments. * - * @param array $credentials * @param bool $remember * @return void */ @@ -821,7 +794,6 @@ protected function fireOtherDeviceLogoutEvent($user) * Fire the failed authentication attempt event with the given arguments. * * @param \Illuminate\Contracts\Auth\Authenticatable|null $user - * @param array $credentials * @return void */ protected function fireFailedEvent($user, array $credentials) @@ -911,7 +883,6 @@ public function getCookieJar() /** * Set the cookie creator instance used by the guard. * - * @param \Illuminate\Contracts\Cookie\QueueingFactory $cookie * @return void */ public function setCookieJar(CookieJar $cookie) @@ -932,7 +903,6 @@ public function getDispatcher() /** * Set the event dispatcher instance. * - * @param \Illuminate\Contracts\Events\Dispatcher $events * @return void */ public function setDispatcher(Dispatcher $events) @@ -963,7 +933,6 @@ public function getUser() /** * Set the current user. * - * @param \Illuminate\Contracts\Auth\Authenticatable $user * @return $this */ public function setUser(AuthenticatableContract $user) @@ -990,7 +959,6 @@ public function getRequest() /** * Set the current request instance. * - * @param \Symfony\Component\HttpFoundation\Request $request * @return $this */ public function setRequest(Request $request) diff --git a/src/Illuminate/Auth/TokenGuard.php b/src/Illuminate/Auth/TokenGuard.php index b6e7f187ce04..b88488c88c2f 100644 --- a/src/Illuminate/Auth/TokenGuard.php +++ b/src/Illuminate/Auth/TokenGuard.php @@ -42,8 +42,6 @@ class TokenGuard implements Guard /** * Create a new authentication guard. * - * @param \Illuminate\Contracts\Auth\UserProvider $provider - * @param \Illuminate\Http\Request $request * @param string $inputKey * @param string $storageKey * @param bool $hash @@ -116,7 +114,6 @@ public function getTokenForRequest() /** * Validate a user's credentials. * - * @param array $credentials * @return bool */ public function validate(array $credentials = []) @@ -137,7 +134,6 @@ public function validate(array $credentials = []) /** * Set the current request instance. * - * @param \Illuminate\Http\Request $request * @return $this */ public function setRequest(Request $request) diff --git a/src/Illuminate/Broadcasting/BroadcastController.php b/src/Illuminate/Broadcasting/BroadcastController.php index 01ce074eec88..01a632af5763 100644 --- a/src/Illuminate/Broadcasting/BroadcastController.php +++ b/src/Illuminate/Broadcasting/BroadcastController.php @@ -12,7 +12,6 @@ class BroadcastController extends Controller /** * Authenticate the request for channel access. * - * @param \Illuminate\Http\Request $request * @return \Illuminate\Http\Response */ public function authenticate(Request $request) @@ -29,7 +28,6 @@ public function authenticate(Request $request) * * See: https://pusher.com/docs/channels/server_api/authenticating-users/#user-authentication. * - * @param \Illuminate\Http\Request $request * @return array|null * * @throws \Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException diff --git a/src/Illuminate/Broadcasting/BroadcastEvent.php b/src/Illuminate/Broadcasting/BroadcastEvent.php index c4da0faab220..98afbd872d65 100644 --- a/src/Illuminate/Broadcasting/BroadcastEvent.php +++ b/src/Illuminate/Broadcasting/BroadcastEvent.php @@ -17,8 +17,6 @@ class BroadcastEvent implements ShouldQueue /** * The event instance. - * - * @var mixed */ public $event; @@ -52,8 +50,6 @@ class BroadcastEvent implements ShouldQueue /** * Create a new job handler instance. - * - * @param mixed $event */ public function __construct($event) { @@ -68,7 +64,6 @@ public function __construct($event) /** * Handle the queued job. * - * @param \Illuminate\Contracts\Broadcasting\Factory $manager * @return void */ public function handle(BroadcastingFactory $manager) @@ -101,7 +96,6 @@ public function handle(BroadcastingFactory $manager) /** * Get the payload for the given event. * - * @param mixed $event * @return array */ protected function getPayloadFromEvent($event) @@ -124,9 +118,6 @@ protected function getPayloadFromEvent($event) /** * Format the given value for a property. - * - * @param mixed $value - * @return mixed */ protected function formatProperty($value) { @@ -187,9 +178,6 @@ public function middleware(): array /** * Handle a job failure. - * - * @param \Throwable $e - * @return void */ public function failed(?Throwable $e = null): void { diff --git a/src/Illuminate/Broadcasting/BroadcastManager.php b/src/Illuminate/Broadcasting/BroadcastManager.php index bbd88792c72f..4e47470afdfe 100644 --- a/src/Illuminate/Broadcasting/BroadcastManager.php +++ b/src/Illuminate/Broadcasting/BroadcastManager.php @@ -61,7 +61,6 @@ public function __construct($app) /** * Register the routes for handling broadcast channel authentication and sockets. * - * @param array|null $attributes * @return void */ public function routes(?array $attributes = null) @@ -83,7 +82,6 @@ public function routes(?array $attributes = null) /** * Register the routes for handling broadcast user authentication. * - * @param array|null $attributes * @return void */ public function userRoutes(?array $attributes = null) @@ -107,7 +105,6 @@ public function userRoutes(?array $attributes = null) * * Alias of "routes" method. * - * @param array|null $attributes * @return void */ public function channelRoutes(?array $attributes = null) @@ -159,7 +156,6 @@ public function presence(string $channel): AnonymousEvent /** * Begin broadcasting an event. * - * @param mixed $event * @return \Illuminate\Broadcasting\PendingBroadcast */ public function event($event = null) @@ -170,7 +166,6 @@ public function event($event = null) /** * Queue the given event for broadcast. * - * @param mixed $event * @return void */ public function queue($event) @@ -219,7 +214,6 @@ public function queue($event) /** * Determine if the broadcastable event must be unique and determine if we can acquire the necessary lock. * - * @param mixed $event * @return bool */ protected function mustBeUniqueAndCannotAcquireLock($event) @@ -235,7 +229,6 @@ protected function mustBeUniqueAndCannotAcquireLock($event) * Get a driver instance. * * @param string|null $driver - * @return mixed */ public function connection($driver = null) { @@ -246,7 +239,6 @@ public function connection($driver = null) * Get a driver instance. * * @param string|null $name - * @return mixed */ public function driver($name = null) { @@ -297,9 +289,6 @@ protected function resolve($name) /** * Call a custom driver creator. - * - * @param array $config - * @return mixed */ protected function callCustomCreator(array $config) { @@ -309,7 +298,6 @@ protected function callCustomCreator(array $config) /** * Create an instance of the driver. * - * @param array $config * @return \Illuminate\Contracts\Broadcasting\Broadcaster */ protected function createReverbDriver(array $config) @@ -320,7 +308,6 @@ protected function createReverbDriver(array $config) /** * Create an instance of the driver. * - * @param array $config * @return \Illuminate\Contracts\Broadcasting\Broadcaster */ protected function createPusherDriver(array $config) @@ -331,7 +318,6 @@ protected function createPusherDriver(array $config) /** * Get a Pusher instance for the given configuration. * - * @param array $config * @return \Pusher\Pusher */ public function pusher(array $config) @@ -365,7 +351,6 @@ public function pusher(array $config) /** * Create an instance of the driver. * - * @param array $config * @return \Illuminate\Contracts\Broadcasting\Broadcaster */ protected function createAblyDriver(array $config) @@ -376,7 +361,6 @@ protected function createAblyDriver(array $config) /** * Get an Ably instance for the given configuration. * - * @param array $config * @return \Ably\AblyRest */ public function ably(array $config) @@ -387,7 +371,6 @@ public function ably(array $config) /** * Create an instance of the driver. * - * @param array $config * @return \Illuminate\Contracts\Broadcasting\Broadcaster */ protected function createRedisDriver(array $config) @@ -401,7 +384,6 @@ protected function createRedisDriver(array $config) /** * Create an instance of the driver. * - * @param array $config * @return \Illuminate\Contracts\Broadcasting\Broadcaster */ protected function createLogDriver(array $config) @@ -414,7 +396,6 @@ protected function createLogDriver(array $config) /** * Create an instance of the driver. * - * @param array $config * @return \Illuminate\Contracts\Broadcasting\Broadcaster */ protected function createNullDriver(array $config) @@ -475,7 +456,6 @@ public function purge($name = null) * Register a custom driver creator Closure. * * @param string $driver - * @param \Closure $callback * @return $this */ public function extend($driver, Closure $callback) @@ -487,9 +467,6 @@ public function extend($driver, Closure $callback) /** * Execute the given callback using "rescue" if possible. - * - * @param \Closure $callback - * @return mixed */ protected function rescue(Closure $callback) { @@ -540,7 +517,6 @@ public function forgetDrivers() * * @param string $method * @param array $parameters - * @return mixed */ public function __call($method, $parameters) { diff --git a/src/Illuminate/Broadcasting/Broadcasters/AblyBroadcaster.php b/src/Illuminate/Broadcasting/Broadcasters/AblyBroadcaster.php index 5fc73a2d9902..bfe385446765 100644 --- a/src/Illuminate/Broadcasting/Broadcasters/AblyBroadcaster.php +++ b/src/Illuminate/Broadcasting/Broadcasters/AblyBroadcaster.php @@ -24,8 +24,6 @@ class AblyBroadcaster extends Broadcaster /** * Create a new broadcaster instance. - * - * @param \Ably\AblyRest $ably */ public function __construct(AblyRest $ably) { @@ -36,7 +34,6 @@ public function __construct(AblyRest $ably) * Authenticate the incoming request for a given channel. * * @param \Illuminate\Http\Request $request - * @return mixed * * @throws \Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException */ @@ -59,8 +56,6 @@ public function auth($request) * Return the valid authentication response. * * @param \Illuminate\Http\Request $request - * @param mixed $result - * @return mixed */ public function validAuthenticationResponse($request, $result) { @@ -115,9 +110,7 @@ public function generateAblySignature($channelName, $socketId, $userData = null) /** * Broadcast the given event. * - * @param array $channels * @param string $event - * @param array $payload * @return void * * @throws \Illuminate\Broadcasting\BroadcastException @@ -141,7 +134,6 @@ public function broadcast(array $channels, $event, array $payload = []) * Build an Ably message object for broadcasting. * * @param string $event - * @param array $payload * @return \Ably\Models\Message */ protected function buildAblyMessage($event, array $payload = []) @@ -184,7 +176,6 @@ public function normalizeChannelName($channel) /** * Format the channel array into an array of strings. * - * @param array $channels * @return array */ protected function formatChannels(array $channels) diff --git a/src/Illuminate/Broadcasting/Broadcasters/Broadcaster.php b/src/Illuminate/Broadcasting/Broadcasters/Broadcaster.php index 7340f55181df..f2957457999e 100644 --- a/src/Illuminate/Broadcasting/Broadcasters/Broadcaster.php +++ b/src/Illuminate/Broadcasting/Broadcasters/Broadcaster.php @@ -66,7 +66,6 @@ public function resolveAuthenticatedUser($request) * * See: https://pusher.com/docs/channels/library_auth_reference/auth-signatures/#user-authentication. * - * @param \Closure $callback * @return void */ public function resolveAuthenticatedUserUsing(Closure $callback) @@ -102,7 +101,6 @@ public function channel($channel, $callback, $options = []) * * @param \Illuminate\Http\Request $request * @param string $channel - * @return mixed * * @throws \Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException */ @@ -206,7 +204,6 @@ protected function extractChannelKeys($pattern, $channel) * @param string $key * @param string $value * @param array $callbackParameters - * @return mixed */ protected function resolveBinding($key, $value, $callbackParameters) { @@ -221,8 +218,6 @@ protected function resolveBinding($key, $value, $callbackParameters) * Resolve an explicit parameter binding if applicable. * * @param string $key - * @param mixed $value - * @return mixed */ protected function resolveExplicitBindingIfPossible($key, $value) { @@ -239,9 +234,7 @@ protected function resolveExplicitBindingIfPossible($key, $value) * Resolve an implicit parameter binding if applicable. * * @param string $key - * @param mixed $value * @param array $callbackParameters - * @return mixed * * @throws \Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException */ @@ -280,7 +273,6 @@ protected function isImplicitlyBindable($key, $parameter) /** * Format the channel array into an array of strings. * - * @param array $channels * @return array */ protected function formatChannels(array $channels) @@ -309,7 +301,6 @@ protected function binder() /** * Normalize the given callback into a callable. * - * @param mixed $callback * @return callable */ protected function normalizeChannelHandlerToCallable($callback) @@ -326,7 +317,6 @@ protected function normalizeChannelHandlerToCallable($callback) * * @param \Illuminate\Http\Request $request * @param string $channel - * @return mixed */ protected function retrieveUser($request, $channel) { diff --git a/src/Illuminate/Broadcasting/Broadcasters/LogBroadcaster.php b/src/Illuminate/Broadcasting/Broadcasters/LogBroadcaster.php index 5479361559a5..e424aafab467 100644 --- a/src/Illuminate/Broadcasting/Broadcasters/LogBroadcaster.php +++ b/src/Illuminate/Broadcasting/Broadcasters/LogBroadcaster.php @@ -15,8 +15,6 @@ class LogBroadcaster extends Broadcaster /** * Create a new broadcaster instance. - * - * @param \Psr\Log\LoggerInterface $logger */ public function __construct(LoggerInterface $logger) { diff --git a/src/Illuminate/Broadcasting/Broadcasters/PusherBroadcaster.php b/src/Illuminate/Broadcasting/Broadcasters/PusherBroadcaster.php index e68a73c1f3de..297e2dbe53c9 100644 --- a/src/Illuminate/Broadcasting/Broadcasters/PusherBroadcaster.php +++ b/src/Illuminate/Broadcasting/Broadcasters/PusherBroadcaster.php @@ -22,8 +22,6 @@ class PusherBroadcaster extends Broadcaster /** * Create a new broadcaster instance. - * - * @param \Pusher\Pusher $pusher */ public function __construct(Pusher $pusher) { @@ -67,7 +65,6 @@ public function resolveAuthenticatedUser($request) * Authenticate the incoming request for a given channel. * * @param \Illuminate\Http\Request $request - * @return mixed * * @throws \Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException */ @@ -90,8 +87,6 @@ public function auth($request) * Return the valid authentication response. * * @param \Illuminate\Http\Request $request - * @param mixed $result - * @return mixed */ public function validAuthenticationResponse($request, $result) { @@ -124,7 +119,6 @@ public function validAuthenticationResponse($request, $result) * Decode the given Pusher response. * * @param \Illuminate\Http\Request $request - * @param mixed $response * @return array */ protected function decodePusherResponse($request, $response) @@ -140,9 +134,7 @@ protected function decodePusherResponse($request, $response) /** * Broadcast the given event. * - * @param array $channels * @param string $event - * @param array $payload * @return void * * @throws \Illuminate\Broadcasting\BroadcastException diff --git a/src/Illuminate/Broadcasting/Broadcasters/RedisBroadcaster.php b/src/Illuminate/Broadcasting/Broadcasters/RedisBroadcaster.php index 15878575dec0..aa54f23c76fd 100644 --- a/src/Illuminate/Broadcasting/Broadcasters/RedisBroadcaster.php +++ b/src/Illuminate/Broadcasting/Broadcasters/RedisBroadcaster.php @@ -41,7 +41,6 @@ class RedisBroadcaster extends Broadcaster /** * Create a new broadcaster instance. * - * @param \Illuminate\Contracts\Redis\Factory $redis * @param string|null $connection * @param string $prefix */ @@ -56,7 +55,6 @@ public function __construct(Redis $redis, $connection = null, $prefix = '') * Authenticate the incoming request for a given channel. * * @param \Illuminate\Http\Request $request - * @return mixed * * @throws \Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException */ @@ -81,8 +79,6 @@ public function auth($request) * Return the valid authentication response. * * @param \Illuminate\Http\Request $request - * @param mixed $result - * @return mixed */ public function validAuthenticationResponse($request, $result) { @@ -107,9 +103,7 @@ public function validAuthenticationResponse($request, $result) /** * Broadcast the given event. * - * @param array $channels * @param string $event - * @param array $payload * @return void * * @throws \Illuminate\Broadcasting\BroadcastException @@ -180,7 +174,6 @@ protected function broadcastMultipleChannelsScript() /** * Format the channel array into an array of strings. * - * @param array $channels * @return array */ protected function formatChannels(array $channels) diff --git a/src/Illuminate/Broadcasting/PendingBroadcast.php b/src/Illuminate/Broadcasting/PendingBroadcast.php index 6f5ee39f0035..28cbb50aecbc 100644 --- a/src/Illuminate/Broadcasting/PendingBroadcast.php +++ b/src/Illuminate/Broadcasting/PendingBroadcast.php @@ -17,16 +17,11 @@ class PendingBroadcast /** * The event instance. - * - * @var mixed */ protected $event; /** * Create a new pending broadcast instance. - * - * @param \Illuminate\Contracts\Events\Dispatcher $events - * @param mixed $event */ public function __construct(Dispatcher $events, $event) { diff --git a/src/Illuminate/Broadcasting/UniqueBroadcastEvent.php b/src/Illuminate/Broadcasting/UniqueBroadcastEvent.php index b99af6f843d5..21dff84d78a3 100644 --- a/src/Illuminate/Broadcasting/UniqueBroadcastEvent.php +++ b/src/Illuminate/Broadcasting/UniqueBroadcastEvent.php @@ -10,8 +10,6 @@ class UniqueBroadcastEvent extends BroadcastEvent implements ShouldBeUnique { /** * The unique lock identifier. - * - * @var mixed */ public $uniqueId; @@ -24,8 +22,6 @@ class UniqueBroadcastEvent extends BroadcastEvent implements ShouldBeUnique /** * Create a new event instance. - * - * @param mixed $event */ public function __construct($event) { diff --git a/src/Illuminate/Bus/Batch.php b/src/Illuminate/Bus/Batch.php index 717d1c4ab11d..c27de01b440f 100644 --- a/src/Illuminate/Bus/Batch.php +++ b/src/Illuminate/Bus/Batch.php @@ -100,19 +100,6 @@ class Batch implements Arrayable, JsonSerializable /** * Create a new batch instance. - * - * @param \Illuminate\Contracts\Queue\Factory $queue - * @param \Illuminate\Bus\BatchRepository $repository - * @param string $id - * @param string $name - * @param int $totalJobs - * @param int $pendingJobs - * @param int $failedJobs - * @param array $failedJobIds - * @param array $options - * @param \Carbon\CarbonImmutable $createdAt - * @param \Carbon\CarbonImmutable|null $cancelledAt - * @param \Carbon\CarbonImmutable|null $finishedAt */ public function __construct( QueueFactory $queue, @@ -199,7 +186,6 @@ public function add($jobs) /** * Prepare a chain that exists within the jobs being added. * - * @param array $chain * @return \Illuminate\Support\Collection */ protected function prepareBatchedChain(array $chain) @@ -234,7 +220,6 @@ public function progress() /** * Record that a job within the batch finished successfully, executing any callbacks if necessary. * - * @param string $jobId * @return void */ public function recordSuccessfulJob(string $jobId) @@ -273,7 +258,6 @@ public function recordSuccessfulJob(string $jobId) /** * Decrement the pending jobs for the batch. * - * @param string $jobId * @return \Illuminate\Bus\UpdatedBatchJobCounts */ public function decrementPendingJobs(string $jobId) @@ -334,7 +318,6 @@ public function hasFailures() /** * Record that a job within the batch failed to finish successfully, executing any callbacks if necessary. * - * @param string $jobId * @param \Throwable $e * @return void */ @@ -374,7 +357,6 @@ public function recordFailedJob(string $jobId, $e) /** * Increment the failed jobs for the batch. * - * @param string $jobId * @return \Illuminate\Bus\UpdatedBatchJobCounts */ public function incrementFailedJobs(string $jobId) @@ -446,8 +428,6 @@ public function delete() * Invoke a batch callback handler. * * @param callable $handler - * @param \Illuminate\Bus\Batch $batch - * @param \Throwable|null $e * @return void */ protected function invokeHandlerCallback($handler, Batch $batch, ?Throwable $e = null) @@ -485,8 +465,6 @@ public function toArray() /** * Get the JSON serializable representation of the object. - * - * @return array */ public function jsonSerialize(): array { @@ -497,7 +475,6 @@ public function jsonSerialize(): array * Dynamically access the batch's "options" via properties. * * @param string $key - * @return mixed */ public function __get($key) { diff --git a/src/Illuminate/Bus/BatchFactory.php b/src/Illuminate/Bus/BatchFactory.php index 9a3ed600aff6..baa42a447ff6 100644 --- a/src/Illuminate/Bus/BatchFactory.php +++ b/src/Illuminate/Bus/BatchFactory.php @@ -16,8 +16,6 @@ class BatchFactory /** * Create a new batch factory instance. - * - * @param \Illuminate\Contracts\Queue\Factory $queue */ public function __construct(QueueFactory $queue) { @@ -27,17 +25,6 @@ public function __construct(QueueFactory $queue) /** * Create a new batch instance. * - * @param \Illuminate\Bus\BatchRepository $repository - * @param string $id - * @param string $name - * @param int $totalJobs - * @param int $pendingJobs - * @param int $failedJobs - * @param array $failedJobIds - * @param array $options - * @param \Carbon\CarbonImmutable $createdAt - * @param \Carbon\CarbonImmutable|null $cancelledAt - * @param \Carbon\CarbonImmutable|null $finishedAt * @return \Illuminate\Bus\Batch */ public function make(BatchRepository $repository, diff --git a/src/Illuminate/Bus/BatchRepository.php b/src/Illuminate/Bus/BatchRepository.php index f4b756008e95..472d9be0abe6 100644 --- a/src/Illuminate/Bus/BatchRepository.php +++ b/src/Illuminate/Bus/BatchRepository.php @@ -10,7 +10,6 @@ interface BatchRepository * Retrieve a list of batches. * * @param int $limit - * @param mixed $before * @return \Illuminate\Bus\Batch[] */ public function get($limit, $before); @@ -18,7 +17,6 @@ public function get($limit, $before); /** * Retrieve information about an existing batch. * - * @param string $batchId * @return \Illuminate\Bus\Batch|null */ public function find(string $batchId); @@ -26,7 +24,6 @@ public function find(string $batchId); /** * Store a new pending batch. * - * @param \Illuminate\Bus\PendingBatch $batch * @return \Illuminate\Bus\Batch */ public function store(PendingBatch $batch); @@ -34,8 +31,6 @@ public function store(PendingBatch $batch); /** * Increment the total number of jobs within the batch. * - * @param string $batchId - * @param int $amount * @return void */ public function incrementTotalJobs(string $batchId, int $amount); @@ -43,8 +38,6 @@ public function incrementTotalJobs(string $batchId, int $amount); /** * Decrement the total number of pending jobs for the batch. * - * @param string $batchId - * @param string $jobId * @return \Illuminate\Bus\UpdatedBatchJobCounts */ public function decrementPendingJobs(string $batchId, string $jobId); @@ -52,8 +45,6 @@ public function decrementPendingJobs(string $batchId, string $jobId); /** * Increment the total number of failed jobs for the batch. * - * @param string $batchId - * @param string $jobId * @return \Illuminate\Bus\UpdatedBatchJobCounts */ public function incrementFailedJobs(string $batchId, string $jobId); @@ -61,7 +52,6 @@ public function incrementFailedJobs(string $batchId, string $jobId); /** * Mark the batch that has the given ID as finished. * - * @param string $batchId * @return void */ public function markAsFinished(string $batchId); @@ -69,7 +59,6 @@ public function markAsFinished(string $batchId); /** * Cancel the batch that has the given ID. * - * @param string $batchId * @return void */ public function cancel(string $batchId); @@ -77,16 +66,12 @@ public function cancel(string $batchId); /** * Delete the batch that has the given ID. * - * @param string $batchId * @return void */ public function delete(string $batchId); /** * Execute the given Closure within a storage specific transaction. - * - * @param \Closure $callback - * @return mixed */ public function transaction(Closure $callback); diff --git a/src/Illuminate/Bus/Batchable.php b/src/Illuminate/Bus/Batchable.php index 5cf5706070e9..8a782dc43fa1 100644 --- a/src/Illuminate/Bus/Batchable.php +++ b/src/Illuminate/Bus/Batchable.php @@ -54,7 +54,6 @@ public function batching() /** * Set the batch ID on the job. * - * @param string $batchId * @return $this */ public function withBatchId(string $batchId) @@ -67,16 +66,6 @@ public function withBatchId(string $batchId) /** * Indicate that the job should use a fake batch. * - * @param string $id - * @param string $name - * @param int $totalJobs - * @param int $pendingJobs - * @param int $failedJobs - * @param array $failedJobIds - * @param array $options - * @param \Carbon\CarbonImmutable|null $createdAt - * @param \Carbon\CarbonImmutable|null $cancelledAt - * @param \Carbon\CarbonImmutable|null $finishedAt * @return array{0: $this, 1: \Illuminate\Support\Testing\Fakes\BatchFake} */ public function withFakeBatch(string $id = '', diff --git a/src/Illuminate/Bus/ChainedBatch.php b/src/Illuminate/Bus/ChainedBatch.php index d88aa0e7377e..372116491f23 100644 --- a/src/Illuminate/Bus/ChainedBatch.php +++ b/src/Illuminate/Bus/ChainedBatch.php @@ -16,29 +16,21 @@ class ChainedBatch implements ShouldQueue /** * The collection of batched jobs. - * - * @var \Illuminate\Support\Collection */ public Collection $jobs; /** * The name of the batch. - * - * @var string */ public string $name; /** * The batch options. - * - * @var array */ public array $options; /** * Create a new chained batch instance. - * - * @param \Illuminate\Bus\PendingBatch $batch */ public function __construct(PendingBatch $batch) { @@ -50,9 +42,6 @@ public function __construct(PendingBatch $batch) /** * Prepare any nested batches within the given collection of jobs. - * - * @param \Illuminate\Support\Collection $jobs - * @return \Illuminate\Support\Collection */ public static function prepareNestedBatches(Collection $jobs): Collection { @@ -110,7 +99,6 @@ public function toPendingBatch() /** * Move the remainder of the chain to a "finally" batch callback. * - * @param \Illuminate\Bus\PendingBatch $batch * @return \Illuminate\Bus\PendingBatch */ protected function attachRemainderOfChainToEndOfBatch(PendingBatch $batch) diff --git a/src/Illuminate/Bus/DatabaseBatchRepository.php b/src/Illuminate/Bus/DatabaseBatchRepository.php index a2c56cc13ea2..80663562095b 100644 --- a/src/Illuminate/Bus/DatabaseBatchRepository.php +++ b/src/Illuminate/Bus/DatabaseBatchRepository.php @@ -36,10 +36,6 @@ class DatabaseBatchRepository implements PrunableBatchRepository /** * Create a new batch repository instance. - * - * @param \Illuminate\Bus\BatchFactory $factory - * @param \Illuminate\Database\Connection $connection - * @param string $table */ public function __construct(BatchFactory $factory, Connection $connection, string $table) { @@ -52,7 +48,6 @@ public function __construct(BatchFactory $factory, Connection $connection, strin * Retrieve a list of batches. * * @param int $limit - * @param mixed $before * @return \Illuminate\Bus\Batch[] */ public function get($limit = 50, $before = null) @@ -71,7 +66,6 @@ public function get($limit = 50, $before = null) /** * Retrieve information about an existing batch. * - * @param string $batchId * @return \Illuminate\Bus\Batch|null */ public function find(string $batchId) @@ -89,7 +83,6 @@ public function find(string $batchId) /** * Store a new pending batch. * - * @param \Illuminate\Bus\PendingBatch $batch * @return \Illuminate\Bus\Batch */ public function store(PendingBatch $batch) @@ -115,8 +108,6 @@ public function store(PendingBatch $batch) /** * Increment the total number of jobs within the batch. * - * @param string $batchId - * @param int $amount * @return void */ public function incrementTotalJobs(string $batchId, int $amount) @@ -131,8 +122,6 @@ public function incrementTotalJobs(string $batchId, int $amount) /** * Decrement the total number of pending jobs for the batch. * - * @param string $batchId - * @param string $jobId * @return \Illuminate\Bus\UpdatedBatchJobCounts */ public function decrementPendingJobs(string $batchId, string $jobId) @@ -154,8 +143,6 @@ public function decrementPendingJobs(string $batchId, string $jobId) /** * Increment the total number of failed jobs for the batch. * - * @param string $batchId - * @param string $jobId * @return \Illuminate\Bus\UpdatedBatchJobCounts */ public function incrementFailedJobs(string $batchId, string $jobId) @@ -177,8 +164,6 @@ public function incrementFailedJobs(string $batchId, string $jobId) /** * Update an atomic value within the batch. * - * @param string $batchId - * @param \Closure $callback * @return int|null */ protected function updateAtomicValues(string $batchId, Closure $callback) @@ -197,7 +182,6 @@ protected function updateAtomicValues(string $batchId, Closure $callback) /** * Mark the batch that has the given ID as finished. * - * @param string $batchId * @return void */ public function markAsFinished(string $batchId) @@ -210,7 +194,6 @@ public function markAsFinished(string $batchId) /** * Cancel the batch that has the given ID. * - * @param string $batchId * @return void */ public function cancel(string $batchId) @@ -224,7 +207,6 @@ public function cancel(string $batchId) /** * Delete the batch that has the given ID. * - * @param string $batchId * @return void */ public function delete(string $batchId) @@ -235,7 +217,6 @@ public function delete(string $batchId) /** * Prune all of the entries older than the given date. * - * @param \DateTimeInterface $before * @return int */ public function prune(DateTimeInterface $before) @@ -258,7 +239,6 @@ public function prune(DateTimeInterface $before) /** * Prune all of the unfinished entries older than the given date. * - * @param \DateTimeInterface $before * @return int */ public function pruneUnfinished(DateTimeInterface $before) @@ -281,7 +261,6 @@ public function pruneUnfinished(DateTimeInterface $before) /** * Prune all of the cancelled entries older than the given date. * - * @param \DateTimeInterface $before * @return int */ public function pruneCancelled(DateTimeInterface $before) @@ -303,9 +282,6 @@ public function pruneCancelled(DateTimeInterface $before) /** * Execute the given Closure within a storage specific transaction. - * - * @param \Closure $callback - * @return mixed */ public function transaction(Closure $callback) { @@ -325,7 +301,6 @@ public function rollBack() /** * Serialize the given value. * - * @param mixed $value * @return string */ protected function serialize($value) @@ -341,7 +316,6 @@ protected function serialize($value) * Unserialize the given value. * * @param string $serialized - * @return mixed */ protected function unserialize($serialized) { @@ -393,7 +367,6 @@ public function getConnection() /** * Set the underlying database connection. * - * @param \Illuminate\Database\Connection $connection * @return void */ public function setConnection(Connection $connection) diff --git a/src/Illuminate/Bus/Dispatcher.php b/src/Illuminate/Bus/Dispatcher.php index 01bf5ec457d7..0a4506aaae56 100644 --- a/src/Illuminate/Bus/Dispatcher.php +++ b/src/Illuminate/Bus/Dispatcher.php @@ -60,9 +60,6 @@ class Dispatcher implements QueueingDispatcher /** * Create a new command dispatcher instance. - * - * @param \Illuminate\Contracts\Container\Container $container - * @param \Closure|null $queueResolver */ public function __construct(Container $container, ?Closure $queueResolver = null) { @@ -73,9 +70,6 @@ public function __construct(Container $container, ?Closure $queueResolver = null /** * Dispatch a command to its appropriate handler. - * - * @param mixed $command - * @return mixed */ public function dispatch($command) { @@ -88,10 +82,6 @@ public function dispatch($command) * Dispatch a command to its appropriate handler in the current process. * * Queueable jobs will be dispatched to the "sync" queue. - * - * @param mixed $command - * @param mixed $handler - * @return mixed */ public function dispatchSync($command, $handler = null) { @@ -106,10 +96,6 @@ public function dispatchSync($command, $handler = null) /** * Dispatch a command to its appropriate handler in the current process without using the synchronous queue. - * - * @param mixed $command - * @param mixed $handler - * @return mixed */ public function dispatchNow($command, $handler = null) { @@ -139,7 +125,6 @@ public function dispatchNow($command, $handler = null) /** * Attempt to find the batch with the given ID. * - * @param string $batchId * @return \Illuminate\Bus\Batch|null */ public function findBatch(string $batchId) @@ -175,7 +160,6 @@ public function chain($jobs = null) /** * Determine if the given command has a handler. * - * @param mixed $command * @return bool */ public function hasCommandHandler($command) @@ -185,9 +169,6 @@ public function hasCommandHandler($command) /** * Retrieve the handler for a command. - * - * @param mixed $command - * @return mixed */ public function getCommandHandler($command) { @@ -201,7 +182,6 @@ public function getCommandHandler($command) /** * Determine if the given command should be queued. * - * @param mixed $command * @return bool */ protected function commandShouldBeQueued($command) @@ -212,8 +192,6 @@ protected function commandShouldBeQueued($command) /** * Dispatch a command to its appropriate handler behind a queue. * - * @param mixed $command - * @return mixed * * @throws \RuntimeException */ @@ -238,8 +216,6 @@ public function dispatchToQueue($command) * Push the command onto the given queue instance. * * @param \Illuminate\Contracts\Queue\Queue $queue - * @param mixed $command - * @return mixed */ protected function pushCommandToQueue($queue, $command) { @@ -253,8 +229,6 @@ protected function pushCommandToQueue($queue, $command) /** * Dispatch a command to its appropriate handler after the current process. * - * @param mixed $command - * @param mixed $handler * @return void */ public function dispatchAfterResponse($command, $handler = null) @@ -273,7 +247,6 @@ public function dispatchAfterResponse($command, $handler = null) /** * Set the pipes through which commands should be piped before dispatching. * - * @param array $pipes * @return $this */ public function pipeThrough(array $pipes) @@ -286,7 +259,6 @@ public function pipeThrough(array $pipes) /** * Map a command to a handler. * - * @param array $map * @return $this */ public function map(array $map) diff --git a/src/Illuminate/Bus/DynamoBatchRepository.php b/src/Illuminate/Bus/DynamoBatchRepository.php index 4f2ac8a3434b..c3f2f912c1cb 100644 --- a/src/Illuminate/Bus/DynamoBatchRepository.php +++ b/src/Illuminate/Bus/DynamoBatchRepository.php @@ -83,7 +83,6 @@ public function __construct( * Retrieve a list of batches. * * @param int $limit - * @param mixed $before * @return \Illuminate\Bus\Batch[] */ public function get($limit = 50, $before = null) @@ -114,7 +113,6 @@ public function get($limit = 50, $before = null) /** * Retrieve information about an existing batch. * - * @param string $batchId * @return \Illuminate\Bus\Batch|null */ public function find(string $batchId) @@ -157,7 +155,6 @@ public function find(string $batchId) /** * Store a new pending batch. * - * @param \Illuminate\Bus\PendingBatch $batch * @return \Illuminate\Bus\Batch */ public function store(PendingBatch $batch) @@ -194,8 +191,6 @@ public function store(PendingBatch $batch) /** * Increment the total number of jobs within the batch. * - * @param string $batchId - * @param int $amount * @return void */ public function incrementTotalJobs(string $batchId, int $amount) @@ -225,8 +220,6 @@ public function incrementTotalJobs(string $batchId, int $amount) /** * Decrement the total number of pending jobs for the batch. * - * @param string $batchId - * @param string $jobId * @return \Illuminate\Bus\UpdatedBatchJobCounts */ public function decrementPendingJobs(string $batchId, string $jobId) @@ -263,8 +256,6 @@ public function decrementPendingJobs(string $batchId, string $jobId) /** * Increment the total number of failed jobs for the batch. * - * @param string $batchId - * @param string $jobId * @return \Illuminate\Bus\UpdatedBatchJobCounts */ public function incrementFailedJobs(string $batchId, string $jobId) @@ -302,7 +293,6 @@ public function incrementFailedJobs(string $batchId, string $jobId) /** * Mark the batch that has the given ID as finished. * - * @param string $batchId * @return void */ public function markAsFinished(string $batchId) @@ -331,7 +321,6 @@ public function markAsFinished(string $batchId) /** * Cancel the batch that has the given ID. * - * @param string $batchId * @return void */ public function cancel(string $batchId) @@ -360,7 +349,6 @@ public function cancel(string $batchId) /** * Delete the batch that has the given ID. * - * @param string $batchId * @return void */ public function delete(string $batchId) @@ -376,9 +364,6 @@ public function delete(string $batchId) /** * Execute the given Closure within a storage specific transaction. - * - * @param \Closure $callback - * @return mixed */ public function transaction(Closure $callback) { @@ -419,8 +404,6 @@ protected function toBatch($batch) /** * Create the underlying DynamoDB table. - * - * @return void */ public function createAwsDynamoTable(): void { @@ -474,8 +457,6 @@ public function deleteAwsDynamoTable(): void /** * Get the expiry time based on the configured time-to-live. - * - * @return string|null */ protected function getExpiryTime(): ?string { @@ -484,8 +465,6 @@ protected function getExpiryTime(): ?string /** * Get the expression attribute name for the time-to-live attribute. - * - * @return array */ protected function ttlExpressionAttributeName(): array { @@ -495,7 +474,6 @@ protected function ttlExpressionAttributeName(): array /** * Serialize the given value. * - * @param mixed $value * @return string */ protected function serialize($value) @@ -507,7 +485,6 @@ protected function serialize($value) * Unserialize the given value. * * @param string $serialized - * @return mixed */ protected function unserialize($serialized) { @@ -516,8 +493,6 @@ protected function unserialize($serialized) /** * Get the underlying DynamoDB client instance. - * - * @return \Aws\DynamoDb\DynamoDbClient */ public function getDynamoClient(): DynamoDbClient { @@ -526,8 +501,6 @@ public function getDynamoClient(): DynamoDbClient /** * The name of the table that contains the batch records. - * - * @return string */ public function getTable(): string { diff --git a/src/Illuminate/Bus/PendingBatch.php b/src/Illuminate/Bus/PendingBatch.php index 9538074d7be4..378e35390fc7 100644 --- a/src/Illuminate/Bus/PendingBatch.php +++ b/src/Illuminate/Bus/PendingBatch.php @@ -56,9 +56,6 @@ class PendingBatch /** * Create a new pending batch instance. - * - * @param \Illuminate\Contracts\Container\Container $container - * @param \Illuminate\Support\Collection $jobs */ public function __construct(Container $container, Collection $jobs) { @@ -90,9 +87,6 @@ public function add($jobs) /** * Ensure the given job is batchable. - * - * @param object|array $job - * @return void */ protected function ensureJobIsBatchable(object|array $job): void { @@ -262,7 +256,6 @@ public function allowsFailures() /** * Set the name for the batch. * - * @param string $name * @return $this */ public function name(string $name) @@ -275,7 +268,6 @@ public function name(string $name) /** * Specify the queue connection that the batched jobs should run on. * - * @param string $connection * @return $this */ public function onConnection(string $connection) @@ -321,8 +313,6 @@ public function queue() /** * Add additional data into the batch's options array. * - * @param string $key - * @param mixed $value * @return $this */ public function withOption(string $key, $value) diff --git a/src/Illuminate/Bus/PrunableBatchRepository.php b/src/Illuminate/Bus/PrunableBatchRepository.php index 3f972553b597..1975da80ab33 100644 --- a/src/Illuminate/Bus/PrunableBatchRepository.php +++ b/src/Illuminate/Bus/PrunableBatchRepository.php @@ -9,7 +9,6 @@ interface PrunableBatchRepository extends BatchRepository /** * Prune all of the entries older than the given date. * - * @param \DateTimeInterface $before * @return int */ public function prune(DateTimeInterface $before); diff --git a/src/Illuminate/Bus/Queueable.php b/src/Illuminate/Bus/Queueable.php index 917f6540995e..966c1809729e 100644 --- a/src/Illuminate/Bus/Queueable.php +++ b/src/Illuminate/Bus/Queueable.php @@ -214,7 +214,6 @@ public function chain($chain) /** * Prepend a job to the current chain so that it is run after the currently running job. * - * @param mixed $job * @return $this */ public function prependToChain($job) @@ -231,7 +230,6 @@ public function prependToChain($job) /** * Append a job to the end of the current chain. * - * @param mixed $job * @return $this */ public function appendToChain($job) @@ -248,7 +246,6 @@ public function appendToChain($job) /** * Serialize a job for queuing. * - * @param mixed $job * @return string * * @throws \RuntimeException diff --git a/src/Illuminate/Bus/UniqueLock.php b/src/Illuminate/Bus/UniqueLock.php index c1d74c636f1e..e87b4195854a 100644 --- a/src/Illuminate/Bus/UniqueLock.php +++ b/src/Illuminate/Bus/UniqueLock.php @@ -15,8 +15,6 @@ class UniqueLock /** * Create a new unique lock manager instance. - * - * @param \Illuminate\Contracts\Cache\Repository $cache */ public function __construct(Cache $cache) { @@ -26,7 +24,6 @@ public function __construct(Cache $cache) /** * Attempt to acquire a lock for the given job. * - * @param mixed $job * @return bool */ public function acquire($job) @@ -45,7 +42,6 @@ public function acquire($job) /** * Release the lock for the given job. * - * @param mixed $job * @return void */ public function release($job) @@ -60,7 +56,6 @@ public function release($job) /** * Generate the lock key for the given job. * - * @param mixed $job * @return string */ public static function getKey($job) diff --git a/src/Illuminate/Bus/UpdatedBatchJobCounts.php b/src/Illuminate/Bus/UpdatedBatchJobCounts.php index f68de3bba614..426d47f347bc 100644 --- a/src/Illuminate/Bus/UpdatedBatchJobCounts.php +++ b/src/Illuminate/Bus/UpdatedBatchJobCounts.php @@ -20,9 +20,6 @@ class UpdatedBatchJobCounts /** * Create a new batch job counts object. - * - * @param int $pendingJobs - * @param int $failedJobs */ public function __construct(int $pendingJobs = 0, int $failedJobs = 0) { diff --git a/src/Illuminate/Cache/ApcStore.php b/src/Illuminate/Cache/ApcStore.php index 89c31a3f7f0c..c8da78a58e9b 100755 --- a/src/Illuminate/Cache/ApcStore.php +++ b/src/Illuminate/Cache/ApcStore.php @@ -23,7 +23,6 @@ class ApcStore extends TaggableStore /** * Create a new APC store. * - * @param \Illuminate\Cache\ApcWrapper $apc * @param string $prefix */ public function __construct(ApcWrapper $apc, $prefix = '') @@ -36,7 +35,6 @@ public function __construct(ApcWrapper $apc, $prefix = '') * Retrieve an item from the cache by key. * * @param string $key - * @return mixed */ public function get($key) { @@ -47,7 +45,6 @@ public function get($key) * Store an item in the cache for a given number of seconds. * * @param string $key - * @param mixed $value * @param int $seconds * @return bool */ @@ -60,7 +57,6 @@ public function put($key, $value, $seconds) * Increment the value of an item in the cache. * * @param string $key - * @param mixed $value * @return int|bool */ public function increment($key, $value = 1) @@ -72,7 +68,6 @@ public function increment($key, $value = 1) * Decrement the value of an item in the cache. * * @param string $key - * @param mixed $value * @return int|bool */ public function decrement($key, $value = 1) @@ -84,7 +79,6 @@ public function decrement($key, $value = 1) * Store an item in the cache indefinitely. * * @param string $key - * @param mixed $value * @return bool */ public function forever($key, $value) diff --git a/src/Illuminate/Cache/ApcWrapper.php b/src/Illuminate/Cache/ApcWrapper.php index 43c6e328a8fe..b75dcc1a300f 100755 --- a/src/Illuminate/Cache/ApcWrapper.php +++ b/src/Illuminate/Cache/ApcWrapper.php @@ -8,7 +8,6 @@ class ApcWrapper * Get an item from the cache. * * @param string $key - * @return mixed */ public function get($key) { @@ -21,7 +20,6 @@ public function get($key) * Store an item in the cache. * * @param string $key - * @param mixed $value * @param int $seconds * @return array|bool */ @@ -34,7 +32,6 @@ public function put($key, $value, $seconds) * Increment the value of an item in the cache. * * @param string $key - * @param mixed $value * @return int|bool */ public function increment($key, $value) @@ -46,7 +43,6 @@ public function increment($key, $value) * Decrement the value of an item in the cache. * * @param string $key - * @param mixed $value * @return int|bool */ public function decrement($key, $value) diff --git a/src/Illuminate/Cache/ArrayStore.php b/src/Illuminate/Cache/ArrayStore.php index d43b4e9c926d..145de6f95e97 100644 --- a/src/Illuminate/Cache/ArrayStore.php +++ b/src/Illuminate/Cache/ArrayStore.php @@ -69,7 +69,6 @@ public function all($unserialize = true) * Retrieve an item from the cache by key. * * @param string $key - * @return mixed */ public function get($key) { @@ -94,7 +93,6 @@ public function get($key) * Store an item in the cache for a given number of seconds. * * @param string $key - * @param mixed $value * @param int $seconds * @return bool */ @@ -112,7 +110,6 @@ public function put($key, $value, $seconds) * Increment the value of an item in the cache. * * @param string $key - * @param mixed $value * @return int */ public function increment($key, $value = 1) @@ -134,7 +131,6 @@ public function increment($key, $value = 1) * Decrement the value of an item in the cache. * * @param string $key - * @param mixed $value * @return int */ public function decrement($key, $value = 1) @@ -146,7 +142,6 @@ public function decrement($key, $value = 1) * Store an item in the cache indefinitely. * * @param string $key - * @param mixed $value * @return bool */ public function forever($key, $value) diff --git a/src/Illuminate/Cache/CacheLock.php b/src/Illuminate/Cache/CacheLock.php index e043b9373b55..c2a974dd18c2 100644 --- a/src/Illuminate/Cache/CacheLock.php +++ b/src/Illuminate/Cache/CacheLock.php @@ -74,8 +74,6 @@ public function forceRelease() /** * Returns the owner value written into the driver for this lock. - * - * @return mixed */ protected function getCurrentOwner() { diff --git a/src/Illuminate/Cache/CacheManager.php b/src/Illuminate/Cache/CacheManager.php index 0a0c2de5e171..0279902f6d7a 100755 --- a/src/Illuminate/Cache/CacheManager.php +++ b/src/Illuminate/Cache/CacheManager.php @@ -114,7 +114,6 @@ public function resolve($name) /** * Build a cache repository with the given configuration. * - * @param array $config * @return \Illuminate\Cache\Repository */ public function build(array $config) @@ -136,9 +135,6 @@ public function build(array $config) /** * Call a custom driver creator. - * - * @param array $config - * @return mixed */ protected function callCustomCreator(array $config) { @@ -148,7 +144,6 @@ protected function callCustomCreator(array $config) /** * Create an instance of the APC cache driver. * - * @param array $config * @return \Illuminate\Cache\Repository */ protected function createApcDriver(array $config) @@ -161,7 +156,6 @@ protected function createApcDriver(array $config) /** * Create an instance of the array cache driver. * - * @param array $config * @return \Illuminate\Cache\Repository */ protected function createArrayDriver(array $config) @@ -172,7 +166,6 @@ protected function createArrayDriver(array $config) /** * Create an instance of the file cache driver. * - * @param array $config * @return \Illuminate\Cache\Repository */ protected function createFileDriver(array $config) @@ -187,7 +180,6 @@ protected function createFileDriver(array $config) /** * Create an instance of the Memcached cache driver. * - * @param array $config * @return \Illuminate\Cache\Repository */ protected function createMemcachedDriver(array $config) @@ -217,7 +209,6 @@ protected function createNullDriver() /** * Create an instance of the Redis cache driver. * - * @param array $config * @return \Illuminate\Cache\Repository */ protected function createRedisDriver(array $config) @@ -237,7 +228,6 @@ protected function createRedisDriver(array $config) /** * Create an instance of the database cache driver. * - * @param array $config * @return \Illuminate\Cache\Repository */ protected function createDatabaseDriver(array $config) @@ -264,7 +254,6 @@ protected function createDatabaseDriver(array $config) /** * Create an instance of the DynamoDB cache driver. * - * @param array $config * @return \Illuminate\Cache\Repository */ protected function createDynamodbDriver(array $config) @@ -313,8 +302,6 @@ protected function newDynamodbClient(array $config) /** * Create a new cache repository with the given implementation. * - * @param \Illuminate\Contracts\Cache\Store $store - * @param array $config * @return \Illuminate\Cache\Repository */ public function repository(Store $store, array $config = []) @@ -329,7 +316,6 @@ public function repository(Store $store, array $config = []) /** * Set the event dispatcher on the given repository instance. * - * @param \Illuminate\Cache\Repository $repository * @return void */ protected function setEventDispatcher(Repository $repository) @@ -356,7 +342,6 @@ public function refreshEventDispatcher() /** * Get the cache prefix. * - * @param array $config * @return string */ protected function getPrefix(array $config) @@ -436,7 +421,6 @@ public function purge($name = null) * Register a custom driver creator Closure. * * @param string $driver - * @param \Closure $callback * * @param-closure-this $this $callback * @@ -467,7 +451,6 @@ public function setApplication($app) * * @param string $method * @param array $parameters - * @return mixed */ public function __call($method, $parameters) { diff --git a/src/Illuminate/Cache/Console/ClearCommand.php b/src/Illuminate/Cache/Console/ClearCommand.php index e84cefae8d6c..64534999d47b 100755 --- a/src/Illuminate/Cache/Console/ClearCommand.php +++ b/src/Illuminate/Cache/Console/ClearCommand.php @@ -42,9 +42,6 @@ class ClearCommand extends Command /** * Create a new cache clear command instance. - * - * @param \Illuminate\Cache\CacheManager $cache - * @param \Illuminate\Filesystem\Filesystem $files */ public function __construct(CacheManager $cache, Filesystem $files) { diff --git a/src/Illuminate/Cache/Console/ForgetCommand.php b/src/Illuminate/Cache/Console/ForgetCommand.php index bb34e039eb85..604f01796948 100755 --- a/src/Illuminate/Cache/Console/ForgetCommand.php +++ b/src/Illuminate/Cache/Console/ForgetCommand.php @@ -32,8 +32,6 @@ class ForgetCommand extends Command /** * Create a new cache clear command instance. - * - * @param \Illuminate\Cache\CacheManager $cache */ public function __construct(CacheManager $cache) { diff --git a/src/Illuminate/Cache/Console/PruneStaleTagsCommand.php b/src/Illuminate/Cache/Console/PruneStaleTagsCommand.php index dbb2f6bd0860..99a8879871d9 100644 --- a/src/Illuminate/Cache/Console/PruneStaleTagsCommand.php +++ b/src/Illuminate/Cache/Console/PruneStaleTagsCommand.php @@ -28,7 +28,6 @@ class PruneStaleTagsCommand extends Command /** * Execute the console command. * - * @param \Illuminate\Cache\CacheManager $cache * @return int|null */ public function handle(CacheManager $cache) diff --git a/src/Illuminate/Cache/DatabaseLock.php b/src/Illuminate/Cache/DatabaseLock.php index d490f8c05048..b75c34798dbb 100644 --- a/src/Illuminate/Cache/DatabaseLock.php +++ b/src/Illuminate/Cache/DatabaseLock.php @@ -38,7 +38,6 @@ class DatabaseLock extends Lock /** * Create a new lock instance. * - * @param \Illuminate\Database\Connection $connection * @param string $table * @param string $name * @param int $seconds diff --git a/src/Illuminate/Cache/DatabaseStore.php b/src/Illuminate/Cache/DatabaseStore.php index 0c25ddc01f74..1efbf8b7fb78 100755 --- a/src/Illuminate/Cache/DatabaseStore.php +++ b/src/Illuminate/Cache/DatabaseStore.php @@ -71,7 +71,6 @@ class DatabaseStore implements LockProvider, Store /** * Create a new database store. * - * @param \Illuminate\Database\ConnectionInterface $connection * @param string $table * @param string $prefix * @param string $lockTable @@ -98,7 +97,6 @@ public function __construct( * Retrieve an item from the cache by key. * * @param string $key - * @return mixed */ public function get($key) { @@ -158,7 +156,6 @@ public function many(array $keys) * Store an item in the cache for a given number of seconds. * * @param string $key - * @param mixed $value * @param int $seconds * @return bool */ @@ -170,7 +167,6 @@ public function put($key, $value, $seconds) /** * Store multiple items in the cache for a given number of seconds. * - * @param array $values * @param int $seconds * @return bool */ @@ -195,7 +191,6 @@ public function putMany(array $values, $seconds) * Store an item in the cache if the key doesn't exist. * * @param string $key - * @param mixed $value * @param int $seconds * @return bool */ @@ -255,7 +250,6 @@ public function decrement($key, $value = 1) * * @param string $key * @param int|float $value - * @param \Closure $callback * @return int|false */ protected function incrementOrDecrement($key, $value, Closure $callback) @@ -311,7 +305,6 @@ protected function getTime() * Store an item in the cache indefinitely. * * @param string $key - * @param mixed $value * @return bool */ public function forever($key, $value) @@ -377,7 +370,6 @@ public function forgetIfExpired($key) /** * Remove all items from the cache. * - * @param array $keys * @return bool */ protected function forgetMany(array $keys) @@ -393,8 +385,6 @@ protected function forgetMany(array $keys) /** * Remove all expired items from the given set from the cache. * - * @param array $keys - * @param bool $prefixed * @return bool */ protected function forgetManyIfExpired(array $keys, bool $prefixed = false) @@ -505,7 +495,6 @@ public function setPrefix($prefix) /** * Serialize the given value. * - * @param mixed $value * @return string */ protected function serialize($value) @@ -525,7 +514,6 @@ protected function serialize($value) * Unserialize the given value. * * @param string $value - * @return mixed */ protected function unserialize($value) { diff --git a/src/Illuminate/Cache/DynamoDbLock.php b/src/Illuminate/Cache/DynamoDbLock.php index b60e382c00aa..dd8bc7c6f8ce 100644 --- a/src/Illuminate/Cache/DynamoDbLock.php +++ b/src/Illuminate/Cache/DynamoDbLock.php @@ -14,7 +14,6 @@ class DynamoDbLock extends Lock /** * Create a new lock instance. * - * @param \Illuminate\Cache\DynamoDbStore $dynamo * @param string $name * @param int $seconds * @param string|null $owner @@ -66,8 +65,6 @@ public function forceRelease() /** * Returns the owner value written into the driver for this lock. - * - * @return mixed */ protected function getCurrentOwner() { diff --git a/src/Illuminate/Cache/DynamoDbStore.php b/src/Illuminate/Cache/DynamoDbStore.php index 1bc7aa879865..faeee57164a4 100644 --- a/src/Illuminate/Cache/DynamoDbStore.php +++ b/src/Illuminate/Cache/DynamoDbStore.php @@ -61,7 +61,6 @@ class DynamoDbStore implements LockProvider, Store /** * Create a new store instance. * - * @param \Aws\DynamoDb\DynamoDbClient $dynamo * @param string $table * @param string $keyAttribute * @param string $valueAttribute @@ -89,7 +88,6 @@ public function __construct( * Retrieve an item from the cache by key. * * @param string $key - * @return mixed */ public function get($key) { @@ -125,7 +123,6 @@ public function get($key) * * Items not found in the cache will have a null value. * - * @param array $keys * @return array */ public function many(array $keys) @@ -175,7 +172,6 @@ public function many(array $keys) /** * Determine if the given item is expired. * - * @param array $item * @param \DateTimeInterface|null $expiration * @return bool */ @@ -191,7 +187,6 @@ protected function isExpired(array $item, $expiration = null) * Store an item in the cache for a given number of seconds. * * @param string $key - * @param mixed $value * @param int $seconds * @return bool */ @@ -218,7 +213,6 @@ public function put($key, $value, $seconds) /** * Store multiple items in the cache for a given number of seconds. * - * @param array $values * @param int $seconds * @return bool */ @@ -259,7 +253,6 @@ public function putMany(array $values, $seconds) * Store an item in the cache if the key doesn't exist. * * @param string $key - * @param mixed $value * @param int $seconds * @return bool */ @@ -305,7 +298,6 @@ public function add($key, $value, $seconds) * Increment the value of an item in the cache. * * @param string $key - * @param mixed $value * @return int|false */ public function increment($key, $value = 1) @@ -350,7 +342,6 @@ public function increment($key, $value = 1) * Decrement the value of an item in the cache. * * @param string $key - * @param mixed $value * @return int|false */ public function decrement($key, $value = 1) @@ -395,7 +386,6 @@ public function decrement($key, $value = 1) * Store an item in the cache indefinitely. * * @param string $key - * @param mixed $value * @return bool */ public function forever($key, $value) @@ -475,9 +465,6 @@ protected function toTimestamp($seconds) /** * Serialize the value. - * - * @param mixed $value - * @return mixed */ protected function serialize($value) { @@ -486,9 +473,6 @@ protected function serialize($value) /** * Unserialize the value. - * - * @param mixed $value - * @return mixed */ protected function unserialize($value) { @@ -506,7 +490,6 @@ protected function unserialize($value) /** * Get the DynamoDB type for the given value. * - * @param mixed $value * @return string */ protected function type($value) diff --git a/src/Illuminate/Cache/Events/CacheEvent.php b/src/Illuminate/Cache/Events/CacheEvent.php index 6325a4494d9a..0a604d8ebf90 100644 --- a/src/Illuminate/Cache/Events/CacheEvent.php +++ b/src/Illuminate/Cache/Events/CacheEvent.php @@ -30,7 +30,6 @@ abstract class CacheEvent * * @param string|null $storeName * @param string $key - * @param array $tags */ public function __construct($storeName, $key, array $tags = []) { diff --git a/src/Illuminate/Cache/Events/CacheFlushFailed.php b/src/Illuminate/Cache/Events/CacheFlushFailed.php index 7df29a0f96e1..4b40d7f0108c 100644 --- a/src/Illuminate/Cache/Events/CacheFlushFailed.php +++ b/src/Illuminate/Cache/Events/CacheFlushFailed.php @@ -22,7 +22,6 @@ class CacheFlushFailed * Create a new event instance. * * @param string|null $storeName - * @param array $tags */ public function __construct($storeName, array $tags = []) { diff --git a/src/Illuminate/Cache/Events/CacheFlushed.php b/src/Illuminate/Cache/Events/CacheFlushed.php index 01e781cbb879..aacabf5e9e10 100644 --- a/src/Illuminate/Cache/Events/CacheFlushed.php +++ b/src/Illuminate/Cache/Events/CacheFlushed.php @@ -22,7 +22,6 @@ class CacheFlushed * Create a new event instance. * * @param string|null $storeName - * @param array $tags */ public function __construct($storeName, array $tags = []) { diff --git a/src/Illuminate/Cache/Events/CacheFlushing.php b/src/Illuminate/Cache/Events/CacheFlushing.php index 4cf0c455dcca..0638b396ea5f 100644 --- a/src/Illuminate/Cache/Events/CacheFlushing.php +++ b/src/Illuminate/Cache/Events/CacheFlushing.php @@ -22,7 +22,6 @@ class CacheFlushing * Create a new event instance. * * @param string|null $storeName - * @param array $tags */ public function __construct($storeName, array $tags = []) { diff --git a/src/Illuminate/Cache/Events/CacheHit.php b/src/Illuminate/Cache/Events/CacheHit.php index 57a5c53472cd..43d94c1e07b0 100644 --- a/src/Illuminate/Cache/Events/CacheHit.php +++ b/src/Illuminate/Cache/Events/CacheHit.php @@ -6,8 +6,6 @@ class CacheHit extends CacheEvent { /** * The value that was retrieved. - * - * @var mixed */ public $value; @@ -16,8 +14,6 @@ class CacheHit extends CacheEvent * * @param string|null $storeName * @param string $key - * @param mixed $value - * @param array $tags */ public function __construct($storeName, $key, $value, array $tags = []) { diff --git a/src/Illuminate/Cache/Events/KeyWriteFailed.php b/src/Illuminate/Cache/Events/KeyWriteFailed.php index ecefbfe06dd7..69695b0cd368 100644 --- a/src/Illuminate/Cache/Events/KeyWriteFailed.php +++ b/src/Illuminate/Cache/Events/KeyWriteFailed.php @@ -6,8 +6,6 @@ class KeyWriteFailed extends CacheEvent { /** * The value that would have been written. - * - * @var mixed */ public $value; @@ -23,7 +21,6 @@ class KeyWriteFailed extends CacheEvent * * @param string|null $storeName * @param string $key - * @param mixed $value * @param int|null $seconds * @param array $tags */ diff --git a/src/Illuminate/Cache/Events/KeyWritten.php b/src/Illuminate/Cache/Events/KeyWritten.php index cfb42532c233..c4ca5bc8f802 100644 --- a/src/Illuminate/Cache/Events/KeyWritten.php +++ b/src/Illuminate/Cache/Events/KeyWritten.php @@ -6,8 +6,6 @@ class KeyWritten extends CacheEvent { /** * The value that was written. - * - * @var mixed */ public $value; @@ -23,7 +21,6 @@ class KeyWritten extends CacheEvent * * @param string|null $storeName * @param string $key - * @param mixed $value * @param int|null $seconds * @param array $tags */ diff --git a/src/Illuminate/Cache/Events/RetrievingManyKeys.php b/src/Illuminate/Cache/Events/RetrievingManyKeys.php index 3722ad352beb..956c6aa07c6b 100644 --- a/src/Illuminate/Cache/Events/RetrievingManyKeys.php +++ b/src/Illuminate/Cache/Events/RetrievingManyKeys.php @@ -16,7 +16,6 @@ class RetrievingManyKeys extends CacheEvent * * @param string|null $storeName * @param array $keys - * @param array $tags */ public function __construct($storeName, $keys, array $tags = []) { diff --git a/src/Illuminate/Cache/Events/WritingKey.php b/src/Illuminate/Cache/Events/WritingKey.php index 27dc8a87437c..39355a5b8c4b 100644 --- a/src/Illuminate/Cache/Events/WritingKey.php +++ b/src/Illuminate/Cache/Events/WritingKey.php @@ -6,8 +6,6 @@ class WritingKey extends CacheEvent { /** * The value that will be written. - * - * @var mixed */ public $value; @@ -23,7 +21,6 @@ class WritingKey extends CacheEvent * * @param string|null $storeName * @param string $key - * @param mixed $value * @param int|null $seconds * @param array $tags */ diff --git a/src/Illuminate/Cache/Events/WritingManyKeys.php b/src/Illuminate/Cache/Events/WritingManyKeys.php index a4d077187d3a..6b8670c55363 100644 --- a/src/Illuminate/Cache/Events/WritingManyKeys.php +++ b/src/Illuminate/Cache/Events/WritingManyKeys.php @@ -6,15 +6,11 @@ class WritingManyKeys extends CacheEvent { /** * The keys that are being written. - * - * @var mixed */ public $keys; /** * The value that is being written. - * - * @var mixed */ public $values; diff --git a/src/Illuminate/Cache/FileStore.php b/src/Illuminate/Cache/FileStore.php index d445f5fc7c23..44e6951e3b4f 100755 --- a/src/Illuminate/Cache/FileStore.php +++ b/src/Illuminate/Cache/FileStore.php @@ -45,7 +45,6 @@ class FileStore implements Store, LockProvider /** * Create a new file cache store instance. * - * @param \Illuminate\Filesystem\Filesystem $files * @param string $directory * @param int|null $filePermission */ @@ -60,7 +59,6 @@ public function __construct(Filesystem $files, $directory, $filePermission = nul * Retrieve an item from the cache by key. * * @param string $key - * @return mixed */ public function get($key) { @@ -71,7 +69,6 @@ public function get($key) * Store an item in the cache for a given number of seconds. * * @param string $key - * @param mixed $value * @param int $seconds * @return bool */ @@ -96,7 +93,6 @@ public function put($key, $value, $seconds) * Store an item in the cache if the key doesn't exist. * * @param string $key - * @param mixed $value * @param int $seconds * @return bool */ @@ -170,7 +166,6 @@ protected function ensurePermissionsAreCorrect($path) * Increment the value of an item in the cache. * * @param string $key - * @param mixed $value * @return int */ public function increment($key, $value = 1) @@ -186,7 +181,6 @@ public function increment($key, $value = 1) * Decrement the value of an item in the cache. * * @param string $key - * @param mixed $value * @return int */ public function decrement($key, $value = 1) @@ -198,7 +192,6 @@ public function decrement($key, $value = 1) * Store an item in the cache indefinitely. * * @param string $key - * @param mixed $value * @return bool */ public function forever($key, $value) diff --git a/src/Illuminate/Cache/Lock.php b/src/Illuminate/Cache/Lock.php index 7913f1628a22..02d2e178896f 100644 --- a/src/Illuminate/Cache/Lock.php +++ b/src/Illuminate/Cache/Lock.php @@ -83,7 +83,6 @@ abstract protected function getCurrentOwner(); * Attempt to acquire the lock. * * @param callable|null $callback - * @return mixed */ public function get($callback = null) { @@ -105,7 +104,6 @@ public function get($callback = null) * * @param int $seconds * @param callable|null $callback - * @return mixed * * @throws \Illuminate\Contracts\Cache\LockTimeoutException */ diff --git a/src/Illuminate/Cache/MemcachedConnector.php b/src/Illuminate/Cache/MemcachedConnector.php index 224d94099bf3..80224ccc4ff4 100755 --- a/src/Illuminate/Cache/MemcachedConnector.php +++ b/src/Illuminate/Cache/MemcachedConnector.php @@ -9,10 +9,7 @@ class MemcachedConnector /** * Create a new Memcached connection. * - * @param array $servers * @param string|null $connectionId - * @param array $options - * @param array $credentials * @return \Memcached */ public function connect(array $servers, $connectionId = null, array $options = [], array $credentials = []) @@ -39,8 +36,6 @@ public function connect(array $servers, $connectionId = null, array $options = [ * Get a new Memcached instance. * * @param string|null $connectionId - * @param array $credentials - * @param array $options * @return \Memcached */ protected function getMemcached($connectionId, array $credentials, array $options) diff --git a/src/Illuminate/Cache/MemcachedLock.php b/src/Illuminate/Cache/MemcachedLock.php index 8fdb2fc1427b..9a55d59fbc3f 100644 --- a/src/Illuminate/Cache/MemcachedLock.php +++ b/src/Illuminate/Cache/MemcachedLock.php @@ -64,8 +64,6 @@ public function forceRelease() /** * Returns the owner value written into the driver for this lock. - * - * @return mixed */ protected function getCurrentOwner() { diff --git a/src/Illuminate/Cache/MemcachedStore.php b/src/Illuminate/Cache/MemcachedStore.php index b05560e1a986..e91c7663554c 100755 --- a/src/Illuminate/Cache/MemcachedStore.php +++ b/src/Illuminate/Cache/MemcachedStore.php @@ -51,7 +51,6 @@ public function __construct($memcached, $prefix = '') * Retrieve an item from the cache by key. * * @param string $key - * @return mixed */ public function get($key) { @@ -67,7 +66,6 @@ public function get($key) * * Items not found in the cache will have a null value. * - * @param array $keys * @return array */ public function many(array $keys) @@ -95,7 +93,6 @@ public function many(array $keys) * Store an item in the cache for a given number of seconds. * * @param string $key - * @param mixed $value * @param int $seconds * @return bool */ @@ -109,7 +106,6 @@ public function put($key, $value, $seconds) /** * Store multiple items in the cache for a given number of seconds. * - * @param array $values * @param int $seconds * @return bool */ @@ -130,7 +126,6 @@ public function putMany(array $values, $seconds) * Store an item in the cache if the key doesn't exist. * * @param string $key - * @param mixed $value * @param int $seconds * @return bool */ @@ -145,7 +140,6 @@ public function add($key, $value, $seconds) * Increment the value of an item in the cache. * * @param string $key - * @param mixed $value * @return int|false */ public function increment($key, $value = 1) @@ -157,7 +151,6 @@ public function increment($key, $value = 1) * Decrement the value of an item in the cache. * * @param string $key - * @param mixed $value * @return int|false */ public function decrement($key, $value = 1) @@ -169,7 +162,6 @@ public function decrement($key, $value = 1) * Store an item in the cache indefinitely. * * @param string $key - * @param mixed $value * @return bool */ public function forever($key, $value) diff --git a/src/Illuminate/Cache/MemoizedStore.php b/src/Illuminate/Cache/MemoizedStore.php index 6c24e33346ce..edc2a0c012fb 100644 --- a/src/Illuminate/Cache/MemoizedStore.php +++ b/src/Illuminate/Cache/MemoizedStore.php @@ -32,7 +32,6 @@ public function __construct( * Retrieve an item from the cache by key. * * @param string $key - * @return mixed */ public function get($key) { @@ -94,7 +93,6 @@ public function many(array $keys) * Store an item in the cache for a given number of seconds. * * @param string $key - * @param mixed $value * @param int $seconds * @return bool */ @@ -108,7 +106,6 @@ public function put($key, $value, $seconds) /** * Store multiple items in the cache for a given number of seconds. * - * @param array $values * @param int $seconds * @return bool */ @@ -125,7 +122,6 @@ public function putMany(array $values, $seconds) * Increment the value of an item in the cache. * * @param string $key - * @param mixed $value * @return int|bool */ public function increment($key, $value = 1) @@ -139,7 +135,6 @@ public function increment($key, $value = 1) * Decrement the value of an item in the cache. * * @param string $key - * @param mixed $value * @return int|bool */ public function decrement($key, $value = 1) @@ -153,7 +148,6 @@ public function decrement($key, $value = 1) * Store an item in the cache indefinitely. * * @param string $key - * @param mixed $value * @return bool */ public function forever($key, $value) diff --git a/src/Illuminate/Cache/NoLock.php b/src/Illuminate/Cache/NoLock.php index 68560f8f83d3..59bcd66ed5f9 100644 --- a/src/Illuminate/Cache/NoLock.php +++ b/src/Illuminate/Cache/NoLock.php @@ -36,8 +36,6 @@ public function forceRelease() /** * Returns the owner value written into the driver for this lock. - * - * @return mixed */ protected function getCurrentOwner() { diff --git a/src/Illuminate/Cache/NullStore.php b/src/Illuminate/Cache/NullStore.php index 6c35ee386c26..f8ce7acfa4f2 100755 --- a/src/Illuminate/Cache/NullStore.php +++ b/src/Illuminate/Cache/NullStore.php @@ -23,7 +23,6 @@ public function get($key) * Store an item in the cache for a given number of seconds. * * @param string $key - * @param mixed $value * @param int $seconds * @return bool */ @@ -36,7 +35,6 @@ public function put($key, $value, $seconds) * Increment the value of an item in the cache. * * @param string $key - * @param mixed $value * @return false */ public function increment($key, $value = 1) @@ -48,7 +46,6 @@ public function increment($key, $value = 1) * Decrement the value of an item in the cache. * * @param string $key - * @param mixed $value * @return false */ public function decrement($key, $value = 1) @@ -60,7 +57,6 @@ public function decrement($key, $value = 1) * Store an item in the cache indefinitely. * * @param string $key - * @param mixed $value * @return bool */ public function forever($key, $value) diff --git a/src/Illuminate/Cache/PhpRedisLock.php b/src/Illuminate/Cache/PhpRedisLock.php index 2cc29710c172..4dae513ca5b2 100644 --- a/src/Illuminate/Cache/PhpRedisLock.php +++ b/src/Illuminate/Cache/PhpRedisLock.php @@ -8,11 +8,6 @@ class PhpRedisLock extends RedisLock { /** * Create a new phpredis lock instance. - * - * @param \Illuminate\Redis\Connections\PhpRedisConnection $redis - * @param string $name - * @param int $seconds - * @param string|null $owner */ public function __construct(PhpRedisConnection $redis, string $name, int $seconds, ?string $owner = null) { diff --git a/src/Illuminate/Cache/RateLimiter.php b/src/Illuminate/Cache/RateLimiter.php index f28c57a4d240..485a5708db01 100644 --- a/src/Illuminate/Cache/RateLimiter.php +++ b/src/Illuminate/Cache/RateLimiter.php @@ -30,8 +30,6 @@ class RateLimiter /** * Create a new rate limiter instance. - * - * @param \Illuminate\Contracts\Cache\Repository $cache */ public function __construct(Cache $cache) { @@ -42,7 +40,6 @@ public function __construct(Cache $cache) * Register a named limiter configuration. * * @param \BackedEnum|\UnitEnum|string $name - * @param \Closure $callback * @return $this */ public function for($name, Closure $callback) @@ -98,9 +95,7 @@ public function limiter($name) * * @param string $key * @param int $maxAttempts - * @param \Closure $callback * @param \DateTimeInterface|\DateInterval|int $decaySeconds - * @return mixed */ public function attempt($key, $maxAttempts, Closure $callback, $decaySeconds = 60) { @@ -197,7 +192,6 @@ public function decrement($key, $decaySeconds = 60, $amount = 1) * Get the number of attempts for the given key. * * @param string $key - * @return mixed */ public function attempts($key) { @@ -288,9 +282,6 @@ public function cleanRateLimiterKey($key) /** * Execute the given callback without serialization or compression when applicable. - * - * @param callable $callback - * @return mixed */ protected function withoutSerializationOrCompression(callable $callback) { @@ -313,7 +304,6 @@ protected function withoutSerializationOrCompression(callable $callback) * Resolve the rate limiter name. * * @param \BackedEnum|\UnitEnum|string $name - * @return string */ private function resolveLimiterName($name): string { diff --git a/src/Illuminate/Cache/RateLimiting/GlobalLimit.php b/src/Illuminate/Cache/RateLimiting/GlobalLimit.php index e068ce5da12f..6f4663a38987 100644 --- a/src/Illuminate/Cache/RateLimiting/GlobalLimit.php +++ b/src/Illuminate/Cache/RateLimiting/GlobalLimit.php @@ -6,9 +6,6 @@ class GlobalLimit extends Limit { /** * Create a new limit instance. - * - * @param int $maxAttempts - * @param int $decaySeconds */ public function __construct(int $maxAttempts, int $decaySeconds = 60) { diff --git a/src/Illuminate/Cache/RateLimiting/Limit.php b/src/Illuminate/Cache/RateLimiting/Limit.php index 1a14009640e8..b3e689eaf891 100644 --- a/src/Illuminate/Cache/RateLimiting/Limit.php +++ b/src/Illuminate/Cache/RateLimiting/Limit.php @@ -6,8 +6,6 @@ class Limit { /** * The rate limit signature key. - * - * @var mixed */ public $key; @@ -34,10 +32,6 @@ class Limit /** * Create a new limit instance. - * - * @param mixed $key - * @param int $maxAttempts - * @param int $decaySeconds */ public function __construct($key = '', int $maxAttempts = 60, int $decaySeconds = 60) { @@ -119,7 +113,6 @@ public static function none() /** * Set the key of the rate limit. * - * @param mixed $key * @return $this */ public function by($key) @@ -132,7 +125,6 @@ public function by($key) /** * Set the callback that should generate the response when the limit is exceeded. * - * @param callable $callback * @return $this */ public function response(callable $callback) diff --git a/src/Illuminate/Cache/RedisStore.php b/src/Illuminate/Cache/RedisStore.php index a7bbfa1b79e5..2cceb81d2e04 100755 --- a/src/Illuminate/Cache/RedisStore.php +++ b/src/Illuminate/Cache/RedisStore.php @@ -48,7 +48,6 @@ class RedisStore extends TaggableStore implements LockProvider /** * Create a new Redis store. * - * @param \Illuminate\Contracts\Redis\Factory $redis * @param string $prefix * @param string $connection */ @@ -63,7 +62,6 @@ public function __construct(Redis $redis, $prefix = '', $connection = 'default') * Retrieve an item from the cache by key. * * @param string $key - * @return mixed */ public function get($key) { @@ -79,7 +77,6 @@ public function get($key) * * Items not found in the cache will have a null value. * - * @param array $keys * @return array */ public function many(array $keys) @@ -107,7 +104,6 @@ public function many(array $keys) * Store an item in the cache for a given number of seconds. * * @param string $key - * @param mixed $value * @param int $seconds * @return bool */ @@ -123,7 +119,6 @@ public function put($key, $value, $seconds) /** * Store multiple items in the cache for a given number of seconds. * - * @param array $values * @param int $seconds * @return bool */ @@ -164,7 +159,6 @@ public function putMany(array $values, $seconds) * Store an item in the cache if the key doesn't exist. * * @param string $key - * @param mixed $value * @param int $seconds * @return bool */ @@ -181,7 +175,6 @@ public function add($key, $value, $seconds) * Increment the value of an item in the cache. * * @param string $key - * @param mixed $value * @return int */ public function increment($key, $value = 1) @@ -193,7 +186,6 @@ public function increment($key, $value = 1) * Decrement the value of an item in the cache. * * @param string $key - * @param mixed $value * @return int */ public function decrement($key, $value = 1) @@ -205,7 +197,6 @@ public function decrement($key, $value = 1) * Store an item in the cache indefinitely. * * @param string $key - * @param mixed $value * @return bool */ public function forever($key, $value) @@ -286,7 +277,6 @@ public function flushStaleTags() /** * Begin executing a new tags operation. * - * @param mixed $names * @return \Illuminate\Cache\RedisTaggedCache */ public function tags($names) @@ -424,9 +414,7 @@ public function setPrefix($prefix) /** * Prepare a value to be used with the Redis cache store when used by eval scripts. * - * @param mixed $value * @param \Illuminate\Redis\Connections\Connection $connection - * @return mixed */ protected function pack($value, $connection) { @@ -445,9 +433,6 @@ protected function pack($value, $connection) /** * Serialize the value. - * - * @param mixed $value - * @return mixed */ protected function serialize($value) { @@ -456,9 +441,6 @@ protected function serialize($value) /** * Determine if the given value should be stored as plain value. - * - * @param mixed $value - * @return bool */ protected function shouldBeStoredWithoutSerialization($value): bool { @@ -467,9 +449,6 @@ protected function shouldBeStoredWithoutSerialization($value): bool /** * Unserialize the value. - * - * @param mixed $value - * @return mixed */ protected function unserialize($value) { @@ -479,9 +458,7 @@ protected function unserialize($value) /** * Handle connection specific considerations when a value needs to be serialized. * - * @param mixed $value * @param \Illuminate\Redis\Connections\Connection $connection - * @return mixed */ protected function connectionAwareSerialize($value, $connection) { @@ -495,9 +472,7 @@ protected function connectionAwareSerialize($value, $connection) /** * Handle connection specific considerations when a value needs to be unserialized. * - * @param mixed $value * @param \Illuminate\Redis\Connections\Connection $connection - * @return mixed */ protected function connectionAwareUnserialize($value, $connection) { diff --git a/src/Illuminate/Cache/RedisTagSet.php b/src/Illuminate/Cache/RedisTagSet.php index 88cb4a753ad3..3cc7af0505c4 100644 --- a/src/Illuminate/Cache/RedisTagSet.php +++ b/src/Illuminate/Cache/RedisTagSet.php @@ -11,8 +11,6 @@ class RedisTagSet extends TagSet /** * Add a reference entry to the tag set's underlying sorted set. * - * @param string $key - * @param int|null $ttl * @param string $updateWhen * @return void */ diff --git a/src/Illuminate/Cache/RedisTaggedCache.php b/src/Illuminate/Cache/RedisTaggedCache.php index 69053266d33d..8719d26fba6c 100644 --- a/src/Illuminate/Cache/RedisTaggedCache.php +++ b/src/Illuminate/Cache/RedisTaggedCache.php @@ -11,7 +11,6 @@ class RedisTaggedCache extends TaggedCache * Store an item in the cache if the key does not exist. * * @param string $key - * @param mixed $value * @param \DateTimeInterface|\DateInterval|int|null $ttl * @return bool */ @@ -37,7 +36,6 @@ public function add($key, $value, $ttl = null) * Store an item in the cache. * * @param string $key - * @param mixed $value * @param \DateTimeInterface|\DateInterval|int|null $ttl * @return bool */ @@ -63,7 +61,6 @@ public function put($key, $value, $ttl = null) * Increment the value of an item in the cache. * * @param string $key - * @param mixed $value * @return int|bool */ public function increment($key, $value = 1) @@ -77,7 +74,6 @@ public function increment($key, $value = 1) * Decrement the value of an item in the cache. * * @param string $key - * @param mixed $value * @return int|bool */ public function decrement($key, $value = 1) @@ -91,7 +87,6 @@ public function decrement($key, $value = 1) * Store an item in the cache indefinitely. * * @param string $key - * @param mixed $value * @return bool */ public function forever($key, $value) diff --git a/src/Illuminate/Cache/Repository.php b/src/Illuminate/Cache/Repository.php index 880ed23f776c..23cc05c158c9 100755 --- a/src/Illuminate/Cache/Repository.php +++ b/src/Illuminate/Cache/Repository.php @@ -69,9 +69,6 @@ class Repository implements ArrayAccess, CacheContract /** * Create a new cache repository instance. - * - * @param \Illuminate\Contracts\Cache\Store $store - * @param array $config */ public function __construct(Store $store, array $config = []) { @@ -83,7 +80,6 @@ public function __construct(Store $store, array $config = []) * Determine if an item exists in the cache. * * @param array|string $key - * @return bool */ public function has($key): bool { @@ -105,8 +101,6 @@ public function missing($key) * Retrieve an item from the cache by key. * * @param array|string $key - * @param mixed $default - * @return mixed */ public function get($key, $default = null): mixed { @@ -137,7 +131,6 @@ public function get($key, $default = null): mixed * * Items not found in the cache will have a null value. * - * @param array $keys * @return array */ public function many(array $keys) @@ -157,8 +150,6 @@ public function many(array $keys) /** * {@inheritdoc} - * - * @return iterable */ public function getMultiple($keys, $default = null): iterable { @@ -176,8 +167,6 @@ public function getMultiple($keys, $default = null): iterable * * @param array $keys * @param string $key - * @param mixed $value - * @return mixed */ protected function handleManyResult($keys, $key, $value) { @@ -202,8 +191,6 @@ protected function handleManyResult($keys, $key, $value) * Retrieve an item from the cache and delete it. * * @param array|string $key - * @param mixed $default - * @return mixed */ public function pull($key, $default = null) { @@ -216,7 +203,6 @@ public function pull($key, $default = null) * Store an item in the cache. * * @param array|string $key - * @param mixed $value * @param \DateTimeInterface|\DateInterval|int|null $ttl * @return bool */ @@ -251,8 +237,6 @@ public function put($key, $value, $ttl = null) /** * {@inheritdoc} - * - * @return bool */ public function set($key, $value, $ttl = null): bool { @@ -262,7 +246,6 @@ public function set($key, $value, $ttl = null): bool /** * Store multiple items in the cache for a given number of seconds. * - * @param array $values * @param \DateTimeInterface|\DateInterval|int|null $ttl * @return bool */ @@ -296,7 +279,6 @@ public function putMany(array $values, $ttl = null) /** * Store multiple items in the cache indefinitely. * - * @param array $values * @return bool */ protected function putManyForever(array $values) @@ -314,8 +296,6 @@ protected function putManyForever(array $values) /** * {@inheritdoc} - * - * @return bool */ public function setMultiple($values, $ttl = null): bool { @@ -326,7 +306,6 @@ public function setMultiple($values, $ttl = null): bool * Store an item in the cache if the key does not exist. * * @param string $key - * @param mixed $value * @param \DateTimeInterface|\DateInterval|int|null $ttl * @return bool */ @@ -365,7 +344,6 @@ public function add($key, $value, $ttl = null) * Increment the value of an item in the cache. * * @param string $key - * @param mixed $value * @return int|bool */ public function increment($key, $value = 1) @@ -377,7 +355,6 @@ public function increment($key, $value = 1) * Decrement the value of an item in the cache. * * @param string $key - * @param mixed $value * @return int|bool */ public function decrement($key, $value = 1) @@ -389,7 +366,6 @@ public function decrement($key, $value = 1) * Store an item in the cache indefinitely. * * @param string $key - * @param mixed $value * @return bool */ public function forever($key, $value) @@ -547,8 +523,6 @@ public function forget($key) /** * {@inheritdoc} - * - * @return bool */ public function delete($key): bool { @@ -557,8 +531,6 @@ public function delete($key): bool /** * {@inheritdoc} - * - * @return bool */ public function deleteMultiple($keys): bool { @@ -575,8 +547,6 @@ public function deleteMultiple($keys): bool /** * {@inheritdoc} - * - * @return bool */ public function clear(): bool { @@ -596,7 +566,6 @@ public function clear(): bool /** * Begin executing a new tags operation if the store supports it. * - * @param mixed $names * @return \Illuminate\Cache\TaggedCache * * @throws \BadMethodCallException @@ -738,7 +707,6 @@ public function getEventDispatcher() /** * Set the event dispatcher instance. * - * @param \Illuminate\Contracts\Events\Dispatcher $events * @return void */ public function setEventDispatcher(Dispatcher $events) @@ -750,7 +718,6 @@ public function setEventDispatcher(Dispatcher $events) * Determine if a cached value exists. * * @param string $key - * @return bool */ public function offsetExists($key): bool { @@ -761,7 +728,6 @@ public function offsetExists($key): bool * Retrieve an item from the cache by key. * * @param string $key - * @return mixed */ public function offsetGet($key): mixed { @@ -772,8 +738,6 @@ public function offsetGet($key): mixed * Store an item in the cache for the default time. * * @param string $key - * @param mixed $value - * @return void */ public function offsetSet($key, $value): void { @@ -784,7 +748,6 @@ public function offsetSet($key, $value): void * Remove an item from the cache. * * @param string $key - * @return void */ public function offsetUnset($key): void { @@ -796,7 +759,6 @@ public function offsetUnset($key): void * * @param string $method * @param array $parameters - * @return mixed */ public function __call($method, $parameters) { diff --git a/src/Illuminate/Cache/RetrievesMultipleKeys.php b/src/Illuminate/Cache/RetrievesMultipleKeys.php index fe3b9cbf4107..51aedaad39a0 100644 --- a/src/Illuminate/Cache/RetrievesMultipleKeys.php +++ b/src/Illuminate/Cache/RetrievesMultipleKeys.php @@ -11,7 +11,6 @@ trait RetrievesMultipleKeys * * Items not found in the cache will have a null value. * - * @param array $keys * @return array */ public function many(array $keys) @@ -33,7 +32,6 @@ public function many(array $keys) /** * Store multiple items in the cache for a given number of seconds. * - * @param array $values * @param int $seconds * @return bool */ diff --git a/src/Illuminate/Cache/TagSet.php b/src/Illuminate/Cache/TagSet.php index 9dc4d7720be4..9d7e0fb71c5c 100644 --- a/src/Illuminate/Cache/TagSet.php +++ b/src/Illuminate/Cache/TagSet.php @@ -22,9 +22,6 @@ class TagSet /** * Create a new TagSet instance. - * - * @param \Illuminate\Contracts\Cache\Store $store - * @param array $names */ public function __construct(Store $store, array $names = []) { diff --git a/src/Illuminate/Cache/TaggableStore.php b/src/Illuminate/Cache/TaggableStore.php index 41eca631d80f..11c51daf5aa0 100644 --- a/src/Illuminate/Cache/TaggableStore.php +++ b/src/Illuminate/Cache/TaggableStore.php @@ -9,7 +9,6 @@ abstract class TaggableStore implements Store /** * Begin executing a new tags operation. * - * @param mixed $names * @return \Illuminate\Cache\TaggedCache */ public function tags($names) diff --git a/src/Illuminate/Cache/TaggedCache.php b/src/Illuminate/Cache/TaggedCache.php index 5504cdcc2ffd..89f222f0967b 100644 --- a/src/Illuminate/Cache/TaggedCache.php +++ b/src/Illuminate/Cache/TaggedCache.php @@ -21,9 +21,6 @@ class TaggedCache extends Repository /** * Create a new tagged cache instance. - * - * @param \Illuminate\Contracts\Cache\Store $store - * @param \Illuminate\Cache\TagSet $tags */ public function __construct(Store $store, TagSet $tags) { @@ -35,7 +32,6 @@ public function __construct(Store $store, TagSet $tags) /** * Store multiple items in the cache for a given number of seconds. * - * @param array $values * @param int|null $ttl * @return bool */ @@ -52,7 +48,6 @@ public function putMany(array $values, $ttl = null) * Increment the value of an item in the cache. * * @param string $key - * @param mixed $value * @return int|bool */ public function increment($key, $value = 1) @@ -64,7 +59,6 @@ public function increment($key, $value = 1) * Decrement the value of an item in the cache. * * @param string $key - * @param mixed $value * @return int|bool */ public function decrement($key, $value = 1) diff --git a/src/Illuminate/Collections/Arr.php b/src/Illuminate/Collections/Arr.php index 5c2dec1381c4..872733d46eec 100644 --- a/src/Illuminate/Collections/Arr.php +++ b/src/Illuminate/Collections/Arr.php @@ -21,7 +21,6 @@ class Arr /** * Determine whether the given value is array accessible. * - * @param mixed $value * @return bool */ public static function accessible($value) @@ -32,7 +31,6 @@ public static function accessible($value) /** * Determine whether the given value is arrayable. * - * @param mixed $value * @return bool */ public static function arrayable($value) @@ -49,7 +47,6 @@ public static function arrayable($value) * * @param array $array * @param string|int|float $key - * @param mixed $value * @return array */ public static function add($array, $key, $value) @@ -430,8 +427,6 @@ public static function from($items) * * @param \ArrayAccess|array $array * @param string|int|null $key - * @param mixed $default - * @return mixed */ public static function get($array, $key, $default = null) { @@ -597,7 +592,6 @@ public static function integer(ArrayAccess|array $array, string|int|null $key, ? * * An array is "associative" if it doesn't have sequential numerical keys beginning with zero. * - * @param array $array * @return bool */ public static function isAssoc(array $array) @@ -766,8 +760,6 @@ protected static function explodePluckParameters($value, $key) /** * Run a map over each of the items in the array. * - * @param array $array - * @param callable $callback * @return array */ public static function map(array $array, callable $callback) @@ -835,8 +827,6 @@ public static function mapSpread(array $array, callable $callback) * Push an item onto the beginning of an array. * * @param array $array - * @param mixed $value - * @param mixed $key * @return array */ public static function prepend($array, $value, $key = null) @@ -855,8 +845,6 @@ public static function prepend($array, $value, $key = null) * * @param array $array * @param string|int $key - * @param mixed $default - * @return mixed */ public static function pull(&$array, $key, $default = null) { @@ -884,7 +872,6 @@ public static function query($array) * @param array $array * @param int|null $number * @param bool $preserveKeys - * @return mixed * * @throws \InvalidArgumentException */ @@ -932,7 +919,6 @@ public static function random($array, $number = null, $preserveKeys = false) * * @param array $array * @param string|int|null $key - * @param mixed $value * @return array */ public static function set(&$array, $key, $value) @@ -967,11 +953,6 @@ public static function set(&$array, $key, $value) /** * Push an item into an array using "dot" notation. - * - * @param \ArrayAccess|array $array - * @param string|int|null $key - * @param mixed $values - * @return array */ public static function push(ArrayAccess|array &$array, string|int|null $key, mixed ...$values): array { @@ -1152,7 +1133,6 @@ public static function toCssStyles($array) * Filter the array using the given callback. * * @param array $array - * @param callable $callback * @return array */ public static function where($array, callable $callback) @@ -1164,7 +1144,6 @@ public static function where($array, callable $callback) * Filter the array using the negation of the given callback. * * @param array $array - * @param callable $callback * @return array */ public static function reject($array, callable $callback) @@ -1212,7 +1191,6 @@ public static function whereNotNull($array) /** * If the given value is not an array and not null, wrap it in one. * - * @param mixed $value * @return array */ public static function wrap($value) diff --git a/src/Illuminate/Collections/Collection.php b/src/Illuminate/Collections/Collection.php index 9213ba3c377e..4be7ef49adf4 100644 --- a/src/Illuminate/Collections/Collection.php +++ b/src/Illuminate/Collections/Collection.php @@ -176,8 +176,6 @@ public function collapseWithKeys() * Determine if an item exists in the collection. * * @param (callable(TValue, TKey): bool)|TValue|string $key - * @param mixed $operator - * @param mixed $value * @return bool */ public function contains($key, $operator = null, $value = null) @@ -216,9 +214,6 @@ public function containsStrict($key, $value = null) /** * Determine if an item is not contained in the collection. * - * @param mixed $key - * @param mixed $operator - * @param mixed $value * @return bool */ public function doesntContain($key, $operator = null, $value = null) @@ -229,9 +224,6 @@ public function doesntContain($key, $operator = null, $value = null) /** * Determine if an item is not contained in the enumerable, using strict comparison. * - * @param mixed $key - * @param mixed $operator - * @param mixed $value * @return bool */ public function doesntContainStrict($key, $operator = null, $value = null) @@ -491,7 +483,6 @@ public function get($key, $default = null) * * @template TGetOrPutValue * - * @param mixed $key * @param TGetOrPutValue|(\Closure(): TGetOrPutValue) $value * @return TValue|TGetOrPutValue */ @@ -717,7 +708,6 @@ public function isEmpty() * Determine if the collection contains exactly one item. If a callback is provided, determine if exactly one item matches the condition. * * @param (callable(TValue, TKey): bool)|null $callback - * @return bool */ public function containsOneItem(?callable $callback = null): bool { @@ -882,7 +872,6 @@ public function mergeRecursive($items) /** * Multiply the items in the collection by the multiplier. * - * @param int $multiplier * @return static */ public function multiply(int $multiplier) @@ -1383,8 +1372,6 @@ public function splitIn($numberOfGroups) * Get the first item in the collection, but only if exactly one item exists. Otherwise, throw an exception. * * @param (callable(TValue, TKey): bool)|string $key - * @param mixed $operator - * @param mixed $value * @return TValue * * @throws \Illuminate\Support\ItemNotFoundException @@ -1415,8 +1402,6 @@ public function sole($key = null, $operator = null, $value = null) * Get the first item in the collection but throw an exception if no matching items exist. * * @param (callable(TValue, TKey): bool)|string $key - * @param mixed $operator - * @param mixed $value * @return TValue * * @throws \Illuminate\Support\ItemNotFoundException @@ -1547,7 +1532,6 @@ public function sortBy($callback, $options = SORT_REGULAR, $descending = false) * Sort the collection using multiple comparisons. * * @param array $comparisons - * @param int $options * @return static */ protected function sortByMany(array $comparisons = [], int $options = SORT_REGULAR) @@ -1883,7 +1867,6 @@ public function toBase() * Determine if an item exists at an offset. * * @param TKey $key - * @return bool */ public function offsetExists($key): bool { @@ -1906,7 +1889,6 @@ public function offsetGet($key): mixed * * @param TKey|null $key * @param TValue $value - * @return void */ public function offsetSet($key, $value): void { @@ -1921,7 +1903,6 @@ public function offsetSet($key, $value): void * Unset the item at a given offset. * * @param TKey $key - * @return void */ public function offsetUnset($key): void { diff --git a/src/Illuminate/Collections/Enumerable.php b/src/Illuminate/Collections/Enumerable.php index c8618e686da2..9f32eb534dfc 100644 --- a/src/Illuminate/Collections/Enumerable.php +++ b/src/Illuminate/Collections/Enumerable.php @@ -35,7 +35,6 @@ public static function make($items = []); * Create a new instance by invoking the callback a given amount of times. * * @param int $number - * @param callable|null $callback * @return static */ public static function times($number, ?callable $callback = null); @@ -120,8 +119,6 @@ public function collapse(); * Alias for the "contains" method. * * @param (callable(TValue, TKey): bool)|TValue|string $key - * @param mixed $operator - * @param mixed $value * @return bool */ public function some($key, $operator = null, $value = null); @@ -147,8 +144,6 @@ public function avg($callback = null); * Determine if an item exists in the enumerable. * * @param (callable(TValue, TKey): bool)|TValue|string $key - * @param mixed $operator - * @param mixed $value * @return bool */ public function contains($key, $operator = null, $value = null); @@ -156,9 +151,6 @@ public function contains($key, $operator = null, $value = null); /** * Determine if an item is not contained in the collection. * - * @param mixed $key - * @param mixed $operator - * @param mixed $value * @return bool */ public function doesntContain($key, $operator = null, $value = null); @@ -177,7 +169,6 @@ public function crossJoin(...$lists); /** * Dump the collection and end the script. * - * @param mixed ...$args * @return never */ public function dd(...$args); @@ -185,7 +176,6 @@ public function dd(...$args); /** * Dump the collection. * - * @param mixed ...$args * @return $this */ public function dump(...$args); @@ -269,7 +259,6 @@ public function each(callable $callback); /** * Execute a callback over each nested chunk of items. * - * @param callable $callback * @return static */ public function eachSpread(callable $callback); @@ -278,8 +267,6 @@ public function eachSpread(callable $callback); * Determine if all items pass the given truth test. * * @param (callable(TValue, TKey): bool)|TValue|string $key - * @param mixed $operator - * @param mixed $value * @return bool */ public function every($key, $operator = null, $value = null); @@ -372,8 +359,6 @@ public function unlessNotEmpty(callable $callback, ?callable $default = null); * Filter items by the given key value pair. * * @param string $key - * @param mixed $operator - * @param mixed $value * @return static */ public function where($key, $operator = null, $value = null); @@ -398,7 +383,6 @@ public function whereNotNull($key = null); * Filter items by the given key value pair using strict comparison. * * @param string $key - * @param mixed $value * @return static */ public function whereStrict($key, $value); @@ -484,8 +468,6 @@ public function first(?callable $callback = null, $default = null); * Get the first item by the given key value pair. * * @param string $key - * @param mixed $operator - * @param mixed $value * @return TValue|null */ public function firstWhere($key, $operator = null, $value = null); @@ -548,7 +530,6 @@ public function has($key); /** * Determine if any of the keys exist in the collection. * - * @param mixed $key * @return bool */ public function hasAny($key); @@ -665,7 +646,6 @@ public function map(callable $callback); /** * Run a map over each nested chunk of items. * - * @param callable $callback * @return static */ public function mapSpread(callable $callback); @@ -770,7 +750,6 @@ public function union($items); * Get the min value of a given key. * * @param (callable(TValue):mixed)|string|null $callback - * @return mixed */ public function min($callback = null); @@ -778,7 +757,6 @@ public function min($callback = null); * Get the max value of a given key. * * @param (callable(TValue):mixed)|string|null $callback - * @return mixed */ public function max($callback = null); @@ -812,8 +790,6 @@ public function forPage($page, $perPage); * Partition the collection into two arrays using the given callback or key. * * @param (callable(TValue, TKey): bool)|TValue|string $key - * @param mixed $operator - * @param mixed $value * @return static, static> */ public function partition($key, $operator = null, $value = null); @@ -854,8 +830,6 @@ public function reduce(callable $callback, $initial = null); /** * Reduce the collection to multiple aggregate values. * - * @param callable $callback - * @param mixed ...$initial * @return array * * @throws \UnexpectedValueException @@ -973,8 +947,6 @@ public function split($numberOfGroups); * Get the first item in the collection, but only if exactly one item exists. Otherwise, throw an exception. * * @param (callable(TValue, TKey): bool)|string $key - * @param mixed $operator - * @param mixed $value * @return TValue * * @throws \Illuminate\Support\ItemNotFoundException @@ -986,8 +958,6 @@ public function sole($key = null, $operator = null, $value = null); * Get the first item in the collection but throw an exception if no matching items exist. * * @param (callable(TValue, TKey): bool)|string $key - * @param mixed $operator - * @param mixed $value * @return TValue * * @throws \Illuminate\Support\ItemNotFoundException @@ -1082,7 +1052,6 @@ public function sortKeysUsing(callable $callback); * Get the sum of the given values. * * @param (callable(TValue): mixed)|string|null $callback - * @return mixed */ public function sum($callback = null); @@ -1142,7 +1111,6 @@ public function pipeInto($class); * Pass the collection through a series of callable pipes and return the result. * * @param array $pipes - * @return mixed */ public function pipeThrough($pipes); @@ -1214,8 +1182,6 @@ public function getIterator(): Traversable; /** * Count the number of items in the collection. - * - * @return int */ public function count(): int; @@ -1256,8 +1222,6 @@ public function toArray(); /** * Convert the object into something JSON serializable. - * - * @return mixed */ public function jsonSerialize(): mixed; @@ -1311,7 +1275,6 @@ public static function proxy($method); * Dynamically access collection proxies. * * @param string $key - * @return mixed * * @throws \Exception */ diff --git a/src/Illuminate/Collections/HigherOrderCollectionProxy.php b/src/Illuminate/Collections/HigherOrderCollectionProxy.php index 035d0fda4d58..dc44435f104d 100644 --- a/src/Illuminate/Collections/HigherOrderCollectionProxy.php +++ b/src/Illuminate/Collections/HigherOrderCollectionProxy.php @@ -42,7 +42,6 @@ public function __construct(Enumerable $collection, $method) * Proxy accessing an attribute onto the collection items. * * @param string $key - * @return mixed */ public function __get($key) { @@ -56,7 +55,6 @@ public function __get($key) * * @param string $method * @param array $parameters - * @return mixed */ public function __call($method, $parameters) { diff --git a/src/Illuminate/Collections/LazyCollection.php b/src/Illuminate/Collections/LazyCollection.php index 98497031a116..04657987d188 100644 --- a/src/Illuminate/Collections/LazyCollection.php +++ b/src/Illuminate/Collections/LazyCollection.php @@ -222,8 +222,6 @@ public function collapseWithKeys() * Determine if an item exists in the enumerable. * * @param (callable(TValue, TKey): bool)|TValue|string $key - * @param mixed $operator - * @param mixed $value * @return bool */ public function contains($key, $operator = null, $value = null) @@ -279,9 +277,6 @@ public function containsStrict($key, $value = null) /** * Determine if an item is not contained in the enumerable. * - * @param mixed $key - * @param mixed $operator - * @param mixed $value * @return bool */ public function doesntContain($key, $operator = null, $value = null) @@ -292,9 +287,6 @@ public function doesntContain($key, $operator = null, $value = null) /** * Determine if an item is not contained in the enumerable, using strict comparison. * - * @param mixed $key - * @param mixed $operator - * @param mixed $value * @return bool */ public function doesntContainStrict($key, $operator = null, $value = null) @@ -606,7 +598,6 @@ public function keyBy($keyBy) /** * Determine if an item exists in the collection by key. * - * @param mixed $key * @return bool */ public function has($key) @@ -626,7 +617,6 @@ public function has($key) /** * Determine if any of the keys exist in the collection. * - * @param mixed $key * @return bool */ public function hasAny($key) @@ -893,7 +883,6 @@ public function mergeRecursive($items) /** * Multiply the items in the collection by the multiplier. * - * @param int $multiplier * @return static */ public function multiply(int $multiplier) @@ -1345,8 +1334,6 @@ public function split($numberOfGroups) * Get the first item in the collection, but only if exactly one item exists. Otherwise, throw an exception. * * @param (callable(TValue, TKey): bool)|string $key - * @param mixed $operator - * @param mixed $value * @return TValue * * @throws \Illuminate\Support\ItemNotFoundException @@ -1370,8 +1357,6 @@ public function sole($key = null, $operator = null, $value = null) * Get the first item in the collection but throw an exception if no matching items exist. * * @param (callable(TValue, TKey): bool)|string $key - * @param mixed $operator - * @param mixed $value * @return TValue * * @throws \Illuminate\Support\ItemNotFoundException @@ -1632,7 +1617,6 @@ public function takeUntil($value) /** * Take items in the collection until a given point in time. * - * @param \DateTimeInterface $timeout * @return static */ public function takeUntilTimeout(DateTimeInterface $timeout) @@ -1871,8 +1855,6 @@ public function getIterator(): Traversable /** * Count the number of items in the collection. - * - * @return int */ public function count(): int { diff --git a/src/Illuminate/Collections/Traits/EnumeratesValues.php b/src/Illuminate/Collections/Traits/EnumeratesValues.php index 8db326497035..8bff67ca2c91 100644 --- a/src/Illuminate/Collections/Traits/EnumeratesValues.php +++ b/src/Illuminate/Collections/Traits/EnumeratesValues.php @@ -226,8 +226,6 @@ public function average($callback = null) * Alias for the "contains" method. * * @param (callable(TValue, TKey): bool)|TValue|string $key - * @param mixed $operator - * @param mixed $value * @return bool */ public function some($key, $operator = null, $value = null) @@ -238,7 +236,6 @@ public function some($key, $operator = null, $value = null) /** * Dump the given arguments and terminate execution. * - * @param mixed ...$args * @return never */ public function dd(...$args) @@ -249,7 +246,6 @@ public function dd(...$args) /** * Dump the items. * - * @param mixed ...$args * @return $this */ public function dump(...$args) @@ -295,8 +291,6 @@ public function eachSpread(callable $callback) * Determine if all items pass the given truth test. * * @param (callable(TValue, TKey): bool)|TValue|string $key - * @param mixed $operator - * @param mixed $value * @return bool */ public function every($key, $operator = null, $value = null) @@ -320,8 +314,6 @@ public function every($key, $operator = null, $value = null) * Get the first item by the given key value pair. * * @param callable|string $key - * @param mixed $operator - * @param mixed $value * @return TValue|null */ public function firstWhere($key, $operator = null, $value = null) @@ -462,7 +454,6 @@ public function mapInto($class) * Get the min value of a given key. * * @param (callable(TValue):mixed)|string|null $callback - * @return mixed */ public function min($callback = null) { @@ -477,7 +468,6 @@ public function min($callback = null) * Get the max value of a given key. * * @param (callable(TValue):mixed)|string|null $callback - * @return mixed */ public function max($callback = null) { @@ -508,8 +498,6 @@ public function forPage($page, $perPage) * Partition the collection into two arrays using the given callback or key. * * @param (callable(TValue, TKey): bool)|TValue|string $key - * @param mixed $operator - * @param mixed $value * @return static, static> */ public function partition($key, $operator = null, $value = null) @@ -527,7 +515,6 @@ public function partition($key, $operator = null, $value = null) * Calculate the percentage of items that pass a given truth test. * * @param (callable(TValue, TKey): bool) $callback - * @param int $precision * @return float|null */ public function percentage(callable $callback, int $precision = 2) @@ -619,8 +606,6 @@ public function unlessNotEmpty(callable $callback, ?callable $default = null) * Filter items by the given key value pair. * * @param callable|string $key - * @param mixed $operator - * @param mixed $value * @return static */ public function where($key, $operator = null, $value = null) @@ -654,7 +639,6 @@ public function whereNotNull($key = null) * Filter items by the given key value pair using strict comparison. * * @param string $key - * @param mixed $value * @return static */ public function whereStrict($key, $value) @@ -797,7 +781,6 @@ public function pipeInto($class) * Pass the collection through a series of callable pipes and return the result. * * @param array $callbacks - * @return mixed */ public function pipeThrough($callbacks) { @@ -831,8 +814,6 @@ public function reduce(callable $callback, $initial = null) /** * Reduce the collection to multiple aggregate values. * - * @param callable $callback - * @param mixed ...$initial * @return array * * @throws \UnexpectedValueException @@ -1045,7 +1026,6 @@ public static function proxy($method) * Dynamically access collection proxies. * * @param string $key - * @return mixed * * @throws \Exception */ @@ -1061,7 +1041,6 @@ public function __get($key) /** * Results array of items from Collection or Arrayable. * - * @param mixed $items * @return array */ protected function getArrayableItems($items) @@ -1076,7 +1055,6 @@ protected function getArrayableItems($items) * * @param callable|string $key * @param string|null $operator - * @param mixed $value * @return \Closure */ protected function operatorForWhere($key, $operator = null, $value = null) @@ -1133,7 +1111,6 @@ protected function operatorForWhere($key, $operator = null, $value = null) /** * Determine if the given value is callable, but not a string. * - * @param mixed $value * @return bool */ protected function useAsCallable($value) @@ -1159,7 +1136,6 @@ protected function valueRetriever($value) /** * Make a function to check an item's equality. * - * @param mixed $value * @return \Closure(mixed): bool */ protected function equality($value) @@ -1170,7 +1146,6 @@ protected function equality($value) /** * Make a function using another function, by negating its result. * - * @param \Closure $callback * @return \Closure */ protected function negate(Closure $callback) diff --git a/src/Illuminate/Collections/Traits/TransformsToResourceCollection.php b/src/Illuminate/Collections/Traits/TransformsToResourceCollection.php index 22143b356c48..593fbcb8579e 100644 --- a/src/Illuminate/Collections/Traits/TransformsToResourceCollection.php +++ b/src/Illuminate/Collections/Traits/TransformsToResourceCollection.php @@ -12,7 +12,6 @@ trait TransformsToResourceCollection * Create a new resource collection instance for the given resource. * * @param class-string<\Illuminate\Http\Resources\Json\JsonResource>|null $resourceClass - * @return \Illuminate\Http\Resources\Json\ResourceCollection * * @throws \Throwable */ @@ -28,7 +27,6 @@ public function toResourceCollection(?string $resourceClass = null): ResourceCol /** * Guess the resource collection for the items. * - * @return \Illuminate\Http\Resources\Json\ResourceCollection * * @throws \Throwable */ diff --git a/src/Illuminate/Collections/helpers.php b/src/Illuminate/Collections/helpers.php index ed94004f47fc..2e5036233b9c 100644 --- a/src/Illuminate/Collections/helpers.php +++ b/src/Illuminate/Collections/helpers.php @@ -23,10 +23,7 @@ function collect($value = []): Collection /** * Fill in data where it's missing. * - * @param mixed $target * @param string|array $key - * @param mixed $value - * @return mixed */ function data_fill(&$target, $key, $value) { @@ -38,10 +35,7 @@ function data_fill(&$target, $key, $value) /** * Get an item from an array or object using "dot" notation. * - * @param mixed $target * @param string|array|int|null $key - * @param mixed $default - * @return mixed */ function data_get($target, $key, $default = null) { @@ -100,11 +94,8 @@ function data_get($target, $key, $default = null) /** * Set an item on an array or object using dot notation. * - * @param mixed $target * @param string|array $key - * @param mixed $value * @param bool $overwrite - * @return mixed */ function data_set(&$target, $key, $value, $overwrite = true) { @@ -162,9 +153,7 @@ function data_set(&$target, $key, $value, $overwrite = true) /** * Remove / unset an item from an array or object using "dot" notation. * - * @param mixed $target * @param string|array|int|null $key - * @return mixed */ function data_forget(&$target, $key) { @@ -199,7 +188,6 @@ function data_forget(&$target, $key) * Get the first element of an array. Useful for method chaining. * * @param array $array - * @return mixed */ function head($array) { @@ -212,7 +200,6 @@ function head($array) * Get the last element from an array. * * @param array $array - * @return mixed */ function last($array) { @@ -241,10 +228,8 @@ function value($value, ...$args) /** * Return a value if the given condition is true. * - * @param mixed $condition * @param \Closure|mixed $value * @param \Closure|mixed $default - * @return mixed */ function when($condition, $value, $default = null) { diff --git a/src/Illuminate/Concurrency/ConcurrencyManager.php b/src/Illuminate/Concurrency/ConcurrencyManager.php index 1f97a0e992c4..88fe586a4b33 100644 --- a/src/Illuminate/Concurrency/ConcurrencyManager.php +++ b/src/Illuminate/Concurrency/ConcurrencyManager.php @@ -16,7 +16,6 @@ class ConcurrencyManager extends MultipleInstanceManager * Get a driver instance by name. * * @param string|null $name - * @return mixed */ public function driver($name = null) { @@ -26,7 +25,6 @@ public function driver($name = null) /** * Create an instance of the process concurrency driver. * - * @param array $config * @return \Illuminate\Concurrency\ProcessDriver */ public function createProcessDriver(array $config) @@ -37,7 +35,6 @@ public function createProcessDriver(array $config) /** * Create an instance of the fork concurrency driver. * - * @param array $config * @return \Illuminate\Concurrency\ForkDriver * * @throws \RuntimeException @@ -58,7 +55,6 @@ public function createForkDriver(array $config) /** * Create an instance of the sync concurrency driver. * - * @param array $config * @return \Illuminate\Concurrency\SyncDriver */ public function createSyncDriver(array $config) diff --git a/src/Illuminate/Conditionable/HigherOrderWhenProxy.php b/src/Illuminate/Conditionable/HigherOrderWhenProxy.php index 0a694c24fcd2..9bd2f01933b4 100644 --- a/src/Illuminate/Conditionable/HigherOrderWhenProxy.php +++ b/src/Illuminate/Conditionable/HigherOrderWhenProxy.php @@ -6,8 +6,6 @@ class HigherOrderWhenProxy { /** * The target being conditionally operated on. - * - * @var mixed */ protected $target; @@ -34,8 +32,6 @@ class HigherOrderWhenProxy /** * Create a new proxy instance. - * - * @param mixed $target */ public function __construct($target) { @@ -71,7 +67,6 @@ public function negateConditionOnCapture() * Proxy accessing an attribute onto the target. * * @param string $key - * @return mixed */ public function __get($key) { @@ -91,7 +86,6 @@ public function __get($key) * * @param string $method * @param array $parameters - * @return mixed */ public function __call($method, $parameters) { diff --git a/src/Illuminate/Config/Repository.php b/src/Illuminate/Config/Repository.php index 08801213a0f3..fdfd08bb1cc3 100644 --- a/src/Illuminate/Config/Repository.php +++ b/src/Illuminate/Config/Repository.php @@ -22,8 +22,6 @@ class Repository implements ArrayAccess, ConfigContract /** * Create a new configuration repository. - * - * @param array $items */ public function __construct(array $items = []) { @@ -45,8 +43,6 @@ public function has($key) * Get the specified configuration value. * * @param array|string $key - * @param mixed $default - * @return mixed */ public function get($key, $default = null) { @@ -81,9 +77,7 @@ public function getMany($keys) /** * Get the specified string configuration value. * - * @param string $key * @param (\Closure():(string|null))|string|null $default - * @return string */ public function string(string $key, $default = null): string { @@ -101,9 +95,7 @@ public function string(string $key, $default = null): string /** * Get the specified integer configuration value. * - * @param string $key * @param (\Closure():(int|null))|int|null $default - * @return int */ public function integer(string $key, $default = null): int { @@ -121,9 +113,7 @@ public function integer(string $key, $default = null): int /** * Get the specified float configuration value. * - * @param string $key * @param (\Closure():(float|null))|float|null $default - * @return float */ public function float(string $key, $default = null): float { @@ -141,9 +131,7 @@ public function float(string $key, $default = null): float /** * Get the specified boolean configuration value. * - * @param string $key * @param (\Closure():(bool|null))|bool|null $default - * @return bool */ public function boolean(string $key, $default = null): bool { @@ -161,7 +149,6 @@ public function boolean(string $key, $default = null): bool /** * Get the specified array configuration value. * - * @param string $key * @param (\Closure():(array|null))|array|null $default * @return array */ @@ -181,7 +168,6 @@ public function array(string $key, $default = null): array /** * Get the specified array configuration value as a collection. * - * @param string $key * @param (\Closure():(array|null))|array|null $default * @return Collection */ @@ -194,7 +180,6 @@ public function collection(string $key, $default = null): Collection * Set a given configuration value. * * @param array|string $key - * @param mixed $value * @return void */ public function set($key, $value = null) @@ -210,7 +195,6 @@ public function set($key, $value = null) * Prepend a value onto an array configuration value. * * @param string $key - * @param mixed $value * @return void */ public function prepend($key, $value) @@ -226,7 +210,6 @@ public function prepend($key, $value) * Push a value onto an array configuration value. * * @param string $key - * @param mixed $value * @return void */ public function push($key, $value) @@ -252,7 +235,6 @@ public function all() * Determine if the given configuration option exists. * * @param string $key - * @return bool */ public function offsetExists($key): bool { @@ -263,7 +245,6 @@ public function offsetExists($key): bool * Get a configuration option. * * @param string $key - * @return mixed */ public function offsetGet($key): mixed { @@ -274,8 +255,6 @@ public function offsetGet($key): mixed * Set a configuration option. * * @param string $key - * @param mixed $value - * @return void */ public function offsetSet($key, $value): void { @@ -286,7 +265,6 @@ public function offsetSet($key, $value): void * Unset a configuration option. * * @param string $key - * @return void */ public function offsetUnset($key): void { diff --git a/src/Illuminate/Console/Application.php b/src/Illuminate/Console/Application.php index 94d1cc2196e7..2156fc0caaf5 100755 --- a/src/Illuminate/Console/Application.php +++ b/src/Illuminate/Console/Application.php @@ -62,8 +62,6 @@ class Application extends SymfonyApplication implements ApplicationContract /** * Create a new Artisan console application. * - * @param \Illuminate\Contracts\Container\Container $laravel - * @param \Illuminate\Contracts\Events\Dispatcher $events * @param string $version */ public function __construct(Container $laravel, Dispatcher $events, $version) @@ -148,7 +146,6 @@ public static function forgetBootstrappers() * Run an Artisan console command by name. * * @param \Symfony\Component\Console\Command\Command|string $command - * @param array $parameters * @param \Symfony\Component\Console\Output\OutputInterface|null $outputBuffer * @return int * @@ -213,7 +210,6 @@ public function output() * Add an array of commands to the console. * * @param array $commands - * @return void */ #[\Override] public function addCommands(array $commands): void @@ -225,9 +221,6 @@ public function addCommands(array $commands): void /** * Add a command to the console. - * - * @param \Symfony\Component\Console\Command\Command $command - * @return \Symfony\Component\Console\Command\Command|null */ #[\Override] public function add(SymfonyCommand $command): ?SymfonyCommand @@ -242,7 +235,6 @@ public function add(SymfonyCommand $command): ?SymfonyCommand /** * Add the command to the parent instance. * - * @param \Symfony\Component\Console\Command\Command $command * @return \Symfony\Component\Console\Command\Command */ protected function addToParent(SymfonyCommand $command) @@ -282,7 +274,6 @@ public function resolve($command) /** * Resolve an array of commands through the application. * - * @param mixed $commands * @return $this */ public function resolveCommands($commands) @@ -312,8 +303,6 @@ public function setContainerCommandLoader() * Get the default input definition for the application. * * This is used to add the --env option to every available command. - * - * @return \Symfony\Component\Console\Input\InputDefinition */ #[\Override] protected function getDefaultInputDefinition(): InputDefinition diff --git a/src/Illuminate/Console/CacheCommandMutex.php b/src/Illuminate/Console/CacheCommandMutex.php index 0a896c6bc9ce..0aedfc79ac33 100644 --- a/src/Illuminate/Console/CacheCommandMutex.php +++ b/src/Illuminate/Console/CacheCommandMutex.php @@ -28,8 +28,6 @@ class CacheCommandMutex implements CommandMutex /** * Create a new command mutex. - * - * @param \Illuminate\Contracts\Cache\Factory $cache */ public function __construct(Cache $cache) { diff --git a/src/Illuminate/Console/Command.php b/src/Illuminate/Console/Command.php index 607cfaa07dbd..acd8ac001755 100755 --- a/src/Illuminate/Console/Command.php +++ b/src/Illuminate/Console/Command.php @@ -160,10 +160,6 @@ protected function configureIsolation() /** * Run the console command. - * - * @param \Symfony\Component\Console\Input\InputInterface $input - * @param \Symfony\Component\Console\Output\OutputInterface $output - * @return int */ #[\Override] public function run(InputInterface $input, OutputInterface $output): int @@ -187,9 +183,6 @@ public function run(InputInterface $input, OutputInterface $output): int /** * Execute the console command. - * - * @param \Symfony\Component\Console\Input\InputInterface $input - * @param \Symfony\Component\Console\Output\OutputInterface $output */ #[\Override] protected function execute(InputInterface $input, OutputInterface $output): int @@ -262,7 +255,6 @@ protected function resolveCommand($command) /** * Fail the command manually. * - * @param \Throwable|string|null $exception * @return never * * @throws \Illuminate\Console\ManuallyFailedException|\Throwable @@ -282,8 +274,6 @@ public function fail(Throwable|string|null $exception = null) /** * {@inheritdoc} - * - * @return bool */ #[\Override] public function isHidden(): bool diff --git a/src/Illuminate/Console/Concerns/CallsCommands.php b/src/Illuminate/Console/Concerns/CallsCommands.php index cd15389fcb62..994f48065dbf 100644 --- a/src/Illuminate/Console/Concerns/CallsCommands.php +++ b/src/Illuminate/Console/Concerns/CallsCommands.php @@ -21,7 +21,6 @@ abstract protected function resolveCommand($command); * Call another console command. * * @param \Symfony\Component\Console\Command\Command|string $command - * @param array $arguments * @return int */ public function call($command, array $arguments = []) @@ -33,7 +32,6 @@ public function call($command, array $arguments = []) * Call another console command without output. * * @param \Symfony\Component\Console\Command\Command|string $command - * @param array $arguments * @return int */ public function callSilent($command, array $arguments = []) @@ -45,7 +43,6 @@ public function callSilent($command, array $arguments = []) * Call another console command without output. * * @param \Symfony\Component\Console\Command\Command|string $command - * @param array $arguments * @return int */ public function callSilently($command, array $arguments = []) @@ -57,8 +54,6 @@ public function callSilently($command, array $arguments = []) * Run the given console command. * * @param \Symfony\Component\Console\Command\Command|string $command - * @param array $arguments - * @param \Symfony\Component\Console\Output\OutputInterface $output * @return int */ protected function runCommand($command, array $arguments, OutputInterface $output) @@ -77,7 +72,6 @@ protected function runCommand($command, array $arguments, OutputInterface $outpu /** * Create an input instance from the given arguments. * - * @param array $arguments * @return \Symfony\Component\Console\Input\ArrayInput */ protected function createInputFromArguments(array $arguments) diff --git a/src/Illuminate/Console/Concerns/ConfiguresPrompts.php b/src/Illuminate/Console/Concerns/ConfiguresPrompts.php index d49e27273ecd..0b7cec879c3d 100644 --- a/src/Illuminate/Console/Concerns/ConfiguresPrompts.php +++ b/src/Illuminate/Console/Concerns/ConfiguresPrompts.php @@ -22,7 +22,6 @@ trait ConfiguresPrompts /** * Configure the prompt fallbacks. * - * @param \Symfony\Component\Console\Input\InputInterface $input * @return void */ protected function configurePrompts(InputInterface $input) @@ -118,7 +117,6 @@ function () use ($prompt) { * @param \Closure $prompt * @param bool|string $required * @param \Closure|null $validate - * @return mixed */ protected function promptUntilValid($prompt, $required, $validate) { @@ -154,8 +152,6 @@ protected function promptUntilValid($prompt, $required, $validate) /** * Validate the given prompt value using the validator. * - * @param mixed $value - * @param mixed $rules * @return ?string */ protected function validatePrompt($value, $rules) @@ -184,11 +180,6 @@ protected function validatePrompt($value, $rules) /** * Get the validator instance that should be used to validate prompts. * - * @param mixed $field - * @param mixed $value - * @param mixed $rules - * @param array $messages - * @param array $attributes * @return \Illuminate\Validation\Validator */ protected function getPromptValidatorInstance($field, $value, $rules, array $messages = [], array $attributes = []) diff --git a/src/Illuminate/Console/Concerns/InteractsWithIO.php b/src/Illuminate/Console/Concerns/InteractsWithIO.php index f4cf5daad08b..58e390703c38 100644 --- a/src/Illuminate/Console/Concerns/InteractsWithIO.php +++ b/src/Illuminate/Console/Concerns/InteractsWithIO.php @@ -145,7 +145,6 @@ public function confirm($question, $default = false) * * @param string $question * @param string|null $default - * @return mixed */ public function ask($question, $default = null) { @@ -158,7 +157,6 @@ public function ask($question, $default = null) * @param string $question * @param array|callable $choices * @param string|null $default - * @return mixed */ public function anticipate($question, $choices, $default = null) { @@ -171,7 +169,6 @@ public function anticipate($question, $choices, $default = null) * @param string $question * @param array|callable $choices * @param string|null $default - * @return mixed */ public function askWithCompletion($question, $choices, $default = null) { @@ -189,7 +186,6 @@ public function askWithCompletion($question, $choices, $default = null) * * @param string $question * @param bool $fallback - * @return mixed */ public function secret($question, $fallback = true) { @@ -204,9 +200,7 @@ public function secret($question, $fallback = true) * Give the user a single choice from an array of answers. * * @param string $question - * @param array $choices * @param string|int|null $default - * @param mixed $attempts * @param bool $multiple * @return string|array */ @@ -225,7 +219,6 @@ public function choice($question, array $choices, $default = null, $attempts = n * @param array $headers * @param \Illuminate\Contracts\Support\Arrayable|array $rows * @param \Symfony\Component\Console\Helper\TableStyle|string $tableStyle - * @param array $columnStyles * @return void */ public function table($headers, $rows, $tableStyle = 'default', array $columnStyles = []) @@ -249,7 +242,6 @@ public function table($headers, $rows, $tableStyle = 'default', array $columnSty * Execute a given callback while advancing a progress bar. * * @param iterable|int $totalSteps - * @param \Closure $callback * @return mixed|void */ public function withProgressBar($totalSteps, Closure $callback) @@ -392,7 +384,6 @@ public function newLine($count = 1) /** * Set the input interface implementation. * - * @param \Symfony\Component\Console\Input\InputInterface $input * @return void */ public function setInput(InputInterface $input) @@ -403,7 +394,6 @@ public function setInput(InputInterface $input) /** * Set the output interface implementation. * - * @param \Illuminate\Console\OutputStyle $output * @return void */ public function setOutput(OutputStyle $output) diff --git a/src/Illuminate/Console/Concerns/PromptsForMissingInput.php b/src/Illuminate/Console/Concerns/PromptsForMissingInput.php index 3fb6415d8c78..a9da60906772 100644 --- a/src/Illuminate/Console/Concerns/PromptsForMissingInput.php +++ b/src/Illuminate/Console/Concerns/PromptsForMissingInput.php @@ -17,8 +17,6 @@ trait PromptsForMissingInput /** * Interact with the user before validating the input. * - * @param \Symfony\Component\Console\Input\InputInterface $input - * @param \Symfony\Component\Console\Output\OutputInterface $output * @return void */ protected function interact(InputInterface $input, OutputInterface $output) @@ -33,8 +31,6 @@ protected function interact(InputInterface $input, OutputInterface $output) /** * Prompt the user for any missing arguments. * - * @param \Symfony\Component\Console\Input\InputInterface $input - * @param \Symfony\Component\Console\Output\OutputInterface $output * @return void */ protected function promptForMissingArguments(InputInterface $input, OutputInterface $output) @@ -85,8 +81,6 @@ protected function promptForMissingArgumentsUsing() /** * Perform actions after the user was prompted for missing arguments. * - * @param \Symfony\Component\Console\Input\InputInterface $input - * @param \Symfony\Component\Console\Output\OutputInterface $output * @return void */ protected function afterPromptingForMissingArguments(InputInterface $input, OutputInterface $output) @@ -97,7 +91,6 @@ protected function afterPromptingForMissingArguments(InputInterface $input, Outp /** * Whether the input contains any options that differ from the default values. * - * @param \Symfony\Component\Console\Input\InputInterface $input * @return bool */ protected function didReceiveOptions(InputInterface $input) diff --git a/src/Illuminate/Console/ContainerCommandLoader.php b/src/Illuminate/Console/ContainerCommandLoader.php index 08af8f4cadc8..219309d8e2cf 100644 --- a/src/Illuminate/Console/ContainerCommandLoader.php +++ b/src/Illuminate/Console/ContainerCommandLoader.php @@ -25,9 +25,6 @@ class ContainerCommandLoader implements CommandLoaderInterface /** * Create a new command loader instance. - * - * @param \Psr\Container\ContainerInterface $container - * @param array $commandMap */ public function __construct(ContainerInterface $container, array $commandMap) { @@ -38,8 +35,6 @@ public function __construct(ContainerInterface $container, array $commandMap) /** * Resolve a command from the container. * - * @param string $name - * @return \Symfony\Component\Console\Command\Command * * @throws \Symfony\Component\Console\Exception\CommandNotFoundException */ @@ -54,9 +49,6 @@ public function get(string $name): Command /** * Determines if a command exists. - * - * @param string $name - * @return bool */ public function has(string $name): bool { diff --git a/src/Illuminate/Console/GeneratorCommand.php b/src/Illuminate/Console/GeneratorCommand.php index 5b6af51a576b..d4c240126f20 100644 --- a/src/Illuminate/Console/GeneratorCommand.php +++ b/src/Illuminate/Console/GeneratorCommand.php @@ -119,8 +119,6 @@ abstract class GeneratorCommand extends Command implements PromptsForMissingInpu /** * Create a new generator command instance. - * - * @param \Illuminate\Filesystem\Filesystem $files */ public function __construct(Filesystem $files) { @@ -219,7 +217,6 @@ protected function qualifyClass($name) /** * Qualify the given model class base name. * - * @param string $model * @return string */ protected function qualifyModel(string $model) diff --git a/src/Illuminate/Console/MigrationGeneratorCommand.php b/src/Illuminate/Console/MigrationGeneratorCommand.php index 21198c03052c..58ad721a58f7 100644 --- a/src/Illuminate/Console/MigrationGeneratorCommand.php +++ b/src/Illuminate/Console/MigrationGeneratorCommand.php @@ -17,8 +17,6 @@ abstract class MigrationGeneratorCommand extends Command /** * Create a new migration generator command instance. - * - * @param \Illuminate\Filesystem\Filesystem $files */ public function __construct(Filesystem $files) { diff --git a/src/Illuminate/Console/OutputStyle.php b/src/Illuminate/Console/OutputStyle.php index 5bfd6675bfaf..f6220092f7be 100644 --- a/src/Illuminate/Console/OutputStyle.php +++ b/src/Illuminate/Console/OutputStyle.php @@ -37,9 +37,6 @@ class OutputStyle extends SymfonyStyle implements NewLineAware /** * Create a new Console OutputStyle instance. - * - * @param \Symfony\Component\Console\Input\InputInterface $input - * @param \Symfony\Component\Console\Output\OutputInterface $output */ public function __construct(InputInterface $input, OutputInterface $output) { @@ -148,8 +145,6 @@ protected function trailingNewLineCount($messages) /** * Returns whether verbosity is quiet (-q). - * - * @return bool */ public function isQuiet(): bool { @@ -158,8 +153,6 @@ public function isQuiet(): bool /** * Returns whether verbosity is verbose (-v). - * - * @return bool */ public function isVerbose(): bool { @@ -168,8 +161,6 @@ public function isVerbose(): bool /** * Returns whether verbosity is very verbose (-vv). - * - * @return bool */ public function isVeryVerbose(): bool { @@ -178,8 +169,6 @@ public function isVeryVerbose(): bool /** * Returns whether verbosity is debug (-vvv). - * - * @return bool */ public function isDebug(): bool { diff --git a/src/Illuminate/Console/Parser.php b/src/Illuminate/Console/Parser.php index d70088e61beb..37e5b18fcc49 100644 --- a/src/Illuminate/Console/Parser.php +++ b/src/Illuminate/Console/Parser.php @@ -11,7 +11,6 @@ class Parser /** * Parse the given console command definition into an array. * - * @param string $expression * @return array * * @throws \InvalidArgumentException @@ -30,7 +29,6 @@ public static function parse(string $expression) /** * Extract the name of the command from the expression. * - * @param string $expression * @return string * * @throws \InvalidArgumentException @@ -47,7 +45,6 @@ protected static function name(string $expression) /** * Extract all parameters from the tokens. * - * @param array $tokens * @return array */ protected static function parameters(array $tokens) @@ -70,7 +67,6 @@ protected static function parameters(array $tokens) /** * Parse an argument expression. * - * @param string $token * @return \Symfony\Component\Console\Input\InputArgument */ protected static function parseArgument(string $token) @@ -96,7 +92,6 @@ protected static function parseArgument(string $token) /** * Parse an option expression. * - * @param string $token * @return \Symfony\Component\Console\Input\InputOption */ protected static function parseOption(string $token) @@ -129,7 +124,6 @@ protected static function parseOption(string $token) /** * Parse the token into its token and description segments. * - * @param string $token * @return array */ protected static function extractDescription(string $token) diff --git a/src/Illuminate/Console/Prohibitable.php b/src/Illuminate/Console/Prohibitable.php index 959b3086141c..7ebdba881011 100644 --- a/src/Illuminate/Console/Prohibitable.php +++ b/src/Illuminate/Console/Prohibitable.php @@ -25,7 +25,6 @@ public static function prohibit($prohibit = true) /** * Determine if the command is prohibited from running and display a warning if so. * - * @param bool $quiet * @return bool */ protected function isProhibited(bool $quiet = false) diff --git a/src/Illuminate/Console/QuestionHelper.php b/src/Illuminate/Console/QuestionHelper.php index 5cbab6f0f1bc..53d73c902f31 100644 --- a/src/Illuminate/Console/QuestionHelper.php +++ b/src/Illuminate/Console/QuestionHelper.php @@ -15,8 +15,6 @@ class QuestionHelper extends SymfonyQuestionHelper { /** * {@inheritdoc} - * - * @return void */ #[\Override] protected function writePrompt(OutputInterface $output, Question $question): void diff --git a/src/Illuminate/Console/Scheduling/CacheEventMutex.php b/src/Illuminate/Console/Scheduling/CacheEventMutex.php index b2ca43e92a74..c40fd2fa5a5f 100644 --- a/src/Illuminate/Console/Scheduling/CacheEventMutex.php +++ b/src/Illuminate/Console/Scheduling/CacheEventMutex.php @@ -24,8 +24,6 @@ class CacheEventMutex implements EventMutex, CacheAware /** * Create a new overlapping strategy. - * - * @param \Illuminate\Contracts\Cache\Factory $cache */ public function __construct(Cache $cache) { @@ -35,7 +33,6 @@ public function __construct(Cache $cache) /** * Attempt to obtain an event mutex for the given event. * - * @param \Illuminate\Console\Scheduling\Event $event * @return bool */ public function create(Event $event) @@ -54,7 +51,6 @@ public function create(Event $event) /** * Determine if an event mutex exists for the given event. * - * @param \Illuminate\Console\Scheduling\Event $event * @return bool */ public function exists(Event $event) @@ -71,7 +67,6 @@ public function exists(Event $event) /** * Clear the event mutex for the given event. * - * @param \Illuminate\Console\Scheduling\Event $event * @return void */ public function forget(Event $event) diff --git a/src/Illuminate/Console/Scheduling/CacheSchedulingMutex.php b/src/Illuminate/Console/Scheduling/CacheSchedulingMutex.php index 5202ef2535b7..1eb426537999 100644 --- a/src/Illuminate/Console/Scheduling/CacheSchedulingMutex.php +++ b/src/Illuminate/Console/Scheduling/CacheSchedulingMutex.php @@ -25,8 +25,6 @@ class CacheSchedulingMutex implements SchedulingMutex, CacheAware /** * Create a new scheduling strategy. - * - * @param \Illuminate\Contracts\Cache\Factory $cache */ public function __construct(Cache $cache) { @@ -36,8 +34,6 @@ public function __construct(Cache $cache) /** * Attempt to obtain a scheduling mutex for the given event. * - * @param \Illuminate\Console\Scheduling\Event $event - * @param \DateTimeInterface $time * @return bool */ public function create(Event $event, DateTimeInterface $time) @@ -58,8 +54,6 @@ public function create(Event $event, DateTimeInterface $time) /** * Determine if a scheduling mutex exists for the given event. * - * @param \Illuminate\Console\Scheduling\Event $event - * @param \DateTimeInterface $time * @return bool */ public function exists(Event $event, DateTimeInterface $time) diff --git a/src/Illuminate/Console/Scheduling/CallbackEvent.php b/src/Illuminate/Console/Scheduling/CallbackEvent.php index 9ee9a6e46e38..402ea3eb5cf4 100644 --- a/src/Illuminate/Console/Scheduling/CallbackEvent.php +++ b/src/Illuminate/Console/Scheduling/CallbackEvent.php @@ -27,8 +27,6 @@ class CallbackEvent extends Event /** * The result of the callback's execution. - * - * @var mixed */ protected $result; @@ -42,9 +40,7 @@ class CallbackEvent extends Event /** * Create a new event instance. * - * @param \Illuminate\Console\Scheduling\EventMutex $mutex * @param string|callable $callback - * @param array $parameters * @param \DateTimeZone|string|null $timezone * * @throws \InvalidArgumentException @@ -66,8 +62,6 @@ public function __construct(EventMutex $mutex, $callback, array $parameters = [] /** * Run the callback event. * - * @param \Illuminate\Contracts\Container\Container $container - * @return mixed * * @throws \Throwable */ diff --git a/src/Illuminate/Console/Scheduling/CommandBuilder.php b/src/Illuminate/Console/Scheduling/CommandBuilder.php index 17ad5522da92..04ceab12a880 100644 --- a/src/Illuminate/Console/Scheduling/CommandBuilder.php +++ b/src/Illuminate/Console/Scheduling/CommandBuilder.php @@ -10,7 +10,6 @@ class CommandBuilder /** * Build the command for the given event. * - * @param \Illuminate\Console\Scheduling\Event $event * @return string */ public function buildCommand(Event $event) @@ -25,7 +24,6 @@ public function buildCommand(Event $event) /** * Build the command for running the event in the foreground. * - * @param \Illuminate\Console\Scheduling\Event $event * @return string */ protected function buildForegroundCommand(Event $event) @@ -40,7 +38,6 @@ protected function buildForegroundCommand(Event $event) /** * Build the command for running the event in the background. * - * @param \Illuminate\Console\Scheduling\Event $event * @return string */ protected function buildBackgroundCommand(Event $event) @@ -64,7 +61,6 @@ protected function buildBackgroundCommand(Event $event) /** * Finalize the event's command syntax with the correct user. * - * @param \Illuminate\Console\Scheduling\Event $event * @param string $command * @return string */ diff --git a/src/Illuminate/Console/Scheduling/Event.php b/src/Illuminate/Console/Scheduling/Event.php index 7cda4f054413..35207ffc3a2f 100644 --- a/src/Illuminate/Console/Scheduling/Event.php +++ b/src/Illuminate/Console/Scheduling/Event.php @@ -93,7 +93,6 @@ class Event /** * Create a new event instance. * - * @param \Illuminate\Console\Scheduling\EventMutex $mutex * @param string $command * @param \DateTimeZone|string|null $timezone */ @@ -119,7 +118,6 @@ public function getDefaultOutput() /** * Run the given event. * - * @param \Illuminate\Contracts\Container\Container $container * @return void * * @throws \Throwable @@ -209,7 +207,6 @@ protected function execute($container) /** * Mark the command process as finished and run callbacks/cleanup. * - * @param \Illuminate\Contracts\Container\Container $container * @param int $exitCode * @return void */ @@ -227,7 +224,6 @@ public function finish(Container $container, $exitCode) /** * Call all of the "before" callbacks for the event. * - * @param \Illuminate\Contracts\Container\Container $container * @return void */ public function callBeforeCallbacks(Container $container) @@ -240,7 +236,6 @@ public function callBeforeCallbacks(Container $container) /** * Call all of the "after" callbacks for the event. * - * @param \Illuminate\Contracts\Container\Container $container * @return void */ public function callAfterCallbacks(Container $container) @@ -380,7 +375,6 @@ public function appendOutputTo($location) /** * E-mail the results of the scheduled operation. * - * @param mixed $addresses * @param bool $onlyIfOutputExists * @return $this * @@ -400,7 +394,6 @@ public function emailOutputTo($addresses, $onlyIfOutputExists = true) /** * E-mail the results of the scheduled operation if it produces output. * - * @param mixed $addresses * @return $this * * @throws \LogicException @@ -413,7 +406,6 @@ public function emailWrittenOutputTo($addresses) /** * E-mail the results of the scheduled operation if it fails. * - * @param mixed $addresses * @return $this */ public function emailOutputOnFailure($addresses) @@ -442,7 +434,6 @@ protected function ensureOutputIsBeingCaptured() /** * E-mail the output of the event to the recipients. * - * @param \Illuminate\Contracts\Mail\Mailer $mailer * @param array $addresses * @param bool $onlyIfOutputExists * @return void @@ -586,7 +577,6 @@ protected function pingCallback($url) /** * Get the Guzzle HTTP client to use to send pings. * - * @param \Illuminate\Contracts\Container\Container $container * @return \GuzzleHttp\ClientInterface */ protected function getHttpClient(Container $container) @@ -605,7 +595,6 @@ protected function getHttpClient(Container $container) /** * Register a callback to be called before the operation. * - * @param \Closure $callback * @return $this */ public function before(Closure $callback) @@ -618,7 +607,6 @@ public function before(Closure $callback) /** * Register a callback to be called after the operation. * - * @param \Closure $callback * @return $this */ public function after(Closure $callback) @@ -629,7 +617,6 @@ public function after(Closure $callback) /** * Register a callback to be called after the operation. * - * @param \Closure $callback * @return $this */ public function then(Closure $callback) @@ -648,7 +635,6 @@ public function then(Closure $callback) /** * Register a callback that uses the output after the job runs. * - * @param \Closure $callback * @param bool $onlyIfOutputExists * @return $this */ @@ -662,7 +648,6 @@ public function thenWithOutput(Closure $callback, $onlyIfOutputExists = false) /** * Register a callback to be called if the operation succeeds. * - * @param \Closure $callback * @return $this */ public function onSuccess(Closure $callback) @@ -683,7 +668,6 @@ public function onSuccess(Closure $callback) /** * Register a callback that uses the output if the operation succeeds. * - * @param \Closure $callback * @param bool $onlyIfOutputExists * @return $this */ @@ -697,7 +681,6 @@ public function onSuccessWithOutput(Closure $callback, $onlyIfOutputExists = fal /** * Register a callback to be called if the operation fails. * - * @param \Closure $callback * @return $this */ public function onFailure(Closure $callback) @@ -718,7 +701,6 @@ public function onFailure(Closure $callback) /** * Register a callback that uses the output if the operation fails. * - * @param \Closure $callback * @param bool $onlyIfOutputExists * @return $this */ @@ -732,7 +714,6 @@ public function onFailureWithOutput(Closure $callback, $onlyIfOutputExists = fal /** * Get a callback that provides output. * - * @param \Closure $callback * @param bool $onlyIfOutputExists * @return \Closure */ @@ -788,7 +769,6 @@ public function getExpression() /** * Set the event mutex implementation to be used. * - * @param \Illuminate\Console\Scheduling\EventMutex $mutex * @return $this */ public function preventOverlapsUsing(EventMutex $mutex) @@ -818,7 +798,6 @@ public function mutexName() /** * Set the mutex name or name resolver callback. * - * @param \Closure|string $mutexName * @return $this */ public function createMutexNameUsing(Closure|string $mutexName) diff --git a/src/Illuminate/Console/Scheduling/EventMutex.php b/src/Illuminate/Console/Scheduling/EventMutex.php index 1840e24206eb..ef1f2f4e79f8 100644 --- a/src/Illuminate/Console/Scheduling/EventMutex.php +++ b/src/Illuminate/Console/Scheduling/EventMutex.php @@ -7,7 +7,6 @@ interface EventMutex /** * Attempt to obtain an event mutex for the given event. * - * @param \Illuminate\Console\Scheduling\Event $event * @return bool */ public function create(Event $event); @@ -15,7 +14,6 @@ public function create(Event $event); /** * Determine if an event mutex exists for the given event. * - * @param \Illuminate\Console\Scheduling\Event $event * @return bool */ public function exists(Event $event); @@ -23,7 +21,6 @@ public function exists(Event $event); /** * Clear the event mutex for the given event. * - * @param \Illuminate\Console\Scheduling\Event $event * @return void */ public function forget(Event $event); diff --git a/src/Illuminate/Console/Scheduling/ManagesAttributes.php b/src/Illuminate/Console/Scheduling/ManagesAttributes.php index 4e9ad38f45cb..c8aefb340a10 100644 --- a/src/Illuminate/Console/Scheduling/ManagesAttributes.php +++ b/src/Illuminate/Console/Scheduling/ManagesAttributes.php @@ -113,7 +113,6 @@ public function user($user) /** * Limit the environments the command should run in. * - * @param mixed $environments * @return $this */ public function environments($environments) diff --git a/src/Illuminate/Console/Scheduling/ManagesFrequencies.php b/src/Illuminate/Console/Scheduling/ManagesFrequencies.php index 8faf51b72726..1cd91127d316 100644 --- a/src/Illuminate/Console/Scheduling/ManagesFrequencies.php +++ b/src/Illuminate/Console/Scheduling/ManagesFrequencies.php @@ -501,7 +501,6 @@ public function weekly() /** * Schedule the event to run weekly on a given day and time. * - * @param mixed $dayOfWeek * @param string $time * @return $this */ @@ -628,7 +627,6 @@ public function yearlyOn($month = 1, $dayOfMonth = 1, $time = '0:0') /** * Set the days of the week the command should run on. * - * @param mixed $days * @return $this */ public function days($days) diff --git a/src/Illuminate/Console/Scheduling/Schedule.php b/src/Illuminate/Console/Scheduling/Schedule.php index 8d497fda1389..e6f96048a289 100644 --- a/src/Illuminate/Console/Scheduling/Schedule.php +++ b/src/Illuminate/Console/Scheduling/Schedule.php @@ -133,7 +133,6 @@ public function __construct($timezone = null) * Add a new callback event to the schedule. * * @param string|callable $callback - * @param array $parameters * @return \Illuminate\Console\Scheduling\CallbackEvent */ public function call($callback, array $parameters = []) @@ -151,7 +150,6 @@ public function call($callback, array $parameters = []) * Add a new Artisan command event to the schedule. * * @param \Symfony\Component\Console\Command\Command|string $command - * @param array $parameters * @return \Illuminate\Console\Scheduling\Event */ public function command($command, array $parameters = []) @@ -282,7 +280,6 @@ protected function dispatchNow($job) * Add a new command event to the schedule. * * @param string $command - * @param array $parameters * @return \Illuminate\Console\Scheduling\Event */ public function exec($command, array $parameters = []) @@ -301,7 +298,6 @@ public function exec($command, array $parameters = []) /** * Create new schedule group. * - * @param \Illuminate\Console\Scheduling\Event $event * @return void * * @throws \RuntimeException @@ -322,7 +318,6 @@ public function group(Closure $events) /** * Merge the current group attributes with the given event. * - * @param \Illuminate\Console\Scheduling\Event $event * @return void */ protected function mergePendingAttributes(Event $event) @@ -343,7 +338,6 @@ protected function mergePendingAttributes(Event $event) /** * Compile parameters for a command. * - * @param array $parameters * @return string */ protected function compileParameters(array $parameters) @@ -390,8 +384,6 @@ public function compileArrayInput($key, $value) /** * Determine if the server is allowed to run this event. * - * @param \Illuminate\Console\Scheduling\Event $event - * @param \DateTimeInterface $time * @return bool */ public function serverShouldRun(Event $event, DateTimeInterface $time) @@ -467,7 +459,6 @@ protected function getDispatcher() * * @param string $method * @param array $parameters - * @return mixed */ public function __call($method, $parameters) { diff --git a/src/Illuminate/Console/Scheduling/ScheduleClearCacheCommand.php b/src/Illuminate/Console/Scheduling/ScheduleClearCacheCommand.php index 10663695fa32..dacd74d1c33f 100644 --- a/src/Illuminate/Console/Scheduling/ScheduleClearCacheCommand.php +++ b/src/Illuminate/Console/Scheduling/ScheduleClearCacheCommand.php @@ -25,7 +25,6 @@ class ScheduleClearCacheCommand extends Command /** * Execute the console command. * - * @param \Illuminate\Console\Scheduling\Schedule $schedule * @return void */ public function handle(Schedule $schedule) diff --git a/src/Illuminate/Console/Scheduling/ScheduleFinishCommand.php b/src/Illuminate/Console/Scheduling/ScheduleFinishCommand.php index 2fee1ac8fac3..30cc95226859 100644 --- a/src/Illuminate/Console/Scheduling/ScheduleFinishCommand.php +++ b/src/Illuminate/Console/Scheduling/ScheduleFinishCommand.php @@ -35,7 +35,6 @@ class ScheduleFinishCommand extends Command /** * Execute the console command. * - * @param \Illuminate\Console\Scheduling\Schedule $schedule * @return void */ public function handle(Schedule $schedule) diff --git a/src/Illuminate/Console/Scheduling/ScheduleInterruptCommand.php b/src/Illuminate/Console/Scheduling/ScheduleInterruptCommand.php index 4477da56a4e1..b16ae1c38575 100644 --- a/src/Illuminate/Console/Scheduling/ScheduleInterruptCommand.php +++ b/src/Illuminate/Console/Scheduling/ScheduleInterruptCommand.php @@ -33,8 +33,6 @@ class ScheduleInterruptCommand extends Command /** * Create a new schedule interrupt command. - * - * @param \Illuminate\Contracts\Cache\Repository $cache */ public function __construct(Cache $cache) { diff --git a/src/Illuminate/Console/Scheduling/ScheduleListCommand.php b/src/Illuminate/Console/Scheduling/ScheduleListCommand.php index 0bb8f11ab498..d0853754bef9 100644 --- a/src/Illuminate/Console/Scheduling/ScheduleListCommand.php +++ b/src/Illuminate/Console/Scheduling/ScheduleListCommand.php @@ -43,7 +43,6 @@ class ScheduleListCommand extends Command /** * Execute the console command. * - * @param \Illuminate\Console\Scheduling\Schedule $schedule * @return void * * @throws \Exception @@ -183,8 +182,6 @@ private function getRepeatExpression($event) /** * Sort the events by due date if option set. * - * @param \Illuminate\Support\Collection $events - * @param \DateTimeZone $timezone * @return \Illuminate\Support\Collection */ private function sortEvents(\Illuminate\Support\Collection $events, DateTimeZone $timezone) @@ -198,7 +195,6 @@ private function sortEvents(\Illuminate\Support\Collection $events, DateTimeZone * Get the next due date for an event. * * @param \Illuminate\Console\Scheduling\Event $event - * @param \DateTimeZone $timezone * @return \Illuminate\Support\Carbon */ private function getNextDueDateForEvent($event, DateTimeZone $timezone) @@ -249,7 +245,6 @@ private function formatCronExpression($expression, $spacing) /** * Get the file and line number for the event closure. * - * @param \Illuminate\Console\Scheduling\CallbackEvent $event * @return string */ private function getClosureLocation(CallbackEvent $event) diff --git a/src/Illuminate/Console/Scheduling/ScheduleRunCommand.php b/src/Illuminate/Console/Scheduling/ScheduleRunCommand.php index 0f0ad16d2c46..1c9e97f8aa90 100644 --- a/src/Illuminate/Console/Scheduling/ScheduleRunCommand.php +++ b/src/Illuminate/Console/Scheduling/ScheduleRunCommand.php @@ -97,10 +97,6 @@ public function __construct() /** * Execute the console command. * - * @param \Illuminate\Console\Scheduling\Schedule $schedule - * @param \Illuminate\Contracts\Events\Dispatcher $dispatcher - * @param \Illuminate\Contracts\Cache\Repository $cache - * @param \Illuminate\Contracts\Debug\ExceptionHandler $handler * @return void */ public function handle(Schedule $schedule, Dispatcher $dispatcher, Cache $cache, ExceptionHandler $handler) diff --git a/src/Illuminate/Console/Scheduling/ScheduleTestCommand.php b/src/Illuminate/Console/Scheduling/ScheduleTestCommand.php index 0da0f7d04aa0..a909073ae417 100644 --- a/src/Illuminate/Console/Scheduling/ScheduleTestCommand.php +++ b/src/Illuminate/Console/Scheduling/ScheduleTestCommand.php @@ -28,7 +28,6 @@ class ScheduleTestCommand extends Command /** * Execute the console command. * - * @param \Illuminate\Console\Scheduling\Schedule $schedule * @return void */ public function handle(Schedule $schedule) @@ -93,7 +92,6 @@ public function handle(Schedule $schedule) /** * Get the selected command name by index. * - * @param array $commandNames * @return int */ protected function getSelectedCommandByIndex(array $commandNames) diff --git a/src/Illuminate/Console/Scheduling/SchedulingMutex.php b/src/Illuminate/Console/Scheduling/SchedulingMutex.php index ab4e87da5557..8bdf711db00f 100644 --- a/src/Illuminate/Console/Scheduling/SchedulingMutex.php +++ b/src/Illuminate/Console/Scheduling/SchedulingMutex.php @@ -9,8 +9,6 @@ interface SchedulingMutex /** * Attempt to obtain a scheduling mutex for the given event. * - * @param \Illuminate\Console\Scheduling\Event $event - * @param \DateTimeInterface $time * @return bool */ public function create(Event $event, DateTimeInterface $time); @@ -18,8 +16,6 @@ public function create(Event $event, DateTimeInterface $time); /** * Determine if a scheduling mutex exists for the given event. * - * @param \Illuminate\Console\Scheduling\Event $event - * @param \DateTimeInterface $time * @return bool */ public function exists(Event $event, DateTimeInterface $time); diff --git a/src/Illuminate/Console/View/Components/Ask.php b/src/Illuminate/Console/View/Components/Ask.php index dfd414ad885d..1a7af9636e7f 100644 --- a/src/Illuminate/Console/View/Components/Ask.php +++ b/src/Illuminate/Console/View/Components/Ask.php @@ -12,7 +12,6 @@ class Ask extends Component * @param string $question * @param string $default * @param bool $multiline - * @return mixed */ public function render($question, $default = null, $multiline = false) { diff --git a/src/Illuminate/Console/View/Components/AskWithCompletion.php b/src/Illuminate/Console/View/Components/AskWithCompletion.php index 103d73071b7a..c483099ca3cf 100644 --- a/src/Illuminate/Console/View/Components/AskWithCompletion.php +++ b/src/Illuminate/Console/View/Components/AskWithCompletion.php @@ -12,7 +12,6 @@ class AskWithCompletion extends Component * @param string $question * @param array|callable $choices * @param string $default - * @return mixed */ public function render($question, $choices, $default = null) { diff --git a/src/Illuminate/Console/View/Components/Choice.php b/src/Illuminate/Console/View/Components/Choice.php index ed215527ae8e..23538b75bb27 100644 --- a/src/Illuminate/Console/View/Components/Choice.php +++ b/src/Illuminate/Console/View/Components/Choice.php @@ -11,10 +11,8 @@ class Choice extends Component * * @param string $question * @param array $choices - * @param mixed $default * @param int $attempts * @param bool $multiple - * @return mixed */ public function render($question, $choices, $default = null, $attempts = null, $multiple = false) { @@ -32,7 +30,6 @@ public function render($question, $choices, $default = null, $attempts = null, $ * * @param string $question * @param array $choices - * @param mixed $default * @return \Symfony\Component\Console\Question\ChoiceQuestion */ protected function getChoiceQuestion($question, $choices, $default) diff --git a/src/Illuminate/Console/View/Components/Component.php b/src/Illuminate/Console/View/Components/Component.php index f515f916ff62..b61d3a74ad16 100644 --- a/src/Illuminate/Console/View/Components/Component.php +++ b/src/Illuminate/Console/View/Components/Component.php @@ -99,7 +99,6 @@ protected function mutate($data, $mutators) * Eventually performs a question using the component's question helper. * * @param callable $callable - * @return mixed */ protected function usingQuestionHelper($callable) { diff --git a/src/Illuminate/Console/View/Components/Factory.php b/src/Illuminate/Console/View/Components/Factory.php index 2929279057ee..5a9cbb87fb7f 100644 --- a/src/Illuminate/Console/View/Components/Factory.php +++ b/src/Illuminate/Console/View/Components/Factory.php @@ -44,7 +44,6 @@ public function __construct($output) * * @param string $method * @param array $parameters - * @return mixed * * @throws \InvalidArgumentException */ diff --git a/src/Illuminate/Console/View/Components/Secret.php b/src/Illuminate/Console/View/Components/Secret.php index 824afd350bed..a653987b2641 100644 --- a/src/Illuminate/Console/View/Components/Secret.php +++ b/src/Illuminate/Console/View/Components/Secret.php @@ -11,7 +11,6 @@ class Secret extends Component * * @param string $question * @param bool $fallback - * @return mixed */ public function render($question, $fallback = true) { diff --git a/src/Illuminate/Container/Attributes/Auth.php b/src/Illuminate/Container/Attributes/Auth.php index 4cf0c1a4cc68..7325a86e3b55 100644 --- a/src/Illuminate/Container/Attributes/Auth.php +++ b/src/Illuminate/Container/Attributes/Auth.php @@ -19,8 +19,6 @@ public function __construct(public ?string $guard = null) /** * Resolve the authentication guard. * - * @param self $attribute - * @param \Illuminate\Contracts\Container\Container $container * @return \Illuminate\Contracts\Auth\Guard|\Illuminate\Contracts\Auth\StatefulGuard */ public static function resolve(self $attribute, Container $container) diff --git a/src/Illuminate/Container/Attributes/Authenticated.php b/src/Illuminate/Container/Attributes/Authenticated.php index ffbba4553719..a5bec92fd38f 100644 --- a/src/Illuminate/Container/Attributes/Authenticated.php +++ b/src/Illuminate/Container/Attributes/Authenticated.php @@ -19,8 +19,6 @@ public function __construct(public ?string $guard = null) /** * Resolve the currently authenticated user. * - * @param self $attribute - * @param \Illuminate\Contracts\Container\Container $container * @return \Illuminate\Contracts\Auth\Authenticatable|null */ public static function resolve(self $attribute, Container $container) diff --git a/src/Illuminate/Container/Attributes/Cache.php b/src/Illuminate/Container/Attributes/Cache.php index 2b7b1f78e038..f4b0237c5c2f 100644 --- a/src/Illuminate/Container/Attributes/Cache.php +++ b/src/Illuminate/Container/Attributes/Cache.php @@ -19,8 +19,6 @@ public function __construct(public ?string $store = null) /** * Resolve the cache store. * - * @param self $attribute - * @param \Illuminate\Contracts\Container\Container $container * @return \Illuminate\Contracts\Cache\Repository */ public static function resolve(self $attribute, Container $container) diff --git a/src/Illuminate/Container/Attributes/Config.php b/src/Illuminate/Container/Attributes/Config.php index 0133708a39d4..c9f8050681e5 100644 --- a/src/Illuminate/Container/Attributes/Config.php +++ b/src/Illuminate/Container/Attributes/Config.php @@ -18,10 +18,6 @@ public function __construct(public string $key, public mixed $default = null) /** * Resolve the configuration value. - * - * @param self $attribute - * @param \Illuminate\Contracts\Container\Container $container - * @return mixed */ public static function resolve(self $attribute, Container $container) { diff --git a/src/Illuminate/Container/Attributes/Context.php b/src/Illuminate/Container/Attributes/Context.php index 1c858074646d..90f9750a27a8 100644 --- a/src/Illuminate/Container/Attributes/Context.php +++ b/src/Illuminate/Container/Attributes/Context.php @@ -19,10 +19,6 @@ public function __construct(public string $key, public mixed $default = null, pu /** * Resolve the context value. - * - * @param self $attribute - * @param \Illuminate\Contracts\Container\Container $container - * @return mixed */ public static function resolve(self $attribute, Container $container): mixed { diff --git a/src/Illuminate/Container/Attributes/Database.php b/src/Illuminate/Container/Attributes/Database.php index 0f9eaa7236cd..cf62a95af1d6 100644 --- a/src/Illuminate/Container/Attributes/Database.php +++ b/src/Illuminate/Container/Attributes/Database.php @@ -20,8 +20,6 @@ public function __construct(public UnitEnum|string|null $connection = null) /** * Resolve the database connection. * - * @param self $attribute - * @param \Illuminate\Contracts\Container\Container $container * @return \Illuminate\Database\Connection */ public static function resolve(self $attribute, Container $container) diff --git a/src/Illuminate/Container/Attributes/Give.php b/src/Illuminate/Container/Attributes/Give.php index 41523a84cc8c..a353d3980fdd 100644 --- a/src/Illuminate/Container/Attributes/Give.php +++ b/src/Illuminate/Container/Attributes/Give.php @@ -25,10 +25,6 @@ public function __construct( /** * Resolve the dependency. - * - * @param self $attribute - * @param \Illuminate\Contracts\Container\Container $container - * @return mixed */ public static function resolve(self $attribute, Container $container): mixed { diff --git a/src/Illuminate/Container/Attributes/Log.php b/src/Illuminate/Container/Attributes/Log.php index 07673e703704..f990a98b9d58 100644 --- a/src/Illuminate/Container/Attributes/Log.php +++ b/src/Illuminate/Container/Attributes/Log.php @@ -19,8 +19,6 @@ public function __construct(public ?string $channel = null) /** * Resolve the log channel. * - * @param self $attribute - * @param \Illuminate\Contracts\Container\Container $container * @return \Psr\Log\LoggerInterface */ public static function resolve(self $attribute, Container $container) diff --git a/src/Illuminate/Container/Attributes/RouteParameter.php b/src/Illuminate/Container/Attributes/RouteParameter.php index 32afced0ecc4..7057e9e6880f 100644 --- a/src/Illuminate/Container/Attributes/RouteParameter.php +++ b/src/Illuminate/Container/Attributes/RouteParameter.php @@ -18,10 +18,6 @@ public function __construct(public string $parameter) /** * Resolve the route parameter. - * - * @param self $attribute - * @param \Illuminate\Contracts\Container\Container $container - * @return mixed */ public static function resolve(self $attribute, Container $container) { diff --git a/src/Illuminate/Container/Attributes/Storage.php b/src/Illuminate/Container/Attributes/Storage.php index b9a16d19817a..6f6c51532fb9 100644 --- a/src/Illuminate/Container/Attributes/Storage.php +++ b/src/Illuminate/Container/Attributes/Storage.php @@ -19,8 +19,6 @@ public function __construct(public ?string $disk = null) /** * Resolve the storage disk. * - * @param self $attribute - * @param \Illuminate\Contracts\Container\Container $container * @return \Illuminate\Contracts\Filesystem\Filesystem */ public static function resolve(self $attribute, Container $container) diff --git a/src/Illuminate/Container/Attributes/Tag.php b/src/Illuminate/Container/Attributes/Tag.php index 944fcd994f26..10575c19fa08 100644 --- a/src/Illuminate/Container/Attributes/Tag.php +++ b/src/Illuminate/Container/Attributes/Tag.php @@ -18,10 +18,6 @@ public function __construct( /** * Resolve the tag. - * - * @param self $attribute - * @param \Illuminate\Contracts\Container\Container $container - * @return mixed */ public static function resolve(self $attribute, Container $container) { diff --git a/src/Illuminate/Container/BoundMethod.php b/src/Illuminate/Container/BoundMethod.php index 32c1da23ef32..261b4a5aff1f 100644 --- a/src/Illuminate/Container/BoundMethod.php +++ b/src/Illuminate/Container/BoundMethod.php @@ -15,9 +15,7 @@ class BoundMethod * * @param \Illuminate\Container\Container $container * @param callable|string $callback - * @param array $parameters * @param string|null $defaultMethod - * @return mixed * * @throws \ReflectionException * @throws \InvalidArgumentException @@ -42,9 +40,7 @@ public static function call($container, $callback, array $parameters = [], $defa * * @param \Illuminate\Container\Container $container * @param string $target - * @param array $parameters * @param string|null $defaultMethod - * @return mixed * * @throws \InvalidArgumentException */ @@ -75,8 +71,6 @@ protected static function callClass($container, $target, array $parameters = [], * * @param \Illuminate\Container\Container $container * @param callable $callback - * @param mixed $default - * @return mixed */ protected static function callBoundMethod($container, $callback, $default) { @@ -114,7 +108,6 @@ protected static function normalizeMethod($callback) * * @param \Illuminate\Container\Container $container * @param callable|string $callback - * @param array $parameters * @return array * * @throws \ReflectionException @@ -156,7 +149,6 @@ protected static function getCallReflector($callback) * * @param \Illuminate\Container\Container $container * @param \ReflectionParameter $parameter - * @param array $parameters * @param array $dependencies * @return void * @@ -208,7 +200,6 @@ protected static function addDependencyForCallParameter( /** * Determine if the given string is in Class@method syntax. * - * @param mixed $callback * @return bool */ protected static function isCallableWithAtSign($callback) diff --git a/src/Illuminate/Container/Container.php b/src/Illuminate/Container/Container.php index 8d107f14e21d..c9085716178c 100755 --- a/src/Illuminate/Container/Container.php +++ b/src/Illuminate/Container/Container.php @@ -220,8 +220,6 @@ public function when($concrete) /** * Define a contextual binding based on an attribute. * - * @param string $attribute - * @param \Closure $handler * @return void */ public function whenHasAttribute(string $attribute, Closure $handler) @@ -244,8 +242,6 @@ public function bound($abstract) /** * {@inheritdoc} - * - * @return bool */ public function has(string $id): bool { @@ -458,8 +454,6 @@ protected function parseBindMethod($method) * Get the method binding for the given method. * * @param string $method - * @param mixed $instance - * @return mixed */ public function callMethodBinding($method, $instance) { @@ -570,7 +564,6 @@ protected function bindBasedOnClosureReturnTypes($abstract, $concrete = null, $s /** * Get the class names / types of the return type of the given Closure. * - * @param \Closure $closure * @return list * * @throws \ReflectionException @@ -600,7 +593,6 @@ protected function closureReturnTypes(Closure $closure) * "Extend" an abstract type in the container. * * @param string $abstract - * @param \Closure $closure * @return void * * @throws \InvalidArgumentException @@ -676,7 +668,6 @@ protected function removeAbstractAlias($searched) * Assign a set of tags to a given binding. * * @param array|string $abstracts - * @param mixed ...$tags * @return void */ public function tag($abstracts, $tags) @@ -739,8 +730,6 @@ public function alias($abstract, $alias) * Bind a new callback to an abstract's rebind event. * * @param string $abstract - * @param \Closure $callback - * @return mixed */ public function rebinding($abstract, Closure $callback) { @@ -755,9 +744,7 @@ public function rebinding($abstract, Closure $callback) * Refresh an instance on the given target and method. * * @param string $abstract - * @param mixed $target * @param string $method - * @return mixed */ public function refresh($abstract, $target, $method) { @@ -799,8 +786,6 @@ protected function getReboundCallbacks($abstract) /** * Wrap the given closure such that its dependencies will be injected when executed. * - * @param \Closure $callback - * @param array $parameters * @return \Closure */ public function wrap(Closure $callback, array $parameters = []) @@ -814,7 +799,6 @@ public function wrap(Closure $callback, array $parameters = []) * @param callable|string $callback * @param array $parameters * @param string|null $defaultMethod - * @return mixed * * @throws \InvalidArgumentException */ @@ -876,7 +860,6 @@ public function factory($abstract) * @template TClass of object * * @param string|class-string|callable $abstract - * @param array $parameters * @return ($abstract is class-string ? TClass : mixed) * * @throws \Illuminate\Contracts\Container\BindingResolutionException @@ -892,7 +875,6 @@ public function makeWith($abstract, array $parameters = []) * @template TClass of object * * @param string|class-string $abstract - * @param array $parameters * @return ($abstract is class-string ? TClass : mixed) * * @throws \Illuminate\Contracts\Container\BindingResolutionException @@ -1005,7 +987,6 @@ protected function resolve($abstract, $parameters = [], $raiseEvents = true) * Get the concrete type for a given abstract. * * @param string|callable $abstract - * @return mixed */ protected function getConcrete($abstract) { @@ -1028,7 +1009,6 @@ protected function getConcrete($abstract) * Get the concrete binding for an abstract from the Bind attribute. * * @param string $abstract - * @return mixed */ protected function getConcreteBindingFromAttributes($abstract) { @@ -1121,7 +1101,6 @@ protected function findInContextualBindings($abstract) /** * Determine if the given concrete is buildable. * - * @param mixed $concrete * @param string $abstract * @return bool */ @@ -1272,7 +1251,6 @@ protected function hasParameterOverride($dependency) * Get a parameter override for a dependency. * * @param \ReflectionParameter $dependency - * @return mixed */ protected function getParameterOverride($dependency) { @@ -1292,8 +1270,6 @@ protected function getLastParameterOverride() /** * Resolve a non-class hinted primitive dependency. * - * @param \ReflectionParameter $parameter - * @return mixed * * @throws \Illuminate\Contracts\Container\BindingResolutionException */ @@ -1321,8 +1297,6 @@ protected function resolvePrimitive(ReflectionParameter $parameter) /** * Resolve a class based dependency from the container. * - * @param \ReflectionParameter $parameter - * @return mixed * * @throws \Illuminate\Contracts\Container\BindingResolutionException */ @@ -1361,9 +1335,6 @@ protected function resolveClass(ReflectionParameter $parameter) /** * Resolve a class based variadic dependency from the container. - * - * @param \ReflectionParameter $parameter - * @return mixed */ protected function resolveVariadicClass(ReflectionParameter $parameter) { @@ -1380,9 +1351,6 @@ protected function resolveVariadicClass(ReflectionParameter $parameter) /** * Resolve a dependency based on an attribute. - * - * @param \ReflectionAttribute $attribute - * @return mixed */ public function resolveFromAttribute(ReflectionAttribute $attribute) { @@ -1425,7 +1393,6 @@ protected function notInstantiable($concrete) /** * Throw an exception for an unresolvable primitive. * - * @param \ReflectionParameter $parameter * @return void * * @throws \Illuminate\Contracts\Container\BindingResolutionException @@ -1441,7 +1408,6 @@ protected function unresolvablePrimitive(ReflectionParameter $parameter) * Register a new before resolving callback for all types. * * @param \Closure|string $abstract - * @param \Closure|null $callback * @return void */ public function beforeResolving($abstract, ?Closure $callback = null) @@ -1461,7 +1427,6 @@ public function beforeResolving($abstract, ?Closure $callback = null) * Register a new resolving callback. * * @param \Closure|string $abstract - * @param \Closure|null $callback * @return void */ public function resolving($abstract, ?Closure $callback = null) @@ -1481,7 +1446,6 @@ public function resolving($abstract, ?Closure $callback = null) * Register a new after resolving callback for all types. * * @param \Closure|string $abstract - * @param \Closure|null $callback * @return void */ public function afterResolving($abstract, ?Closure $callback = null) @@ -1500,8 +1464,6 @@ public function afterResolving($abstract, ?Closure $callback = null) /** * Register a new after resolving attribute callback for all types. * - * @param string $attribute - * @param \Closure $callback * @return void */ public function afterResolvingAttribute(string $attribute, \Closure $callback) @@ -1532,7 +1494,6 @@ protected function fireBeforeResolvingCallbacks($abstract, $parameters = []) * * @param string $abstract * @param array $parameters - * @param array $callbacks * @return void */ protected function fireBeforeCallbackArray($abstract, $parameters, array $callbacks) @@ -1546,7 +1507,6 @@ protected function fireBeforeCallbackArray($abstract, $parameters, array $callba * Fire all of the resolving callbacks. * * @param string $abstract - * @param mixed $object * @return void */ protected function fireResolvingCallbacks($abstract, $object) @@ -1564,7 +1524,6 @@ protected function fireResolvingCallbacks($abstract, $object) * Fire all of the after resolving callbacks. * * @param string $abstract - * @param mixed $object * @return void */ protected function fireAfterResolvingCallbacks($abstract, $object) @@ -1580,7 +1539,6 @@ protected function fireAfterResolvingCallbacks($abstract, $object) * Fire all of the after resolving attribute callbacks. * * @param \ReflectionAttribute[] $attributes - * @param mixed $object * @return void */ public function fireAfterResolvingAttributeCallbacks(array $attributes, $object) @@ -1609,7 +1567,6 @@ public function fireAfterResolvingAttributeCallbacks(array $attributes, $object) * * @param string $abstract * @param object $object - * @param array $callbacksPerType * @return array */ protected function getCallbacksForType($abstract, $object, array $callbacksPerType) @@ -1628,8 +1585,6 @@ protected function getCallbacksForType($abstract, $object, array $callbacksPerTy /** * Fire an array of callbacks with an object. * - * @param mixed $object - * @param array $callbacks * @return void */ protected function fireCallbackArray($object, array $callbacks) @@ -1792,7 +1747,6 @@ public static function getInstance() /** * Set the shared instance of the container. * - * @param \Illuminate\Contracts\Container\Container|null $container * @return \Illuminate\Contracts\Container\Container|static */ public static function setInstance(?ContainerContract $container = null) @@ -1804,7 +1758,6 @@ public static function setInstance(?ContainerContract $container = null) * Determine if a given offset exists. * * @param string $key - * @return bool */ public function offsetExists($key): bool { @@ -1815,7 +1768,6 @@ public function offsetExists($key): bool * Get the value at a given offset. * * @param string $key - * @return mixed */ public function offsetGet($key): mixed { @@ -1826,8 +1778,6 @@ public function offsetGet($key): mixed * Set the value at a given offset. * * @param string $key - * @param mixed $value - * @return void */ public function offsetSet($key, $value): void { @@ -1838,7 +1788,6 @@ public function offsetSet($key, $value): void * Unset the value at a given offset. * * @param string $key - * @return void */ public function offsetUnset($key): void { @@ -1849,7 +1798,6 @@ public function offsetUnset($key): void * Dynamically access container services. * * @param string $key - * @return mixed */ public function __get($key) { @@ -1860,7 +1808,6 @@ public function __get($key) * Dynamically set container services. * * @param string $key - * @param mixed $value * @return void */ public function __set($key, $value) diff --git a/src/Illuminate/Container/ContextualBindingBuilder.php b/src/Illuminate/Container/ContextualBindingBuilder.php index 0f3163f9403a..3dcf99cf07f5 100644 --- a/src/Illuminate/Container/ContextualBindingBuilder.php +++ b/src/Illuminate/Container/ContextualBindingBuilder.php @@ -31,7 +31,6 @@ class ContextualBindingBuilder implements ContextualBindingBuilderContract /** * Create a new contextual binding builder. * - * @param \Illuminate\Contracts\Container\Container $container * @param string|array $concrete */ public function __construct(Container $container, $concrete) @@ -85,7 +84,6 @@ public function giveTagged($tag) * Specify the configuration item to bind as a primitive. * * @param string $key - * @param mixed $default * @return void */ public function giveConfig($key, $default = null) diff --git a/src/Illuminate/Container/RewindableGenerator.php b/src/Illuminate/Container/RewindableGenerator.php index 53013f8fa952..f83940d89333 100644 --- a/src/Illuminate/Container/RewindableGenerator.php +++ b/src/Illuminate/Container/RewindableGenerator.php @@ -25,7 +25,6 @@ class RewindableGenerator implements Countable, IteratorAggregate /** * Create a new generator instance. * - * @param callable $generator * @param callable|int $count */ public function __construct(callable $generator, $count) @@ -36,8 +35,6 @@ public function __construct(callable $generator, $count) /** * Get an iterator from the generator. - * - * @return \Traversable */ public function getIterator(): Traversable { @@ -46,8 +43,6 @@ public function getIterator(): Traversable /** * Get the total number of tagged services. - * - * @return int */ public function count(): int { diff --git a/src/Illuminate/Container/Util.php b/src/Illuminate/Container/Util.php index ebd345efac27..b5fa6a37c60f 100644 --- a/src/Illuminate/Container/Util.php +++ b/src/Illuminate/Container/Util.php @@ -17,7 +17,6 @@ class Util * * From Arr::wrap() in Illuminate\Support. * - * @param mixed $value * @return array */ public static function arrayWrap($value) @@ -33,10 +32,6 @@ public static function arrayWrap($value) * Return the default value of the given value. * * From global value() helper in Illuminate\Support. - * - * @param mixed $value - * @param mixed ...$args - * @return mixed */ public static function unwrapIfClosure($value, ...$args) { diff --git a/src/Illuminate/Contracts/Auth/Access/Authorizable.php b/src/Illuminate/Contracts/Auth/Access/Authorizable.php index 6b8a0441c92e..bd7e36bfb0b4 100644 --- a/src/Illuminate/Contracts/Auth/Access/Authorizable.php +++ b/src/Illuminate/Contracts/Auth/Access/Authorizable.php @@ -8,7 +8,6 @@ interface Authorizable * Determine if the entity has a given ability. * * @param iterable|string $abilities - * @param mixed $arguments * @return bool */ public function can($abilities, $arguments = []); diff --git a/src/Illuminate/Contracts/Auth/Access/Gate.php b/src/Illuminate/Contracts/Auth/Access/Gate.php index 29ab2377d9c9..c028662bb00c 100644 --- a/src/Illuminate/Contracts/Auth/Access/Gate.php +++ b/src/Illuminate/Contracts/Auth/Access/Gate.php @@ -26,7 +26,6 @@ public function define($ability, $callback); * * @param string $name * @param string $class - * @param array|null $abilities * @return $this */ public function resource($name, $class, ?array $abilities = null); @@ -43,7 +42,6 @@ public function policy($class, $policy); /** * Register a callback to run before all Gate checks. * - * @param callable $callback * @return $this */ public function before(callable $callback); @@ -51,7 +49,6 @@ public function before(callable $callback); /** * Register a callback to run after all Gate checks. * - * @param callable $callback * @return $this */ public function after(callable $callback); @@ -60,7 +57,6 @@ public function after(callable $callback); * Determine if all of the given abilities should be granted for the current user. * * @param iterable|\UnitEnum|string $ability - * @param mixed $arguments * @return bool */ public function allows($ability, $arguments = []); @@ -69,7 +65,6 @@ public function allows($ability, $arguments = []); * Determine if any of the given abilities should be denied for the current user. * * @param iterable|\UnitEnum|string $ability - * @param mixed $arguments * @return bool */ public function denies($ability, $arguments = []); @@ -78,7 +73,6 @@ public function denies($ability, $arguments = []); * Determine if all of the given abilities should be granted for the current user. * * @param iterable|\UnitEnum|string $abilities - * @param mixed $arguments * @return bool */ public function check($abilities, $arguments = []); @@ -87,7 +81,6 @@ public function check($abilities, $arguments = []); * Determine if any one of the given abilities should be granted for the current user. * * @param iterable|\UnitEnum|string $abilities - * @param mixed $arguments * @return bool */ public function any($abilities, $arguments = []); @@ -96,7 +89,6 @@ public function any($abilities, $arguments = []); * Determine if the given ability should be granted for the current user. * * @param \UnitEnum|string $ability - * @param mixed $arguments * @return \Illuminate\Auth\Access\Response * * @throws \Illuminate\Auth\Access\AuthorizationException @@ -107,7 +99,6 @@ public function authorize($ability, $arguments = []); * Inspect the user for the given ability. * * @param \UnitEnum|string $ability - * @param mixed $arguments * @return \Illuminate\Auth\Access\Response */ public function inspect($ability, $arguments = []); @@ -116,8 +107,6 @@ public function inspect($ability, $arguments = []); * Get the raw result from the authorization callback. * * @param string $ability - * @param mixed $arguments - * @return mixed * * @throws \Illuminate\Auth\Access\AuthorizationException */ @@ -127,7 +116,6 @@ public function raw($ability, $arguments = []); * Get a policy instance for a given class. * * @param object|string $class - * @return mixed * * @throws \InvalidArgumentException */ diff --git a/src/Illuminate/Contracts/Auth/Authenticatable.php b/src/Illuminate/Contracts/Auth/Authenticatable.php index f5ed4987b44b..48e4acbaddd1 100644 --- a/src/Illuminate/Contracts/Auth/Authenticatable.php +++ b/src/Illuminate/Contracts/Auth/Authenticatable.php @@ -13,8 +13,6 @@ public function getAuthIdentifierName(); /** * Get the unique identifier for the user. - * - * @return mixed */ public function getAuthIdentifier(); diff --git a/src/Illuminate/Contracts/Auth/Guard.php b/src/Illuminate/Contracts/Auth/Guard.php index a3541f42bae5..e6628524674f 100644 --- a/src/Illuminate/Contracts/Auth/Guard.php +++ b/src/Illuminate/Contracts/Auth/Guard.php @@ -35,7 +35,6 @@ public function id(); /** * Validate a user's credentials. * - * @param array $credentials * @return bool */ public function validate(array $credentials = []); @@ -50,7 +49,6 @@ public function hasUser(); /** * Set the current user. * - * @param \Illuminate\Contracts\Auth\Authenticatable $user * @return $this */ public function setUser(Authenticatable $user); diff --git a/src/Illuminate/Contracts/Auth/PasswordBroker.php b/src/Illuminate/Contracts/Auth/PasswordBroker.php index c6b202329e39..989441c51e29 100644 --- a/src/Illuminate/Contracts/Auth/PasswordBroker.php +++ b/src/Illuminate/Contracts/Auth/PasswordBroker.php @@ -44,18 +44,12 @@ interface PasswordBroker /** * Send a password reset link to a user. * - * @param array $credentials - * @param \Closure|null $callback * @return string */ public function sendResetLink(array $credentials, ?Closure $callback = null); /** * Reset the password for the given token. - * - * @param array $credentials - * @param \Closure $callback - * @return mixed */ public function reset(array $credentials, Closure $callback); } diff --git a/src/Illuminate/Contracts/Auth/StatefulGuard.php b/src/Illuminate/Contracts/Auth/StatefulGuard.php index 2448cf9b08b8..9c9392da6dee 100644 --- a/src/Illuminate/Contracts/Auth/StatefulGuard.php +++ b/src/Illuminate/Contracts/Auth/StatefulGuard.php @@ -7,7 +7,6 @@ interface StatefulGuard extends Guard /** * Attempt to authenticate a user using the given credentials. * - * @param array $credentials * @param bool $remember * @return bool */ @@ -16,7 +15,6 @@ public function attempt(array $credentials = [], $remember = false); /** * Log a user into the application without sessions or cookies. * - * @param array $credentials * @return bool */ public function once(array $credentials = []); @@ -24,7 +22,6 @@ public function once(array $credentials = []); /** * Log a user into the application. * - * @param \Illuminate\Contracts\Auth\Authenticatable $user * @param bool $remember * @return void */ @@ -33,7 +30,6 @@ public function login(Authenticatable $user, $remember = false); /** * Log the given user ID into the application. * - * @param mixed $id * @param bool $remember * @return \Illuminate\Contracts\Auth\Authenticatable|false */ @@ -42,7 +38,6 @@ public function loginUsingId($id, $remember = false); /** * Log the given user ID into the application without sessions or cookies. * - * @param mixed $id * @return \Illuminate\Contracts\Auth\Authenticatable|false */ public function onceUsingId($id); diff --git a/src/Illuminate/Contracts/Auth/UserProvider.php b/src/Illuminate/Contracts/Auth/UserProvider.php index dd9bb419440c..634f74a88190 100644 --- a/src/Illuminate/Contracts/Auth/UserProvider.php +++ b/src/Illuminate/Contracts/Auth/UserProvider.php @@ -7,7 +7,6 @@ interface UserProvider /** * Retrieve a user by their unique identifier. * - * @param mixed $identifier * @return \Illuminate\Contracts\Auth\Authenticatable|null */ public function retrieveById($identifier); @@ -15,7 +14,6 @@ public function retrieveById($identifier); /** * Retrieve a user by their unique identifier and "remember me" token. * - * @param mixed $identifier * @param string $token * @return \Illuminate\Contracts\Auth\Authenticatable|null */ @@ -24,7 +22,6 @@ public function retrieveByToken($identifier, #[\SensitiveParameter] $token); /** * Update the "remember me" token for the given user in storage. * - * @param \Illuminate\Contracts\Auth\Authenticatable $user * @param string $token * @return void */ @@ -33,7 +30,6 @@ public function updateRememberToken(Authenticatable $user, #[\SensitiveParameter /** * Retrieve a user by the given credentials. * - * @param array $credentials * @return \Illuminate\Contracts\Auth\Authenticatable|null */ public function retrieveByCredentials(#[\SensitiveParameter] array $credentials); @@ -41,8 +37,6 @@ public function retrieveByCredentials(#[\SensitiveParameter] array $credentials) /** * Validate a user against the given credentials. * - * @param \Illuminate\Contracts\Auth\Authenticatable $user - * @param array $credentials * @return bool */ public function validateCredentials(Authenticatable $user, #[\SensitiveParameter] array $credentials); @@ -50,9 +44,6 @@ public function validateCredentials(Authenticatable $user, #[\SensitiveParameter /** * Rehash the user's password if required and supported. * - * @param \Illuminate\Contracts\Auth\Authenticatable $user - * @param array $credentials - * @param bool $force * @return void */ public function rehashPasswordIfRequired(Authenticatable $user, #[\SensitiveParameter] array $credentials, bool $force = false); diff --git a/src/Illuminate/Contracts/Broadcasting/Broadcaster.php b/src/Illuminate/Contracts/Broadcasting/Broadcaster.php index 2d317d0a69c3..643f9d6a38aa 100644 --- a/src/Illuminate/Contracts/Broadcasting/Broadcaster.php +++ b/src/Illuminate/Contracts/Broadcasting/Broadcaster.php @@ -8,7 +8,6 @@ interface Broadcaster * Authenticate the incoming request for a given channel. * * @param \Illuminate\Http\Request $request - * @return mixed */ public function auth($request); @@ -16,17 +15,13 @@ public function auth($request); * Return the valid authentication response. * * @param \Illuminate\Http\Request $request - * @param mixed $result - * @return mixed */ public function validAuthenticationResponse($request, $result); /** * Broadcast the given event. * - * @param array $channels * @param string $event - * @param array $payload * @return void * * @throws \Illuminate\Broadcasting\BroadcastException diff --git a/src/Illuminate/Contracts/Bus/Dispatcher.php b/src/Illuminate/Contracts/Bus/Dispatcher.php index 3793174da909..ff42109f9580 100644 --- a/src/Illuminate/Contracts/Bus/Dispatcher.php +++ b/src/Illuminate/Contracts/Bus/Dispatcher.php @@ -6,9 +6,6 @@ interface Dispatcher { /** * Dispatch a command to its appropriate handler. - * - * @param mixed $command - * @return mixed */ public function dispatch($command); @@ -16,42 +13,29 @@ public function dispatch($command); * Dispatch a command to its appropriate handler in the current process. * * Queueable jobs will be dispatched to the "sync" queue. - * - * @param mixed $command - * @param mixed $handler - * @return mixed */ public function dispatchSync($command, $handler = null); /** * Dispatch a command to its appropriate handler in the current process. - * - * @param mixed $command - * @param mixed $handler - * @return mixed */ public function dispatchNow($command, $handler = null); /** * Determine if the given command has a handler. * - * @param mixed $command * @return bool */ public function hasCommandHandler($command); /** * Retrieve the handler for a command. - * - * @param mixed $command - * @return mixed */ public function getCommandHandler($command); /** * Set the pipes commands should be piped through before dispatching. * - * @param array $pipes * @return $this */ public function pipeThrough(array $pipes); @@ -59,7 +43,6 @@ public function pipeThrough(array $pipes); /** * Map a command to a handler. * - * @param array $map * @return $this */ public function map(array $map); diff --git a/src/Illuminate/Contracts/Bus/QueueingDispatcher.php b/src/Illuminate/Contracts/Bus/QueueingDispatcher.php index ff84e2752faf..084077dc3577 100644 --- a/src/Illuminate/Contracts/Bus/QueueingDispatcher.php +++ b/src/Illuminate/Contracts/Bus/QueueingDispatcher.php @@ -7,7 +7,6 @@ interface QueueingDispatcher extends Dispatcher /** * Attempt to find the batch with the given ID. * - * @param string $batchId * @return \Illuminate\Bus\Batch|null */ public function findBatch(string $batchId); @@ -22,9 +21,6 @@ public function batch($jobs); /** * Dispatch a command to its appropriate handler behind a queue. - * - * @param mixed $command - * @return mixed */ public function dispatchToQueue($command); } diff --git a/src/Illuminate/Contracts/Cache/Lock.php b/src/Illuminate/Contracts/Cache/Lock.php index 19da2b0d3eab..6a398540259a 100644 --- a/src/Illuminate/Contracts/Cache/Lock.php +++ b/src/Illuminate/Contracts/Cache/Lock.php @@ -8,7 +8,6 @@ interface Lock * Attempt to acquire the lock. * * @param callable|null $callback - * @return mixed */ public function get($callback = null); @@ -17,7 +16,6 @@ public function get($callback = null); * * @param int $seconds * @param callable|null $callback - * @return mixed * * @throws \Illuminate\Contracts\Cache\LockTimeoutException */ diff --git a/src/Illuminate/Contracts/Cache/Repository.php b/src/Illuminate/Contracts/Cache/Repository.php index 4bc4638e46fe..b84a33a1b605 100644 --- a/src/Illuminate/Contracts/Cache/Repository.php +++ b/src/Illuminate/Contracts/Cache/Repository.php @@ -22,7 +22,6 @@ public function pull($key, $default = null); * Store an item in the cache. * * @param string $key - * @param mixed $value * @param \DateTimeInterface|\DateInterval|int|null $ttl * @return bool */ @@ -32,7 +31,6 @@ public function put($key, $value, $ttl = null); * Store an item in the cache if the key does not exist. * * @param string $key - * @param mixed $value * @param \DateTimeInterface|\DateInterval|int|null $ttl * @return bool */ @@ -42,7 +40,6 @@ public function add($key, $value, $ttl = null); * Increment the value of an item in the cache. * * @param string $key - * @param mixed $value * @return int|bool */ public function increment($key, $value = 1); @@ -51,7 +48,6 @@ public function increment($key, $value = 1); * Decrement the value of an item in the cache. * * @param string $key - * @param mixed $value * @return int|bool */ public function decrement($key, $value = 1); @@ -60,7 +56,6 @@ public function decrement($key, $value = 1); * Store an item in the cache indefinitely. * * @param string $key - * @param mixed $value * @return bool */ public function forever($key, $value); diff --git a/src/Illuminate/Contracts/Cache/Store.php b/src/Illuminate/Contracts/Cache/Store.php index 4ededd4efbc8..0a4029737421 100644 --- a/src/Illuminate/Contracts/Cache/Store.php +++ b/src/Illuminate/Contracts/Cache/Store.php @@ -8,7 +8,6 @@ interface Store * Retrieve an item from the cache by key. * * @param string $key - * @return mixed */ public function get($key); @@ -17,7 +16,6 @@ public function get($key); * * Items not found in the cache will have a null value. * - * @param array $keys * @return array */ public function many(array $keys); @@ -26,7 +24,6 @@ public function many(array $keys); * Store an item in the cache for a given number of seconds. * * @param string $key - * @param mixed $value * @param int $seconds * @return bool */ @@ -35,7 +32,6 @@ public function put($key, $value, $seconds); /** * Store multiple items in the cache for a given number of seconds. * - * @param array $values * @param int $seconds * @return bool */ @@ -45,7 +41,6 @@ public function putMany(array $values, $seconds); * Increment the value of an item in the cache. * * @param string $key - * @param mixed $value * @return int|bool */ public function increment($key, $value = 1); @@ -54,7 +49,6 @@ public function increment($key, $value = 1); * Decrement the value of an item in the cache. * * @param string $key - * @param mixed $value * @return int|bool */ public function decrement($key, $value = 1); @@ -63,7 +57,6 @@ public function decrement($key, $value = 1); * Store an item in the cache indefinitely. * * @param string $key - * @param mixed $value * @return bool */ public function forever($key, $value); diff --git a/src/Illuminate/Contracts/Config/Repository.php b/src/Illuminate/Contracts/Config/Repository.php index a4f0ac86bfb4..dc709c8d88ad 100644 --- a/src/Illuminate/Contracts/Config/Repository.php +++ b/src/Illuminate/Contracts/Config/Repository.php @@ -16,8 +16,6 @@ public function has($key); * Get the specified configuration value. * * @param array|string $key - * @param mixed $default - * @return mixed */ public function get($key, $default = null); @@ -32,7 +30,6 @@ public function all(); * Set a given configuration value. * * @param array|string $key - * @param mixed $value * @return void */ public function set($key, $value = null); @@ -41,7 +38,6 @@ public function set($key, $value = null); * Prepend a value onto an array configuration value. * * @param string $key - * @param mixed $value * @return void */ public function prepend($key, $value); @@ -50,7 +46,6 @@ public function prepend($key, $value); * Push a value onto an array configuration value. * * @param string $key - * @param mixed $value * @return void */ public function push($key, $value); diff --git a/src/Illuminate/Contracts/Console/Application.php b/src/Illuminate/Contracts/Console/Application.php index ba628c9f215d..e56c812d8365 100644 --- a/src/Illuminate/Contracts/Console/Application.php +++ b/src/Illuminate/Contracts/Console/Application.php @@ -8,7 +8,6 @@ interface Application * Run an Artisan console command by name. * * @param string $command - * @param array $parameters * @param \Symfony\Component\Console\Output\OutputInterface|null $outputBuffer * @return int */ diff --git a/src/Illuminate/Contracts/Console/Kernel.php b/src/Illuminate/Contracts/Console/Kernel.php index 842f5a6a9547..f44ca75d0dd6 100644 --- a/src/Illuminate/Contracts/Console/Kernel.php +++ b/src/Illuminate/Contracts/Console/Kernel.php @@ -24,7 +24,6 @@ public function handle($input, $output = null); * Run an Artisan console command by name. * * @param string $command - * @param array $parameters * @param \Symfony\Component\Console\Output\OutputInterface|null $outputBuffer * @return int */ @@ -34,7 +33,6 @@ public function call($command, array $parameters = [], $outputBuffer = null); * Queue an Artisan console command by name. * * @param string $command - * @param array $parameters * @return \Illuminate\Foundation\Bus\PendingDispatch */ public function queue($command, array $parameters = []); diff --git a/src/Illuminate/Contracts/Container/Container.php b/src/Illuminate/Contracts/Container/Container.php index e09b4764786b..97b244824251 100644 --- a/src/Illuminate/Contracts/Container/Container.php +++ b/src/Illuminate/Contracts/Container/Container.php @@ -40,7 +40,6 @@ public function alias($abstract, $alias); * Assign a set of tags to a given binding. * * @param array|string $abstracts - * @param mixed ...$tags * @return void */ public function tag($abstracts, $tags); @@ -122,7 +121,6 @@ public function scopedIf($abstract, $concrete = null); * "Extend" an abstract type in the container. * * @param \Closure|string $abstract - * @param \Closure $closure * @return void * * @throws \InvalidArgumentException @@ -181,7 +179,6 @@ public function flush(); * @template TClass of object * * @param string|class-string $abstract - * @param array $parameters * @return ($abstract is class-string ? TClass : mixed) * * @throws \Illuminate\Contracts\Container\BindingResolutionException @@ -192,9 +189,7 @@ public function make($abstract, array $parameters = []); * Call the given Closure / class@method and inject its dependencies. * * @param callable|string $callback - * @param array $parameters * @param string|null $defaultMethod - * @return mixed */ public function call($callback, array $parameters = [], $defaultMethod = null); @@ -210,7 +205,6 @@ public function resolved($abstract); * Register a new before resolving callback. * * @param \Closure|string $abstract - * @param \Closure|null $callback * @return void */ public function beforeResolving($abstract, ?Closure $callback = null); @@ -219,7 +213,6 @@ public function beforeResolving($abstract, ?Closure $callback = null); * Register a new resolving callback. * * @param \Closure|string $abstract - * @param \Closure|null $callback * @return void */ public function resolving($abstract, ?Closure $callback = null); @@ -228,7 +221,6 @@ public function resolving($abstract, ?Closure $callback = null); * Register a new after resolving callback. * * @param \Closure|string $abstract - * @param \Closure|null $callback * @return void */ public function afterResolving($abstract, ?Closure $callback = null); diff --git a/src/Illuminate/Contracts/Container/ContextualBindingBuilder.php b/src/Illuminate/Contracts/Container/ContextualBindingBuilder.php index 1d84ef8c709d..df671661b69a 100644 --- a/src/Illuminate/Contracts/Container/ContextualBindingBuilder.php +++ b/src/Illuminate/Contracts/Container/ContextualBindingBuilder.php @@ -32,7 +32,6 @@ public function giveTagged($tag); * Specify the configuration item to bind as a primitive. * * @param string $key - * @param mixed $default * @return void */ public function giveConfig($key, $default = null); diff --git a/src/Illuminate/Contracts/Cookie/QueueingFactory.php b/src/Illuminate/Contracts/Cookie/QueueingFactory.php index 2d5f51acd464..2e9d0259f24b 100644 --- a/src/Illuminate/Contracts/Cookie/QueueingFactory.php +++ b/src/Illuminate/Contracts/Cookie/QueueingFactory.php @@ -7,7 +7,6 @@ interface QueueingFactory extends Factory /** * Queue a cookie to send with the next response. * - * @param mixed ...$parameters * @return void */ public function queue(...$parameters); diff --git a/src/Illuminate/Contracts/Database/ConcurrencyErrorDetector.php b/src/Illuminate/Contracts/Database/ConcurrencyErrorDetector.php index ee12a88d6e7b..d7b4b3dc7168 100644 --- a/src/Illuminate/Contracts/Database/ConcurrencyErrorDetector.php +++ b/src/Illuminate/Contracts/Database/ConcurrencyErrorDetector.php @@ -8,9 +8,6 @@ interface ConcurrencyErrorDetector { /** * Determine if the given exception was caused by a concurrency error such as a deadlock or serialization failure. - * - * @param \Throwable $e - * @return bool */ public function causedByConcurrencyError(Throwable $e): bool; } diff --git a/src/Illuminate/Contracts/Database/Eloquent/CastsAttributes.php b/src/Illuminate/Contracts/Database/Eloquent/CastsAttributes.php index 89cec66a7ab0..7da87f16002f 100644 --- a/src/Illuminate/Contracts/Database/Eloquent/CastsAttributes.php +++ b/src/Illuminate/Contracts/Database/Eloquent/CastsAttributes.php @@ -13,9 +13,6 @@ interface CastsAttributes /** * Transform the attribute from the underlying model values. * - * @param \Illuminate\Database\Eloquent\Model $model - * @param string $key - * @param mixed $value * @param array $attributes * @return TGet|null */ @@ -24,11 +21,8 @@ public function get(Model $model, string $key, mixed $value, array $attributes); /** * Transform the attribute to its underlying model values. * - * @param \Illuminate\Database\Eloquent\Model $model - * @param string $key * @param TSet|null $value * @param array $attributes - * @return mixed */ public function set(Model $model, string $key, mixed $value, array $attributes); } diff --git a/src/Illuminate/Contracts/Database/Eloquent/CastsInboundAttributes.php b/src/Illuminate/Contracts/Database/Eloquent/CastsInboundAttributes.php index 312f7aed4511..c40a8c9ea5e1 100644 --- a/src/Illuminate/Contracts/Database/Eloquent/CastsInboundAttributes.php +++ b/src/Illuminate/Contracts/Database/Eloquent/CastsInboundAttributes.php @@ -9,11 +9,7 @@ interface CastsInboundAttributes /** * Transform the attribute to its underlying model values. * - * @param \Illuminate\Database\Eloquent\Model $model - * @param string $key - * @param mixed $value * @param array $attributes - * @return mixed */ public function set(Model $model, string $key, mixed $value, array $attributes); } diff --git a/src/Illuminate/Contracts/Database/Eloquent/ComparesCastableAttributes.php b/src/Illuminate/Contracts/Database/Eloquent/ComparesCastableAttributes.php index 5c9ad195b763..9b3f3088a10b 100644 --- a/src/Illuminate/Contracts/Database/Eloquent/ComparesCastableAttributes.php +++ b/src/Illuminate/Contracts/Database/Eloquent/ComparesCastableAttributes.php @@ -9,10 +9,6 @@ interface ComparesCastableAttributes /** * Determine if the given values are equal. * - * @param \Illuminate\Database\Eloquent\Model $model - * @param string $key - * @param mixed $firstValue - * @param mixed $secondValue * @return bool */ public function compare(Model $model, string $key, mixed $firstValue, mixed $secondValue); diff --git a/src/Illuminate/Contracts/Database/Eloquent/DeviatesCastableAttributes.php b/src/Illuminate/Contracts/Database/Eloquent/DeviatesCastableAttributes.php index 48ba73abc369..2355e12d7381 100644 --- a/src/Illuminate/Contracts/Database/Eloquent/DeviatesCastableAttributes.php +++ b/src/Illuminate/Contracts/Database/Eloquent/DeviatesCastableAttributes.php @@ -8,10 +8,6 @@ interface DeviatesCastableAttributes * Increment the attribute. * * @param \Illuminate\Database\Eloquent\Model $model - * @param string $key - * @param mixed $value - * @param array $attributes - * @return mixed */ public function increment($model, string $key, $value, array $attributes); @@ -19,10 +15,6 @@ public function increment($model, string $key, $value, array $attributes); * Decrement the attribute. * * @param \Illuminate\Database\Eloquent\Model $model - * @param string $key - * @param mixed $value - * @param array $attributes - * @return mixed */ public function decrement($model, string $key, $value, array $attributes); } diff --git a/src/Illuminate/Contracts/Database/Eloquent/SerializesCastableAttributes.php b/src/Illuminate/Contracts/Database/Eloquent/SerializesCastableAttributes.php index 244f34705c6e..2c125ecf3100 100644 --- a/src/Illuminate/Contracts/Database/Eloquent/SerializesCastableAttributes.php +++ b/src/Illuminate/Contracts/Database/Eloquent/SerializesCastableAttributes.php @@ -9,11 +9,7 @@ interface SerializesCastableAttributes /** * Serialize the attribute when converting the model to an array. * - * @param \Illuminate\Database\Eloquent\Model $model - * @param string $key - * @param mixed $value * @param array $attributes - * @return mixed */ public function serialize(Model $model, string $key, mixed $value, array $attributes); } diff --git a/src/Illuminate/Contracts/Database/LostConnectionDetector.php b/src/Illuminate/Contracts/Database/LostConnectionDetector.php index bd4012ca952d..ceb0c3367cbc 100644 --- a/src/Illuminate/Contracts/Database/LostConnectionDetector.php +++ b/src/Illuminate/Contracts/Database/LostConnectionDetector.php @@ -8,9 +8,6 @@ interface LostConnectionDetector { /** * Determine if the given exception was caused by a lost connection. - * - * @param \Throwable $e - * @return bool */ public function causedByLostConnection(Throwable $e): bool; } diff --git a/src/Illuminate/Contracts/Database/ModelIdentifier.php b/src/Illuminate/Contracts/Database/ModelIdentifier.php index 95db3f4a74f8..f8b7dd3c50e5 100644 --- a/src/Illuminate/Contracts/Database/ModelIdentifier.php +++ b/src/Illuminate/Contracts/Database/ModelIdentifier.php @@ -15,8 +15,6 @@ class ModelIdentifier * The unique identifier of the model. * * This may be either a single ID or an array of IDs. - * - * @var mixed */ public $id; @@ -45,9 +43,6 @@ class ModelIdentifier * Create a new model identifier. * * @param class-string<\Illuminate\Database\Eloquent\Model> $class - * @param mixed $id - * @param array $relations - * @param mixed $connection */ public function __construct($class, $id, array $relations, $connection) { diff --git a/src/Illuminate/Contracts/Database/Query/Expression.php b/src/Illuminate/Contracts/Database/Query/Expression.php index 9e08682fe887..d126a155ab57 100644 --- a/src/Illuminate/Contracts/Database/Query/Expression.php +++ b/src/Illuminate/Contracts/Database/Query/Expression.php @@ -9,7 +9,6 @@ interface Expression /** * Get the value of the expression. * - * @param \Illuminate\Database\Grammar $grammar * @return string|int|float */ public function getValue(Grammar $grammar); diff --git a/src/Illuminate/Contracts/Debug/ExceptionHandler.php b/src/Illuminate/Contracts/Debug/ExceptionHandler.php index 3b6594a2ba29..332426be5d74 100644 --- a/src/Illuminate/Contracts/Debug/ExceptionHandler.php +++ b/src/Illuminate/Contracts/Debug/ExceptionHandler.php @@ -9,7 +9,6 @@ interface ExceptionHandler /** * Report or log an exception. * - * @param \Throwable $e * @return void * * @throws \Throwable @@ -19,7 +18,6 @@ public function report(Throwable $e); /** * Determine if the exception should be reported. * - * @param \Throwable $e * @return bool */ public function shouldReport(Throwable $e); @@ -28,7 +26,6 @@ public function shouldReport(Throwable $e); * Render an exception into an HTTP response. * * @param \Illuminate\Http\Request $request - * @param \Throwable $e * @return \Symfony\Component\HttpFoundation\Response * * @throws \Throwable @@ -39,7 +36,6 @@ public function render($request, Throwable $e); * Render an exception to the console. * * @param \Symfony\Component\Console\Output\OutputInterface $output - * @param \Throwable $e * @return void * * @internal This method is not meant to be used or overwritten outside the framework. diff --git a/src/Illuminate/Contracts/Encryption/Encrypter.php b/src/Illuminate/Contracts/Encryption/Encrypter.php index fd29d6c64655..45f8ae160d35 100644 --- a/src/Illuminate/Contracts/Encryption/Encrypter.php +++ b/src/Illuminate/Contracts/Encryption/Encrypter.php @@ -7,7 +7,6 @@ interface Encrypter /** * Encrypt the given value. * - * @param mixed $value * @param bool $serialize * @return string * @@ -20,7 +19,6 @@ public function encrypt(#[\SensitiveParameter] $value, $serialize = true); * * @param string $payload * @param bool $unserialize - * @return mixed * * @throws \Illuminate\Contracts\Encryption\DecryptException */ diff --git a/src/Illuminate/Contracts/Events/Dispatcher.php b/src/Illuminate/Contracts/Events/Dispatcher.php index 7f4096af051e..cb6fd549106a 100644 --- a/src/Illuminate/Contracts/Events/Dispatcher.php +++ b/src/Illuminate/Contracts/Events/Dispatcher.php @@ -33,8 +33,6 @@ public function subscribe($subscriber); * Dispatch an event until the first non-null response is returned. * * @param string|object $event - * @param mixed $payload - * @return mixed */ public function until($event, $payload = []); @@ -42,7 +40,6 @@ public function until($event, $payload = []); * Dispatch an event and call the listeners. * * @param string|object $event - * @param mixed $payload * @param bool $halt * @return array|null */ diff --git a/src/Illuminate/Contracts/Filesystem/Filesystem.php b/src/Illuminate/Contracts/Filesystem/Filesystem.php index 00488a2c2367..6213538deb26 100644 --- a/src/Illuminate/Contracts/Filesystem/Filesystem.php +++ b/src/Illuminate/Contracts/Filesystem/Filesystem.php @@ -55,7 +55,6 @@ public function readStream($path); * * @param string $path * @param \Psr\Http\Message\StreamInterface|\Illuminate\Http\File|\Illuminate\Http\UploadedFile|string|resource $contents - * @param mixed $options * @return bool */ public function put($path, $contents, $options = []); @@ -65,7 +64,6 @@ public function put($path, $contents, $options = []); * * @param \Illuminate\Http\File|\Illuminate\Http\UploadedFile|string $path * @param \Illuminate\Http\File|\Illuminate\Http\UploadedFile|string|array|null $file - * @param mixed $options * @return string|false */ public function putFile($path, $file = null, $options = []); @@ -76,7 +74,6 @@ public function putFile($path, $file = null, $options = []); * @param \Illuminate\Http\File|\Illuminate\Http\UploadedFile|string $path * @param \Illuminate\Http\File|\Illuminate\Http\UploadedFile|string|array|null $file * @param string|array|null $name - * @param mixed $options * @return string|false */ public function putFileAs($path, $file, $name = null, $options = []); @@ -86,7 +83,6 @@ public function putFileAs($path, $file, $name = null, $options = []); * * @param string $path * @param resource $resource - * @param array $options * @return bool */ public function writeStream($path, $resource, array $options = []); diff --git a/src/Illuminate/Contracts/Foundation/Application.php b/src/Illuminate/Contracts/Foundation/Application.php index f768eb963392..ab82a985d3ea 100644 --- a/src/Illuminate/Contracts/Foundation/Application.php +++ b/src/Illuminate/Contracts/Foundation/Application.php @@ -179,7 +179,6 @@ public function booted($callback); /** * Run the given array of bootstrap classes. * - * @param array $bootstrappers * @return void */ public function bootstrapWith(array $bootstrappers); diff --git a/src/Illuminate/Contracts/Foundation/MaintenanceMode.php b/src/Illuminate/Contracts/Foundation/MaintenanceMode.php index 4c948f702d8e..87d2b5983314 100644 --- a/src/Illuminate/Contracts/Foundation/MaintenanceMode.php +++ b/src/Illuminate/Contracts/Foundation/MaintenanceMode.php @@ -6,30 +6,21 @@ interface MaintenanceMode { /** * Take the application down for maintenance. - * - * @param array $payload - * @return void */ public function activate(array $payload): void; /** * Take the application out of maintenance. - * - * @return void */ public function deactivate(): void; /** * Determine if the application is currently down for maintenance. - * - * @return bool */ public function active(): bool; /** * Get the data array which was provided when the application was placed into maintenance. - * - * @return array */ public function data(): array; } diff --git a/src/Illuminate/Contracts/Hashing/Hasher.php b/src/Illuminate/Contracts/Hashing/Hasher.php index d88cf1669a66..0b232ebef65a 100644 --- a/src/Illuminate/Contracts/Hashing/Hasher.php +++ b/src/Illuminate/Contracts/Hashing/Hasher.php @@ -16,7 +16,6 @@ public function info($hashedValue); * Hash the given value. * * @param string $value - * @param array $options * @return string */ public function make(#[\SensitiveParameter] $value, array $options = []); @@ -26,7 +25,6 @@ public function make(#[\SensitiveParameter] $value, array $options = []); * * @param string $value * @param string $hashedValue - * @param array $options * @return bool */ public function check(#[\SensitiveParameter] $value, $hashedValue, array $options = []); @@ -35,7 +33,6 @@ public function check(#[\SensitiveParameter] $value, $hashedValue, array $option * Check if the given hash has been hashed using the given options. * * @param string $hashedValue - * @param array $options * @return bool */ public function needsRehash($hashedValue, array $options = []); diff --git a/src/Illuminate/Contracts/Mail/MailQueue.php b/src/Illuminate/Contracts/Mail/MailQueue.php index d0d90b88dce0..130346f35fd6 100644 --- a/src/Illuminate/Contracts/Mail/MailQueue.php +++ b/src/Illuminate/Contracts/Mail/MailQueue.php @@ -9,7 +9,6 @@ interface MailQueue * * @param \Illuminate\Contracts\Mail\Mailable|string|array $view * @param string|null $queue - * @return mixed */ public function queue($view, $queue = null); @@ -19,7 +18,6 @@ public function queue($view, $queue = null); * @param \DateTimeInterface|\DateInterval|int $delay * @param \Illuminate\Contracts\Mail\Mailable|string|array $view * @param string|null $queue - * @return mixed */ public function later($delay, $view, $queue = null); } diff --git a/src/Illuminate/Contracts/Mail/Mailable.php b/src/Illuminate/Contracts/Mail/Mailable.php index b7fdd42efebd..4a02710b498b 100644 --- a/src/Illuminate/Contracts/Mail/Mailable.php +++ b/src/Illuminate/Contracts/Mail/Mailable.php @@ -16,9 +16,6 @@ public function send($mailer); /** * Queue the given message. - * - * @param \Illuminate\Contracts\Queue\Factory $queue - * @return mixed */ public function queue(Queue $queue); @@ -26,8 +23,6 @@ public function queue(Queue $queue); * Deliver the queued message after (n) seconds. * * @param \DateTimeInterface|\DateInterval|int $delay - * @param \Illuminate\Contracts\Queue\Factory $queue - * @return mixed */ public function later($delay, Queue $queue); diff --git a/src/Illuminate/Contracts/Mail/Mailer.php b/src/Illuminate/Contracts/Mail/Mailer.php index f26e37cfad3a..ea4edb193e4a 100644 --- a/src/Illuminate/Contracts/Mail/Mailer.php +++ b/src/Illuminate/Contracts/Mail/Mailer.php @@ -7,7 +7,6 @@ interface Mailer /** * Begin the process of mailing a mailable class instance. * - * @param mixed $users * @return \Illuminate\Mail\PendingMail */ public function to($users); @@ -15,7 +14,6 @@ public function to($users); /** * Begin the process of mailing a mailable class instance. * - * @param mixed $users * @return \Illuminate\Mail\PendingMail */ public function bcc($users); @@ -24,7 +22,6 @@ public function bcc($users); * Send a new message with only a raw text part. * * @param string $text - * @param mixed $callback * @return \Illuminate\Mail\SentMessage|null */ public function raw($text, $callback); @@ -33,7 +30,6 @@ public function raw($text, $callback); * Send a new message using a view. * * @param \Illuminate\Contracts\Mail\Mailable|string|array $view - * @param array $data * @param \Closure|string|null $callback * @return \Illuminate\Mail\SentMessage|null */ @@ -43,7 +39,6 @@ public function send($view, array $data = [], $callback = null); * Send a new message synchronously using a view. * * @param \Illuminate\Contracts\Mail\Mailable|string|array $mailable - * @param array $data * @param \Closure|string|null $callback * @return \Illuminate\Mail\SentMessage|null */ diff --git a/src/Illuminate/Contracts/Notifications/Dispatcher.php b/src/Illuminate/Contracts/Notifications/Dispatcher.php index 1e4cc3112e4e..2168ab9fc864 100644 --- a/src/Illuminate/Contracts/Notifications/Dispatcher.php +++ b/src/Illuminate/Contracts/Notifications/Dispatcher.php @@ -8,7 +8,6 @@ interface Dispatcher * Send the given notification to the given notifiable entities. * * @param \Illuminate\Support\Collection|mixed $notifiables - * @param mixed $notification * @return void */ public function send($notifiables, $notification); @@ -17,8 +16,6 @@ public function send($notifiables, $notification); * Send the given notification immediately. * * @param \Illuminate\Support\Collection|mixed $notifiables - * @param mixed $notification - * @param array|null $channels * @return void */ public function sendNow($notifiables, $notification, ?array $channels = null); diff --git a/src/Illuminate/Contracts/Notifications/Factory.php b/src/Illuminate/Contracts/Notifications/Factory.php index b014c19d7502..381c53a45052 100644 --- a/src/Illuminate/Contracts/Notifications/Factory.php +++ b/src/Illuminate/Contracts/Notifications/Factory.php @@ -8,7 +8,6 @@ interface Factory * Get a channel instance by name. * * @param string|null $name - * @return mixed */ public function channel($name = null); @@ -16,7 +15,6 @@ public function channel($name = null); * Send the given notification to the given notifiable entities. * * @param \Illuminate\Support\Collection|mixed $notifiables - * @param mixed $notification * @return void */ public function send($notifiables, $notification); @@ -25,7 +23,6 @@ public function send($notifiables, $notification); * Send the given notification immediately. * * @param \Illuminate\Support\Collection|mixed $notifiables - * @param mixed $notification * @return void */ public function sendNow($notifiables, $notification); diff --git a/src/Illuminate/Contracts/Pipeline/Hub.php b/src/Illuminate/Contracts/Pipeline/Hub.php index 1ae675f78a34..daf53abc4d16 100644 --- a/src/Illuminate/Contracts/Pipeline/Hub.php +++ b/src/Illuminate/Contracts/Pipeline/Hub.php @@ -7,9 +7,7 @@ interface Hub /** * Send an object through one of the available pipelines. * - * @param mixed $object * @param string|null $pipeline - * @return mixed */ public function pipe($object, $pipeline = null); } diff --git a/src/Illuminate/Contracts/Pipeline/Pipeline.php b/src/Illuminate/Contracts/Pipeline/Pipeline.php index e7dd6e02787c..e6047853107d 100644 --- a/src/Illuminate/Contracts/Pipeline/Pipeline.php +++ b/src/Illuminate/Contracts/Pipeline/Pipeline.php @@ -9,7 +9,6 @@ interface Pipeline /** * Set the object being sent through the pipeline. * - * @param mixed $passable * @return $this */ public function send($passable); @@ -17,7 +16,6 @@ public function send($passable); /** * Set the array of pipes. * - * @param mixed $pipes * @return $this */ public function through($pipes); @@ -32,9 +30,6 @@ public function via($method); /** * Run the pipeline with a final destination callback. - * - * @param \Closure $destination - * @return mixed */ public function then(Closure $destination); } diff --git a/src/Illuminate/Contracts/Process/InvokedProcess.php b/src/Illuminate/Contracts/Process/InvokedProcess.php index fee2f6622583..7266fe025ab4 100644 --- a/src/Illuminate/Contracts/Process/InvokedProcess.php +++ b/src/Illuminate/Contracts/Process/InvokedProcess.php @@ -14,7 +14,6 @@ public function id(); /** * Send a signal to the process. * - * @param int $signal * @return $this */ public function signal(int $signal); @@ -57,7 +56,6 @@ public function latestErrorOutput(); /** * Wait for the process to finish. * - * @param callable|null $output * @return \Illuminate\Process\ProcessResult */ public function wait(?callable $output = null); diff --git a/src/Illuminate/Contracts/Process/ProcessResult.php b/src/Illuminate/Contracts/Process/ProcessResult.php index 5f0d651543ef..c1a361b32e64 100644 --- a/src/Illuminate/Contracts/Process/ProcessResult.php +++ b/src/Illuminate/Contracts/Process/ProcessResult.php @@ -42,7 +42,6 @@ public function output(); /** * Determine if the output contains the given string. * - * @param string $output * @return bool */ public function seeInOutput(string $output); @@ -57,7 +56,6 @@ public function errorOutput(); /** * Determine if the error output contains the given string. * - * @param string $output * @return bool */ public function seeInErrorOutput(string $output); @@ -65,7 +63,6 @@ public function seeInErrorOutput(string $output); /** * Throw an exception if the process failed. * - * @param callable|null $callback * @return $this */ public function throw(?callable $callback = null); @@ -73,8 +70,6 @@ public function throw(?callable $callback = null); /** * Throw an exception if the process failed and the given condition is true. * - * @param bool $condition - * @param callable|null $callback * @return $this */ public function throwIf(bool $condition, ?callable $callback = null); diff --git a/src/Illuminate/Contracts/Queue/EntityNotFoundException.php b/src/Illuminate/Contracts/Queue/EntityNotFoundException.php index 0b966a7285b3..9b1dbcb60875 100644 --- a/src/Illuminate/Contracts/Queue/EntityNotFoundException.php +++ b/src/Illuminate/Contracts/Queue/EntityNotFoundException.php @@ -10,7 +10,6 @@ class EntityNotFoundException extends InvalidArgumentException * Create a new exception instance. * * @param string $type - * @param mixed $id */ public function __construct($type, $id) { diff --git a/src/Illuminate/Contracts/Queue/EntityResolver.php b/src/Illuminate/Contracts/Queue/EntityResolver.php index aad97a192378..b4e10b4fa5fe 100644 --- a/src/Illuminate/Contracts/Queue/EntityResolver.php +++ b/src/Illuminate/Contracts/Queue/EntityResolver.php @@ -8,8 +8,6 @@ interface EntityResolver * Resolve the entity for the given ID. * * @param string $type - * @param mixed $id - * @return mixed */ public function resolve($type, $id); } diff --git a/src/Illuminate/Contracts/Queue/Monitor.php b/src/Illuminate/Contracts/Queue/Monitor.php index 87677f0e7531..debdce56870e 100644 --- a/src/Illuminate/Contracts/Queue/Monitor.php +++ b/src/Illuminate/Contracts/Queue/Monitor.php @@ -7,7 +7,6 @@ interface Monitor /** * Register a callback to be executed on every iteration through the queue loop. * - * @param mixed $callback * @return void */ public function looping($callback); @@ -15,7 +14,6 @@ public function looping($callback); /** * Register a callback to be executed when a job fails after the maximum number of retries. * - * @param mixed $callback * @return void */ public function failing($callback); @@ -23,7 +21,6 @@ public function failing($callback); /** * Register a callback to be executed when a daemon queue is stopping. * - * @param mixed $callback * @return void */ public function stopping($callback); diff --git a/src/Illuminate/Contracts/Queue/Queue.php b/src/Illuminate/Contracts/Queue/Queue.php index 816f8a7620ee..ba033e86b92a 100644 --- a/src/Illuminate/Contracts/Queue/Queue.php +++ b/src/Illuminate/Contracts/Queue/Queue.php @@ -22,9 +22,7 @@ public function size($queue = null); * Push a new job onto the queue. * * @param string|object $job - * @param mixed $data * @param string|null $queue - * @return mixed */ public function push($job, $data = '', $queue = null); @@ -33,8 +31,6 @@ public function push($job, $data = '', $queue = null); * * @param string $queue * @param string|object $job - * @param mixed $data - * @return mixed */ public function pushOn($queue, $job, $data = ''); @@ -43,7 +39,6 @@ public function pushOn($queue, $job, $data = ''); * * @param string $payload * @param string|null $queue - * @return mixed */ public function pushRaw($payload, $queue = null, array $options = []); @@ -52,9 +47,7 @@ public function pushRaw($payload, $queue = null, array $options = []); * * @param \DateTimeInterface|\DateInterval|int $delay * @param string|object $job - * @param mixed $data * @param string|null $queue - * @return mixed */ public function later($delay, $job, $data = '', $queue = null); @@ -64,8 +57,6 @@ public function later($delay, $job, $data = '', $queue = null); * @param string $queue * @param \DateTimeInterface|\DateInterval|int $delay * @param string|object $job - * @param mixed $data - * @return mixed */ public function laterOn($queue, $delay, $job, $data = ''); @@ -73,9 +64,7 @@ public function laterOn($queue, $delay, $job, $data = ''); * Push an array of jobs onto the queue. * * @param array $jobs - * @param mixed $data * @param string|null $queue - * @return mixed */ public function bulk($jobs, $data = '', $queue = null); diff --git a/src/Illuminate/Contracts/Queue/QueueableEntity.php b/src/Illuminate/Contracts/Queue/QueueableEntity.php index 366f0c84fab6..20f74dd9eae2 100644 --- a/src/Illuminate/Contracts/Queue/QueueableEntity.php +++ b/src/Illuminate/Contracts/Queue/QueueableEntity.php @@ -6,8 +6,6 @@ interface QueueableEntity { /** * Get the queueable identity for the entity. - * - * @return mixed */ public function getQueueableId(); diff --git a/src/Illuminate/Contracts/Redis/Connection.php b/src/Illuminate/Contracts/Redis/Connection.php index 74a8832954dd..66469772f2eb 100644 --- a/src/Illuminate/Contracts/Redis/Connection.php +++ b/src/Illuminate/Contracts/Redis/Connection.php @@ -10,7 +10,6 @@ interface Connection * Subscribe to a set of given channels for messages. * * @param array|string $channels - * @param \Closure $callback * @return void */ public function subscribe($channels, Closure $callback); @@ -19,7 +18,6 @@ public function subscribe($channels, Closure $callback); * Subscribe to a set of given channels with wildcards. * * @param array|string $channels - * @param \Closure $callback * @return void */ public function psubscribe($channels, Closure $callback); @@ -28,8 +26,6 @@ public function psubscribe($channels, Closure $callback); * Run a command against the Redis database. * * @param string $method - * @param array $parameters - * @return mixed */ public function command($method, array $parameters = []); } diff --git a/src/Illuminate/Contracts/Redis/Connector.php b/src/Illuminate/Contracts/Redis/Connector.php index e2669f73a889..64c181f72a16 100644 --- a/src/Illuminate/Contracts/Redis/Connector.php +++ b/src/Illuminate/Contracts/Redis/Connector.php @@ -7,8 +7,6 @@ interface Connector /** * Create a connection to a Redis cluster. * - * @param array $config - * @param array $options * @return \Illuminate\Redis\Connections\Connection */ public function connect(array $config, array $options); @@ -16,9 +14,6 @@ public function connect(array $config, array $options); /** * Create a connection to a Redis instance. * - * @param array $config - * @param array $clusterOptions - * @param array $options * @return \Illuminate\Redis\Connections\Connection */ public function connectToCluster(array $config, array $clusterOptions, array $options); diff --git a/src/Illuminate/Contracts/Routing/Registrar.php b/src/Illuminate/Contracts/Routing/Registrar.php index 57e327231dcd..fecd0e2e690e 100644 --- a/src/Illuminate/Contracts/Routing/Registrar.php +++ b/src/Illuminate/Contracts/Routing/Registrar.php @@ -73,7 +73,6 @@ public function match($methods, $uri, $action); * * @param string $name * @param string $controller - * @param array $options * @return \Illuminate\Routing\PendingResourceRegistration */ public function resource($name, $controller, array $options = []); @@ -81,7 +80,6 @@ public function resource($name, $controller, array $options = []); /** * Create a route group with shared attributes. * - * @param array $attributes * @param \Closure|string $routes * @return void */ diff --git a/src/Illuminate/Contracts/Routing/ResponseFactory.php b/src/Illuminate/Contracts/Routing/ResponseFactory.php index 95dcf96bcf73..8d19d7b827db 100644 --- a/src/Illuminate/Contracts/Routing/ResponseFactory.php +++ b/src/Illuminate/Contracts/Routing/ResponseFactory.php @@ -9,7 +9,6 @@ interface ResponseFactory * * @param array|string $content * @param int $status - * @param array $headers * @return \Illuminate\Http\Response */ public function make($content = '', $status = 200, array $headers = []); @@ -18,7 +17,6 @@ public function make($content = '', $status = 200, array $headers = []); * Create a new "no content" response. * * @param int $status - * @param array $headers * @return \Illuminate\Http\Response */ public function noContent($status = 204, array $headers = []); @@ -29,7 +27,6 @@ public function noContent($status = 204, array $headers = []); * @param string|array $view * @param array $data * @param int $status - * @param array $headers * @return \Illuminate\Http\Response */ public function view($view, $data = [], $status = 200, array $headers = []); @@ -37,9 +34,7 @@ public function view($view, $data = [], $status = 200, array $headers = []); /** * Create a new JSON response instance. * - * @param mixed $data * @param int $status - * @param array $headers * @param int $options * @return \Illuminate\Http\JsonResponse */ @@ -49,9 +44,7 @@ public function json($data = [], $status = 200, array $headers = [], $options = * Create a new JSONP response instance. * * @param string $callback - * @param mixed $data * @param int $status - * @param array $headers * @param int $options * @return \Illuminate\Http\JsonResponse */ @@ -62,7 +55,6 @@ public function jsonp($callback, $data = [], $status = 200, array $headers = [], * * @param callable $callback * @param int $status - * @param array $headers * @return \Symfony\Component\HttpFoundation\StreamedResponse */ public function stream($callback, $status = 200, array $headers = []); @@ -83,7 +75,6 @@ public function streamJson($data, $status = 200, $headers = [], $encodingOptions * * @param callable $callback * @param string|null $name - * @param array $headers * @param string|null $disposition * @return \Symfony\Component\HttpFoundation\StreamedResponse */ @@ -94,7 +85,6 @@ public function streamDownload($callback, $name = null, array $headers = [], $di * * @param \SplFileInfo|string $file * @param string|null $name - * @param array $headers * @param string|null $disposition * @return \Symfony\Component\HttpFoundation\BinaryFileResponse */ @@ -104,7 +94,6 @@ public function download($file, $name = null, array $headers = [], $disposition * Return the raw contents of a binary file. * * @param \SplFileInfo|string $file - * @param array $headers * @return \Symfony\Component\HttpFoundation\BinaryFileResponse */ public function file($file, array $headers = []); @@ -124,7 +113,6 @@ public function redirectTo($path, $status = 302, $headers = [], $secure = null); * Create a new redirect response to a named route. * * @param \BackedEnum|string $route - * @param mixed $parameters * @param int $status * @param array $headers * @return \Illuminate\Http\RedirectResponse @@ -135,7 +123,6 @@ public function redirectToRoute($route, $parameters = [], $status = 302, $header * Create a new redirect response to a controller action. * * @param array|string $action - * @param mixed $parameters * @param int $status * @param array $headers * @return \Illuminate\Http\RedirectResponse diff --git a/src/Illuminate/Contracts/Routing/UrlGenerator.php b/src/Illuminate/Contracts/Routing/UrlGenerator.php index ed159066c9d1..7e66fc52e99f 100644 --- a/src/Illuminate/Contracts/Routing/UrlGenerator.php +++ b/src/Illuminate/Contracts/Routing/UrlGenerator.php @@ -14,7 +14,6 @@ public function current(); /** * Get the URL for the previous request. * - * @param mixed $fallback * @return string */ public function previous($fallback = false); @@ -23,7 +22,6 @@ public function previous($fallback = false); * Generate an absolute URL to the given path. * * @param string $path - * @param mixed $extra * @param bool|null $secure * @return string */ @@ -51,7 +49,6 @@ public function asset($path, $secure = null); * Get the URL to a named route. * * @param string $name - * @param mixed $parameters * @param bool $absolute * @return string * @@ -63,7 +60,6 @@ public function route($name, $parameters = [], $absolute = true); * Create a signed route URL for a named route. * * @param string $name - * @param mixed $parameters * @param \DateTimeInterface|\DateInterval|int|null $expiration * @param bool $absolute * @return string @@ -88,7 +84,6 @@ public function temporarySignedRoute($name, $expiration, $parameters = [], $abso * * @param string $path * @param array $query - * @param mixed $extra * @param bool|null $secure * @return string */ @@ -98,7 +93,6 @@ public function query($path, $query = [], $extra = [], $secure = null); * Get the URL to a controller action. * * @param string|array $action - * @param mixed $parameters * @param bool $absolute * @return string */ diff --git a/src/Illuminate/Contracts/Routing/UrlRoutable.php b/src/Illuminate/Contracts/Routing/UrlRoutable.php index 48c3d723dcc9..c5bf39d69763 100644 --- a/src/Illuminate/Contracts/Routing/UrlRoutable.php +++ b/src/Illuminate/Contracts/Routing/UrlRoutable.php @@ -6,8 +6,6 @@ interface UrlRoutable { /** * Get the value of the model's route key. - * - * @return mixed */ public function getRouteKey(); @@ -21,7 +19,6 @@ public function getRouteKeyName(); /** * Retrieve the model for a bound value. * - * @param mixed $value * @param string|null $field * @return \Illuminate\Database\Eloquent\Model|null */ @@ -31,7 +28,6 @@ public function resolveRouteBinding($value, $field = null); * Retrieve the child model for a bound value. * * @param string $childType - * @param mixed $value * @param string|null $field * @return \Illuminate\Database\Eloquent\Model|null */ diff --git a/src/Illuminate/Contracts/Session/Session.php b/src/Illuminate/Contracts/Session/Session.php index 4fea003cf8a9..b476d0d77a36 100644 --- a/src/Illuminate/Contracts/Session/Session.php +++ b/src/Illuminate/Contracts/Session/Session.php @@ -75,8 +75,6 @@ public function has($key); * Get an item from the session. * * @param string $key - * @param mixed $default - * @return mixed */ public function get($key, $default = null); @@ -84,8 +82,6 @@ public function get($key, $default = null); * Get the value of a given key and then forget it. * * @param string $key - * @param mixed $default - * @return mixed */ public function pull($key, $default = null); @@ -93,7 +89,6 @@ public function pull($key, $default = null); * Put a key / value pair or array of key / value pairs in the session. * * @param string|array $key - * @param mixed $value * @return void */ public function put($key, $value = null); @@ -101,8 +96,6 @@ public function put($key, $value = null); /** * Flash a key / value pair to the session. * - * @param string $key - * @param mixed $value * @return void */ public function flash(string $key, $value = true); @@ -125,7 +118,6 @@ public function regenerateToken(); * Remove an item from the session, returning its value. * * @param string $key - * @return mixed */ public function remove($key); diff --git a/src/Illuminate/Contracts/Translation/Translator.php b/src/Illuminate/Contracts/Translation/Translator.php index ded1a8b864f9..3966b4f60fc5 100644 --- a/src/Illuminate/Contracts/Translation/Translator.php +++ b/src/Illuminate/Contracts/Translation/Translator.php @@ -8,9 +8,7 @@ interface Translator * Get the translation for a given key. * * @param string $key - * @param array $replace * @param string|null $locale - * @return mixed */ public function get($key, array $replace = [], $locale = null); @@ -19,7 +17,6 @@ public function get($key, array $replace = [], $locale = null); * * @param string $key * @param \Countable|int|float|array $number - * @param array $replace * @param string|null $locale * @return string */ diff --git a/src/Illuminate/Contracts/Validation/CompilableRules.php b/src/Illuminate/Contracts/Validation/CompilableRules.php index 2907824026ae..3a54dcdbebd0 100644 --- a/src/Illuminate/Contracts/Validation/CompilableRules.php +++ b/src/Illuminate/Contracts/Validation/CompilableRules.php @@ -8,9 +8,6 @@ interface CompilableRules * Compile the object into usable rules. * * @param string $attribute - * @param mixed $value - * @param mixed $data - * @param mixed $context * @return \stdClass */ public function compile($attribute, $value, $data = null, $context = null); diff --git a/src/Illuminate/Contracts/Validation/DataAwareRule.php b/src/Illuminate/Contracts/Validation/DataAwareRule.php index 739626c2edba..8bfac9f39b20 100644 --- a/src/Illuminate/Contracts/Validation/DataAwareRule.php +++ b/src/Illuminate/Contracts/Validation/DataAwareRule.php @@ -7,7 +7,6 @@ interface DataAwareRule /** * Set the data under validation. * - * @param array $data * @return $this */ public function setData(array $data); diff --git a/src/Illuminate/Contracts/Validation/Factory.php b/src/Illuminate/Contracts/Validation/Factory.php index 70687e87f1d6..aab0738be503 100644 --- a/src/Illuminate/Contracts/Validation/Factory.php +++ b/src/Illuminate/Contracts/Validation/Factory.php @@ -7,10 +7,6 @@ interface Factory /** * Create a new Validator instance. * - * @param array $data - * @param array $rules - * @param array $messages - * @param array $attributes * @return \Illuminate\Contracts\Validation\Validator */ public function make(array $data, array $rules, array $messages = [], array $attributes = []); diff --git a/src/Illuminate/Contracts/Validation/InvokableRule.php b/src/Illuminate/Contracts/Validation/InvokableRule.php index 17c296446945..d73a560c0105 100644 --- a/src/Illuminate/Contracts/Validation/InvokableRule.php +++ b/src/Illuminate/Contracts/Validation/InvokableRule.php @@ -12,8 +12,6 @@ interface InvokableRule /** * Run the validation rule. * - * @param string $attribute - * @param mixed $value * @param \Closure(string, ?string=): \Illuminate\Translation\PotentiallyTranslatedString $fail * @return void */ diff --git a/src/Illuminate/Contracts/Validation/Rule.php b/src/Illuminate/Contracts/Validation/Rule.php index 102cc5342a79..5019312deb35 100644 --- a/src/Illuminate/Contracts/Validation/Rule.php +++ b/src/Illuminate/Contracts/Validation/Rule.php @@ -11,7 +11,6 @@ interface Rule * Determine if the validation rule passes. * * @param string $attribute - * @param mixed $value * @return bool */ public function passes($attribute, $value); diff --git a/src/Illuminate/Contracts/Validation/ValidationRule.php b/src/Illuminate/Contracts/Validation/ValidationRule.php index 6829372b3714..d90e2b274072 100644 --- a/src/Illuminate/Contracts/Validation/ValidationRule.php +++ b/src/Illuminate/Contracts/Validation/ValidationRule.php @@ -9,10 +9,7 @@ interface ValidationRule /** * Run the validation rule. * - * @param string $attribute - * @param mixed $value * @param \Closure(string, ?string=): \Illuminate\Translation\PotentiallyTranslatedString $fail - * @return void */ public function validate(string $attribute, mixed $value, Closure $fail): void; } diff --git a/src/Illuminate/Contracts/Validation/Validator.php b/src/Illuminate/Contracts/Validation/Validator.php index f68498df8f52..acab353aee0f 100644 --- a/src/Illuminate/Contracts/Validation/Validator.php +++ b/src/Illuminate/Contracts/Validation/Validator.php @@ -43,7 +43,6 @@ public function failed(); * * @param string|array $attribute * @param string|array $rules - * @param callable $callback * @return $this */ public function sometimes($attribute, $rules, callable $callback); diff --git a/src/Illuminate/Contracts/Validation/ValidatorAwareRule.php b/src/Illuminate/Contracts/Validation/ValidatorAwareRule.php index 0baf2742bce0..ae6a41caaafe 100644 --- a/src/Illuminate/Contracts/Validation/ValidatorAwareRule.php +++ b/src/Illuminate/Contracts/Validation/ValidatorAwareRule.php @@ -9,7 +9,6 @@ interface ValidatorAwareRule /** * Set the current validator. * - * @param \Illuminate\Validation\Validator $validator * @return $this */ public function setValidator(Validator $validator); diff --git a/src/Illuminate/Contracts/View/Engine.php b/src/Illuminate/Contracts/View/Engine.php index be4795d387f8..334abc14c826 100755 --- a/src/Illuminate/Contracts/View/Engine.php +++ b/src/Illuminate/Contracts/View/Engine.php @@ -8,7 +8,6 @@ interface Engine * Get the evaluated contents of the view. * * @param string $path - * @param array $data * @return string */ public function get($path, array $data = []); diff --git a/src/Illuminate/Contracts/View/Factory.php b/src/Illuminate/Contracts/View/Factory.php index 562ee799802e..208b77c8c452 100644 --- a/src/Illuminate/Contracts/View/Factory.php +++ b/src/Illuminate/Contracts/View/Factory.php @@ -36,8 +36,6 @@ public function make($view, $data = [], $mergeData = []); * Add a piece of shared data to the environment. * * @param array|string $key - * @param mixed $value - * @return mixed */ public function share($key, $value = null); diff --git a/src/Illuminate/Contracts/View/View.php b/src/Illuminate/Contracts/View/View.php index 4b0b7f9034f2..d94985d83ddd 100644 --- a/src/Illuminate/Contracts/View/View.php +++ b/src/Illuminate/Contracts/View/View.php @@ -17,7 +17,6 @@ public function name(); * Add a piece of data to the view. * * @param string|array $key - * @param mixed $value * @return $this */ public function with($key, $value = null); diff --git a/src/Illuminate/Cookie/CookieJar.php b/src/Illuminate/Cookie/CookieJar.php index 9eedc7de0f71..65369b74beb8 100755 --- a/src/Illuminate/Cookie/CookieJar.php +++ b/src/Illuminate/Cookie/CookieJar.php @@ -117,7 +117,6 @@ public function hasQueued($key, $path = null) * Get a queued cookie instance. * * @param string $key - * @param mixed $default * @param string|null $path * @return \Symfony\Component\HttpFoundation\Cookie|null */ @@ -135,7 +134,6 @@ public function queued($key, $default = null, $path = null) /** * Queue a cookie to send with the next response. * - * @param mixed ...$parameters * @return void */ public function queue(...$parameters) diff --git a/src/Illuminate/Cookie/CookieValuePrefix.php b/src/Illuminate/Cookie/CookieValuePrefix.php index 4e7206685e87..b5f895d80643 100644 --- a/src/Illuminate/Cookie/CookieValuePrefix.php +++ b/src/Illuminate/Cookie/CookieValuePrefix.php @@ -32,7 +32,6 @@ public static function remove($cookieValue) * * @param string $cookieName * @param string $cookieValue - * @param array $keys * @return string|null */ public static function validate($cookieName, $cookieValue, array $keys) diff --git a/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php b/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php index 40ab67b5dce5..e87b40cd935d 100644 --- a/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php +++ b/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php @@ -16,8 +16,6 @@ class AddQueuedCookiesToResponse /** * Create a new CookieQueue instance. - * - * @param \Illuminate\Contracts\Cookie\QueueingFactory $cookies */ public function __construct(CookieJar $cookies) { @@ -28,8 +26,6 @@ public function __construct(CookieJar $cookies) * Handle an incoming request. * * @param \Illuminate\Http\Request $request - * @param \Closure $next - * @return mixed */ public function handle($request, Closure $next) { diff --git a/src/Illuminate/Cookie/Middleware/EncryptCookies.php b/src/Illuminate/Cookie/Middleware/EncryptCookies.php index 40146e38d34c..1c3897500a2f 100644 --- a/src/Illuminate/Cookie/Middleware/EncryptCookies.php +++ b/src/Illuminate/Cookie/Middleware/EncryptCookies.php @@ -43,8 +43,6 @@ class EncryptCookies /** * Create a new CookieGuard instance. - * - * @param \Illuminate\Contracts\Encryption\Encrypter $encrypter */ public function __construct(EncrypterContract $encrypter) { @@ -66,7 +64,6 @@ public function disableFor($name) * Handle an incoming request. * * @param \Illuminate\Http\Request $request - * @param \Closure $next * @return \Symfony\Component\HttpFoundation\Response */ public function handle($request, Closure $next) @@ -77,7 +74,6 @@ public function handle($request, Closure $next) /** * Decrypt the cookies on the request. * - * @param \Symfony\Component\HttpFoundation\Request $request * @return \Symfony\Component\HttpFoundation\Request */ protected function decrypt(Request $request) @@ -102,7 +98,6 @@ protected function decrypt(Request $request) /** * Validate and remove the cookie value prefix from the value. * - * @param string $key * @param string $value * @return string|array|null */ @@ -116,8 +111,6 @@ protected function validateValue(string $key, $value) /** * Validate and remove the cookie value prefix from all values of an array. * - * @param string $key - * @param array $value * @return array */ protected function validateArray(string $key, array $value) @@ -148,7 +141,6 @@ protected function decryptCookie($name, $cookie) /** * Decrypt an array based cookie. * - * @param array $cookie * @return array */ protected function decryptArray(array $cookie) @@ -171,7 +163,6 @@ protected function decryptArray(array $cookie) /** * Encrypt the cookies on an outgoing response. * - * @param \Symfony\Component\HttpFoundation\Response $response * @return \Symfony\Component\HttpFoundation\Response */ protected function encrypt(Response $response) @@ -196,8 +187,6 @@ protected function encrypt(Response $response) /** * Duplicate a cookie with a new value. * - * @param \Symfony\Component\HttpFoundation\Cookie $cookie - * @param mixed $value * @return \Symfony\Component\HttpFoundation\Cookie */ protected function duplicate(Cookie $cookie, $value) diff --git a/src/Illuminate/Database/Capsule/Manager.php b/src/Illuminate/Database/Capsule/Manager.php index ddcc85dcf7a0..b4711a41dc70 100755 --- a/src/Illuminate/Database/Capsule/Manager.php +++ b/src/Illuminate/Database/Capsule/Manager.php @@ -23,8 +23,6 @@ class Manager /** * Create a new database capsule manager. - * - * @param \Illuminate\Container\Container|null $container */ public function __construct(?Container $container = null) { @@ -111,7 +109,6 @@ public function getConnection($name = null) /** * Register a connection with the manager. * - * @param array $config * @param string $name * @return void */ @@ -179,7 +176,6 @@ public function getEventDispatcher() /** * Set the event dispatcher instance to be used by connections. * - * @param \Illuminate\Contracts\Events\Dispatcher $dispatcher * @return void */ public function setEventDispatcher(Dispatcher $dispatcher) @@ -192,7 +188,6 @@ public function setEventDispatcher(Dispatcher $dispatcher) * * @param string $method * @param array $parameters - * @return mixed */ public static function __callStatic($method, $parameters) { diff --git a/src/Illuminate/Database/Concerns/BuildsQueries.php b/src/Illuminate/Database/Concerns/BuildsQueries.php index c73a1bab2e11..d6db95d6097f 100644 --- a/src/Illuminate/Database/Concerns/BuildsQueries.php +++ b/src/Illuminate/Database/Concerns/BuildsQueries.php @@ -513,7 +513,6 @@ protected function paginateUsingCursor($perPage, $columns = ['*'], $cursorName = * Get the original column name of the given column, without any aliasing. * * @param \Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder<*> $builder - * @param string $parameter * @return string */ protected function getOriginalColumnNameForCursorPagination($builder, string $parameter) diff --git a/src/Illuminate/Database/Concerns/ManagesTransactions.php b/src/Illuminate/Database/Concerns/ManagesTransactions.php index afb1513fb400..3064929aac03 100644 --- a/src/Illuminate/Database/Concerns/ManagesTransactions.php +++ b/src/Illuminate/Database/Concerns/ManagesTransactions.php @@ -79,7 +79,6 @@ public function transaction(Closure $callback, $attempts = 1) /** * Handle an exception encountered when running a transacted statement. * - * @param \Throwable $e * @param int $currentAttempt * @param int $maxAttempts * @return void @@ -178,7 +177,6 @@ protected function createSavepoint() /** * Handle an exception from a transaction beginning. * - * @param \Throwable $e * @return void * * @throws \Throwable @@ -223,7 +221,6 @@ public function commit() /** * Handle an exception encountered when committing a transaction. * - * @param \Throwable $e * @param int $currentAttempt * @param int $maxAttempts * @return void @@ -310,7 +307,6 @@ protected function performRollBack($toLevel) /** * Handle an exception from a rollback. * - * @param \Throwable $e * @return void * * @throws \Throwable diff --git a/src/Illuminate/Database/ConcurrencyErrorDetector.php b/src/Illuminate/Database/ConcurrencyErrorDetector.php index 0b388111bb65..80cf9313a3bc 100644 --- a/src/Illuminate/Database/ConcurrencyErrorDetector.php +++ b/src/Illuminate/Database/ConcurrencyErrorDetector.php @@ -11,9 +11,6 @@ class ConcurrencyErrorDetector implements ConcurrencyErrorDetectorContract { /** * Determine if the given exception was caused by a concurrency error such as a deadlock or serialization failure. - * - * @param \Throwable $e - * @return bool */ public function causedByConcurrencyError(Throwable $e): bool { diff --git a/src/Illuminate/Database/Connection.php b/src/Illuminate/Database/Connection.php index 4e09d21ee599..10381a2c89f6 100755 --- a/src/Illuminate/Database/Connection.php +++ b/src/Illuminate/Database/Connection.php @@ -209,7 +209,6 @@ class Connection implements ConnectionInterface * @param \PDO|(\Closure(): \PDO) $pdo * @param string $database * @param string $tablePrefix - * @param array $config */ public function __construct($pdo, $database = '', $tablePrefix = '', array $config = []) { @@ -336,7 +335,6 @@ public function query() * @param string $query * @param array $bindings * @param bool $useReadPdo - * @return mixed */ public function selectOne($query, $bindings = [], $useReadPdo = true) { @@ -351,7 +349,6 @@ public function selectOne($query, $bindings = [], $useReadPdo = true) * @param string $query * @param array $bindings * @param bool $useReadPdo - * @return mixed * * @throws \Illuminate\Database\MultipleColumnsSelectedException */ @@ -488,7 +485,6 @@ public function cursor($query, $bindings = [], $useReadPdo = true) /** * Configure the PDO prepared statement. * - * @param \PDOStatement $statement * @return \PDOStatement */ protected function prepared(PDOStatement $statement) @@ -659,9 +655,6 @@ public function pretend(Closure $callback) /** * Execute the given callback without "pretending". - * - * @param \Closure $callback - * @return mixed */ public function withoutPretending(Closure $callback) { @@ -730,7 +723,6 @@ public function bindValues($statement, $bindings) /** * Prepare the query bindings for execution. * - * @param array $bindings * @return array */ public function prepareBindings(array $bindings) @@ -756,8 +748,6 @@ public function prepareBindings(array $bindings) * * @param string $query * @param array $bindings - * @param \Closure $callback - * @return mixed * * @throws \Illuminate\Database\QueryException */ @@ -797,8 +787,6 @@ protected function run($query, $bindings, Closure $callback) * * @param string $query * @param array $bindings - * @param \Closure $callback - * @return mixed * * @throws \Illuminate\Database\QueryException */ @@ -830,7 +818,6 @@ protected function runQueryCallback($query, $bindings, Closure $callback) /** * Determine if the given database exception was caused by a unique constraint violation. * - * @param \Exception $exception * @return bool */ protected function isUniqueConstraintError(Exception $exception) @@ -940,11 +927,8 @@ public function resetTotalQueryDuration() /** * Handle a query exception. * - * @param \Illuminate\Database\QueryException $e * @param string $query * @param array $bindings - * @param \Closure $callback - * @return mixed * * @throws \Illuminate\Database\QueryException */ @@ -962,11 +946,8 @@ protected function handleQueryException(QueryException $e, $query, $bindings, Cl /** * Handle a query exception that occurred during query execution. * - * @param \Illuminate\Database\QueryException $e * @param string $query * @param array $bindings - * @param \Closure $callback - * @return mixed * * @throws \Illuminate\Database\QueryException */ @@ -1022,7 +1003,6 @@ public function disconnect() /** * Register a hook to be run just before a database transaction is started. * - * @param \Closure $callback * @return $this */ public function beforeStartingTransaction(Closure $callback) @@ -1035,7 +1015,6 @@ public function beforeStartingTransaction(Closure $callback) /** * Register a hook to be run just before a database query is executed. * - * @param \Closure $callback * @return $this */ public function beforeExecuting(Closure $callback) @@ -1048,7 +1027,6 @@ public function beforeExecuting(Closure $callback) /** * Register a database query listener with the connection. * - * @param \Closure $callback * @return void */ public function listen(Closure $callback) @@ -1076,7 +1054,6 @@ protected function fireConnectionEvent($event) /** * Fire the given event if possible. * - * @param mixed $event * @return void */ protected function event($event) @@ -1087,7 +1064,6 @@ protected function event($event) /** * Get a new raw query expression. * - * @param mixed $value * @return \Illuminate\Contracts\Database\Query\Expression */ public function raw($value) @@ -1186,7 +1162,6 @@ public function recordsHaveBeenModified($value = true) /** * Set the record modification state. * - * @param bool $value * @return $this */ public function setRecordModificationState(bool $value) @@ -1341,7 +1316,6 @@ public function getNameWithReadWriteType() * Get an option from the configuration options. * * @param string|null $option - * @return mixed */ public function getConfig($option = null) { @@ -1381,7 +1355,6 @@ public function getQueryGrammar() /** * Set the query grammar used by the connection. * - * @param \Illuminate\Database\Query\Grammars\Grammar $grammar * @return $this */ public function setQueryGrammar(Query\Grammars\Grammar $grammar) @@ -1404,7 +1377,6 @@ public function getSchemaGrammar() /** * Set the schema grammar used by the connection. * - * @param \Illuminate\Database\Schema\Grammars\Grammar $grammar * @return $this */ public function setSchemaGrammar(Schema\Grammars\Grammar $grammar) @@ -1427,7 +1399,6 @@ public function getPostProcessor() /** * Set the query post processor used by the connection. * - * @param \Illuminate\Database\Query\Processors\Processor $processor * @return $this */ public function setPostProcessor(Processor $processor) @@ -1450,7 +1421,6 @@ public function getEventDispatcher() /** * Set the event dispatcher instance on the connection. * - * @param \Illuminate\Contracts\Events\Dispatcher $events * @return $this */ public function setEventDispatcher(Dispatcher $events) @@ -1640,9 +1610,6 @@ public function setTablePrefix($prefix) /** * Execute the given callback without table prefix. - * - * @param \Closure $callback - * @return mixed */ public function withoutTablePrefix(Closure $callback): mixed { @@ -1659,8 +1626,6 @@ public function withoutTablePrefix(Closure $callback): mixed /** * Get the server version for the connection. - * - * @return string */ public function getServerVersion(): string { @@ -1671,7 +1636,6 @@ public function getServerVersion(): string * Register a connection resolver. * * @param string $driver - * @param \Closure $callback * @return void */ public static function resolverFor($driver, Closure $callback) diff --git a/src/Illuminate/Database/ConnectionInterface.php b/src/Illuminate/Database/ConnectionInterface.php index b28c63f9c25b..0cbf02b9d88b 100755 --- a/src/Illuminate/Database/ConnectionInterface.php +++ b/src/Illuminate/Database/ConnectionInterface.php @@ -18,7 +18,6 @@ public function table($table, $as = null); /** * Get a new raw query expression. * - * @param mixed $value * @return \Illuminate\Contracts\Database\Query\Expression */ public function raw($value); @@ -29,7 +28,6 @@ public function raw($value); * @param string $query * @param array $bindings * @param bool $useReadPdo - * @return mixed */ public function selectOne($query, $bindings = [], $useReadPdo = true); @@ -39,7 +37,6 @@ public function selectOne($query, $bindings = [], $useReadPdo = true); * @param string $query * @param array $bindings * @param bool $useReadPdo - * @return mixed * * @throws \Illuminate\Database\MultipleColumnsSelectedException */ @@ -121,7 +118,6 @@ public function unprepared($query); /** * Prepare the query bindings for execution. * - * @param array $bindings * @return array */ public function prepareBindings(array $bindings); @@ -129,9 +125,7 @@ public function prepareBindings(array $bindings); /** * Execute a Closure within a transaction. * - * @param \Closure $callback * @param int $attempts - * @return mixed * * @throws \Throwable */ @@ -168,7 +162,6 @@ public function transactionLevel(); /** * Execute the given callback in "dry run" mode. * - * @param \Closure $callback * @return array */ public function pretend(Closure $callback); diff --git a/src/Illuminate/Database/ConnectionResolver.php b/src/Illuminate/Database/ConnectionResolver.php index b7b6279e1fc5..83d246b4c852 100755 --- a/src/Illuminate/Database/ConnectionResolver.php +++ b/src/Illuminate/Database/ConnectionResolver.php @@ -49,7 +49,6 @@ public function connection($name = null) * Add a connection to the resolver. * * @param string $name - * @param \Illuminate\Database\ConnectionInterface $connection * @return void */ public function addConnection($name, ConnectionInterface $connection) diff --git a/src/Illuminate/Database/Connectors/ConnectionFactory.php b/src/Illuminate/Database/Connectors/ConnectionFactory.php index 8660921633a0..15328ff9b2ed 100755 --- a/src/Illuminate/Database/Connectors/ConnectionFactory.php +++ b/src/Illuminate/Database/Connectors/ConnectionFactory.php @@ -24,8 +24,6 @@ class ConnectionFactory /** * Create a new connection factory instance. - * - * @param \Illuminate\Contracts\Container\Container $container */ public function __construct(Container $container) { @@ -35,7 +33,6 @@ public function __construct(Container $container) /** * Establish a PDO connection based on the configuration. * - * @param array $config * @param string|null $name * @return \Illuminate\Database\Connection */ @@ -53,7 +50,6 @@ public function make(array $config, $name = null) /** * Parse and prepare the database configuration. * - * @param array $config * @param string $name * @return array */ @@ -65,7 +61,6 @@ protected function parseConfig(array $config, $name) /** * Create a single database connection instance. * - * @param array $config * @return \Illuminate\Database\Connection */ protected function createSingleConnection(array $config) @@ -80,7 +75,6 @@ protected function createSingleConnection(array $config) /** * Create a read / write database connection instance. * - * @param array $config * @return \Illuminate\Database\Connection */ protected function createReadWriteConnection(array $config) @@ -93,7 +87,6 @@ protected function createReadWriteConnection(array $config) /** * Create a new PDO instance for reading. * - * @param array $config * @return \Closure */ protected function createReadPdo(array $config) @@ -104,7 +97,6 @@ protected function createReadPdo(array $config) /** * Get the read configuration for a read / write connection. * - * @param array $config * @return array */ protected function getReadConfig(array $config) @@ -117,7 +109,6 @@ protected function getReadConfig(array $config) /** * Get the write configuration for a read / write connection. * - * @param array $config * @return array */ protected function getWriteConfig(array $config) @@ -130,7 +121,6 @@ protected function getWriteConfig(array $config) /** * Get a read / write level configuration. * - * @param array $config * @param string $type * @return array */ @@ -144,8 +134,6 @@ protected function getReadWriteConfig(array $config, $type) /** * Merge a configuration for a read / write connection. * - * @param array $config - * @param array $merge * @return array */ protected function mergeReadWriteConfig(array $config, array $merge) @@ -156,7 +144,6 @@ protected function mergeReadWriteConfig(array $config, array $merge) /** * Create a new Closure that resolves to a PDO instance. * - * @param array $config * @return \Closure */ protected function createPdoResolver(array $config) @@ -169,7 +156,6 @@ protected function createPdoResolver(array $config) /** * Create a new Closure that resolves to a PDO instance with a specific host or an array of hosts. * - * @param array $config * @return \Closure * * @throws \PDOException @@ -196,7 +182,6 @@ protected function createPdoResolverWithHosts(array $config) /** * Parse the hosts configuration item into an array. * - * @param array $config * @return array * * @throws \InvalidArgumentException @@ -215,7 +200,6 @@ protected function parseHosts(array $config) /** * Create a new Closure that resolves to a PDO instance where there is no configured host. * - * @param array $config * @return \Closure */ protected function createPdoResolverWithoutHosts(array $config) @@ -226,7 +210,6 @@ protected function createPdoResolverWithoutHosts(array $config) /** * Create a connector instance based on the configuration. * - * @param array $config * @return \Illuminate\Database\Connectors\ConnectorInterface * * @throws \InvalidArgumentException @@ -258,7 +241,6 @@ public function createConnector(array $config) * @param \PDO|\Closure $connection * @param string $database * @param string $prefix - * @param array $config * @return \Illuminate\Database\Connection * * @throws \InvalidArgumentException diff --git a/src/Illuminate/Database/Connectors/Connector.php b/src/Illuminate/Database/Connectors/Connector.php index a40bd2c6b861..12fd53c1e6bf 100755 --- a/src/Illuminate/Database/Connectors/Connector.php +++ b/src/Illuminate/Database/Connectors/Connector.php @@ -28,8 +28,6 @@ class Connector * Create a new PDO connection. * * @param string $dsn - * @param array $config - * @param array $options * @return \PDO * * @throws \Exception @@ -70,7 +68,6 @@ protected function createPdoConnection($dsn, $username, #[\SensitiveParameter] $ /** * Handle an exception that occurred during connect execution. * - * @param \Throwable $e * @param string $dsn * @param string $username * @param string $password @@ -91,7 +88,6 @@ protected function tryAgainIfCausedByLostConnection(Throwable $e, $dsn, $usernam /** * Get the PDO options based on the configuration. * - * @param array $config * @return array */ public function getOptions(array $config) @@ -114,7 +110,6 @@ public function getDefaultOptions() /** * Set the default PDO connection options. * - * @param array $options * @return void */ public function setDefaultOptions(array $options) diff --git a/src/Illuminate/Database/Connectors/ConnectorInterface.php b/src/Illuminate/Database/Connectors/ConnectorInterface.php index 08597ac0d0af..3250362684aa 100755 --- a/src/Illuminate/Database/Connectors/ConnectorInterface.php +++ b/src/Illuminate/Database/Connectors/ConnectorInterface.php @@ -7,7 +7,6 @@ interface ConnectorInterface /** * Establish a database connection. * - * @param array $config * @return \PDO */ public function connect(array $config); diff --git a/src/Illuminate/Database/Connectors/MariaDbConnector.php b/src/Illuminate/Database/Connectors/MariaDbConnector.php index b7203f87ae2f..c92d956bb57b 100755 --- a/src/Illuminate/Database/Connectors/MariaDbConnector.php +++ b/src/Illuminate/Database/Connectors/MariaDbConnector.php @@ -9,8 +9,6 @@ class MariaDbConnector extends MySqlConnector /** * Get the sql_mode value. * - * @param \PDO $connection - * @param array $config * @return string|null */ protected function getSqlMode(PDO $connection, array $config) diff --git a/src/Illuminate/Database/Connectors/MySqlConnector.php b/src/Illuminate/Database/Connectors/MySqlConnector.php index fc55b801407f..2151f4ace31c 100755 --- a/src/Illuminate/Database/Connectors/MySqlConnector.php +++ b/src/Illuminate/Database/Connectors/MySqlConnector.php @@ -9,7 +9,6 @@ class MySqlConnector extends Connector implements ConnectorInterface /** * Establish a database connection. * - * @param array $config * @return \PDO */ public function connect(array $config) @@ -39,7 +38,6 @@ public function connect(array $config) * * Chooses socket or host/port based on the 'unix_socket' config value. * - * @param array $config * @return string */ protected function getDsn(array $config) @@ -52,7 +50,6 @@ protected function getDsn(array $config) /** * Determine if the given configuration array has a UNIX socket value. * - * @param array $config * @return bool */ protected function hasSocket(array $config) @@ -63,7 +60,6 @@ protected function hasSocket(array $config) /** * Get the DSN string for a socket configuration. * - * @param array $config * @return string */ protected function getSocketDsn(array $config) @@ -74,7 +70,6 @@ protected function getSocketDsn(array $config) /** * Get the DSN string for a host / port configuration. * - * @param array $config * @return string */ protected function getHostDsn(array $config) @@ -87,8 +82,6 @@ protected function getHostDsn(array $config) /** * Configure the given PDO connection. * - * @param \PDO $connection - * @param array $config * @return void */ protected function configureConnection(PDO $connection, array $config) @@ -125,8 +118,6 @@ protected function configureConnection(PDO $connection, array $config) /** * Get the sql_mode value. * - * @param \PDO $connection - * @param array $config * @return string|null */ protected function getSqlMode(PDO $connection, array $config) diff --git a/src/Illuminate/Database/Connectors/PostgresConnector.php b/src/Illuminate/Database/Connectors/PostgresConnector.php index 31d2ff4732ca..2bf08e952984 100755 --- a/src/Illuminate/Database/Connectors/PostgresConnector.php +++ b/src/Illuminate/Database/Connectors/PostgresConnector.php @@ -24,7 +24,6 @@ class PostgresConnector extends Connector implements ConnectorInterface /** * Establish a database connection. * - * @param array $config * @return \PDO */ public function connect(array $config) @@ -53,7 +52,6 @@ public function connect(array $config) /** * Create a DSN string from a configuration. * - * @param array $config * @return string */ protected function getDsn(array $config) @@ -98,7 +96,6 @@ protected function getDsn(array $config) * Add the SSL options to the DSN. * * @param string $dsn - * @param array $config * @return string */ protected function addSslOptions($dsn, array $config) @@ -116,7 +113,6 @@ protected function addSslOptions($dsn, array $config) * Set the connection transaction isolation level. * * @param \PDO $connection - * @param array $config * @return void */ protected function configureIsolationLevel($connection, array $config) @@ -130,7 +126,6 @@ protected function configureIsolationLevel($connection, array $config) * Set the timezone on the connection. * * @param \PDO $connection - * @param array $config * @return void */ protected function configureTimezone($connection, array $config) @@ -175,7 +170,6 @@ protected function quoteSearchPath($searchPath) * Configure the synchronous_commit setting. * * @param \PDO $connection - * @param array $config * @return void */ protected function configureSynchronousCommit($connection, array $config) diff --git a/src/Illuminate/Database/Connectors/SQLiteConnector.php b/src/Illuminate/Database/Connectors/SQLiteConnector.php index 2e2ed8758919..21fd7b1a9f23 100755 --- a/src/Illuminate/Database/Connectors/SQLiteConnector.php +++ b/src/Illuminate/Database/Connectors/SQLiteConnector.php @@ -9,7 +9,6 @@ class SQLiteConnector extends Connector implements ConnectorInterface /** * Establish a database connection. * - * @param array $config * @return \PDO */ public function connect(array $config) @@ -31,8 +30,6 @@ public function connect(array $config) /** * Get the absolute database path. * - * @param string $path - * @return string * * @throws \Illuminate\Database\SQLiteDatabaseDoesNotExistException */ @@ -66,8 +63,6 @@ protected function parseDatabasePath(string $path): string * Enable or disable foreign key constraints if configured. * * @param \PDO $connection - * @param array $config - * @return void */ protected function configureForeignKeyConstraints($connection, array $config): void { @@ -84,8 +79,6 @@ protected function configureForeignKeyConstraints($connection, array $config): v * Set the busy timeout if configured. * * @param \PDO $connection - * @param array $config - * @return void */ protected function configureBusyTimeout($connection, array $config): void { @@ -100,8 +93,6 @@ protected function configureBusyTimeout($connection, array $config): void * Set the journal mode if configured. * * @param \PDO $connection - * @param array $config - * @return void */ protected function configureJournalMode($connection, array $config): void { @@ -116,8 +107,6 @@ protected function configureJournalMode($connection, array $config): void * Set the synchronous mode if configured. * * @param \PDO $connection - * @param array $config - * @return void */ protected function configureSynchronous($connection, array $config): void { diff --git a/src/Illuminate/Database/Connectors/SqlServerConnector.php b/src/Illuminate/Database/Connectors/SqlServerConnector.php index 14cb72dbbf41..24f7cf7b6ec2 100755 --- a/src/Illuminate/Database/Connectors/SqlServerConnector.php +++ b/src/Illuminate/Database/Connectors/SqlServerConnector.php @@ -22,7 +22,6 @@ class SqlServerConnector extends Connector implements ConnectorInterface /** * Establish a database connection. * - * @param array $config * @return \PDO */ public function connect(array $config) @@ -42,7 +41,6 @@ public function connect(array $config) * https://learn.microsoft.com/en-us/sql/t-sql/statements/set-transaction-isolation-level-transact-sql * * @param \PDO $connection - * @param array $config * @return void */ protected function configureIsolationLevel($connection, array $config) @@ -59,7 +57,6 @@ protected function configureIsolationLevel($connection, array $config) /** * Create a DSN string from a configuration. * - * @param array $config * @return string */ protected function getDsn(array $config) @@ -81,7 +78,6 @@ protected function getDsn(array $config) /** * Determine if the database configuration prefers ODBC. * - * @param array $config * @return bool */ protected function prefersOdbc(array $config) @@ -93,7 +89,6 @@ protected function prefersOdbc(array $config) /** * Get the DSN string for a DbLib connection. * - * @param array $config * @return string */ protected function getDblibDsn(array $config) @@ -107,7 +102,6 @@ protected function getDblibDsn(array $config) /** * Get the DSN string for an ODBC connection. * - * @param array $config * @return string */ protected function getOdbcDsn(array $config) @@ -120,7 +114,6 @@ protected function getOdbcDsn(array $config) /** * Get the DSN string for a SqlSrv connection. * - * @param array $config * @return string */ protected function getSqlSrvDsn(array $config) @@ -196,7 +189,6 @@ protected function getSqlSrvDsn(array $config) * Build a connection string from the given arguments. * * @param string $driver - * @param array $arguments * @return string */ protected function buildConnectString($driver, array $arguments) @@ -209,7 +201,6 @@ protected function buildConnectString($driver, array $arguments) /** * Build a host string from the given configuration. * - * @param array $config * @param string $separator * @return string */ diff --git a/src/Illuminate/Database/Console/DatabaseInspectionCommand.php b/src/Illuminate/Database/Console/DatabaseInspectionCommand.php index 8faab04147ab..4fb1121c5061 100644 --- a/src/Illuminate/Database/Console/DatabaseInspectionCommand.php +++ b/src/Illuminate/Database/Console/DatabaseInspectionCommand.php @@ -11,7 +11,6 @@ abstract class DatabaseInspectionCommand extends Command /** * Get a human-readable name for the given connection. * - * @param \Illuminate\Database\ConnectionInterface $connection * @param string $database * @return string * @@ -25,7 +24,6 @@ protected function getConnectionName(ConnectionInterface $connection, $database) /** * Get the number of open connections for a database. * - * @param \Illuminate\Database\ConnectionInterface $connection * @return int|null * * @deprecated diff --git a/src/Illuminate/Database/Console/DbCommand.php b/src/Illuminate/Database/Console/DbCommand.php index 30176073558d..a71aa4650d5c 100644 --- a/src/Illuminate/Database/Console/DbCommand.php +++ b/src/Illuminate/Database/Console/DbCommand.php @@ -105,7 +105,6 @@ public function getConnection() /** * Get the arguments for the database client command. * - * @param array $connection * @return array */ public function commandArguments(array $connection) @@ -118,7 +117,6 @@ public function commandArguments(array $connection) /** * Get the environment variables for the database client command. * - * @param array $connection * @return array|null */ public function commandEnvironment(array $connection) @@ -135,7 +133,6 @@ public function commandEnvironment(array $connection) /** * Get the database client command to run. * - * @param array $connection * @return string */ public function getCommand(array $connection) @@ -152,7 +149,6 @@ public function getCommand(array $connection) /** * Get the arguments for the MySQL CLI. * - * @param array $connection * @return array */ protected function getMysqlArguments(array $connection) @@ -177,7 +173,6 @@ protected function getMysqlArguments(array $connection) /** * Get the arguments for the MariaDB CLI. * - * @param array $connection * @return array */ protected function getMariaDbArguments(array $connection) @@ -188,7 +183,6 @@ protected function getMariaDbArguments(array $connection) /** * Get the arguments for the Postgres CLI. * - * @param array $connection * @return array */ protected function getPgsqlArguments(array $connection) @@ -199,7 +193,6 @@ protected function getPgsqlArguments(array $connection) /** * Get the arguments for the SQLite CLI. * - * @param array $connection * @return array */ protected function getSqliteArguments(array $connection) @@ -210,7 +203,6 @@ protected function getSqliteArguments(array $connection) /** * Get the arguments for the SQL Server CLI. * - * @param array $connection * @return array */ protected function getSqlsrvArguments(array $connection) @@ -228,7 +220,6 @@ protected function getSqlsrvArguments(array $connection) /** * Get the environment variables for the Postgres CLI. * - * @param array $connection * @return array|null */ protected function getPgsqlEnvironment(array $connection) @@ -244,8 +235,6 @@ protected function getPgsqlEnvironment(array $connection) /** * Get the optional arguments based on the connection configuration. * - * @param array $args - * @param array $connection * @return array */ protected function getOptionalArguments(array $args, array $connection) diff --git a/src/Illuminate/Database/Console/DumpCommand.php b/src/Illuminate/Database/Console/DumpCommand.php index 0c038939f0de..91a73f4e1302 100644 --- a/src/Illuminate/Database/Console/DumpCommand.php +++ b/src/Illuminate/Database/Console/DumpCommand.php @@ -35,8 +35,6 @@ class DumpCommand extends Command /** * Execute the console command. * - * @param \Illuminate\Database\ConnectionResolverInterface $connections - * @param \Illuminate\Contracts\Events\Dispatcher $dispatcher * @return void */ public function handle(ConnectionResolverInterface $connections, Dispatcher $dispatcher) @@ -66,9 +64,6 @@ public function handle(ConnectionResolverInterface $connections, Dispatcher $dis /** * Create a schema state instance for the given connection. - * - * @param \Illuminate\Database\Connection $connection - * @return mixed */ protected function schemaState(Connection $connection) { @@ -85,8 +80,6 @@ protected function schemaState(Connection $connection) /** * Get the path that the dump should be written to. - * - * @param \Illuminate\Database\Connection $connection */ protected function path(Connection $connection) { diff --git a/src/Illuminate/Database/Console/Migrations/FreshCommand.php b/src/Illuminate/Database/Console/Migrations/FreshCommand.php index 723d3c2298a4..aea9ed6691e9 100644 --- a/src/Illuminate/Database/Console/Migrations/FreshCommand.php +++ b/src/Illuminate/Database/Console/Migrations/FreshCommand.php @@ -39,8 +39,6 @@ class FreshCommand extends Command /** * Create a new fresh command instance. - * - * @param \Illuminate\Database\Migrations\Migrator $migrator */ public function __construct(Migrator $migrator) { diff --git a/src/Illuminate/Database/Console/Migrations/InstallCommand.php b/src/Illuminate/Database/Console/Migrations/InstallCommand.php index b89cd4b4e86f..dd7e77379751 100755 --- a/src/Illuminate/Database/Console/Migrations/InstallCommand.php +++ b/src/Illuminate/Database/Console/Migrations/InstallCommand.php @@ -33,8 +33,6 @@ class InstallCommand extends Command /** * Create a new migration install command instance. - * - * @param \Illuminate\Database\Migrations\MigrationRepositoryInterface $repository */ public function __construct(MigrationRepositoryInterface $repository) { diff --git a/src/Illuminate/Database/Console/Migrations/MigrateCommand.php b/src/Illuminate/Database/Console/Migrations/MigrateCommand.php index 497836c65a49..322070217dc3 100755 --- a/src/Illuminate/Database/Console/Migrations/MigrateCommand.php +++ b/src/Illuminate/Database/Console/Migrations/MigrateCommand.php @@ -61,9 +61,6 @@ class MigrateCommand extends BaseCommand implements Isolatable /** * Create a new migration command instance. - * - * @param \Illuminate\Database\Migrations\Migrator $migrator - * @param \Illuminate\Contracts\Events\Dispatcher $dispatcher */ public function __construct(Migrator $migrator, Dispatcher $dispatcher) { @@ -173,7 +170,6 @@ protected function repositoryExists() /** * Attempt to create the database if it is missing. * - * @param \Throwable $e * @return bool */ protected function handleMissingDatabase(Throwable $e) diff --git a/src/Illuminate/Database/Console/Migrations/MigrateMakeCommand.php b/src/Illuminate/Database/Console/Migrations/MigrateMakeCommand.php index ac5077f58d79..c8270742623a 100644 --- a/src/Illuminate/Database/Console/Migrations/MigrateMakeCommand.php +++ b/src/Illuminate/Database/Console/Migrations/MigrateMakeCommand.php @@ -48,9 +48,6 @@ class MigrateMakeCommand extends BaseCommand implements PromptsForMissingInput /** * Create a new migration install command instance. - * - * @param \Illuminate\Database\Migrations\MigrationCreator $creator - * @param \Illuminate\Support\Composer $composer */ public function __construct(MigrationCreator $creator, Composer $composer) { diff --git a/src/Illuminate/Database/Console/Migrations/ResetCommand.php b/src/Illuminate/Database/Console/Migrations/ResetCommand.php index 787801bab258..54ae65f7c362 100755 --- a/src/Illuminate/Database/Console/Migrations/ResetCommand.php +++ b/src/Illuminate/Database/Console/Migrations/ResetCommand.php @@ -37,8 +37,6 @@ class ResetCommand extends BaseCommand /** * Create a new migration rollback command instance. - * - * @param \Illuminate\Database\Migrations\Migrator $migrator */ public function __construct(Migrator $migrator) { diff --git a/src/Illuminate/Database/Console/Migrations/RollbackCommand.php b/src/Illuminate/Database/Console/Migrations/RollbackCommand.php index 9c3543ec5bfe..d96862ac5086 100755 --- a/src/Illuminate/Database/Console/Migrations/RollbackCommand.php +++ b/src/Illuminate/Database/Console/Migrations/RollbackCommand.php @@ -37,8 +37,6 @@ class RollbackCommand extends BaseCommand /** * Create a new migration rollback command instance. - * - * @param \Illuminate\Database\Migrations\Migrator $migrator */ public function __construct(Migrator $migrator) { diff --git a/src/Illuminate/Database/Console/Migrations/StatusCommand.php b/src/Illuminate/Database/Console/Migrations/StatusCommand.php index cbb16a133c73..fd0e8d4ca413 100644 --- a/src/Illuminate/Database/Console/Migrations/StatusCommand.php +++ b/src/Illuminate/Database/Console/Migrations/StatusCommand.php @@ -34,8 +34,6 @@ class StatusCommand extends BaseCommand /** * Create a new migration rollback command instance. - * - * @param \Illuminate\Database\Migrations\Migrator $migrator */ public function __construct(Migrator $migrator) { @@ -93,8 +91,6 @@ public function handle() /** * Get the status for the given run migrations. * - * @param array $ran - * @param array $batches * @return \Illuminate\Support\Collection */ protected function getStatusFor(array $ran, array $batches) diff --git a/src/Illuminate/Database/Console/MonitorCommand.php b/src/Illuminate/Database/Console/MonitorCommand.php index 334422b6c4ae..2d2a30536fb9 100644 --- a/src/Illuminate/Database/Console/MonitorCommand.php +++ b/src/Illuminate/Database/Console/MonitorCommand.php @@ -43,9 +43,6 @@ class MonitorCommand extends DatabaseInspectionCommand /** * Create a new command instance. - * - * @param \Illuminate\Database\ConnectionResolverInterface $connection - * @param \Illuminate\Contracts\Events\Dispatcher $events */ public function __construct(ConnectionResolverInterface $connection, Dispatcher $events) { diff --git a/src/Illuminate/Database/Console/PruneCommand.php b/src/Illuminate/Database/Console/PruneCommand.php index 3c1338c8a407..2c8c81dc0b2c 100644 --- a/src/Illuminate/Database/Console/PruneCommand.php +++ b/src/Illuminate/Database/Console/PruneCommand.php @@ -39,7 +39,6 @@ class PruneCommand extends Command /** * Execute the console command. * - * @param \Illuminate\Contracts\Events\Dispatcher $events * @return void */ public function handle(Dispatcher $events) @@ -88,7 +87,6 @@ public function handle(Dispatcher $events) /** * Prune the given model. * - * @param string $model * @return void */ protected function pruneModel(string $model) @@ -184,7 +182,6 @@ protected function pretendToPrune($model) /** * Determine if the given model is prunable. * - * @param string $model * @return bool */ private function isPrunable(string $model) diff --git a/src/Illuminate/Database/Console/Seeds/SeedCommand.php b/src/Illuminate/Database/Console/Seeds/SeedCommand.php index 515ff410b30c..b1d481282d9b 100644 --- a/src/Illuminate/Database/Console/Seeds/SeedCommand.php +++ b/src/Illuminate/Database/Console/Seeds/SeedCommand.php @@ -39,8 +39,6 @@ class SeedCommand extends Command /** * Create a new database seed command instance. - * - * @param \Illuminate\Database\ConnectionResolverInterface $resolver */ public function __construct(Resolver $resolver) { diff --git a/src/Illuminate/Database/Console/Seeds/WithoutModelEvents.php b/src/Illuminate/Database/Console/Seeds/WithoutModelEvents.php index acd9ec3f207b..a2cb0aa60172 100644 --- a/src/Illuminate/Database/Console/Seeds/WithoutModelEvents.php +++ b/src/Illuminate/Database/Console/Seeds/WithoutModelEvents.php @@ -9,7 +9,6 @@ trait WithoutModelEvents /** * Prevent model events from being dispatched by the given callback. * - * @param callable $callback * @return callable */ public function withoutModelEvents(callable $callback) diff --git a/src/Illuminate/Database/Console/ShowCommand.php b/src/Illuminate/Database/Console/ShowCommand.php index 64c80572b927..dd13954c0c66 100644 --- a/src/Illuminate/Database/Console/ShowCommand.php +++ b/src/Illuminate/Database/Console/ShowCommand.php @@ -34,7 +34,6 @@ class ShowCommand extends DatabaseInspectionCommand /** * Execute the console command. * - * @param \Illuminate\Database\ConnectionResolverInterface $connections * @return int */ public function handle(ConnectionResolverInterface $connections) @@ -70,8 +69,6 @@ public function handle(ConnectionResolverInterface $connections) /** * Get information regarding the tables within the database. * - * @param \Illuminate\Database\ConnectionInterface $connection - * @param \Illuminate\Database\Schema\Builder $schema * @return \Illuminate\Support\Collection */ protected function tables(ConnectionInterface $connection, Builder $schema) @@ -93,8 +90,6 @@ protected function tables(ConnectionInterface $connection, Builder $schema) /** * Get information regarding the views within the database. * - * @param \Illuminate\Database\ConnectionInterface $connection - * @param \Illuminate\Database\Schema\Builder $schema * @return \Illuminate\Support\Collection */ protected function views(ConnectionInterface $connection, Builder $schema) @@ -110,8 +105,6 @@ protected function views(ConnectionInterface $connection, Builder $schema) /** * Get information regarding the user-defined types within the database. * - * @param \Illuminate\Database\ConnectionInterface $connection - * @param \Illuminate\Database\Schema\Builder $schema * @return \Illuminate\Support\Collection */ protected function types(ConnectionInterface $connection, Builder $schema) @@ -128,7 +121,6 @@ protected function types(ConnectionInterface $connection, Builder $schema) /** * Render the database information. * - * @param array $data * @return void */ protected function display(array $data) @@ -139,7 +131,6 @@ protected function display(array $data) /** * Render the database information as JSON. * - * @param array $data * @return void */ protected function displayJson(array $data) @@ -150,7 +141,6 @@ protected function displayJson(array $data) /** * Render the database information formatted for the CLI. * - * @param array $data * @return void */ protected function displayForCli(array $data) diff --git a/src/Illuminate/Database/Console/TableCommand.php b/src/Illuminate/Database/Console/TableCommand.php index 94b313f57849..239796c69f61 100644 --- a/src/Illuminate/Database/Console/TableCommand.php +++ b/src/Illuminate/Database/Console/TableCommand.php @@ -100,8 +100,6 @@ function (array $table) use ($currentSchemas) { /** * Get the information regarding the table's columns. * - * @param \Illuminate\Database\Schema\Builder $schema - * @param string $table * @return \Illuminate\Support\Collection */ protected function columns(Builder $schema, string $table) @@ -134,8 +132,6 @@ protected function getAttributesForColumn($column) /** * Get the information regarding the table's indexes. * - * @param \Illuminate\Database\Schema\Builder $schema - * @param string $table * @return \Illuminate\Support\Collection */ protected function indexes(Builder $schema, string $table) @@ -166,8 +162,6 @@ protected function getAttributesForIndex($index) /** * Get the information regarding the table's foreign keys. * - * @param \Illuminate\Database\Schema\Builder $schema - * @param string $table * @return \Illuminate\Support\Collection */ protected function foreignKeys(Builder $schema, string $table) @@ -186,7 +180,6 @@ protected function foreignKeys(Builder $schema, string $table) /** * Render the table information. * - * @param array $data * @return void */ protected function display(array $data) @@ -197,7 +190,6 @@ protected function display(array $data) /** * Render the table information as JSON. * - * @param array $data * @return void */ protected function displayJson(array $data) @@ -208,7 +200,6 @@ protected function displayJson(array $data) /** * Render the table information formatted for the CLI. * - * @param array $data * @return void */ protected function displayForCli(array $data) diff --git a/src/Illuminate/Database/DatabaseManager.php b/src/Illuminate/Database/DatabaseManager.php index c5529d69cec8..94fdc929027f 100755 --- a/src/Illuminate/Database/DatabaseManager.php +++ b/src/Illuminate/Database/DatabaseManager.php @@ -70,7 +70,6 @@ class DatabaseManager implements ConnectionResolverInterface * Create a new database manager instance. * * @param \Illuminate\Contracts\Foundation\Application $app - * @param \Illuminate\Database\Connectors\ConnectionFactory $factory */ public function __construct($app, ConnectionFactory $factory) { @@ -113,7 +112,6 @@ public function connection($name = null) /** * Build a database connection instance from the given configuration. * - * @param array $config * @return \Illuminate\Database\ConnectionInterface */ public function build(array $config) @@ -128,7 +126,6 @@ public function build(array $config) /** * Calculate the dynamic connection name for an on-demand connection based on its configuration. * - * @param array $config * @return string */ public static function calculateDynamicConnectionName(array $config) @@ -141,9 +138,6 @@ public static function calculateDynamicConnectionName(array $config) /** * Get a database connection instance from the given configuration. * - * @param string $name - * @param array $config - * @param bool $force * @return \Illuminate\Database\ConnectionInterface */ public function connectUsing(string $name, array $config, bool $force = false) @@ -234,7 +228,6 @@ protected function configuration($name) /** * Prepare the database connection instance. * - * @param \Illuminate\Database\Connection $connection * @param string $type * @return \Illuminate\Database\Connection */ @@ -264,7 +257,6 @@ protected function configure(Connection $connection, $type) /** * Dispatch the ConnectionEstablished event if the event dispatcher is available. * - * @param \Illuminate\Database\Connection $connection * @return void */ protected function dispatchConnectionEstablishedEvent(Connection $connection) @@ -281,7 +273,6 @@ protected function dispatchConnectionEstablishedEvent(Connection $connection) /** * Prepare the read / write mode for database connection instance. * - * @param \Illuminate\Database\Connection $connection * @param string|null $type * @return \Illuminate\Database\Connection */ @@ -345,8 +336,6 @@ public function reconnect($name = null) * Set the default database connection for the callback execution. * * @param string $name - * @param callable $callback - * @return mixed */ public function usingConnection($name, callable $callback) { @@ -428,7 +417,6 @@ public function availableDrivers() * Register an extension connection resolver. * * @param string $name - * @param callable $resolver * @return void */ public function extend($name, callable $resolver) @@ -460,7 +448,6 @@ public function getConnections() /** * Set the database reconnector callback. * - * @param callable $reconnector * @return void */ public function setReconnector(callable $reconnector) @@ -486,7 +473,6 @@ public function setApplication($app) * * @param string $method * @param array $parameters - * @return mixed */ public function __call($method, $parameters) { diff --git a/src/Illuminate/Database/DatabaseTransactionRecord.php b/src/Illuminate/Database/DatabaseTransactionRecord.php index 08fd47132394..22650441286c 100755 --- a/src/Illuminate/Database/DatabaseTransactionRecord.php +++ b/src/Illuminate/Database/DatabaseTransactionRecord.php @@ -44,7 +44,6 @@ class DatabaseTransactionRecord * * @param string $connection * @param int $level - * @param \Illuminate\Database\DatabaseTransactionRecord|null $parent */ public function __construct($connection, $level, ?DatabaseTransactionRecord $parent = null) { diff --git a/src/Illuminate/Database/DatabaseTransactionsManager.php b/src/Illuminate/Database/DatabaseTransactionsManager.php index 9713c66d82f4..f6914baab991 100755 --- a/src/Illuminate/Database/DatabaseTransactionsManager.php +++ b/src/Illuminate/Database/DatabaseTransactionsManager.php @@ -178,7 +178,6 @@ protected function removeAllTransactionsForConnection($connection) /** * Remove all transactions that are children of the given transaction. * - * @param \Illuminate\Database\DatabaseTransactionRecord $transaction * @return void */ protected function removeCommittedTransactionsThatAreChildrenOf(DatabaseTransactionRecord $transaction) diff --git a/src/Illuminate/Database/DetectsConcurrencyErrors.php b/src/Illuminate/Database/DetectsConcurrencyErrors.php index 34659d64cd98..6b299235f618 100644 --- a/src/Illuminate/Database/DetectsConcurrencyErrors.php +++ b/src/Illuminate/Database/DetectsConcurrencyErrors.php @@ -11,7 +11,6 @@ trait DetectsConcurrencyErrors /** * Determine if the given exception was caused by a concurrency error such as a deadlock or serialization failure. * - * @param \Throwable $e * @return bool */ protected function causedByConcurrencyError(Throwable $e) diff --git a/src/Illuminate/Database/DetectsLostConnections.php b/src/Illuminate/Database/DetectsLostConnections.php index ba649afe2aab..219fd6a41aba 100644 --- a/src/Illuminate/Database/DetectsLostConnections.php +++ b/src/Illuminate/Database/DetectsLostConnections.php @@ -11,7 +11,6 @@ trait DetectsLostConnections /** * Determine if the given exception was caused by a lost connection. * - * @param \Throwable $e * @return bool */ protected function causedByLostConnection(Throwable $e) diff --git a/src/Illuminate/Database/Eloquent/Attributes/ObservedBy.php b/src/Illuminate/Database/Eloquent/Attributes/ObservedBy.php index 32a9fffc07ca..3cba72aef7c5 100644 --- a/src/Illuminate/Database/Eloquent/Attributes/ObservedBy.php +++ b/src/Illuminate/Database/Eloquent/Attributes/ObservedBy.php @@ -9,8 +9,6 @@ class ObservedBy { /** * Create a new attribute instance. - * - * @param array|string $classes */ public function __construct(public array|string $classes) { diff --git a/src/Illuminate/Database/Eloquent/Attributes/ScopedBy.php b/src/Illuminate/Database/Eloquent/Attributes/ScopedBy.php index 2b8855f8925b..2e32b18acd27 100644 --- a/src/Illuminate/Database/Eloquent/Attributes/ScopedBy.php +++ b/src/Illuminate/Database/Eloquent/Attributes/ScopedBy.php @@ -9,8 +9,6 @@ class ScopedBy { /** * Create a new attribute instance. - * - * @param array|string $classes */ public function __construct(public array|string $classes) { diff --git a/src/Illuminate/Database/Eloquent/BroadcastableModelEventOccurred.php b/src/Illuminate/Database/Eloquent/BroadcastableModelEventOccurred.php index 8bd028032e67..6ecbe85f001c 100644 --- a/src/Illuminate/Database/Eloquent/BroadcastableModelEventOccurred.php +++ b/src/Illuminate/Database/Eloquent/BroadcastableModelEventOccurred.php @@ -111,7 +111,6 @@ public function broadcastWith() /** * Manually specify the channels the event should broadcast on. * - * @param array $channels * @return $this */ public function onChannels(array $channels) diff --git a/src/Illuminate/Database/Eloquent/BroadcastsEvents.php b/src/Illuminate/Database/Eloquent/BroadcastsEvents.php index c0461ddb0afd..ed37baf50e3e 100644 --- a/src/Illuminate/Database/Eloquent/BroadcastsEvents.php +++ b/src/Illuminate/Database/Eloquent/BroadcastsEvents.php @@ -104,9 +104,7 @@ public function broadcastDeleted($channels = null) /** * Broadcast the given event instance if channels are configured for the model event. * - * @param mixed $instance * @param string $event - * @param mixed $channels * @return \Illuminate\Broadcasting\PendingBroadcast|null */ protected function broadcastIfBroadcastChannelsExistForEvent($instance, $event, $channels = null) @@ -124,7 +122,6 @@ protected function broadcastIfBroadcastChannelsExistForEvent($instance, $event, * Create a new broadcastable model event event. * * @param string $event - * @return mixed */ public function newBroadcastableModelEvent($event) { @@ -146,7 +143,6 @@ public function newBroadcastableModelEvent($event) /** * Create a new broadcastable model event for the model. * - * @param string $event * @return \Illuminate\Database\Eloquent\BroadcastableModelEventOccurred */ protected function newBroadcastableEvent(string $event) diff --git a/src/Illuminate/Database/Eloquent/Builder.php b/src/Illuminate/Database/Eloquent/Builder.php index 0d524e47f480..9f68a8c2d7dd 100755 --- a/src/Illuminate/Database/Eloquent/Builder.php +++ b/src/Illuminate/Database/Eloquent/Builder.php @@ -167,8 +167,6 @@ class Builder implements BuilderContract /** * Create a new Eloquent query builder instance. - * - * @param \Illuminate\Database\Query\Builder $query */ public function __construct(QueryBuilder $query) { @@ -178,7 +176,6 @@ public function __construct(QueryBuilder $query) /** * Create and return an un-saved model instance. * - * @param array $attributes * @return TModel */ public function make(array $attributes = []) @@ -226,7 +223,6 @@ public function withoutGlobalScope($scope) /** * Remove all or passed registered global scopes. * - * @param array|null $scopes * @return $this */ public function withoutGlobalScopes(?array $scopes = null) @@ -255,7 +251,6 @@ public function removedScopes() /** * Add a where clause on the primary key to the query. * - * @param mixed $id * @return $this */ public function whereKey($id) @@ -284,7 +279,6 @@ public function whereKey($id) /** * Add a where clause on the primary key to the query. * - * @param mixed $id * @return $this */ public function whereKeyNot($id) @@ -329,8 +323,6 @@ public function except($models) * Add a basic where clause to the query. * * @param (\Closure(static): mixed)|string|array|\Illuminate\Contracts\Database\Query\Expression $column - * @param mixed $operator - * @param mixed $value * @param string $boolean * @return $this */ @@ -353,8 +345,6 @@ public function where($column, $operator = null, $value = null, $boolean = 'and' * Add a basic where clause to the query, and return the first result. * * @param (\Closure(static): mixed)|string|array|\Illuminate\Contracts\Database\Query\Expression $column - * @param mixed $operator - * @param mixed $value * @param string $boolean * @return TModel|null */ @@ -367,8 +357,6 @@ public function firstWhere($column, $operator = null, $value = null, $boolean = * Add an "or where" clause to the query. * * @param (\Closure(static): mixed)|array|string|\Illuminate\Contracts\Database\Query\Expression $column - * @param mixed $operator - * @param mixed $value * @return $this */ public function orWhere($column, $operator = null, $value = null) @@ -384,8 +372,6 @@ public function orWhere($column, $operator = null, $value = null) * Add a basic "where not" clause to the query. * * @param (\Closure(static): mixed)|string|array|\Illuminate\Contracts\Database\Query\Expression $column - * @param mixed $operator - * @param mixed $value * @param string $boolean * @return $this */ @@ -398,8 +384,6 @@ public function whereNot($column, $operator = null, $value = null, $boolean = 'a * Add an "or where not" clause to the query. * * @param (\Closure(static): mixed)|array|string|\Illuminate\Contracts\Database\Query\Expression $column - * @param mixed $operator - * @param mixed $value * @return $this */ public function orWhereNot($column, $operator = null, $value = null) @@ -444,7 +428,6 @@ public function oldest($column = null) /** * Create a collection of models from plain arrays. * - * @param array $items * @return \Illuminate\Database\Eloquent\Collection */ public function hydrate(array $items) @@ -540,7 +523,6 @@ public function fromQuery($query, $bindings = []) /** * Find a model by its primary key. * - * @param mixed $id * @param array|string $columns * @return ($id is (\Illuminate\Contracts\Support\Arrayable|array) ? \Illuminate\Database\Eloquent\Collection : TModel|null) */ @@ -556,7 +538,6 @@ public function find($id, $columns = ['*']) /** * Find a sole model by its primary key. * - * @param mixed $id * @param array|string $columns * @return TModel * @@ -589,7 +570,6 @@ public function findMany($ids, $columns = ['*']) /** * Find a model by its primary key or throw an exception. * - * @param mixed $id * @param array|string $columns * @return ($id is (\Illuminate\Contracts\Support\Arrayable|array) ? \Illuminate\Database\Eloquent\Collection : TModel) * @@ -623,7 +603,6 @@ public function findOrFail($id, $columns = ['*']) /** * Find a model by its primary key or return fresh model instance. * - * @param mixed $id * @param array|string $columns * @return ($id is (\Illuminate\Contracts\Support\Arrayable|array) ? \Illuminate\Database\Eloquent\Collection : TModel) */ @@ -641,7 +620,6 @@ public function findOrNew($id, $columns = ['*']) * * @template TValue * - * @param mixed $id * @param (\Closure(): TValue)|list|string $columns * @param (\Closure(): TValue)|null $callback * @return ( @@ -668,8 +646,6 @@ public function findOr($id, $columns = ['*'], ?Closure $callback = null) /** * Get the first record matching the attributes or instantiate it. * - * @param array $attributes - * @param array $values * @return TModel */ public function firstOrNew(array $attributes = [], array $values = []) @@ -684,8 +660,6 @@ public function firstOrNew(array $attributes = [], array $values = []) /** * Get the first record matching the attributes. If the record is not found, create it. * - * @param array $attributes - * @param array $values * @return TModel */ public function firstOrCreate(array $attributes = [], array $values = []) @@ -700,8 +674,6 @@ public function firstOrCreate(array $attributes = [], array $values = []) /** * Attempt to create the record. If a unique constraint violation occurs, attempt to find the matching record. * - * @param array $attributes - * @param array $values * @return TModel */ public function createOrFirst(array $attributes = [], array $values = []) @@ -716,8 +688,6 @@ public function createOrFirst(array $attributes = [], array $values = []) /** * Create or update a record matching the attributes, and fill it with values. * - * @param array $attributes - * @param array $values * @return TModel */ public function updateOrCreate(array $attributes, array $values = []) @@ -732,11 +702,8 @@ public function updateOrCreate(array $attributes, array $values = []) /** * Create a record matching the attributes, or increment the existing record. * - * @param array $attributes - * @param string $column * @param int|float $default * @param int|float $step - * @param array $extra * @return TModel */ public function incrementOrCreate(array $attributes, string $column = 'count', $default = 1, $step = 1, array $extra = []) @@ -811,7 +778,6 @@ public function sole($columns = ['*']) * Get a single column's value from the first result of a query. * * @param string|\Illuminate\Contracts\Database\Query\Expression $column - * @return mixed */ public function value($column) { @@ -826,7 +792,6 @@ public function value($column) * Get a single column's value from the first result of a query if it's the sole matching record. * * @param string|\Illuminate\Contracts\Database\Query\Expression $column - * @return mixed * * @throws \Illuminate\Database\Eloquent\ModelNotFoundException * @throws \Illuminate\Database\MultipleRecordsFoundException @@ -842,7 +807,6 @@ public function soleValue($column) * Get a single column's value from the first result of the query or throw an exception. * * @param string|\Illuminate\Contracts\Database\Query\Expression $column - * @return mixed * * @throws \Illuminate\Database\Eloquent\ModelNotFoundException */ @@ -911,9 +875,7 @@ public function eagerLoadRelations(array $models) /** * Eagerly load the relationship on a set of models. * - * @param array $models * @param string $name - * @param \Closure $constraints * @return array */ protected function eagerLoadRelation(array $models, $name, Closure $constraints) @@ -1004,7 +966,6 @@ protected function isNestedUnder($relation, $name) /** * Register a closure to be invoked after the query is executed. * - * @param \Closure $callback * @return $this */ public function afterQuery(Closure $callback) @@ -1016,9 +977,6 @@ public function afterQuery(Closure $callback) /** * Invoke the "after query" modification callbacks. - * - * @param mixed $result - * @return mixed */ public function applyAfterQueryCallbacks($result) { @@ -1195,7 +1153,6 @@ protected function ensureOrderForCursorPagination($shouldReverse = false) /** * Save a new model and return the instance. * - * @param array $attributes * @return TModel */ public function create(array $attributes = []) @@ -1208,7 +1165,6 @@ public function create(array $attributes = []) /** * Save a new model and return the instance without raising model events. * - * @param array $attributes * @return TModel */ public function createQuietly(array $attributes = []) @@ -1219,7 +1175,6 @@ public function createQuietly(array $attributes = []) /** * Save a new model and return the instance. Allow mass-assignment. * - * @param array $attributes * @return TModel */ public function forceCreate(array $attributes) @@ -1232,7 +1187,6 @@ public function forceCreate(array $attributes) /** * Save a new model instance with mass assignment without raising model events. * - * @param array $attributes * @return TModel */ public function forceCreateQuietly(array $attributes = []) @@ -1243,7 +1197,6 @@ public function forceCreateQuietly(array $attributes = []) /** * Update records in the database. * - * @param array $values * @return int */ public function update(array $values) @@ -1254,7 +1207,6 @@ public function update(array $values) /** * Insert new records or update the existing ones. * - * @param array $values * @param array|string $uniqueBy * @param array|null $update * @return int @@ -1308,7 +1260,6 @@ public function touch($column = null) * * @param string|\Illuminate\Contracts\Database\Query\Expression $column * @param float|int $amount - * @param array $extra * @return int */ public function increment($column, $amount = 1, array $extra = []) @@ -1323,7 +1274,6 @@ public function increment($column, $amount = 1, array $extra = []) * * @param string|\Illuminate\Contracts\Database\Query\Expression $column * @param float|int $amount - * @param array $extra * @return int */ public function decrement($column, $amount = 1, array $extra = []) @@ -1336,7 +1286,6 @@ public function decrement($column, $amount = 1, array $extra = []) /** * Add the "updated at" column to an array of values. * - * @param array $values * @return array */ protected function addUpdatedAtColumn(array $values) @@ -1378,7 +1327,6 @@ protected function addUpdatedAtColumn(array $values) /** * Add unique IDs to the inserted values. * - * @param array $values * @return array */ protected function addUniqueIdsToUpsertValues(array $values) @@ -1401,7 +1349,6 @@ protected function addUniqueIdsToUpsertValues(array $values) /** * Add timestamps to the inserted values. * - * @param array $values * @return array */ protected function addTimestampsToUpsertValues(array $values) @@ -1429,7 +1376,6 @@ protected function addTimestampsToUpsertValues(array $values) /** * Add the "updated at" column to the updated columns. * - * @param array $update * @return array */ protected function addUpdatedAtToUpsertColumns(array $update) @@ -1451,8 +1397,6 @@ protected function addUpdatedAtToUpsertColumns(array $update) /** * Delete records from the database. - * - * @return mixed */ public function delete() { @@ -1467,8 +1411,6 @@ public function delete() * Run the default delete function on the builder. * * Since we do not apply scopes here, the row will actually be deleted. - * - * @return mixed */ public function forceDelete() { @@ -1478,7 +1420,6 @@ public function forceDelete() /** * Register a replacement for the default delete function. * - * @param \Closure $callback * @return void */ public function onDelete(Closure $callback) @@ -1566,10 +1507,6 @@ public function applyScopes() /** * Apply the given scope on the current builder instance. - * - * @param callable $scope - * @param array $parameters - * @return mixed */ protected function callScope(callable $scope, array $parameters = []) { @@ -1597,8 +1534,6 @@ protected function callScope(callable $scope, array $parameters = []) * Apply the given named scope on the current builder instance. * * @param string $scope - * @param array $parameters - * @return mixed */ protected function callNamedScope($scope, array $parameters = []) { @@ -1610,7 +1545,6 @@ protected function callNamedScope($scope, array $parameters = []) /** * Nest where conditions by slicing them at the given where count. * - * @param \Illuminate\Database\Query\Builder $query * @param int $originalWhereCount * @return void */ @@ -1635,7 +1569,6 @@ protected function addNewWheresWithinGroup(QueryBuilder $query, $originalWhereCo /** * Slice where conditions at the given offset and add them to the query as a nested condition. * - * @param \Illuminate\Database\Query\Builder $query * @param array $whereSlice * @return void */ @@ -1694,7 +1627,6 @@ public function with($relations, $callback = null) /** * Prevent the specified relations from being eager loaded. * - * @param mixed $relations * @return $this */ public function without($relations) @@ -1737,7 +1669,6 @@ public function newModelInstance($attributes = []) /** * Parse a list of relations into individuals. * - * @param array $relations * @return array */ protected function parseWithRelations(array $relations) @@ -1816,7 +1747,6 @@ protected function prepareNestedWithRelationships($relations, $prefix = '') /** * Combine an array of constraints into a single constraint. * - * @param array $constraints * @return \Closure */ protected function combineConstraints(array $constraints) @@ -1894,8 +1824,6 @@ protected function addNestedWiths($name, $results) * * The given key / value pairs will also be added as where conditions to the query. * - * @param \Illuminate\Contracts\Database\Query\Expression|array|string $attributes - * @param mixed $value * @param bool $asConditions * @return $this */ @@ -2002,7 +1930,6 @@ public function getEagerLoads() /** * Set the relationships being eagerly loaded. * - * @param array $eagerLoad * @return $this */ public function setEagerLoads(array $eagerLoad) @@ -2015,7 +1942,6 @@ public function setEagerLoads(array $eagerLoad) /** * Indicate that the given relationships should not be eagerly loaded. * - * @param array $relations * @return $this */ public function withoutEagerLoad(array $relations) @@ -2037,8 +1963,6 @@ public function withoutEagerLoads() /** * Get the "limit" value from the query or null if it's not set. - * - * @return mixed */ public function getLimit() { @@ -2047,8 +1971,6 @@ public function getLimit() /** * Get the "offset" value from the query or null if it's not set. - * - * @return mixed */ public function getOffset() { @@ -2164,7 +2086,6 @@ public static function hasGlobalMacro($name) * Dynamically access builder proxies. * * @param string $key - * @return mixed * * @throws \Exception */ @@ -2186,7 +2107,6 @@ public function __get($key) * * @param string $method * @param array $parameters - * @return mixed */ public function __call($method, $parameters) { @@ -2230,7 +2150,6 @@ public function __call($method, $parameters) * * @param string $method * @param array $parameters - * @return mixed * * @throws \BadMethodCallException */ @@ -2292,7 +2211,6 @@ public function clone() /** * Register a closure to be invoked on a clone. * - * @param \Closure $callback * @return $this */ public function onClone(Closure $callback) diff --git a/src/Illuminate/Database/Eloquent/Casts/ArrayObject.php b/src/Illuminate/Database/Eloquent/Casts/ArrayObject.php index 563545dacbc5..ded6642dc7fa 100644 --- a/src/Illuminate/Database/Eloquent/Casts/ArrayObject.php +++ b/src/Illuminate/Database/Eloquent/Casts/ArrayObject.php @@ -37,8 +37,6 @@ public function toArray() /** * Get the array that should be JSON serialized. - * - * @return array */ public function jsonSerialize(): array { diff --git a/src/Illuminate/Database/Eloquent/Casts/AsArrayObject.php b/src/Illuminate/Database/Eloquent/Casts/AsArrayObject.php index 5ee80d0bb4f0..4cdb63647d47 100644 --- a/src/Illuminate/Database/Eloquent/Casts/AsArrayObject.php +++ b/src/Illuminate/Database/Eloquent/Casts/AsArrayObject.php @@ -10,7 +10,6 @@ class AsArrayObject implements Castable /** * Get the caster class to use when casting from / to this cast target. * - * @param array $arguments * @return \Illuminate\Contracts\Database\Eloquent\CastsAttributes<\Illuminate\Database\Eloquent\Casts\ArrayObject, iterable> */ public static function castUsing(array $arguments) diff --git a/src/Illuminate/Database/Eloquent/Casts/AsCollection.php b/src/Illuminate/Database/Eloquent/Casts/AsCollection.php index e36b13df2184..a494323c1ebd 100644 --- a/src/Illuminate/Database/Eloquent/Casts/AsCollection.php +++ b/src/Illuminate/Database/Eloquent/Casts/AsCollection.php @@ -13,7 +13,6 @@ class AsCollection implements Castable /** * Get the caster class to use when casting from / to this cast target. * - * @param array $arguments * @return \Illuminate\Contracts\Database\Eloquent\CastsAttributes<\Illuminate\Support\Collection, iterable> */ public static function castUsing(array $arguments) diff --git a/src/Illuminate/Database/Eloquent/Casts/AsEncryptedArrayObject.php b/src/Illuminate/Database/Eloquent/Casts/AsEncryptedArrayObject.php index 448f23db0cbb..d07fdcda8575 100644 --- a/src/Illuminate/Database/Eloquent/Casts/AsEncryptedArrayObject.php +++ b/src/Illuminate/Database/Eloquent/Casts/AsEncryptedArrayObject.php @@ -11,7 +11,6 @@ class AsEncryptedArrayObject implements Castable /** * Get the caster class to use when casting from / to this cast target. * - * @param array $arguments * @return \Illuminate\Contracts\Database\Eloquent\CastsAttributes<\Illuminate\Database\Eloquent\Casts\ArrayObject, iterable> */ public static function castUsing(array $arguments) diff --git a/src/Illuminate/Database/Eloquent/Casts/AsEncryptedCollection.php b/src/Illuminate/Database/Eloquent/Casts/AsEncryptedCollection.php index b5912fa20b10..2a67600ada2f 100644 --- a/src/Illuminate/Database/Eloquent/Casts/AsEncryptedCollection.php +++ b/src/Illuminate/Database/Eloquent/Casts/AsEncryptedCollection.php @@ -14,7 +14,6 @@ class AsEncryptedCollection implements Castable /** * Get the caster class to use when casting from / to this cast target. * - * @param array $arguments * @return \Illuminate\Contracts\Database\Eloquent\CastsAttributes<\Illuminate\Support\Collection, iterable> */ public static function castUsing(array $arguments) diff --git a/src/Illuminate/Database/Eloquent/Casts/AsFluent.php b/src/Illuminate/Database/Eloquent/Casts/AsFluent.php index bba1b1dac9b8..a3200a345783 100644 --- a/src/Illuminate/Database/Eloquent/Casts/AsFluent.php +++ b/src/Illuminate/Database/Eloquent/Casts/AsFluent.php @@ -11,7 +11,6 @@ class AsFluent implements Castable /** * Get the caster class to use when casting from / to this cast target. * - * @param array $arguments * @return \Illuminate\Contracts\Database\Eloquent\CastsAttributes<\Illuminate\Support\Fluent, string> */ public static function castUsing(array $arguments) diff --git a/src/Illuminate/Database/Eloquent/Casts/AsHtmlString.php b/src/Illuminate/Database/Eloquent/Casts/AsHtmlString.php index d4182d258f79..3a1ae9444011 100644 --- a/src/Illuminate/Database/Eloquent/Casts/AsHtmlString.php +++ b/src/Illuminate/Database/Eloquent/Casts/AsHtmlString.php @@ -11,7 +11,6 @@ class AsHtmlString implements Castable /** * Get the caster class to use when casting from / to this cast target. * - * @param array $arguments * @return \Illuminate\Contracts\Database\Eloquent\CastsAttributes<\Illuminate\Support\HtmlString, string|HtmlString> */ public static function castUsing(array $arguments) diff --git a/src/Illuminate/Database/Eloquent/Casts/AsStringable.php b/src/Illuminate/Database/Eloquent/Casts/AsStringable.php index 4f6c787c8573..c87f57253200 100644 --- a/src/Illuminate/Database/Eloquent/Casts/AsStringable.php +++ b/src/Illuminate/Database/Eloquent/Casts/AsStringable.php @@ -11,7 +11,6 @@ class AsStringable implements Castable /** * Get the caster class to use when casting from / to this cast target. * - * @param array $arguments * @return \Illuminate\Contracts\Database\Eloquent\CastsAttributes<\Illuminate\Support\Stringable, string|\Stringable> */ public static function castUsing(array $arguments) diff --git a/src/Illuminate/Database/Eloquent/Casts/AsUri.php b/src/Illuminate/Database/Eloquent/Casts/AsUri.php index d55c6d7996b5..c67e50108605 100644 --- a/src/Illuminate/Database/Eloquent/Casts/AsUri.php +++ b/src/Illuminate/Database/Eloquent/Casts/AsUri.php @@ -11,7 +11,6 @@ class AsUri implements Castable /** * Get the caster class to use when casting from / to this cast target. * - * @param array $arguments * @return \Illuminate\Contracts\Database\Eloquent\CastsAttributes<\Illuminate\Support\Uri, string|Uri> */ public static function castUsing(array $arguments) diff --git a/src/Illuminate/Database/Eloquent/Casts/Attribute.php b/src/Illuminate/Database/Eloquent/Casts/Attribute.php index 26d13ba3fbe3..832d818d5f5e 100644 --- a/src/Illuminate/Database/Eloquent/Casts/Attribute.php +++ b/src/Illuminate/Database/Eloquent/Casts/Attribute.php @@ -34,9 +34,6 @@ class Attribute /** * Create a new attribute accessor / mutator. - * - * @param callable|null $get - * @param callable|null $set */ public function __construct(?callable $get = null, ?callable $set = null) { @@ -46,10 +43,6 @@ public function __construct(?callable $get = null, ?callable $set = null) /** * Create a new attribute accessor / mutator. - * - * @param callable|null $get - * @param callable|null $set - * @return static */ public static function make(?callable $get = null, ?callable $set = null): static { @@ -59,7 +52,6 @@ public static function make(?callable $get = null, ?callable $set = null): stati /** * Create a new attribute accessor. * - * @param callable $get * @return static */ public static function get(callable $get) @@ -70,7 +62,6 @@ public static function get(callable $get) /** * Create a new attribute mutator. * - * @param callable $set * @return static */ public static function set(callable $set) diff --git a/src/Illuminate/Database/Eloquent/Collection.php b/src/Illuminate/Database/Eloquent/Collection.php index 3ec4200aee07..fae55c382198 100755 --- a/src/Illuminate/Database/Eloquent/Collection.php +++ b/src/Illuminate/Database/Eloquent/Collection.php @@ -26,7 +26,6 @@ class Collection extends BaseCollection implements QueueableCollection * * @template TFindDefault * - * @param mixed $key * @param TFindDefault $default * @return ($key is (\Illuminate\Contracts\Support\Arrayable|array) ? static : TModel|TFindDefault) */ @@ -54,7 +53,6 @@ public function find($key, $default = null) /** * Find a model in the collection by key or throw an exception. * - * @param mixed $key * @return TModel * * @throws \Illuminate\Database\Eloquent\ModelNotFoundException @@ -282,7 +280,6 @@ public function loadMissingRelationshipChain(array $tuples) * Load a relationship path if it is not already eager loaded. * * @param \Illuminate\Database\Eloquent\Collection $models - * @param array $path * @return void */ protected function loadMissingRelation(self $models, array $path) @@ -348,8 +345,6 @@ public function loadMorphCount($relation, $relations) * Determine if a key exists in the collection. * * @param (callable(TModel, TKey): bool)|TModel|string|int $key - * @param mixed $operator - * @param mixed $value * @return bool */ public function contains($key, $operator = null, $value = null) @@ -369,8 +364,6 @@ public function contains($key, $operator = null, $value = null) * Determine if a key does not exist in the collection. * * @param (callable(TModel, TKey): bool)|TModel|string|int $key - * @param mixed $operator - * @param mixed $value * @return bool */ public function doesntContain($key, $operator = null, $value = null) @@ -706,8 +699,6 @@ public function pad($size, $value) * Partition the collection into two arrays using the given callback or key. * * @param (callable(TModel, TKey): bool)|TModel|string $key - * @param mixed $operator - * @param mixed $value * @return \Illuminate\Support\Collection, static> */ public function partition($key, $operator = null, $value = null) diff --git a/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php b/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php index 82dcf43c0821..fc3eef4c9044 100644 --- a/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php +++ b/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php @@ -429,7 +429,6 @@ protected function getArrayableRelations() /** * Get an attribute array of all arrayable values. * - * @param array $values * @return array */ protected function getArrayableItems(array $values) @@ -468,7 +467,6 @@ public function hasAttribute($key) * Get an attribute from the model. * * @param string $key - * @return mixed */ public function getAttribute($key) { @@ -522,7 +520,6 @@ protected function throwMissingAttributeExceptionIfApplicable($key) * Get a plain attribute (not a relationship). * * @param string $key - * @return mixed */ public function getAttributeValue($key) { @@ -533,7 +530,6 @@ public function getAttributeValue($key) * Get an attribute from the $attributes array. * * @param string $key - * @return mixed */ protected function getAttributeFromArray($key) { @@ -544,7 +540,6 @@ protected function getAttributeFromArray($key) * Get a relationship. * * @param string $key - * @return mixed */ public function getRelationValue($key) { @@ -593,7 +588,6 @@ public function isRelation($key) * Handle a lazy loading violation. * * @param string $key - * @return mixed */ protected function handleLazyLoadingViolation($key) { @@ -612,7 +606,6 @@ protected function handleLazyLoadingViolation($key) * Get a relationship value from a method. * * @param string $method - * @return mixed * * @throws \LogicException */ @@ -705,8 +698,6 @@ public function hasAnyGetMutator($key) * Get the value of an attribute using its mutator. * * @param string $key - * @param mixed $value - * @return mixed */ protected function mutateAttribute($key, $value) { @@ -717,8 +708,6 @@ protected function mutateAttribute($key, $value) * Get the value of an "Attribute" return type marked attribute using its mutator. * * @param string $key - * @param mixed $value - * @return mixed */ protected function mutateAttributeMarkedAttribute($key, $value) { @@ -745,8 +734,6 @@ protected function mutateAttributeMarkedAttribute($key, $value) * Get the value of an attribute using its mutator for array conversion. * * @param string $key - * @param mixed $value - * @return mixed */ protected function mutateAttributeForArray($key, $value) { @@ -818,8 +805,6 @@ protected function ensureCastsAreStringValues($casts) * Cast an attribute to a native PHP type. * * @param string $key - * @param mixed $value - * @return mixed */ protected function castAttribute($key, $value) { @@ -890,8 +875,6 @@ protected function castAttribute($key, $value) * Cast the given attribute using a custom cast class. * * @param string $key - * @param mixed $value - * @return mixed */ protected function getClassCastableAttributeValue($key, $value) { @@ -922,8 +905,6 @@ protected function getClassCastableAttributeValue($key, $value) * Cast the given attribute to an enum. * * @param string $key - * @param mixed $value - * @return mixed */ protected function getEnumCastableAttributeValue($key, $value) { @@ -974,8 +955,6 @@ protected function getCastType($key) * * @param string $method * @param string $key - * @param mixed $value - * @return mixed */ protected function deviateClassCastableAttribute($method, $key, $value) { @@ -988,8 +967,6 @@ protected function deviateClassCastableAttribute($method, $key, $value) * Serialize the given attribute using the custom cast class. * * @param string $key - * @param mixed $value - * @return mixed */ protected function serializeClassCastableAttribute($key, $value) { @@ -1002,8 +979,6 @@ protected function serializeClassCastableAttribute($key, $value) * Compare two values for the given attribute using the custom cast class. * * @param string $key - * @param mixed $original - * @param mixed $value * @return bool */ protected function compareClassCastableAttribute($key, $original, $value) @@ -1052,8 +1027,6 @@ protected function isDecimalCast($cast) * Set a given attribute on the model. * * @param string $key - * @param mixed $value - * @return mixed */ public function setAttribute($key, $value) { @@ -1150,8 +1123,6 @@ public function hasAttributeSetMutator($key) * Set the value of an attribute using its mutator. * * @param string $key - * @param mixed $value - * @return mixed */ protected function setMutatedAttributeValue($key, $value) { @@ -1162,8 +1133,6 @@ protected function setMutatedAttributeValue($key, $value) * Set the value of a "Attribute" return type marked attribute using its mutator. * * @param string $key - * @param mixed $value - * @return mixed */ protected function setAttributeMarkedMutatedAttributeValue($key, $value) { @@ -1205,7 +1174,6 @@ protected function isDateAttribute($key) * Set a given JSON attribute on the model. * * @param string $key - * @param mixed $value * @return $this */ public function fillJsonAttribute($key, $value) @@ -1231,7 +1199,6 @@ public function fillJsonAttribute($key, $value) * Set the value of a class castable attribute. * * @param string $key - * @param mixed $value * @return void */ protected function setClassCastableAttribute($key, $value) @@ -1311,7 +1278,6 @@ protected function getStorableEnumValue($expectedEnum, $value) * * @param string $path * @param string $key - * @param mixed $value * @return $this */ protected function getArrayAttributeWithValue($path, $key, $value) @@ -1344,7 +1310,6 @@ protected function getArrayAttributeByKey($key) * Cast the given attribute to JSON. * * @param string $key - * @param mixed $value * @return string */ protected function castAttributeAsJson($key, $value) @@ -1380,7 +1345,6 @@ protected function getJsonCastFlags($key) /** * Encode the given value as JSON. * - * @param mixed $value * @param int $flags * @return string */ @@ -1394,7 +1358,6 @@ protected function asJson($value, $flags = 0) * * @param string|null $value * @param bool $asObject - * @return mixed */ public function fromJson($value, $asObject = false) { @@ -1409,7 +1372,6 @@ public function fromJson($value, $asObject = false) * Decrypt the given encrypted string. * * @param string $value - * @return mixed */ public function fromEncryptedString($value) { @@ -1420,7 +1382,6 @@ public function fromEncryptedString($value) * Cast the given attribute to an encrypted string. * * @param string $key - * @param mixed $value * @return string */ protected function castAttributeAsEncryptedString($key, #[\SensitiveParameter] $value) @@ -1453,7 +1414,6 @@ public static function currentEncrypter() * Cast the given attribute to a hashed string. * * @param string $key - * @param mixed $value * @return string */ protected function castAttributeAsHashedString($key, #[\SensitiveParameter] $value) @@ -1476,9 +1436,6 @@ protected function castAttributeAsHashedString($key, #[\SensitiveParameter] $val /** * Decode the given float. - * - * @param mixed $value - * @return mixed */ public function fromFloat($value) { @@ -1509,7 +1466,6 @@ protected function asDecimal($value, $decimals) /** * Return a timestamp as DateTime object with time set to 00:00:00. * - * @param mixed $value * @return \Illuminate\Support\Carbon */ protected function asDate($value) @@ -1520,7 +1476,6 @@ protected function asDate($value) /** * Return a timestamp as DateTime object. * - * @param mixed $value * @return \Illuminate\Support\Carbon */ protected function asDateTime($value) @@ -1583,7 +1538,6 @@ protected function isStandardDateFormat($value) /** * Convert a DateTime to a storable string. * - * @param mixed $value * @return string|null */ public function fromDateTime($value) @@ -1596,7 +1550,6 @@ public function fromDateTime($value) /** * Return a timestamp as unix timestamp. * - * @param mixed $value * @return int */ protected function asTimestamp($value) @@ -1607,7 +1560,6 @@ protected function asTimestamp($value) /** * Prepare a date for array / JSON serialization. * - * @param \DateTimeInterface $date * @return string */ protected function serializeDate(DateTimeInterface $date) @@ -1840,7 +1792,6 @@ protected function isClassComparable($key) * Resolve the custom caster class for a given key. * * @param string $key - * @return mixed */ protected function resolveCasterClass($key) { @@ -1940,7 +1891,6 @@ protected function mergeAttributesFromAttributeCasts() * Normalize the response from a custom class caster. * * @param string $key - * @param mixed $value * @return array */ protected function normalizeCastClassResponse($key, $value) @@ -1973,7 +1923,6 @@ protected function getAttributesForInsert() /** * Set the array of model attributes. No checking is done. * - * @param array $attributes * @param bool $sync * @return $this */ @@ -1995,7 +1944,6 @@ public function setRawAttributes(array $attributes, $sync = false) * Get the model's original attribute values. * * @param string|null $key - * @param mixed $default * @return ($key is null ? array : mixed) */ public function getOriginal($key = null, $default = null) @@ -2009,7 +1957,6 @@ public function getOriginal($key = null, $default = null) * Get the model's original attribute values. * * @param string|null $key - * @param mixed $default * @return ($key is null ? array : mixed) */ protected function getOriginalWithoutRewindingModel($key = null, $default = null) @@ -2029,7 +1976,6 @@ protected function getOriginalWithoutRewindingModel($key = null, $default = null * Get the model's raw original attribute values. * * @param string|null $key - * @param mixed $default * @return ($key is null ? array : mixed) */ public function getRawOriginal($key = null, $default = null) @@ -2316,8 +2262,6 @@ public function originalIsEquivalent($key) * Transform a raw model value using mutators, casts, etc. * * @param string $key - * @param mixed $value - * @return mixed */ protected function transformModelValue($key, $value) { @@ -2383,7 +2327,6 @@ public function getAppends() /** * Set the accessors to append to model arrays. * - * @param array $appends * @return $this */ public function setAppends(array $appends) @@ -2456,7 +2399,6 @@ public static function cacheMutatedAttributes($classOrInstance) /** * Get all of the attribute mutator methods. * - * @param mixed $class * @return array */ protected static function getMutatorMethods($class) @@ -2469,7 +2411,6 @@ protected static function getMutatorMethods($class) /** * Get all of the "Attribute" return typed attribute mutator methods. * - * @param mixed $class * @return array */ protected static function getAttributeMarkedMutatorMethods($class) diff --git a/src/Illuminate/Database/Eloquent/Concerns/HasEvents.php b/src/Illuminate/Database/Eloquent/Concerns/HasEvents.php index 256129e56d67..062248bf4e76 100644 --- a/src/Illuminate/Database/Eloquent/Concerns/HasEvents.php +++ b/src/Illuminate/Database/Eloquent/Concerns/HasEvents.php @@ -143,7 +143,6 @@ public function getObservableEvents() /** * Set the observable event names. * - * @param array $observables * @return $this */ public function setObservableEvents(array $observables) @@ -156,7 +155,6 @@ public function setObservableEvents(array $observables) /** * Add an observable event name. * - * @param mixed $observables * @return void */ public function addObservableEvents($observables) @@ -169,7 +167,6 @@ public function addObservableEvents($observables) /** * Remove an observable event name. * - * @param mixed $observables * @return void */ public function removeObservableEvents($observables) @@ -200,7 +197,6 @@ protected static function registerModelEvent($event, $callback) * * @param string $event * @param bool $halt - * @return mixed */ protected function fireModelEvent($event, $halt = true) { @@ -231,7 +227,6 @@ protected function fireModelEvent($event, $halt = true) * * @param string $event * @param string $method - * @return mixed */ protected function fireCustomModelEvent($event, $method) { @@ -248,9 +243,6 @@ protected function fireCustomModelEvent($event, $method) /** * Filter the model event results. - * - * @param mixed $result - * @return mixed */ protected function filterModelEventResults($result) { @@ -418,7 +410,6 @@ public static function getEventDispatcher() /** * Set the event dispatcher instance. * - * @param \Illuminate\Contracts\Events\Dispatcher $dispatcher * @return void */ public static function setEventDispatcher(Dispatcher $dispatcher) @@ -438,9 +429,6 @@ public static function unsetEventDispatcher() /** * Execute a callback without firing any model events for any model type. - * - * @param callable $callback - * @return mixed */ public static function withoutEvents(callable $callback) { diff --git a/src/Illuminate/Database/Eloquent/Concerns/HasGlobalScopes.php b/src/Illuminate/Database/Eloquent/Concerns/HasGlobalScopes.php index df69409ec835..2362728e31eb 100644 --- a/src/Illuminate/Database/Eloquent/Concerns/HasGlobalScopes.php +++ b/src/Illuminate/Database/Eloquent/Concerns/HasGlobalScopes.php @@ -42,7 +42,6 @@ public static function resolveGlobalScopeAttributes() * * @param \Illuminate\Database\Eloquent\Scope|(\Closure(\Illuminate\Database\Eloquent\Builder): mixed)|string $scope * @param \Illuminate\Database\Eloquent\Scope|(\Closure(\Illuminate\Database\Eloquent\Builder): mixed)|null $implementation - * @return mixed * * @throws \InvalidArgumentException */ @@ -64,7 +63,6 @@ public static function addGlobalScope($scope, $implementation = null) /** * Register multiple global scopes on the model. * - * @param array $scopes * @return void */ public static function addGlobalScopes(array $scopes) diff --git a/src/Illuminate/Database/Eloquent/Concerns/HasRelationships.php b/src/Illuminate/Database/Eloquent/Concerns/HasRelationships.php index 8382cc183f4a..1021673059f1 100644 --- a/src/Illuminate/Database/Eloquent/Concerns/HasRelationships.php +++ b/src/Illuminate/Database/Eloquent/Concerns/HasRelationships.php @@ -48,8 +48,6 @@ trait HasRelationships /** * The relationship autoloader callback context. - * - * @var mixed */ protected $relationAutoloadContext = null; @@ -95,7 +93,6 @@ public function relationResolver($class, $key) * Define a dynamic relation resolver. * * @param string $name - * @param \Closure $callback * @return void */ public static function resolveRelationUsing($name, Closure $callback) @@ -119,8 +116,6 @@ public function hasRelationAutoloadCallback() /** * Define an automatic relationship autoloader callback for this model and its relations. * - * @param \Closure $callback - * @param mixed $context * @return $this */ public function autoloadRelationsUsing(Closure $callback, $context = null) @@ -175,7 +170,6 @@ protected function invokeRelationAutoloadCallbackFor($key, $tuples) * Propagate the relationship autoloader callback to the given related models. * * @param string $key - * @param mixed $models * @return void */ protected function propagateRelationAutoloadCallbackToRelation($key, $models) @@ -1066,7 +1060,6 @@ public function getRelations() * Get a specified relationship. * * @param string $relation - * @return mixed */ public function getRelation($relation) { @@ -1088,7 +1081,6 @@ public function relationLoaded($key) * Set the given relationship on the model. * * @param string $relation - * @param mixed $value * @return $this */ public function setRelation($relation, $value) @@ -1116,7 +1108,6 @@ public function unsetRelation($relation) /** * Set the entire relations array on the model. * - * @param array $relations * @return $this */ public function setRelations(array $relations) @@ -1175,7 +1166,6 @@ public function getTouchedRelations() /** * Set the relationships that are touched on save. * - * @param array $touches * @return $this */ public function setTouchedRelations(array $touches) diff --git a/src/Illuminate/Database/Eloquent/Concerns/HasTimestamps.php b/src/Illuminate/Database/Eloquent/Concerns/HasTimestamps.php index 19a7c254eba3..258fcf7f5fa4 100644 --- a/src/Illuminate/Database/Eloquent/Concerns/HasTimestamps.php +++ b/src/Illuminate/Database/Eloquent/Concerns/HasTimestamps.php @@ -81,7 +81,6 @@ public function updateTimestamps() /** * Set the value of the "created at" attribute. * - * @param mixed $value * @return $this */ public function setCreatedAt($value) @@ -94,7 +93,6 @@ public function setCreatedAt($value) /** * Set the value of the "updated at" attribute. * - * @param mixed $value * @return $this */ public function setUpdatedAt($value) @@ -180,9 +178,6 @@ public function getQualifiedUpdatedAtColumn() /** * Disable timestamps for the current class during the given callback scope. - * - * @param callable $callback - * @return mixed */ public static function withoutTimestamps(callable $callback) { @@ -194,7 +189,6 @@ public static function withoutTimestamps(callable $callback) * * @param array $models * @param callable $callback - * @return mixed */ public static function withoutTimestampsOn($models, $callback) { diff --git a/src/Illuminate/Database/Eloquent/Concerns/HasUlids.php b/src/Illuminate/Database/Eloquent/Concerns/HasUlids.php index 344f97338aa1..5811dd14d814 100644 --- a/src/Illuminate/Database/Eloquent/Concerns/HasUlids.php +++ b/src/Illuminate/Database/Eloquent/Concerns/HasUlids.php @@ -20,9 +20,6 @@ public function newUniqueId() /** * Determine if given key is valid. - * - * @param mixed $value - * @return bool */ protected function isValidUniqueId($value): bool { diff --git a/src/Illuminate/Database/Eloquent/Concerns/HasUniqueStringIds.php b/src/Illuminate/Database/Eloquent/Concerns/HasUniqueStringIds.php index 324961f2b2ea..70a57447ba72 100644 --- a/src/Illuminate/Database/Eloquent/Concerns/HasUniqueStringIds.php +++ b/src/Illuminate/Database/Eloquent/Concerns/HasUniqueStringIds.php @@ -8,16 +8,11 @@ trait HasUniqueStringIds { /** * Generate a new unique key for the model. - * - * @return mixed */ abstract public function newUniqueId(); /** * Determine if given key is valid. - * - * @param mixed $value - * @return bool */ abstract protected function isValidUniqueId($value): bool; @@ -45,7 +40,6 @@ public function uniqueIds() * Retrieve the model for a bound value. * * @param \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Relations\Relation<*, *, *> $query - * @param mixed $value * @param string|null $field * @return \Illuminate\Contracts\Database\Eloquent\Builder * @@ -95,7 +89,6 @@ public function getIncrementing() /** * Throw an exception for the given invalid unique ID. * - * @param mixed $value * @param string|null $field * @return never * diff --git a/src/Illuminate/Database/Eloquent/Concerns/HasUuids.php b/src/Illuminate/Database/Eloquent/Concerns/HasUuids.php index 89d40f829aa1..4ce6867e2e41 100644 --- a/src/Illuminate/Database/Eloquent/Concerns/HasUuids.php +++ b/src/Illuminate/Database/Eloquent/Concerns/HasUuids.php @@ -20,9 +20,6 @@ public function newUniqueId() /** * Determine if given key is valid. - * - * @param mixed $value - * @return bool */ protected function isValidUniqueId($value): bool { diff --git a/src/Illuminate/Database/Eloquent/Concerns/PreventsCircularRecursion.php b/src/Illuminate/Database/Eloquent/Concerns/PreventsCircularRecursion.php index 85aa66d9cedc..f9644e2fc03c 100644 --- a/src/Illuminate/Database/Eloquent/Concerns/PreventsCircularRecursion.php +++ b/src/Illuminate/Database/Eloquent/Concerns/PreventsCircularRecursion.php @@ -19,8 +19,6 @@ trait PreventsCircularRecursion * Prevent a method from being called multiple times on the same object within the same call stack. * * @param callable $callback - * @param mixed $default - * @return mixed */ protected function withoutRecursion($callback, $default = null) { @@ -53,7 +51,6 @@ protected function withoutRecursion($callback, $default = null) * Remove an entry from the recursion cache for an object. * * @param object $object - * @param string $hash */ protected static function clearRecursiveCallValue($object, string $hash) { @@ -68,7 +65,6 @@ protected static function clearRecursiveCallValue($object, string $hash) * Get the stack of methods being called recursively for the current object. * * @param object $object - * @return array */ protected static function getRecursiveCallStack($object): array { @@ -91,9 +87,6 @@ protected static function getRecursionCache() * Set a value in the recursion cache for the given object and method. * * @param object $object - * @param string $hash - * @param mixed $value - * @return mixed */ protected static function setRecursiveCallValue($object, string $hash, $value) { diff --git a/src/Illuminate/Database/Eloquent/Concerns/QueriesRelationships.php b/src/Illuminate/Database/Eloquent/Concerns/QueriesRelationships.php index 805cca3b21de..011e695ca9e1 100644 --- a/src/Illuminate/Database/Eloquent/Concerns/QueriesRelationships.php +++ b/src/Illuminate/Database/Eloquent/Concerns/QueriesRelationships.php @@ -432,8 +432,6 @@ public function orWhereDoesntHaveMorph($relation, $types, ?Closure $callback = n * * @param \Illuminate\Database\Eloquent\Relations\Relation|string $relation * @param (\Closure(\Illuminate\Database\Eloquent\Builder): mixed)|string|array|\Illuminate\Contracts\Database\Query\Expression $column - * @param mixed $operator - * @param mixed $value * @return $this */ public function whereRelation($relation, $column, $operator = null, $value = null) @@ -452,8 +450,6 @@ public function whereRelation($relation, $column, $operator = null, $value = nul * * @param \Illuminate\Database\Eloquent\Relations\Relation<*, *, *>|string $relation * @param \Closure|string|array|\Illuminate\Contracts\Database\Query\Expression $column - * @param mixed $operator - * @param mixed $value * @return $this */ public function withWhereRelation($relation, $column, $operator = null, $value = null) @@ -473,8 +469,6 @@ public function withWhereRelation($relation, $column, $operator = null, $value = * * @param \Illuminate\Database\Eloquent\Relations\Relation|string $relation * @param (\Closure(\Illuminate\Database\Eloquent\Builder): mixed)|string|array|\Illuminate\Contracts\Database\Query\Expression $column - * @param mixed $operator - * @param mixed $value * @return $this */ public function orWhereRelation($relation, $column, $operator = null, $value = null) @@ -495,8 +489,6 @@ public function orWhereRelation($relation, $column, $operator = null, $value = n * * @param \Illuminate\Database\Eloquent\Relations\Relation|string $relation * @param (\Closure(\Illuminate\Database\Eloquent\Builder): mixed)|string|array|\Illuminate\Contracts\Database\Query\Expression $column - * @param mixed $operator - * @param mixed $value * @return $this */ public function whereDoesntHaveRelation($relation, $column, $operator = null, $value = null) @@ -517,8 +509,6 @@ public function whereDoesntHaveRelation($relation, $column, $operator = null, $v * * @param \Illuminate\Database\Eloquent\Relations\Relation|string $relation * @param (\Closure(\Illuminate\Database\Eloquent\Builder): mixed)|string|array|\Illuminate\Contracts\Database\Query\Expression $column - * @param mixed $operator - * @param mixed $value * @return $this */ public function orWhereDoesntHaveRelation($relation, $column, $operator = null, $value = null) @@ -540,8 +530,6 @@ public function orWhereDoesntHaveRelation($relation, $column, $operator = null, * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation * @param string|array $types * @param (\Closure(\Illuminate\Database\Eloquent\Builder): mixed)|string|array|\Illuminate\Contracts\Database\Query\Expression $column - * @param mixed $operator - * @param mixed $value * @return $this */ public function whereMorphRelation($relation, $types, $column, $operator = null, $value = null) @@ -559,8 +547,6 @@ public function whereMorphRelation($relation, $types, $column, $operator = null, * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation * @param string|array $types * @param (\Closure(\Illuminate\Database\Eloquent\Builder): mixed)|string|array|\Illuminate\Contracts\Database\Query\Expression $column - * @param mixed $operator - * @param mixed $value * @return $this */ public function orWhereMorphRelation($relation, $types, $column, $operator = null, $value = null) @@ -578,8 +564,6 @@ public function orWhereMorphRelation($relation, $types, $column, $operator = nul * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation * @param string|array $types * @param (\Closure(\Illuminate\Database\Eloquent\Builder): mixed)|string|array|\Illuminate\Contracts\Database\Query\Expression $column - * @param mixed $operator - * @param mixed $value * @return $this */ public function whereMorphDoesntHaveRelation($relation, $types, $column, $operator = null, $value = null) @@ -597,8 +581,6 @@ public function whereMorphDoesntHaveRelation($relation, $types, $column, $operat * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation * @param string|array $types * @param (\Closure(\Illuminate\Database\Eloquent\Builder): mixed)|string|array|\Illuminate\Contracts\Database\Query\Expression $column - * @param mixed $operator - * @param mixed $value * @return $this */ public function orWhereMorphDoesntHaveRelation($relation, $types, $column, $operator = null, $value = null) @@ -835,7 +817,6 @@ public function orWhereAttachedTo($related, $relationshipName = null) /** * Add subselect queries to include an aggregate value for a relationship. * - * @param mixed $relations * @param \Illuminate\Contracts\Database\Query\Expression|string $column * @param string $function * @return $this @@ -952,7 +933,6 @@ protected function getRelationHashedColumn($column, $relation) /** * Add subselect queries to count the relations. * - * @param mixed $relations * @return $this */ public function withCount($relations) @@ -1067,11 +1047,6 @@ public function mergeConstraintsFrom(Builder $from) /** * Updates the table name for any columns with a new qualified name. - * - * @param array $wheres - * @param string $from - * @param string $to - * @return array */ protected function requalifyWhereTables(array $wheres, string $from, string $to): array { @@ -1087,7 +1062,6 @@ protected function requalifyWhereTables(array $wheres, string $from, string $to) /** * Add a sub-query count clause to this query. * - * @param \Illuminate\Database\Query\Builder $query * @param string $operator * @param int $count * @param string $boolean diff --git a/src/Illuminate/Database/Eloquent/Concerns/TransformsToResource.php b/src/Illuminate/Database/Eloquent/Concerns/TransformsToResource.php index dfd11a86d70d..352680993382 100644 --- a/src/Illuminate/Database/Eloquent/Concerns/TransformsToResource.php +++ b/src/Illuminate/Database/Eloquent/Concerns/TransformsToResource.php @@ -12,7 +12,6 @@ trait TransformsToResource * Create a new resource object for the given resource. * * @param class-string<\Illuminate\Http\Resources\Json\JsonResource>|null $resourceClass - * @return \Illuminate\Http\Resources\Json\JsonResource */ public function toResource(?string $resourceClass = null): JsonResource { @@ -25,8 +24,6 @@ public function toResource(?string $resourceClass = null): JsonResource /** * Guess the resource class for the model. - * - * @return \Illuminate\Http\Resources\Json\JsonResource */ protected function guessResource(): JsonResource { diff --git a/src/Illuminate/Database/Eloquent/Factories/BelongsToManyRelationship.php b/src/Illuminate/Database/Eloquent/Factories/BelongsToManyRelationship.php index 5498dc856516..c58770e34c19 100644 --- a/src/Illuminate/Database/Eloquent/Factories/BelongsToManyRelationship.php +++ b/src/Illuminate/Database/Eloquent/Factories/BelongsToManyRelationship.php @@ -45,7 +45,6 @@ public function __construct($factory, $pivot, $relationship) /** * Create the attached relationship for the given model. * - * @param \Illuminate\Database\Eloquent\Model $model * @return void */ public function createFor(Model $model) diff --git a/src/Illuminate/Database/Eloquent/Factories/BelongsToRelationship.php b/src/Illuminate/Database/Eloquent/Factories/BelongsToRelationship.php index 5979183d92f6..99d732f45c14 100644 --- a/src/Illuminate/Database/Eloquent/Factories/BelongsToRelationship.php +++ b/src/Illuminate/Database/Eloquent/Factories/BelongsToRelationship.php @@ -23,8 +23,6 @@ class BelongsToRelationship /** * The cached, resolved parent instance ID. - * - * @var mixed */ protected $resolved; @@ -43,7 +41,6 @@ public function __construct($factory, $relationship) /** * Get the parent model attributes and resolvers for the given child model. * - * @param \Illuminate\Database\Eloquent\Model $model * @return array */ public function attributesFor(Model $model) diff --git a/src/Illuminate/Database/Eloquent/Factories/Factory.php b/src/Illuminate/Database/Eloquent/Factories/Factory.php index f3a4c26f2b39..31b63aa23ecb 100644 --- a/src/Illuminate/Database/Eloquent/Factories/Factory.php +++ b/src/Illuminate/Database/Eloquent/Factories/Factory.php @@ -151,15 +151,7 @@ abstract class Factory * Create a new factory instance. * * @param int|null $count - * @param \Illuminate\Support\Collection|null $states - * @param \Illuminate\Support\Collection|null $has - * @param \Illuminate\Support\Collection|null $for - * @param \Illuminate\Support\Collection|null $afterMaking - * @param \Illuminate\Support\Collection|null $afterCreating * @param string|null $connection - * @param \Illuminate\Support\Collection|null $recycle - * @param bool|null $expandRelationships - * @param array $excludeRelationships */ public function __construct( $count = null, @@ -207,7 +199,6 @@ public static function new($attributes = []) /** * Get a new factory instance for the given number of models. * - * @param int $count * @return static */ public static function times(int $count) @@ -229,7 +220,6 @@ public function configure() * Get the raw attributes generated by the factory. * * @param (callable(array): array)|array $attributes - * @param \Illuminate\Database\Eloquent\Model|null $parent * @return array */ public function raw($attributes = [], ?Model $parent = null) @@ -303,7 +293,6 @@ public function createManyQuietly(int|iterable|null $records = null) * Create a collection of models and persist them to the database. * * @param (callable(array): array)|array $attributes - * @param \Illuminate\Database\Eloquent\Model|null $parent * @return \Illuminate\Database\Eloquent\Collection|TModel */ public function create($attributes = [], ?Model $parent = null) @@ -331,7 +320,6 @@ public function create($attributes = [], ?Model $parent = null) * Create a collection of models and persist them to the database without dispatching any model events. * * @param (callable(array): array)|array $attributes - * @param \Illuminate\Database\Eloquent\Model|null $parent * @return \Illuminate\Database\Eloquent\Collection|TModel */ public function createQuietly($attributes = [], ?Model $parent = null) @@ -343,7 +331,6 @@ public function createQuietly($attributes = [], ?Model $parent = null) * Create a callback that persists a model in the database when invoked. * * @param array $attributes - * @param \Illuminate\Database\Eloquent\Model|null $parent * @return \Closure(): (\Illuminate\Database\Eloquent\Collection|TModel) */ public function lazy(array $attributes = [], ?Model $parent = null) @@ -379,7 +366,6 @@ protected function store(Collection $results) /** * Create the children for the given model. * - * @param \Illuminate\Database\Eloquent\Model $model * @return void */ protected function createChildren(Model $model) @@ -406,7 +392,6 @@ public function makeOne($attributes = []) * Create a collection of models. * * @param (callable(array): array)|array $attributes - * @param \Illuminate\Database\Eloquent\Model|null $parent * @return \Illuminate\Database\Eloquent\Collection|TModel */ public function make($attributes = [], ?Model $parent = null) @@ -447,7 +432,6 @@ public function make($attributes = [], ?Model $parent = null) /** * Make an instance of the model with the given attributes. * - * @param \Illuminate\Database\Eloquent\Model|null $parent * @return \Illuminate\Database\Eloquent\Model */ protected function makeInstance(?Model $parent) @@ -463,9 +447,6 @@ protected function makeInstance(?Model $parent) /** * Get a raw attributes array for the model. - * - * @param \Illuminate\Database\Eloquent\Model|null $parent - * @return mixed */ protected function getExpandedAttributes(?Model $parent) { @@ -475,7 +456,6 @@ protected function getExpandedAttributes(?Model $parent) /** * Get the raw attributes for the model as an array. * - * @param \Illuminate\Database\Eloquent\Model|null $parent * @return array */ protected function getRawAttributes(?Model $parent) @@ -509,7 +489,6 @@ protected function parentResolvers() /** * Expand all attributes to their underlying values. * - * @param array $definition * @return array */ protected function expandAttributes(array $definition) @@ -578,7 +557,6 @@ public function prependState($state) * Set a single model attribute. * * @param string|int $key - * @param mixed $value * @return static */ public function set($key, $value) @@ -589,7 +567,6 @@ public function set($key, $value) /** * Add a new sequenced state transformation to the model definition. * - * @param mixed ...$sequence * @return static */ public function sequence(...$sequence) @@ -622,7 +599,6 @@ public function crossJoinSequence(...$sequence) /** * Define a child relationship for the model. * - * @param \Illuminate\Database\Eloquent\Factories\Factory $factory * @param string|null $relationship * @return static */ @@ -638,7 +614,6 @@ public function has(self $factory, $relationship = null) /** * Attempt to guess the relationship name for a "has" relationship. * - * @param string $related * @return string */ protected function guessRelationship(string $related) @@ -745,7 +720,6 @@ public function afterCreating(Closure $callback) /** * Call the "after making" callbacks for the given model instances. * - * @param \Illuminate\Support\Collection $instances * @return void */ protected function callAfterMaking(Collection $instances) @@ -760,8 +734,6 @@ protected function callAfterMaking(Collection $instances) /** * Call the "after creating" callbacks for the given model instances. * - * @param \Illuminate\Support\Collection $instances - * @param \Illuminate\Database\Eloquent\Model|null $parent * @return void */ protected function callAfterCreating(Collection $instances, ?Model $parent = null) @@ -776,7 +748,6 @@ protected function callAfterCreating(Collection $instances, ?Model $parent = nul /** * Specify how many models should be generated. * - * @param int|null $count * @return static */ public function count(?int $count) @@ -808,7 +779,6 @@ public function getConnectionName() /** * Specify the database connection that should be used to generate models. * - * @param string $connection * @return static */ public function connection(string $connection) @@ -819,7 +789,6 @@ public function connection(string $connection) /** * Create a new instance of the factory builder with the given mutated properties. * - * @param array $arguments * @return static */ protected function newInstance(array $arguments = []) @@ -893,7 +862,6 @@ public static function guessModelNamesUsing(callable $callback) /** * Specify the default namespace that contains the application's model factories. * - * @param string $namespace * @return void */ public static function useNamespace(string $namespace) @@ -1015,7 +983,6 @@ public static function flushState() * * @param string $method * @param array $parameters - * @return mixed */ public function __call($method, $parameters) { diff --git a/src/Illuminate/Database/Eloquent/Factories/Relationship.php b/src/Illuminate/Database/Eloquent/Factories/Relationship.php index e23bc99d78b0..d249bc719d0f 100644 --- a/src/Illuminate/Database/Eloquent/Factories/Relationship.php +++ b/src/Illuminate/Database/Eloquent/Factories/Relationship.php @@ -26,7 +26,6 @@ class Relationship /** * Create a new child relationship instance. * - * @param \Illuminate\Database\Eloquent\Factories\Factory $factory * @param string $relationship */ public function __construct(Factory $factory, $relationship) @@ -38,7 +37,6 @@ public function __construct(Factory $factory, $relationship) /** * Create the child relationship for the given parent model. * - * @param \Illuminate\Database\Eloquent\Model $parent * @return void */ public function createFor(Model $parent) diff --git a/src/Illuminate/Database/Eloquent/Factories/Sequence.php b/src/Illuminate/Database/Eloquent/Factories/Sequence.php index 11971eced7da..65a0133d4e0c 100644 --- a/src/Illuminate/Database/Eloquent/Factories/Sequence.php +++ b/src/Illuminate/Database/Eloquent/Factories/Sequence.php @@ -29,8 +29,6 @@ class Sequence implements Countable /** * Create a new sequence instance. - * - * @param mixed ...$sequence */ public function __construct(...$sequence) { @@ -40,8 +38,6 @@ public function __construct(...$sequence) /** * Get the current count of the sequence items. - * - * @return int */ public function count(): int { @@ -50,8 +46,6 @@ public function count(): int /** * Get the next value in the sequence. - * - * @return mixed */ public function __invoke() { diff --git a/src/Illuminate/Database/Eloquent/HigherOrderBuilderProxy.php b/src/Illuminate/Database/Eloquent/HigherOrderBuilderProxy.php index dfcbbd677476..9b81b7d99ac0 100644 --- a/src/Illuminate/Database/Eloquent/HigherOrderBuilderProxy.php +++ b/src/Illuminate/Database/Eloquent/HigherOrderBuilderProxy.php @@ -38,7 +38,6 @@ public function __construct(Builder $builder, $method) * * @param string $method * @param array $parameters - * @return mixed */ public function __call($method, $parameters) { diff --git a/src/Illuminate/Database/Eloquent/JsonEncodingException.php b/src/Illuminate/Database/Eloquent/JsonEncodingException.php index f62abd469555..5e386de158c5 100644 --- a/src/Illuminate/Database/Eloquent/JsonEncodingException.php +++ b/src/Illuminate/Database/Eloquent/JsonEncodingException.php @@ -9,7 +9,6 @@ class JsonEncodingException extends RuntimeException /** * Create a new JSON encoding exception for the model. * - * @param mixed $model * @param string $message * @return static */ @@ -35,8 +34,6 @@ public static function forResource($resource, $message) /** * Create a new JSON encoding exception for an attribute. * - * @param mixed $model - * @param mixed $key * @param string $message * @return static */ diff --git a/src/Illuminate/Database/Eloquent/MassPrunable.php b/src/Illuminate/Database/Eloquent/MassPrunable.php index 6111ffd86b85..ab5dd21a7797 100644 --- a/src/Illuminate/Database/Eloquent/MassPrunable.php +++ b/src/Illuminate/Database/Eloquent/MassPrunable.php @@ -10,7 +10,6 @@ trait MassPrunable /** * Prune all prunable models in the database. * - * @param int $chunkSize * @return int */ public function pruneAll(int $chunkSize = 1000) diff --git a/src/Illuminate/Database/Eloquent/Model.php b/src/Illuminate/Database/Eloquent/Model.php index 0353e7e75e1f..a45a82a16ae8 100644 --- a/src/Illuminate/Database/Eloquent/Model.php +++ b/src/Illuminate/Database/Eloquent/Model.php @@ -411,7 +411,6 @@ protected static function booted() /** * Register a closure to be executed after the model has booted. * - * @param \Closure $callback * @return void */ protected static function whenBooted(Closure $callback) @@ -437,7 +436,6 @@ public static function clearBootedModels() /** * Disables relationship model touching for the current class during given callback scope. * - * @param callable $callback * @return void */ public static function withoutTouching(callable $callback) @@ -448,8 +446,6 @@ public static function withoutTouching(callable $callback) /** * Disables relationship model touching for the given model classes during given callback scope. * - * @param array $models - * @param callable $callback * @return void */ public static function withoutTouchingOn(array $models, callable $callback) @@ -489,7 +485,6 @@ public static function isIgnoringTouch($class = null) /** * Indicate that models should prevent lazy loading, silently discarding attributes, and accessing missing attributes. * - * @param bool $shouldBeStrict * @return void */ public static function shouldBeStrict(bool $shouldBeStrict = true) @@ -524,7 +519,6 @@ public static function automaticallyEagerLoadRelationships($value = true) /** * Register a callback that is responsible for handling lazy loading violations. * - * @param callable|null $callback * @return void */ public static function handleLazyLoadingViolationUsing(?callable $callback) @@ -546,7 +540,6 @@ public static function preventSilentlyDiscardingAttributes($value = true) /** * Register a callback that is responsible for handling discarded attribute violations. * - * @param callable|null $callback * @return void */ public static function handleDiscardedAttributeViolationUsing(?callable $callback) @@ -568,7 +561,6 @@ public static function preventAccessingMissingAttributes($value = true) /** * Register a callback that is responsible for handling missing attribute violations. * - * @param callable|null $callback * @return void */ public static function handleMissingAttributeViolationUsing(?callable $callback) @@ -578,9 +570,6 @@ public static function handleMissingAttributeViolationUsing(?callable $callback) /** * Execute a callback without broadcasting any model events for all model types. - * - * @param callable $callback - * @return mixed */ public static function withoutBroadcasting(callable $callback) { @@ -1013,7 +1002,6 @@ public function loadMorphAvg($relation, $relations, $column) * * @param string $column * @param float|int $amount - * @param array $extra * @return int */ protected function increment($column, $amount = 1, array $extra = []) @@ -1026,7 +1014,6 @@ protected function increment($column, $amount = 1, array $extra = []) * * @param string $column * @param float|int $amount - * @param array $extra * @return int */ protected function decrement($column, $amount = 1, array $extra = []) @@ -1127,7 +1114,6 @@ public function updateQuietly(array $attributes = [], array $options = []) * * @param string $column * @param float|int $amount - * @param array $extra * @return int */ protected function incrementQuietly($column, $amount = 1, array $extra = []) @@ -1142,7 +1128,6 @@ protected function incrementQuietly($column, $amount = 1, array $extra = []) * * @param string $column * @param float|int $amount - * @param array $extra * @return int */ protected function decrementQuietly($column, $amount = 1, array $extra = []) @@ -1196,7 +1181,6 @@ public function pushQuietly() /** * Save the model to the database without raising any events. * - * @param array $options * @return bool */ public function saveQuietly(array $options = []) @@ -1207,7 +1191,6 @@ public function saveQuietly(array $options = []) /** * Save the model to the database. * - * @param array $options * @return bool */ public function save(array $options = []) @@ -1256,7 +1239,6 @@ public function save(array $options = []) /** * Save the model to the database within a transaction. * - * @param array $options * @return bool * * @throws \Throwable @@ -1269,7 +1251,6 @@ public function saveOrFail(array $options = []) /** * Perform any actions that are necessary after the model is saved. * - * @param array $options * @return void */ protected function finishSave(array $options) @@ -1336,8 +1317,6 @@ protected function setKeysForSelectQuery($query) /** * Get the primary key value for a select query. - * - * @return mixed */ protected function getKeyForSelectQuery() { @@ -1359,8 +1338,6 @@ protected function setKeysForSaveQuery($query) /** * Get the primary key value for a save query. - * - * @return mixed */ protected function getKeyForSaveQuery() { @@ -1714,7 +1691,6 @@ protected function newBaseQueryBuilder() /** * Create a new pivot model instance. * - * @param \Illuminate\Database\Eloquent\Model $parent * @param array $attributes * @param string $table * @param bool $exists @@ -1743,8 +1719,6 @@ public function hasNamedScope($scope) * Apply the given named scope if possible. * * @param string $scope - * @param array $parameters - * @return mixed */ public function callNamedScope($scope, array $parameters = []) { @@ -1758,7 +1732,6 @@ public function callNamedScope($scope, array $parameters = []) /** * Determine if the given method has a scope attribute. * - * @param string $method * @return bool */ protected static function isScopeMethodWithAttribute(string $method) @@ -1814,8 +1787,6 @@ public function toPrettyJson() /** * Convert the object into something JSON serializable. - * - * @return mixed */ public function jsonSerialize(): mixed { @@ -1871,7 +1842,6 @@ public function refresh() /** * Clone the model into a new, non-existing instance. * - * @param array|null $except * @return static */ public function replicate(?array $except = null) @@ -1900,7 +1870,6 @@ public function replicate(?array $except = null) /** * Clone the model into a new, non-existing instance without raising any events. * - * @param array|null $except * @return static */ public function replicateQuietly(?array $except = null) @@ -1990,7 +1959,6 @@ public static function getConnectionResolver() /** * Set the connection resolver instance. * - * @param \Illuminate\Database\ConnectionResolverInterface $resolver * @return void */ public static function setConnectionResolver(Resolver $resolver) @@ -2112,8 +2080,6 @@ public function setIncrementing($value) /** * Get the value of the model's primary key. - * - * @return mixed */ public function getKey() { @@ -2122,8 +2088,6 @@ public function getKey() /** * Get the queueable identity for the entity. - * - * @return mixed */ public function getQueueableId() { @@ -2176,8 +2140,6 @@ public function getQueueableConnection() /** * Get the value of the model's route key. - * - * @return mixed */ public function getRouteKey() { @@ -2197,7 +2159,6 @@ public function getRouteKeyName() /** * Retrieve the model for a bound value. * - * @param mixed $value * @param string|null $field * @return \Illuminate\Database\Eloquent\Model|null */ @@ -2209,7 +2170,6 @@ public function resolveRouteBinding($value, $field = null) /** * Retrieve the model for a bound value. * - * @param mixed $value * @param string|null $field * @return \Illuminate\Database\Eloquent\Model|null */ @@ -2222,7 +2182,6 @@ public function resolveSoftDeletableRouteBinding($value, $field = null) * Retrieve the child model for a bound value. * * @param string $childType - * @param mixed $value * @param string|null $field * @return \Illuminate\Database\Eloquent\Model|null */ @@ -2235,7 +2194,6 @@ public function resolveChildRouteBinding($childType, $value, $field) * Retrieve the child model for a bound value. * * @param string $childType - * @param mixed $value * @param string|null $field * @return \Illuminate\Database\Eloquent\Model|null */ @@ -2248,7 +2206,6 @@ public function resolveSoftDeletableChildRouteBinding($childType, $value, $field * Retrieve the child model query for a bound value. * * @param string $childType - * @param mixed $value * @param string|null $field * @return \Illuminate\Database\Eloquent\Relations\Relation<\Illuminate\Database\Eloquent\Model, $this, *> */ @@ -2283,7 +2240,6 @@ protected function childRouteBindingRelationshipName($childType) * Retrieve the model for a bound value. * * @param \Illuminate\Database\Eloquent\Model|\Illuminate\Contracts\Database\Eloquent\Builder|\Illuminate\Database\Eloquent\Relations\Relation $query - * @param mixed $value * @param string|null $field * @return \Illuminate\Contracts\Database\Eloquent\Builder */ @@ -2413,7 +2369,6 @@ public function broadcastChannel() * Dynamically retrieve attributes on the model. * * @param string $key - * @return mixed */ public function __get($key) { @@ -2424,7 +2379,6 @@ public function __get($key) * Dynamically set attributes on the model. * * @param string $key - * @param mixed $value * @return void */ public function __set($key, $value) @@ -2434,9 +2388,6 @@ public function __set($key, $value) /** * Determine if the given attribute exists. - * - * @param mixed $offset - * @return bool */ public function offsetExists($offset): bool { @@ -2453,9 +2404,6 @@ public function offsetExists($offset): bool /** * Get the value for a given offset. - * - * @param mixed $offset - * @return mixed */ public function offsetGet($offset): mixed { @@ -2464,10 +2412,6 @@ public function offsetGet($offset): mixed /** * Set the value for a given offset. - * - * @param mixed $offset - * @param mixed $value - * @return void */ public function offsetSet($offset, $value): void { @@ -2476,9 +2420,6 @@ public function offsetSet($offset, $value): void /** * Unset the value for a given offset. - * - * @param mixed $offset - * @return void */ public function offsetUnset($offset): void { @@ -2517,7 +2458,6 @@ public function __unset($key) * * @param string $method * @param array $parameters - * @return mixed */ public function __call($method, $parameters) { @@ -2542,7 +2482,6 @@ public function __call($method, $parameters) * * @param string $method * @param array $parameters - * @return mixed */ public static function __callStatic($method, $parameters) { diff --git a/src/Illuminate/Database/Eloquent/ModelInspector.php b/src/Illuminate/Database/Eloquent/ModelInspector.php index 861794be89ab..192076705a9d 100644 --- a/src/Illuminate/Database/Eloquent/ModelInspector.php +++ b/src/Illuminate/Database/Eloquent/ModelInspector.php @@ -45,8 +45,6 @@ class ModelInspector /** * Create a new model inspector instance. - * - * @param \Illuminate\Contracts\Foundation\Application $app */ public function __construct(Application $app) { @@ -300,7 +298,6 @@ protected function getBuilder($model) /** * Qualify the given model class base name. * - * @param string $model * @return class-string<\Illuminate\Database\Eloquent\Model> * * @see \Illuminate\Console\GeneratorCommand @@ -386,7 +383,6 @@ protected function attributeIsHidden($attribute, $model) * * @param array $column * @param \Illuminate\Database\Eloquent\Model $model - * @return mixed */ protected function getColumnDefault($column, $model) { diff --git a/src/Illuminate/Database/Eloquent/PendingHasThroughRelationship.php b/src/Illuminate/Database/Eloquent/PendingHasThroughRelationship.php index ec79b38bd829..ddcde33afeaa 100644 --- a/src/Illuminate/Database/Eloquent/PendingHasThroughRelationship.php +++ b/src/Illuminate/Database/Eloquent/PendingHasThroughRelationship.php @@ -102,7 +102,6 @@ public function has($callback) * * @param string $method * @param array $parameters - * @return mixed */ public function __call($method, $parameters) { diff --git a/src/Illuminate/Database/Eloquent/Prunable.php b/src/Illuminate/Database/Eloquent/Prunable.php index 1eba87174804..c192c1faac4f 100644 --- a/src/Illuminate/Database/Eloquent/Prunable.php +++ b/src/Illuminate/Database/Eloquent/Prunable.php @@ -12,7 +12,6 @@ trait Prunable /** * Prune all prunable models in the database. * - * @param int $chunkSize * @return int */ public function pruneAll(int $chunkSize = 1000) diff --git a/src/Illuminate/Database/Eloquent/QueueEntityResolver.php b/src/Illuminate/Database/Eloquent/QueueEntityResolver.php index 22fccf245390..5dc4df5c1334 100644 --- a/src/Illuminate/Database/Eloquent/QueueEntityResolver.php +++ b/src/Illuminate/Database/Eloquent/QueueEntityResolver.php @@ -11,8 +11,6 @@ class QueueEntityResolver implements EntityResolverContract * Resolve the entity for the given ID. * * @param string $type - * @param mixed $id - * @return mixed * * @throws \Illuminate\Contracts\Queue\EntityNotFoundException */ diff --git a/src/Illuminate/Database/Eloquent/Relations/BelongsTo.php b/src/Illuminate/Database/Eloquent/Relations/BelongsTo.php index 908dc1eef1d9..be1093ad47d0 100755 --- a/src/Illuminate/Database/Eloquent/Relations/BelongsTo.php +++ b/src/Illuminate/Database/Eloquent/Relations/BelongsTo.php @@ -248,7 +248,6 @@ public function getRelationExistenceQuery(Builder $query, Builder $parentQuery, * * @param \Illuminate\Database\Eloquent\Builder $query * @param \Illuminate\Database\Eloquent\Builder $parentQuery - * @param mixed $columns * @return \Illuminate\Database\Eloquent\Builder */ public function getRelationExistenceQueryForSelfRelation(Builder $query, Builder $parentQuery, $columns = ['*']) @@ -318,8 +317,6 @@ public function getQualifiedForeignKeyName() /** * Get the key value of the child's foreign key. - * - * @return mixed */ public function getParentKey() { @@ -361,7 +358,6 @@ protected function getRelatedKeyFrom(Model $model) * Get the value of the model's foreign key. * * @param TDeclaringModel $model - * @return mixed */ protected function getForeignKeyFrom(Model $model) { diff --git a/src/Illuminate/Database/Eloquent/Relations/BelongsToMany.php b/src/Illuminate/Database/Eloquent/Relations/BelongsToMany.php index 23c4683b0b83..cc28312e2a87 100755 --- a/src/Illuminate/Database/Eloquent/Relations/BelongsToMany.php +++ b/src/Illuminate/Database/Eloquent/Relations/BelongsToMany.php @@ -364,8 +364,6 @@ public function as($accessor) * Set a where clause for a pivot table column. * * @param string|\Illuminate\Contracts\Database\Query\Expression $column - * @param mixed $operator - * @param mixed $value * @param string $boolean * @return $this */ @@ -380,7 +378,6 @@ public function wherePivot($column, $operator = null, $value = null, $boolean = * Set a "where between" clause for a pivot table column. * * @param string|\Illuminate\Contracts\Database\Query\Expression $column - * @param array $values * @param string $boolean * @param bool $not * @return $this @@ -394,7 +391,6 @@ public function wherePivotBetween($column, array $values, $boolean = 'and', $not * Set a "or where between" clause for a pivot table column. * * @param string|\Illuminate\Contracts\Database\Query\Expression $column - * @param array $values * @return $this */ public function orWherePivotBetween($column, array $values) @@ -406,7 +402,6 @@ public function orWherePivotBetween($column, array $values) * Set a "where pivot not between" clause for a pivot table column. * * @param string|\Illuminate\Contracts\Database\Query\Expression $column - * @param array $values * @param string $boolean * @return $this */ @@ -419,7 +414,6 @@ public function wherePivotNotBetween($column, array $values, $boolean = 'and') * Set a "or where not between" clause for a pivot table column. * * @param string|\Illuminate\Contracts\Database\Query\Expression $column - * @param array $values * @return $this */ public function orWherePivotNotBetween($column, array $values) @@ -431,7 +425,6 @@ public function orWherePivotNotBetween($column, array $values) * Set a "where in" clause for a pivot table column. * * @param string|\Illuminate\Contracts\Database\Query\Expression $column - * @param mixed $values * @param string $boolean * @param bool $not * @return $this @@ -447,8 +440,6 @@ public function wherePivotIn($column, $values, $boolean = 'and', $not = false) * Set an "or where" clause for a pivot table column. * * @param string|\Illuminate\Contracts\Database\Query\Expression $column - * @param mixed $operator - * @param mixed $value * @return $this */ public function orWherePivot($column, $operator = null, $value = null) @@ -462,7 +453,6 @@ public function orWherePivot($column, $operator = null, $value = null) * In addition, new pivot records will receive this value. * * @param string|\Illuminate\Contracts\Database\Query\Expression|array $column - * @param mixed $value * @return $this * * @throws \InvalidArgumentException @@ -490,7 +480,6 @@ public function withPivotValue($column, $value = null) * Set an "or where in" clause for a pivot table column. * * @param string $column - * @param mixed $values * @return $this */ public function orWherePivotIn($column, $values) @@ -502,7 +491,6 @@ public function orWherePivotIn($column, $values) * Set a "where not in" clause for a pivot table column. * * @param string|\Illuminate\Contracts\Database\Query\Expression $column - * @param mixed $values * @param string $boolean * @return $this */ @@ -515,7 +503,6 @@ public function wherePivotNotIn($column, $values, $boolean = 'and') * Set an "or where not in" clause for a pivot table column. * * @param string $column - * @param mixed $values * @return $this */ public function orWherePivotNotIn($column, $values) @@ -588,7 +575,6 @@ public function orderByPivot($column, $direction = 'asc') /** * Find a related model by its primary key or return a new instance of the related model. * - * @param mixed $id * @param array $columns * @return ( * $id is (\Illuminate\Contracts\Support\Arrayable|array) @@ -608,8 +594,6 @@ public function findOrNew($id, $columns = ['*']) /** * Get the first related model record matching the attributes or instantiate it. * - * @param array $attributes - * @param array $values * @return TRelatedModel&object{pivot: TPivotModel} */ public function firstOrNew(array $attributes = [], array $values = []) @@ -624,9 +608,6 @@ public function firstOrNew(array $attributes = [], array $values = []) /** * Get the first record matching the attributes. If the record is not found, create it. * - * @param array $attributes - * @param array $values - * @param array $joining * @param bool $touch * @return TRelatedModel&object{pivot: TPivotModel} */ @@ -650,9 +631,6 @@ public function firstOrCreate(array $attributes = [], array $values = [], array /** * Attempt to create the record. If a unique constraint violation occurs, attempt to find the matching record. * - * @param array $attributes - * @param array $values - * @param array $joining * @param bool $touch * @return TRelatedModel&object{pivot: TPivotModel} */ @@ -676,9 +654,6 @@ public function createOrFirst(array $attributes = [], array $values = [], array /** * Create or update a related record matching the attributes, and fill it with values. * - * @param array $attributes - * @param array $values - * @param array $joining * @param bool $touch * @return TRelatedModel&object{pivot: TPivotModel} */ @@ -696,7 +671,6 @@ public function updateOrCreate(array $attributes, array $values = [], array $joi /** * Find a related model by its primary key. * - * @param mixed $id * @param array $columns * @return ( * $id is (\Illuminate\Contracts\Support\Arrayable|array) @@ -718,7 +692,6 @@ public function find($id, $columns = ['*']) /** * Find a sole related model by its primary key. * - * @param mixed $id * @param array $columns * @return TRelatedModel&object{pivot: TPivotModel} * @@ -755,7 +728,6 @@ public function findMany($ids, $columns = ['*']) /** * Find a related model by its primary key or throw an exception. * - * @param mixed $id * @param array $columns * @return ( * $id is (\Illuminate\Contracts\Support\Arrayable|array) @@ -787,7 +759,6 @@ public function findOrFail($id, $columns = ['*']) * * @template TValue * - * @param mixed $id * @param (\Closure(): TValue)|list|string $columns * @param (\Closure(): TValue)|null $callback * @return ( @@ -823,8 +794,6 @@ public function findOr($id, $columns = ['*'], ?Closure $callback = null) * Add a basic where clause to the query, and return the first result. * * @param \Closure|string|array $column - * @param mixed $operator - * @param mixed $value * @param string $boolean * @return (TRelatedModel&object{pivot: TPivotModel})|null */ @@ -926,7 +895,6 @@ public function get($columns = ['*']) /** * Get the select columns for the relation query. * - * @param array $columns * @return array */ protected function shouldSelect(array $columns = ['*']) @@ -1015,7 +983,6 @@ public function cursorPaginate($perPage = null, $columns = ['*'], $cursorName = * Chunk the results of the query. * * @param int $count - * @param callable $callback * @return bool */ public function chunk($count, callable $callback) @@ -1031,7 +998,6 @@ public function chunk($count, callable $callback) * Chunk the results of a query by comparing numeric IDs. * * @param int $count - * @param callable $callback * @param string|null $column * @param string|null $alias * @return bool @@ -1045,7 +1011,6 @@ public function chunkById($count, callable $callback, $column = null, $alias = n * Chunk the results of a query by comparing IDs in descending order. * * @param int $count - * @param callable $callback * @param string|null $column * @param string|null $alias * @return bool @@ -1058,7 +1023,6 @@ public function chunkByIdDesc($count, callable $callback, $column = null, $alias /** * Execute a callback over each item while chunking by ID. * - * @param callable $callback * @param int $count * @param string|null $column * @param string|null $alias @@ -1079,7 +1043,6 @@ public function eachById(callable $callback, $count = 1000, $column = null, $ali * Chunk the results of a query by comparing IDs in a given order. * * @param int $count - * @param callable $callback * @param string|null $column * @param string|null $alias * @param bool $descending @@ -1103,7 +1066,6 @@ public function orderedChunkById($count, callable $callback, $column = null, $al /** * Execute a callback over each item while chunking. * - * @param callable $callback * @param int $count * @return bool */ @@ -1320,7 +1282,6 @@ public function allRelatedIds() * Save a new model and attach it to the parent model. * * @param TRelatedModel $model - * @param array $pivotAttributes * @param bool $touch * @return TRelatedModel&object{pivot: TPivotModel} */ @@ -1337,7 +1298,6 @@ public function save(Model $model, array $pivotAttributes = [], $touch = true) * Save a new model without raising any events and attach it to the parent model. * * @param TRelatedModel $model - * @param array $pivotAttributes * @param bool $touch * @return TRelatedModel&object{pivot: TPivotModel} */ @@ -1354,7 +1314,6 @@ public function saveQuietly(Model $model, array $pivotAttributes = [], $touch = * @template TContainer of \Illuminate\Support\Collection|array * * @param TContainer $models - * @param array $pivotAttributes * @return TContainer */ public function saveMany($models, array $pivotAttributes = []) @@ -1374,7 +1333,6 @@ public function saveMany($models, array $pivotAttributes = []) * @template TContainer of \Illuminate\Support\Collection|array * * @param TContainer $models - * @param array $pivotAttributes * @return TContainer */ public function saveManyQuietly($models, array $pivotAttributes = []) @@ -1387,8 +1345,6 @@ public function saveManyQuietly($models, array $pivotAttributes = []) /** * Create a new instance of the related model. * - * @param array $attributes - * @param array $joining * @param bool $touch * @return TRelatedModel&object{pivot: TPivotModel} */ @@ -1411,8 +1367,6 @@ public function create(array $attributes = [], array $joining = [], $touch = tru /** * Create an array of new instances of the related models. * - * @param iterable $records - * @param array $joinings * @return array */ public function createMany(iterable $records, array $joinings = []) @@ -1445,7 +1399,6 @@ public function getRelationExistenceQuery(Builder $query, Builder $parentQuery, * * @param \Illuminate\Database\Eloquent\Builder $query * @param \Illuminate\Database\Eloquent\Builder $parentQuery - * @param mixed $columns * @return \Illuminate\Database\Eloquent\Builder */ public function getRelationExistenceQueryForSelfJoin(Builder $query, Builder $parentQuery, $columns = ['*']) @@ -1510,8 +1463,6 @@ public function getExistenceCompareKey() /** * Specify that the pivot table has creation and update timestamps. * - * @param mixed $createdAt - * @param mixed $updatedAt * @return $this */ public function withTimestamps($createdAt = null, $updatedAt = null) diff --git a/src/Illuminate/Database/Eloquent/Relations/Concerns/AsPivot.php b/src/Illuminate/Database/Eloquent/Relations/Concerns/AsPivot.php index afd328a7ea94..67b540386aee 100644 --- a/src/Illuminate/Database/Eloquent/Relations/Concerns/AsPivot.php +++ b/src/Illuminate/Database/Eloquent/Relations/Concerns/AsPivot.php @@ -38,7 +38,6 @@ trait AsPivot /** * Create a new pivot model instance. * - * @param \Illuminate\Database\Eloquent\Model $parent * @param array $attributes * @param string $table * @param bool $exists @@ -71,7 +70,6 @@ public static function fromAttributes(Model $parent, $attributes, $table, $exist /** * Create a new pivot model from raw values returned from a query. * - * @param \Illuminate\Database\Eloquent\Model $parent * @param array $attributes * @param string $table * @param bool $exists @@ -224,7 +222,6 @@ public function setPivotKeys($foreignKey, $relatedKey) /** * Set the related model of the relationship. * - * @param \Illuminate\Database\Eloquent\Model|null $related * @return $this */ public function setRelatedModel(?Model $related = null) @@ -271,8 +268,6 @@ public function getUpdatedAtColumn() /** * Get the queueable identity for the entity. - * - * @return mixed */ public function getQueueableId() { diff --git a/src/Illuminate/Database/Eloquent/Relations/Concerns/CanBeOneOfMany.php b/src/Illuminate/Database/Eloquent/Relations/Concerns/CanBeOneOfMany.php index 800999f86c78..0a9da389c2bd 100644 --- a/src/Illuminate/Database/Eloquent/Relations/Concerns/CanBeOneOfMany.php +++ b/src/Illuminate/Database/Eloquent/Relations/Concerns/CanBeOneOfMany.php @@ -52,7 +52,6 @@ abstract public function getOneOfManySubQuerySelectColumns(); /** * Add join query constraints for one of many relationships. * - * @param \Illuminate\Database\Query\JoinClause $join * @return void */ abstract public function addOneOfManyJoinSubQueryConstraints(JoinClause $join); diff --git a/src/Illuminate/Database/Eloquent/Relations/Concerns/ComparesRelatedModels.php b/src/Illuminate/Database/Eloquent/Relations/Concerns/ComparesRelatedModels.php index 3dccf1310765..8d0f4ee53b3d 100644 --- a/src/Illuminate/Database/Eloquent/Relations/Concerns/ComparesRelatedModels.php +++ b/src/Illuminate/Database/Eloquent/Relations/Concerns/ComparesRelatedModels.php @@ -42,24 +42,17 @@ public function isNot($model) /** * Get the value of the parent model's key. - * - * @return mixed */ abstract public function getParentKey(); /** * Get the value of the model's related key. - * - * @param \Illuminate\Database\Eloquent\Model $model - * @return mixed */ abstract protected function getRelatedKeyFrom(Model $model); /** * Compare the parent key with the related key. * - * @param mixed $parentKey - * @param mixed $relatedKey * @return bool */ protected function compareKeys($parentKey, $relatedKey) diff --git a/src/Illuminate/Database/Eloquent/Relations/Concerns/InteractsWithDictionary.php b/src/Illuminate/Database/Eloquent/Relations/Concerns/InteractsWithDictionary.php index d94432e9a4e6..7aaf9d354673 100644 --- a/src/Illuminate/Database/Eloquent/Relations/Concerns/InteractsWithDictionary.php +++ b/src/Illuminate/Database/Eloquent/Relations/Concerns/InteractsWithDictionary.php @@ -12,8 +12,6 @@ trait InteractsWithDictionary /** * Get a dictionary key attribute - casting it to a string if necessary. * - * @param mixed $attribute - * @return mixed * * @throws \InvalidArgumentException */ diff --git a/src/Illuminate/Database/Eloquent/Relations/Concerns/InteractsWithPivotTable.php b/src/Illuminate/Database/Eloquent/Relations/Concerns/InteractsWithPivotTable.php index dd324d09a672..03b96eb20236 100644 --- a/src/Illuminate/Database/Eloquent/Relations/Concerns/InteractsWithPivotTable.php +++ b/src/Illuminate/Database/Eloquent/Relations/Concerns/InteractsWithPivotTable.php @@ -15,7 +15,6 @@ trait InteractsWithPivotTable * * Each existing model is detached, and non existing ones are attached. * - * @param mixed $ids * @param bool $touch * @return array */ @@ -135,8 +134,6 @@ public function sync($ids, $detaching = true) * Sync the intermediate tables with a list of IDs or collection of models with the given pivot values. * * @param \Illuminate\Support\Collection|\Illuminate\Database\Eloquent\Model|array|int|string $ids - * @param array $values - * @param bool $detaching * @return array{attached: array, detached: array, updated: array} */ public function syncWithPivotValues($ids, array $values, bool $detaching = true) @@ -149,7 +146,6 @@ public function syncWithPivotValues($ids, array $values, bool $detaching = true) /** * Format the sync / toggle record list so that it is keyed by ID. * - * @param array $records * @return array */ protected function formatRecordsList(array $records) @@ -170,8 +166,6 @@ protected function formatRecordsList(array $records) /** * Attach all of the records that aren't in the given current records. * - * @param array $records - * @param array $current * @param bool $touch * @return array */ @@ -204,8 +198,6 @@ protected function attachNew(array $records, array $current, $touch = true) /** * Update an existing pivot record on the table. * - * @param mixed $id - * @param array $attributes * @param bool $touch * @return int */ @@ -233,8 +225,6 @@ public function updateExistingPivot($id, array $attributes, $touch = true) /** * Update an existing pivot record on the table via a custom class. * - * @param mixed $id - * @param array $attributes * @param bool $touch * @return int */ @@ -258,8 +248,6 @@ protected function updateExistingPivotUsingCustomClass($id, array $attributes, $ /** * Attach a model to the parent. * - * @param mixed $ids - * @param array $attributes * @param bool $touch * @return void */ @@ -284,8 +272,6 @@ public function attach($ids, array $attributes = [], $touch = true) /** * Attach a model to the parent using a custom class. * - * @param mixed $ids - * @param array $attributes * @return void */ protected function attachUsingCustomClass($ids, array $attributes) @@ -303,7 +289,6 @@ protected function attachUsingCustomClass($ids, array $attributes) * Create an array of records to insert into the pivot table. * * @param array $ids - * @param array $attributes * @return array */ protected function formatAttachRecords($ids, array $attributes) @@ -329,7 +314,6 @@ protected function formatAttachRecords($ids, array $attributes) * Create a full attachment record payload. * * @param int $key - * @param mixed $value * @param array $attributes * @param bool $hasTimestamps * @return array @@ -346,9 +330,6 @@ protected function formatAttachRecord($key, $value, $attributes, $hasTimestamps) /** * Get the attach record ID and extra attributes. * - * @param mixed $key - * @param mixed $value - * @param array $attributes * @return array */ protected function extractAttachIdAndAttributes($key, $value, array $attributes) @@ -388,7 +369,6 @@ protected function baseAttachRecord($id, $timed) /** * Set the creation and update timestamps on an attach record. * - * @param array $record * @param bool $exists * @return array */ @@ -427,7 +407,6 @@ public function hasPivotColumn($column) /** * Detach models from the relationship. * - * @param mixed $ids * @param bool $touch * @return int */ @@ -467,7 +446,6 @@ public function detach($ids = null, $touch = true) /** * Detach models from the relationship using a custom class. * - * @param mixed $ids * @return int */ protected function detachUsingCustomClass($ids) @@ -496,7 +474,6 @@ protected function getCurrentlyAttachedPivots() /** * Get the pivot models that are currently attached, filtered by related model keys. * - * @param mixed $ids * @return \Illuminate\Support\Collection */ protected function getCurrentlyAttachedPivotsForIds($ids = null) @@ -520,7 +497,6 @@ protected function getCurrentlyAttachedPivotsForIds($ids = null) /** * Create a new pivot model instance. * - * @param array $attributes * @param bool $exists * @return \Illuminate\Database\Eloquent\Relations\Pivot */ @@ -540,7 +516,6 @@ public function newPivot(array $attributes = [], $exists = false) /** * Create a new existing pivot model instance. * - * @param array $attributes * @return \Illuminate\Database\Eloquent\Relations\Pivot */ public function newExistingPivot(array $attributes = []) @@ -561,7 +536,6 @@ public function newPivotStatement() /** * Get a new pivot statement for a given "other" ID. * - * @param mixed $id * @return \Illuminate\Database\Query\Builder */ public function newPivotStatementForId($id) @@ -596,7 +570,6 @@ public function newPivotQuery() /** * Set the columns on the pivot table to retrieve. * - * @param mixed $columns * @return $this */ public function withPivot($columns) @@ -611,7 +584,6 @@ public function withPivot($columns) /** * Get all of the IDs from the given mixed value. * - * @param mixed $value * @return array */ protected function parseIds($value) @@ -635,9 +607,6 @@ protected function parseIds($value) /** * Get the ID from the given mixed value. - * - * @param mixed $value - * @return mixed */ protected function parseId($value) { @@ -647,7 +616,6 @@ protected function parseId($value) /** * Cast the given keys to integers if they are numeric and string otherwise. * - * @param array $keys * @return array */ protected function castKeys(array $keys) @@ -659,9 +627,6 @@ protected function castKeys(array $keys) /** * Cast the given key to convert to primary key type. - * - * @param mixed $key - * @return mixed */ protected function castKey($key) { @@ -688,8 +653,6 @@ protected function castAttributes($attributes) * Converts a given value to a given type value. * * @param string $type - * @param mixed $value - * @return mixed */ protected function getTypeSwapValue($type, $value) { diff --git a/src/Illuminate/Database/Eloquent/Relations/Concerns/SupportsDefaultModels.php b/src/Illuminate/Database/Eloquent/Relations/Concerns/SupportsDefaultModels.php index 74e758f58571..56bb672aa5fd 100644 --- a/src/Illuminate/Database/Eloquent/Relations/Concerns/SupportsDefaultModels.php +++ b/src/Illuminate/Database/Eloquent/Relations/Concerns/SupportsDefaultModels.php @@ -18,7 +18,6 @@ trait SupportsDefaultModels /** * Make a new related instance for the given model. * - * @param \Illuminate\Database\Eloquent\Model $parent * @return \Illuminate\Database\Eloquent\Model */ abstract protected function newRelatedInstanceFor(Model $parent); @@ -39,7 +38,6 @@ public function withDefault($callback = true) /** * Get the default value for this relation. * - * @param \Illuminate\Database\Eloquent\Model $parent * @return \Illuminate\Database\Eloquent\Model|null */ protected function getDefaultFor(Model $parent) diff --git a/src/Illuminate/Database/Eloquent/Relations/Concerns/SupportsInverseRelations.php b/src/Illuminate/Database/Eloquent/Relations/Concerns/SupportsInverseRelations.php index c7140d0a31e0..30c4bcd0750a 100644 --- a/src/Illuminate/Database/Eloquent/Relations/Concerns/SupportsInverseRelations.php +++ b/src/Illuminate/Database/Eloquent/Relations/Concerns/SupportsInverseRelations.php @@ -11,8 +11,6 @@ trait SupportsInverseRelations { /** * The name of the inverse relationship. - * - * @var string|null */ protected ?string $inverseRelationship = null; @@ -21,7 +19,6 @@ trait SupportsInverseRelations * * Alias of "chaperone". * - * @param string|null $relation * @return $this */ public function inverse(?string $relation = null) @@ -32,7 +29,6 @@ public function inverse(?string $relation = null) /** * Instruct Eloquent to link the related models back to the parent after the relationship query has run. * - * @param string|null $relation * @return $this */ public function chaperone(?string $relation = null) @@ -58,8 +54,6 @@ public function chaperone(?string $relation = null) /** * Guess the name of the inverse relationship. - * - * @return string|null */ protected function guessInverseRelation(): ?string { @@ -89,7 +83,6 @@ protected function getPossibleInverseRelations(): array * Set the inverse relation on all models in a collection. * * @param \Illuminate\Database\Eloquent\Collection $models - * @param \Illuminate\Database\Eloquent\Model|null $parent * @return \Illuminate\Database\Eloquent\Collection */ protected function applyInverseRelationToCollection($models, ?Model $parent = null) @@ -106,8 +99,6 @@ protected function applyInverseRelationToCollection($models, ?Model $parent = nu /** * Set the inverse relation on a model. * - * @param \Illuminate\Database\Eloquent\Model $model - * @param \Illuminate\Database\Eloquent\Model|null $parent * @return \Illuminate\Database\Eloquent\Model */ protected function applyInverseRelationToModel(Model $model, ?Model $parent = null) diff --git a/src/Illuminate/Database/Eloquent/Relations/HasOne.php b/src/Illuminate/Database/Eloquent/Relations/HasOne.php index 911d4e26c760..2f7aa19f1c4a 100755 --- a/src/Illuminate/Database/Eloquent/Relations/HasOne.php +++ b/src/Illuminate/Database/Eloquent/Relations/HasOne.php @@ -83,7 +83,6 @@ public function getOneOfManySubQuerySelectColumns() /** * Add join query constraints for one of many relationships. * - * @param \Illuminate\Database\Query\JoinClause $join * @return void */ public function addOneOfManyJoinSubQueryConstraints(JoinClause $join) diff --git a/src/Illuminate/Database/Eloquent/Relations/HasOneOrMany.php b/src/Illuminate/Database/Eloquent/Relations/HasOneOrMany.php index c4c684d8e234..08fc683467d0 100755 --- a/src/Illuminate/Database/Eloquent/Relations/HasOneOrMany.php +++ b/src/Illuminate/Database/Eloquent/Relations/HasOneOrMany.php @@ -53,7 +53,6 @@ public function __construct(Builder $query, Model $parent, $foreignKey, $localKe /** * Create and return an un-saved instance of the related model. * - * @param array $attributes * @return TRelatedModel */ public function make(array $attributes = []) @@ -170,10 +169,8 @@ protected function matchOneOrMany(array $models, EloquentCollection $results, $r /** * Get the value of a relationship by one or many type. * - * @param array $dictionary * @param string $key * @param string $type - * @return mixed */ protected function getRelationValue(array $dictionary, $key, $type) { @@ -200,7 +197,6 @@ protected function buildDictionary(EloquentCollection $results) /** * Find a model by its primary key or return a new instance of the related model. * - * @param mixed $id * @param array $columns * @return ($id is (\Illuminate\Contracts\Support\Arrayable|array) ? \Illuminate\Database\Eloquent\Collection : TRelatedModel) */ @@ -218,8 +214,6 @@ public function findOrNew($id, $columns = ['*']) /** * Get the first related model record matching the attributes or instantiate it. * - * @param array $attributes - * @param array $values * @return TRelatedModel */ public function firstOrNew(array $attributes = [], array $values = []) @@ -236,8 +230,6 @@ public function firstOrNew(array $attributes = [], array $values = []) /** * Get the first record matching the attributes. If the record is not found, create it. * - * @param array $attributes - * @param array $values * @return TRelatedModel */ public function firstOrCreate(array $attributes = [], array $values = []) @@ -252,8 +244,6 @@ public function firstOrCreate(array $attributes = [], array $values = []) /** * Attempt to create the record. If a unique constraint violation occurs, attempt to find the matching record. * - * @param array $attributes - * @param array $values * @return TRelatedModel */ public function createOrFirst(array $attributes = [], array $values = []) @@ -268,8 +258,6 @@ public function createOrFirst(array $attributes = [], array $values = []) /** * Create or update a related record matching the attributes, and fill it with values. * - * @param array $attributes - * @param array $values * @return TRelatedModel */ public function updateOrCreate(array $attributes, array $values = []) @@ -284,7 +272,6 @@ public function updateOrCreate(array $attributes, array $values = []) /** * Insert new records or update the existing ones. * - * @param array $values * @param array|string $uniqueBy * @param array|null $update * @return int @@ -359,7 +346,6 @@ public function saveManyQuietly($models) /** * Create a new instance of the related model. * - * @param array $attributes * @return TRelatedModel */ public function create(array $attributes = []) @@ -376,7 +362,6 @@ public function create(array $attributes = []) /** * Create a new instance of the related model without raising any events to the parent model. * - * @param array $attributes * @return TRelatedModel */ public function createQuietly(array $attributes = []) @@ -387,7 +372,6 @@ public function createQuietly(array $attributes = []) /** * Create a new instance of the related model. Allow mass-assignment. * - * @param array $attributes * @return TRelatedModel */ public function forceCreate(array $attributes = []) @@ -400,7 +384,6 @@ public function forceCreate(array $attributes = []) /** * Create a new instance of the related model with mass assignment without raising model events. * - * @param array $attributes * @return TRelatedModel */ public function forceCreateQuietly(array $attributes = []) @@ -411,7 +394,6 @@ public function forceCreateQuietly(array $attributes = []) /** * Create a Collection of new instances of the related model. * - * @param iterable $records * @return \Illuminate\Database\Eloquent\Collection */ public function createMany(iterable $records) @@ -428,7 +410,6 @@ public function createMany(iterable $records) /** * Create a Collection of new instances of the related model without raising any events to the parent model. * - * @param iterable $records * @return \Illuminate\Database\Eloquent\Collection */ public function createManyQuietly(iterable $records) @@ -439,7 +420,6 @@ public function createManyQuietly(iterable $records) /** * Create a Collection of new instances of the related model, allowing mass-assignment. * - * @param iterable $records * @return \Illuminate\Database\Eloquent\Collection */ public function forceCreateMany(iterable $records) @@ -456,7 +436,6 @@ public function forceCreateMany(iterable $records) /** * Create a Collection of new instances of the related model, allowing mass-assignment and without raising any events to the parent model. * - * @param iterable $records * @return \Illuminate\Database\Eloquent\Collection */ public function forceCreateManyQuietly(iterable $records) @@ -500,7 +479,6 @@ public function getRelationExistenceQuery(Builder $query, Builder $parentQuery, * * @param \Illuminate\Database\Eloquent\Builder $query * @param \Illuminate\Database\Eloquent\Builder $parentQuery - * @param mixed $columns * @return \Illuminate\Database\Eloquent\Builder */ public function getRelationExistenceQueryForSelfRelation(Builder $query, Builder $parentQuery, $columns = ['*']) @@ -554,8 +532,6 @@ public function getExistenceCompareKey() /** * Get the key value of the parent's local key. - * - * @return mixed */ public function getParentKey() { diff --git a/src/Illuminate/Database/Eloquent/Relations/HasOneOrManyThrough.php b/src/Illuminate/Database/Eloquent/Relations/HasOneOrManyThrough.php index 0c3029f1ab18..8241efd826d1 100644 --- a/src/Illuminate/Database/Eloquent/Relations/HasOneOrManyThrough.php +++ b/src/Illuminate/Database/Eloquent/Relations/HasOneOrManyThrough.php @@ -196,8 +196,6 @@ protected function buildDictionary(EloquentCollection $results) /** * Get the first related model record matching the attributes or instantiate it. * - * @param array $attributes - * @param array $values * @return TRelatedModel */ public function firstOrNew(array $attributes = [], array $values = []) @@ -212,8 +210,6 @@ public function firstOrNew(array $attributes = [], array $values = []) /** * Get the first record matching the attributes. If the record is not found, create it. * - * @param array $attributes - * @param array $values * @return TRelatedModel */ public function firstOrCreate(array $attributes = [], array $values = []) @@ -228,8 +224,6 @@ public function firstOrCreate(array $attributes = [], array $values = []) /** * Attempt to create the record. If a unique constraint violation occurs, attempt to find the matching record. * - * @param array $attributes - * @param array $values * @return TRelatedModel */ public function createOrFirst(array $attributes = [], array $values = []) @@ -244,8 +238,6 @@ public function createOrFirst(array $attributes = [], array $values = []) /** * Create or update a related record matching the attributes, and fill it with values. * - * @param array $attributes - * @param array $values * @return TRelatedModel */ public function updateOrCreate(array $attributes, array $values = []) @@ -261,8 +253,6 @@ public function updateOrCreate(array $attributes, array $values = []) * Add a basic where clause to the query, and return the first result. * * @param \Closure|string|array $column - * @param mixed $operator - * @param mixed $value * @param string $boolean * @return TRelatedModel|null */ @@ -328,7 +318,6 @@ public function firstOr($columns = ['*'], ?Closure $callback = null) /** * Find a related model by its primary key. * - * @param mixed $id * @param array $columns * @return ($id is (\Illuminate\Contracts\Support\Arrayable|array) ? \Illuminate\Database\Eloquent\Collection : TRelatedModel|null) */ @@ -346,7 +335,6 @@ public function find($id, $columns = ['*']) /** * Find a sole related model by its primary key. * - * @param mixed $id * @param array $columns * @return TRelatedModel * @@ -383,7 +371,6 @@ public function findMany($ids, $columns = ['*']) /** * Find a related model by its primary key or throw an exception. * - * @param mixed $id * @param array $columns * @return ($id is (\Illuminate\Contracts\Support\Arrayable|array) ? \Illuminate\Database\Eloquent\Collection : TRelatedModel) * @@ -411,7 +398,6 @@ public function findOrFail($id, $columns = ['*']) * * @template TValue * - * @param mixed $id * @param (\Closure(): TValue)|list|string $columns * @param (\Closure(): TValue)|null $callback * @return ( @@ -513,7 +499,6 @@ public function cursorPaginate($perPage = null, $columns = ['*'], $cursorName = /** * Set the select clause for the relation query. * - * @param array $columns * @return array */ protected function shouldSelect(array $columns = ['*']) @@ -529,7 +514,6 @@ protected function shouldSelect(array $columns = ['*']) * Chunk the results of the query. * * @param int $count - * @param callable $callback * @return bool */ public function chunk($count, callable $callback) @@ -541,7 +525,6 @@ public function chunk($count, callable $callback) * Chunk the results of a query by comparing numeric IDs. * * @param int $count - * @param callable $callback * @param string|null $column * @param string|null $alias * @return bool @@ -559,7 +542,6 @@ public function chunkById($count, callable $callback, $column = null, $alias = n * Chunk the results of a query by comparing IDs in descending order. * * @param int $count - * @param callable $callback * @param string|null $column * @param string|null $alias * @return bool @@ -576,7 +558,6 @@ public function chunkByIdDesc($count, callable $callback, $column = null, $alias /** * Execute a callback over each item while chunking by ID. * - * @param callable $callback * @param int $count * @param string|null $column * @param string|null $alias @@ -604,7 +585,6 @@ public function cursor() /** * Execute a callback over each item while chunking. * - * @param callable $callback * @param int $count * @return bool */ @@ -702,7 +682,6 @@ public function getRelationExistenceQuery(Builder $query, Builder $parentQuery, * * @param \Illuminate\Database\Eloquent\Builder $query * @param \Illuminate\Database\Eloquent\Builder $parentQuery - * @param mixed $columns * @return \Illuminate\Database\Eloquent\Builder */ public function getRelationExistenceQueryForSelfRelation(Builder $query, Builder $parentQuery, $columns = ['*']) @@ -727,7 +706,6 @@ public function getRelationExistenceQueryForSelfRelation(Builder $query, Builder * * @param \Illuminate\Database\Eloquent\Builder $query * @param \Illuminate\Database\Eloquent\Builder $parentQuery - * @param mixed $columns * @return \Illuminate\Database\Eloquent\Builder */ public function getRelationExistenceQueryForThroughSelfRelation(Builder $query, Builder $parentQuery, $columns = ['*']) diff --git a/src/Illuminate/Database/Eloquent/Relations/MorphOne.php b/src/Illuminate/Database/Eloquent/Relations/MorphOne.php index fa3632efb3d1..4f1689426398 100755 --- a/src/Illuminate/Database/Eloquent/Relations/MorphOne.php +++ b/src/Illuminate/Database/Eloquent/Relations/MorphOne.php @@ -83,7 +83,6 @@ public function getOneOfManySubQuerySelectColumns() /** * Add join query constraints for one of many relationships. * - * @param \Illuminate\Database\Query\JoinClause $join * @return void */ public function addOneOfManyJoinSubQueryConstraints(JoinClause $join) diff --git a/src/Illuminate/Database/Eloquent/Relations/MorphOneOrMany.php b/src/Illuminate/Database/Eloquent/Relations/MorphOneOrMany.php index aff262759dbf..5e1abaf0c10e 100755 --- a/src/Illuminate/Database/Eloquent/Relations/MorphOneOrMany.php +++ b/src/Illuminate/Database/Eloquent/Relations/MorphOneOrMany.php @@ -72,7 +72,6 @@ public function addEagerConstraints(array $models) /** * Create a new instance of the related model. Allow mass-assignment. * - * @param array $attributes * @return TRelatedModel */ public function forceCreate(array $attributes = []) @@ -109,7 +108,6 @@ protected function setForeignAttributesForCreate(Model $model) /** * Insert new records or update the existing ones. * - * @param array $values * @param array|string $uniqueBy * @param array|null $update * @return int diff --git a/src/Illuminate/Database/Eloquent/Relations/MorphPivot.php b/src/Illuminate/Database/Eloquent/Relations/MorphPivot.php index 01aea33950fd..fef90dfa40bf 100644 --- a/src/Illuminate/Database/Eloquent/Relations/MorphPivot.php +++ b/src/Illuminate/Database/Eloquent/Relations/MorphPivot.php @@ -112,8 +112,6 @@ public function setMorphClass($morphClass) /** * Get the queueable identity for the entity. - * - * @return mixed */ public function getQueueableId() { @@ -156,7 +154,6 @@ public function newQueryForRestoration($ids) /** * Get a new query to restore multiple models by their queueable IDs. * - * @param array $ids * @return \Illuminate\Database\Eloquent\Builder */ protected function newQueryForCollectionRestoration(array $ids) diff --git a/src/Illuminate/Database/Eloquent/Relations/MorphTo.php b/src/Illuminate/Database/Eloquent/Relations/MorphTo.php index 22e0cfce7227..33d125adf14a 100644 --- a/src/Illuminate/Database/Eloquent/Relations/MorphTo.php +++ b/src/Illuminate/Database/Eloquent/Relations/MorphTo.php @@ -305,7 +305,6 @@ public function getDictionary() /** * Specify which relations to load for a given morph type. * - * @param array $with * @return $this */ public function morphWith(array $with) @@ -320,7 +319,6 @@ public function morphWith(array $with) /** * Specify which relationship counts to load for a given morph type. * - * @param array $withCount * @return $this */ public function morphWithCount(array $withCount) @@ -335,7 +333,6 @@ public function morphWithCount(array $withCount) /** * Specify constraints on the query for a given morph type. * - * @param array $callbacks * @return $this */ public function constrain(array $callbacks) @@ -429,7 +426,6 @@ public function getQualifiedOwnerKeyName() * * @param string $method * @param array $parameters - * @return mixed */ public function __call($method, $parameters) { diff --git a/src/Illuminate/Database/Eloquent/Relations/MorphToMany.php b/src/Illuminate/Database/Eloquent/Relations/MorphToMany.php index 91bbb4b72d3d..64a048601a9c 100644 --- a/src/Illuminate/Database/Eloquent/Relations/MorphToMany.php +++ b/src/Illuminate/Database/Eloquent/Relations/MorphToMany.php @@ -123,7 +123,6 @@ public function getRelationExistenceQuery(Builder $query, Builder $parentQuery, /** * Get the pivot models that are currently attached, filtered by related model keys. * - * @param mixed $ids * @return \Illuminate\Support\Collection */ protected function getCurrentlyAttachedPivotsForIds($ids = null) @@ -149,7 +148,6 @@ public function newPivotQuery() /** * Create a new pivot model instance. * - * @param array $attributes * @param bool $exists * @return TPivotModel */ diff --git a/src/Illuminate/Database/Eloquent/Relations/Relation.php b/src/Illuminate/Database/Eloquent/Relations/Relation.php index d9a232931ae8..5124de1540f3 100755 --- a/src/Illuminate/Database/Eloquent/Relations/Relation.php +++ b/src/Illuminate/Database/Eloquent/Relations/Relation.php @@ -231,7 +231,6 @@ public function touch() /** * Run a raw update against the base query. * - * @param array $attributes * @return int */ public function rawUpdate(array $attributes = []) @@ -260,7 +259,6 @@ public function getRelationExistenceCountQuery(Builder $query, Builder $parentQu * * @param \Illuminate\Database\Eloquent\Builder $query * @param \Illuminate\Database\Eloquent\Builder $parentQuery - * @param mixed $columns * @return \Illuminate\Database\Eloquent\Builder */ public function getRelationExistenceQuery(Builder $query, Builder $parentQuery, $columns = ['*']) @@ -398,9 +396,6 @@ public function relatedUpdatedAt() /** * Add a whereIn eager constraint for the given set of model keys to be loaded. * - * @param string $whereIn - * @param string $key - * @param array $modelKeys * @param \Illuminate\Database\Eloquent\Builder|null $query * @return void */ @@ -416,7 +411,6 @@ protected function whereInEager(string $whereIn, string $key, array $modelKeys, /** * Get the name of the "where in" method for eager loading. * - * @param \Illuminate\Database\Eloquent\Model $model * @param string $key * @return string */ @@ -527,7 +521,6 @@ public static function getMorphAlias(string $className) * * @param string $method * @param array $parameters - * @return mixed */ public function __call($method, $parameters) { diff --git a/src/Illuminate/Database/Eloquent/SoftDeletes.php b/src/Illuminate/Database/Eloquent/SoftDeletes.php index eb14f01b9be6..74bed90d4fae 100644 --- a/src/Illuminate/Database/Eloquent/SoftDeletes.php +++ b/src/Illuminate/Database/Eloquent/SoftDeletes.php @@ -115,8 +115,6 @@ public static function forceDestroy($ids) /** * Perform the actual delete query on this model instance. - * - * @return mixed */ protected function performDeleteOnModel() { diff --git a/src/Illuminate/Database/Events/DatabaseRefreshed.php b/src/Illuminate/Database/Events/DatabaseRefreshed.php index 66879b6aae6a..60f85e0c4d06 100644 --- a/src/Illuminate/Database/Events/DatabaseRefreshed.php +++ b/src/Illuminate/Database/Events/DatabaseRefreshed.php @@ -8,9 +8,6 @@ class DatabaseRefreshed implements MigrationEventContract { /** * Create a new event instance. - * - * @param string|null $database - * @param bool $seeding */ public function __construct( public ?string $database = null, diff --git a/src/Illuminate/Database/Events/MigrationEvent.php b/src/Illuminate/Database/Events/MigrationEvent.php index 83f10871a1d2..5e7755cfaf17 100644 --- a/src/Illuminate/Database/Events/MigrationEvent.php +++ b/src/Illuminate/Database/Events/MigrationEvent.php @@ -24,7 +24,6 @@ abstract class MigrationEvent implements MigrationEventContract /** * Create a new event instance. * - * @param \Illuminate\Database\Migrations\Migration $migration * @param string $method */ public function __construct(Migration $migration, $method) diff --git a/src/Illuminate/Database/Events/MigrationsPruned.php b/src/Illuminate/Database/Events/MigrationsPruned.php index 16e519e27c06..f48a227e8093 100644 --- a/src/Illuminate/Database/Events/MigrationsPruned.php +++ b/src/Illuminate/Database/Events/MigrationsPruned.php @@ -29,9 +29,6 @@ class MigrationsPruned /** * Create a new event instance. - * - * @param \Illuminate\Database\Connection $connection - * @param string $path */ public function __construct(Connection $connection, string $path) { diff --git a/src/Illuminate/Database/Grammar.php b/src/Illuminate/Database/Grammar.php index 1d437f0566ce..bc1c69a1eb6a 100755 --- a/src/Illuminate/Database/Grammar.php +++ b/src/Illuminate/Database/Grammar.php @@ -20,8 +20,6 @@ abstract class Grammar /** * Create a new grammar instance. - * - * @param \Illuminate\Database\Connection $connection */ public function __construct(Connection $connection) { @@ -212,7 +210,6 @@ public function parameterize(array $values) /** * Get the appropriate query parameter place-holder for a value. * - * @param mixed $value * @return string */ public function parameter($value) @@ -250,7 +247,6 @@ public function escape($value, $binary = false) /** * Determine if the given value is a raw expression. * - * @param mixed $value * @return bool */ public function isExpression($value) diff --git a/src/Illuminate/Database/LostConnectionDetector.php b/src/Illuminate/Database/LostConnectionDetector.php index 921475a09a65..53cea885e6b0 100644 --- a/src/Illuminate/Database/LostConnectionDetector.php +++ b/src/Illuminate/Database/LostConnectionDetector.php @@ -10,9 +10,6 @@ class LostConnectionDetector implements LostConnectionDetectorContract { /** * Determine if the given exception was caused by a lost connection. - * - * @param \Throwable $e - * @return bool */ public function causedByLostConnection(Throwable $e): bool { diff --git a/src/Illuminate/Database/MariaDbConnection.php b/src/Illuminate/Database/MariaDbConnection.php index c4040b6c34ad..23e489989f08 100755 --- a/src/Illuminate/Database/MariaDbConnection.php +++ b/src/Illuminate/Database/MariaDbConnection.php @@ -32,8 +32,6 @@ public function isMaria() /** * Get the server version for the connection. - * - * @return string */ public function getServerVersion(): string { @@ -77,8 +75,6 @@ protected function getDefaultSchemaGrammar() /** * Get the schema state for the connection. * - * @param \Illuminate\Filesystem\Filesystem|null $files - * @param callable|null $processFactory * @return \Illuminate\Database\Schema\MariaDbSchemaState */ public function getSchemaState(?Filesystem $files = null, ?callable $processFactory = null) diff --git a/src/Illuminate/Database/MigrationServiceProvider.php b/src/Illuminate/Database/MigrationServiceProvider.php index 037106c73579..1459b62c3d5b 100755 --- a/src/Illuminate/Database/MigrationServiceProvider.php +++ b/src/Illuminate/Database/MigrationServiceProvider.php @@ -101,7 +101,6 @@ protected function registerCreator() /** * Register the given commands. * - * @param array $commands * @return void */ protected function registerCommands(array $commands) diff --git a/src/Illuminate/Database/Migrations/DatabaseMigrationRepository.php b/src/Illuminate/Database/Migrations/DatabaseMigrationRepository.php index 8f093b4666a5..ffa347523045 100755 --- a/src/Illuminate/Database/Migrations/DatabaseMigrationRepository.php +++ b/src/Illuminate/Database/Migrations/DatabaseMigrationRepository.php @@ -30,7 +30,6 @@ class DatabaseMigrationRepository implements MigrationRepositoryInterface /** * Create a new database migration repository instance. * - * @param \Illuminate\Database\ConnectionResolverInterface $resolver * @param string $table */ public function __construct(Resolver $resolver, $table) diff --git a/src/Illuminate/Database/Migrations/Migration.php b/src/Illuminate/Database/Migrations/Migration.php index 35c8d43be388..81b502672f8a 100755 --- a/src/Illuminate/Database/Migrations/Migration.php +++ b/src/Illuminate/Database/Migrations/Migration.php @@ -30,8 +30,6 @@ public function getConnection() /** * Determine if this migration should run. - * - * @return bool */ public function shouldRun(): bool { diff --git a/src/Illuminate/Database/Migrations/MigrationCreator.php b/src/Illuminate/Database/Migrations/MigrationCreator.php index ba98eb658148..2aaa3612ba73 100755 --- a/src/Illuminate/Database/Migrations/MigrationCreator.php +++ b/src/Illuminate/Database/Migrations/MigrationCreator.php @@ -33,7 +33,6 @@ class MigrationCreator /** * Create a new migration creator instance. * - * @param \Illuminate\Filesystem\Filesystem $files * @param string $customStubPath */ public function __construct(Filesystem $files, $customStubPath) @@ -190,7 +189,6 @@ protected function firePostCreateHooks($table, $path) /** * Register a post migration create hook. * - * @param \Closure $callback * @return void */ public function afterCreate(Closure $callback) diff --git a/src/Illuminate/Database/Migrations/Migrator.php b/src/Illuminate/Database/Migrations/Migrator.php index 1ad82c2e035d..f24809893ea0 100755 --- a/src/Illuminate/Database/Migrations/Migrator.php +++ b/src/Illuminate/Database/Migrations/Migrator.php @@ -95,11 +95,6 @@ class Migrator /** * Create a new migrator instance. - * - * @param \Illuminate\Database\Migrations\MigrationRepositoryInterface $repository - * @param \Illuminate\Database\ConnectionResolverInterface $resolver - * @param \Illuminate\Filesystem\Filesystem $files - * @param \Illuminate\Contracts\Events\Dispatcher|null $dispatcher */ public function __construct( MigrationRepositoryInterface $repository, @@ -305,7 +300,6 @@ protected function getMigrationsForRollback(array $options) /** * Rollback the given migrations. * - * @param array $migrations * @param string[]|string $paths * @param array $options * @return string[] @@ -533,7 +527,6 @@ public function resolve($file) /** * Resolve a migration instance from a migration path. * - * @param string $path * @return object */ protected function resolvePath(string $path) @@ -557,9 +550,6 @@ protected function resolvePath(string $path) /** * Generate a migration class name based on the migration file name. - * - * @param string $migrationName - * @return string */ protected function getMigrationClass(string $migrationName): string { @@ -653,8 +643,6 @@ public function getConnection() * Execute the given callback using the given connection as the default connection. * * @param string $name - * @param callable $callback - * @return mixed */ public function usingConnection($name, callable $callback) { @@ -708,7 +696,6 @@ public function resolveConnection($connection) /** * Set a connection resolver callback. * - * @param \Closure $callback * @return void */ public static function resolveConnectionsUsing(Closure $callback) @@ -786,7 +773,6 @@ public function getFilesystem() /** * Set the output implementation that should be used by the console. * - * @param \Symfony\Component\Console\Output\OutputInterface $output * @return $this */ public function setOutput(OutputInterface $output) diff --git a/src/Illuminate/Database/MySqlConnection.php b/src/Illuminate/Database/MySqlConnection.php index 54c1aff0b7e9..1168b08c3544 100755 --- a/src/Illuminate/Database/MySqlConnection.php +++ b/src/Illuminate/Database/MySqlConnection.php @@ -74,7 +74,6 @@ protected function escapeBinary($value) /** * Determine if the given database exception was caused by a unique constraint violation. * - * @param \Exception $exception * @return bool */ protected function isUniqueConstraintError(Exception $exception) @@ -104,8 +103,6 @@ public function isMaria() /** * Get the server version for the connection. - * - * @return string */ public function getServerVersion(): string { @@ -151,8 +148,6 @@ protected function getDefaultSchemaGrammar() /** * Get the schema state for the connection. * - * @param \Illuminate\Filesystem\Filesystem|null $files - * @param callable|null $processFactory * @return \Illuminate\Database\Schema\MySqlSchemaState */ public function getSchemaState(?Filesystem $files = null, ?callable $processFactory = null) diff --git a/src/Illuminate/Database/PostgresConnection.php b/src/Illuminate/Database/PostgresConnection.php index f80b5dce5df1..1c1d5a707be3 100755 --- a/src/Illuminate/Database/PostgresConnection.php +++ b/src/Illuminate/Database/PostgresConnection.php @@ -47,7 +47,6 @@ protected function escapeBool($value) /** * Determine if the given database exception was caused by a unique constraint violation. * - * @param \Exception $exception * @return bool */ protected function isUniqueConstraintError(Exception $exception) @@ -92,8 +91,6 @@ protected function getDefaultSchemaGrammar() /** * Get the schema state for the connection. * - * @param \Illuminate\Filesystem\Filesystem|null $files - * @param callable|null $processFactory * @return \Illuminate\Database\Schema\PostgresSchemaState */ public function getSchemaState(?Filesystem $files = null, ?callable $processFactory = null) diff --git a/src/Illuminate/Database/Query/Builder.php b/src/Illuminate/Database/Query/Builder.php index b921164ef061..d0d3ffc589f8 100755 --- a/src/Illuminate/Database/Query/Builder.php +++ b/src/Illuminate/Database/Query/Builder.php @@ -278,7 +278,6 @@ public function __construct( /** * Set the columns to be selected. * - * @param mixed $columns * @return $this */ public function select($columns = ['*']) @@ -354,7 +353,6 @@ public function fromSub($query, $as) * Add a raw from clause to the query. * * @param string $expression - * @param mixed $bindings * @return $this */ public function fromRaw($expression, $bindings = []) @@ -389,7 +387,6 @@ protected function createSub($query) /** * Parse the subquery into SQL and bindings. * - * @param mixed $query * @return array * * @throws \InvalidArgumentException @@ -411,9 +408,6 @@ protected function parseSub($query) /** * Prepend the database name if the given query is on another database. - * - * @param mixed $query - * @return mixed */ protected function prependDatabaseNameIfCrossDatabaseQuery($query) { @@ -432,7 +426,6 @@ protected function prependDatabaseNameIfCrossDatabaseQuery($query) /** * Add a new select column to the query. * - * @param mixed $column * @return $this */ public function addSelect($column) @@ -815,8 +808,6 @@ public function mergeWheres($wheres, $bindings) * Add a basic where clause to the query. * * @param \Closure|string|array|\Illuminate\Contracts\Database\Query\Expression $column - * @param mixed $operator - * @param mixed $value * @param string $boolean * @return $this */ @@ -965,7 +956,6 @@ public function prepareValueAndOperator($value, $operator, $useDefault = false) * Prevents using Null values with invalid operators. * * @param string $operator - * @param mixed $value * @return bool */ protected function invalidOperatorAndValue($operator, $value) @@ -1002,8 +992,6 @@ protected function isBitwiseOperator($operator) * Add an "or where" clause to the query. * * @param \Closure|string|array|\Illuminate\Contracts\Database\Query\Expression $column - * @param mixed $operator - * @param mixed $value * @return $this */ public function orWhere($column, $operator = null, $value = null) @@ -1019,8 +1007,6 @@ public function orWhere($column, $operator = null, $value = null) * Add a basic "where not" clause to the query. * * @param \Closure|string|array|\Illuminate\Contracts\Database\Query\Expression $column - * @param mixed $operator - * @param mixed $value * @param string $boolean * @return $this */ @@ -1039,8 +1025,6 @@ public function whereNot($column, $operator = null, $value = null, $boolean = 'a * Add an "or where not" clause to the query. * * @param \Closure|string|array|\Illuminate\Contracts\Database\Query\Expression $column - * @param mixed $operator - * @param mixed $value * @return $this */ public function orWhereNot($column, $operator = null, $value = null) @@ -1102,7 +1086,6 @@ public function orWhereColumn($first, $operator = null, $second = null) * Add a raw where clause to the query. * * @param \Illuminate\Contracts\Database\Query\Expression|string $sql - * @param mixed $bindings * @param string $boolean * @return $this */ @@ -1119,7 +1102,6 @@ public function whereRaw($sql, $bindings = [], $boolean = 'and') * Add a raw or where clause to the query. * * @param string $sql - * @param mixed $bindings * @return $this */ public function orWhereRaw($sql, $bindings = []) @@ -1196,7 +1178,6 @@ public function orWhereNotLike($column, $value, $caseSensitive = false) * Add a "where in" clause to the query. * * @param \Illuminate\Contracts\Database\Query\Expression|string $column - * @param mixed $values * @param string $boolean * @param bool $not * @return $this @@ -1241,7 +1222,6 @@ public function whereIn($column, $values, $boolean = 'and', $not = false) * Add an "or where in" clause to the query. * * @param \Illuminate\Contracts\Database\Query\Expression|string $column - * @param mixed $values * @return $this */ public function orWhereIn($column, $values) @@ -1253,7 +1233,6 @@ public function orWhereIn($column, $values) * Add a "where not in" clause to the query. * * @param \Illuminate\Contracts\Database\Query\Expression|string $column - * @param mixed $values * @param string $boolean * @return $this */ @@ -1266,7 +1245,6 @@ public function whereNotIn($column, $values, $boolean = 'and') * Add an "or where not in" clause to the query. * * @param \Illuminate\Contracts\Database\Query\Expression|string $column - * @param mixed $values * @return $this */ public function orWhereNotIn($column, $values) @@ -1492,7 +1470,6 @@ public function orWhereNotBetweenColumns($column, array $values) /** * Add a where between columns statement using a value to the query. * - * @param mixed $value * @param array{\Illuminate\Contracts\Database\Query\Expression|string, \Illuminate\Contracts\Database\Query\Expression|string} $columns * @param string $boolean * @param bool $not @@ -1512,7 +1489,6 @@ public function whereValueBetween($value, array $columns, $boolean = 'and', $not /** * Add an or where between columns statement using a value to the query. * - * @param mixed $value * @param array{\Illuminate\Contracts\Database\Query\Expression|string, \Illuminate\Contracts\Database\Query\Expression|string} $columns * @return $this */ @@ -1524,7 +1500,6 @@ public function orWhereValueBetween($value, array $columns) /** * Add a where not between columns statement using a value to the query. * - * @param mixed $value * @param array{\Illuminate\Contracts\Database\Query\Expression|string, \Illuminate\Contracts\Database\Query\Expression|string} $columns * @param string $boolean * @return $this @@ -1537,7 +1512,6 @@ public function whereValueNotBetween($value, array $columns, $boolean = 'and') /** * Add an or where not between columns statement using a value to the query. * - * @param mixed $value * @param array{\Illuminate\Contracts\Database\Query\Expression|string, \Illuminate\Contracts\Database\Query\Expression|string} $columns * @return $this */ @@ -1811,7 +1785,6 @@ public function orWhereYear($column, $operator, $value = null) * @param string $type * @param \Illuminate\Contracts\Database\Query\Expression|string $column * @param string $operator - * @param mixed $value * @param string $boolean * @return $this */ @@ -2020,7 +1993,6 @@ public function orWhereRowValues($columns, $operator, $values) * Add a "where JSON contains" clause to the query. * * @param string $column - * @param mixed $value * @param string $boolean * @param bool $not * @return $this @@ -2042,7 +2014,6 @@ public function whereJsonContains($column, $value, $boolean = 'and', $not = fals * Add an "or where JSON contains" clause to the query. * * @param string $column - * @param mixed $value * @return $this */ public function orWhereJsonContains($column, $value) @@ -2054,7 +2025,6 @@ public function orWhereJsonContains($column, $value) * Add a "where JSON not contains" clause to the query. * * @param string $column - * @param mixed $value * @param string $boolean * @return $this */ @@ -2067,7 +2037,6 @@ public function whereJsonDoesntContain($column, $value, $boolean = 'and') * Add an "or where JSON not contains" clause to the query. * * @param string $column - * @param mixed $value * @return $this */ public function orWhereJsonDoesntContain($column, $value) @@ -2079,7 +2048,6 @@ public function orWhereJsonDoesntContain($column, $value) * Add a "where JSON overlaps" clause to the query. * * @param string $column - * @param mixed $value * @param string $boolean * @param bool $not * @return $this @@ -2101,7 +2069,6 @@ public function whereJsonOverlaps($column, $value, $boolean = 'and', $not = fals * Add an "or where JSON overlaps" clause to the query. * * @param string $column - * @param mixed $value * @return $this */ public function orWhereJsonOverlaps($column, $value) @@ -2113,7 +2080,6 @@ public function orWhereJsonOverlaps($column, $value) * Add a "where JSON not overlap" clause to the query. * * @param string $column - * @param mixed $value * @param string $boolean * @return $this */ @@ -2126,7 +2092,6 @@ public function whereJsonDoesntOverlap($column, $value, $boolean = 'and') * Add an "or where JSON not overlap" clause to the query. * * @param string $column - * @param mixed $value * @return $this */ public function orWhereJsonDoesntOverlap($column, $value) @@ -2189,8 +2154,6 @@ public function orWhereJsonDoesntContainKey($column) * Add a "where JSON length" clause to the query. * * @param string $column - * @param mixed $operator - * @param mixed $value * @param string $boolean * @return $this */ @@ -2222,8 +2185,6 @@ public function whereJsonLength($column, $operator, $value = null, $boolean = 'a * Add an "or where JSON length" clause to the query. * * @param string $column - * @param mixed $operator - * @param mixed $value * @return $this */ public function orWhereJsonLength($column, $operator, $value = null) @@ -2334,8 +2295,6 @@ public function orWhereFullText($columns, $value, array $options = []) * Add a "where" clause to the query for multiple columns with "and" conditions between them. * * @param \Illuminate\Contracts\Database\Query\Expression[]|\Closure[]|string[] $columns - * @param mixed $operator - * @param mixed $value * @param string $boolean * @return $this */ @@ -2358,8 +2317,6 @@ public function whereAll($columns, $operator = null, $value = null, $boolean = ' * Add an "or where" clause to the query for multiple columns with "and" conditions between them. * * @param \Illuminate\Contracts\Database\Query\Expression[]|\Closure[]|string[] $columns - * @param mixed $operator - * @param mixed $value * @return $this */ public function orWhereAll($columns, $operator = null, $value = null) @@ -2371,8 +2328,6 @@ public function orWhereAll($columns, $operator = null, $value = null) * Add a "where" clause to the query for multiple columns with "or" conditions between them. * * @param \Illuminate\Contracts\Database\Query\Expression[]|\Closure[]|string[] $columns - * @param mixed $operator - * @param mixed $value * @param string $boolean * @return $this */ @@ -2395,8 +2350,6 @@ public function whereAny($columns, $operator = null, $value = null, $boolean = ' * Add an "or where" clause to the query for multiple columns with "or" conditions between them. * * @param \Illuminate\Contracts\Database\Query\Expression[]|\Closure[]|string[] $columns - * @param mixed $operator - * @param mixed $value * @return $this */ public function orWhereAny($columns, $operator = null, $value = null) @@ -2408,8 +2361,6 @@ public function orWhereAny($columns, $operator = null, $value = null) * Add a "where not" clause to the query for multiple columns where none of the conditions should be true. * * @param \Illuminate\Contracts\Database\Query\Expression[]|\Closure[]|string[] $columns - * @param mixed $operator - * @param mixed $value * @param string $boolean * @return $this */ @@ -2422,8 +2373,6 @@ public function whereNone($columns, $operator = null, $value = null, $boolean = * Add an "or where not" clause to the query for multiple columns where none of the conditions should be true. * * @param \Illuminate\Contracts\Database\Query\Expression[]|\Closure[]|string[] $columns - * @param mixed $operator - * @param mixed $value * @return $this */ public function orWhereNone($columns, $operator = null, $value = null) @@ -3046,9 +2995,6 @@ public function afterQuery(Closure $callback) /** * Invoke the "after query" modification callbacks. - * - * @param mixed $result - * @return mixed */ public function applyAfterQueryCallbacks($result) { @@ -3100,7 +3046,6 @@ public function find($id, $columns = ['*']) * * @template TValue * - * @param mixed $id * @param (\Closure(): TValue)|string|\Illuminate\Contracts\Database\Query\Expression|array $columns * @param (\Closure(): TValue)|null $callback * @return object|TValue @@ -3124,7 +3069,6 @@ public function findOr($id, $columns = ['*'], ?Closure $callback = null) * Get a single column's value from the first result of a query. * * @param string $column - * @return mixed */ public function value($column) { @@ -3135,8 +3079,6 @@ public function value($column) /** * Get a single expression value from the first result of a query. - * - * @return mixed */ public function rawValue(string $expression, array $bindings = []) { @@ -3149,7 +3091,6 @@ public function rawValue(string $expression, array $bindings = []) * Get a single column's value from the first result of a query if it's the sole matching record. * * @param string $column - * @return mixed * * @throws \Illuminate\Database\RecordsNotFoundException * @throws \Illuminate\Database\MultipleRecordsFoundException @@ -3586,8 +3527,6 @@ public function doesntExist() /** * Execute the given callback if no rows exist for the current query. - * - * @return mixed */ public function existsOr(Closure $callback) { @@ -3596,8 +3535,6 @@ public function existsOr(Closure $callback) /** * Execute the given callback if rows exist for the current query. - * - * @return mixed */ public function doesntExistOr(Closure $callback) { @@ -3619,7 +3556,6 @@ public function count($columns = '*') * Retrieve the minimum value of a given column. * * @param \Illuminate\Contracts\Database\Query\Expression|string $column - * @return mixed */ public function min($column) { @@ -3630,7 +3566,6 @@ public function min($column) * Retrieve the maximum value of a given column. * * @param \Illuminate\Contracts\Database\Query\Expression|string $column - * @return mixed */ public function max($column) { @@ -3641,7 +3576,6 @@ public function max($column) * Retrieve the sum of the values of a given column. * * @param \Illuminate\Contracts\Database\Query\Expression|string $column - * @return mixed */ public function sum($column) { @@ -3654,7 +3588,6 @@ public function sum($column) * Retrieve the average of the values of a given column. * * @param \Illuminate\Contracts\Database\Query\Expression|string $column - * @return mixed */ public function avg($column) { @@ -3665,7 +3598,6 @@ public function avg($column) * Alias for the "avg" method. * * @param \Illuminate\Contracts\Database\Query\Expression|string $column - * @return mixed */ public function average($column) { @@ -3677,7 +3609,6 @@ public function average($column) * * @param string $function * @param array $columns - * @return mixed */ public function aggregate($function, $columns = ['*']) { @@ -4092,7 +4023,6 @@ public function decrementEach(array $columns, array $extra = []) /** * Delete records from the database. * - * @param mixed $id * @return int */ public function delete($id = null) @@ -4162,7 +4092,6 @@ public function getColumns() /** * Create a raw database expression. * - * @param mixed $value * @return \Illuminate\Contracts\Database\Query\Expression */ public function raw($value) @@ -4184,8 +4113,6 @@ protected function getUnionBuilders() /** * Get the "limit" value for the query or null if it's not set. - * - * @return mixed */ public function getLimit() { @@ -4196,8 +4123,6 @@ public function getLimit() /** * Get the "offset" value for the query or null if it's not set. - * - * @return mixed */ public function getOffset() { @@ -4259,7 +4184,6 @@ public function setBindings(array $bindings, $type = 'where') /** * Add a binding to the query. * - * @param mixed $value * @param "select"|"from"|"join"|"where"|"groupBy"|"having"|"order"|"union"|"unionOrder" $type * @return $this * @@ -4285,9 +4209,6 @@ public function addBinding($value, $type = 'where') /** * Cast the given binding value. - * - * @param mixed $value - * @return mixed */ public function castBinding($value) { @@ -4301,7 +4222,6 @@ public function castBinding($value) /** * Merge an array of bindings into our bindings. * - * @param self $query * @return $this */ public function mergeBindings(self $query) @@ -4330,9 +4250,6 @@ public function cleanBindings(array $bindings) /** * Get a scalar type value from an unknown type of input. - * - * @param mixed $value - * @return mixed */ protected function flattenValue($value) { @@ -4394,7 +4311,6 @@ public function useWritePdo() /** * Determine if the value is a query builder instance or a Closure. * - * @param mixed $value * @return bool */ protected function isQueryable($value) @@ -4446,7 +4362,6 @@ public function cloneWithoutBindings(array $except) /** * Dump the current SQL and bindings. * - * @param mixed ...$args * @return $this */ public function dump(...$args) @@ -4497,7 +4412,6 @@ public function ddRawSql() * * @param string $method * @param array $parameters - * @return mixed * * @throws \BadMethodCallException */ diff --git a/src/Illuminate/Database/Query/Expression.php b/src/Illuminate/Database/Query/Expression.php index 1568e1ff9436..8e03d0f7a2b6 100755 --- a/src/Illuminate/Database/Query/Expression.php +++ b/src/Illuminate/Database/Query/Expression.php @@ -23,7 +23,6 @@ public function __construct( /** * Get the value of the expression. * - * @param \Illuminate\Database\Grammar $grammar * @return TValue */ public function getValue(Grammar $grammar) diff --git a/src/Illuminate/Database/Query/Grammars/Grammar.php b/src/Illuminate/Database/Query/Grammars/Grammar.php index 6a42c4d7144e..d18dbfa1329e 100755 --- a/src/Illuminate/Database/Query/Grammars/Grammar.php +++ b/src/Illuminate/Database/Query/Grammars/Grammar.php @@ -53,7 +53,6 @@ class Grammar extends BaseGrammar /** * Compile a select query into SQL. * - * @param \Illuminate\Database\Query\Builder $query * @return string */ public function compileSelect(Builder $query) @@ -101,7 +100,6 @@ public function compileSelect(Builder $query) /** * Compile the components necessary for a select clause. * - * @param \Illuminate\Database\Query\Builder $query * @return array */ protected function compileComponents(Builder $query) @@ -122,7 +120,6 @@ protected function compileComponents(Builder $query) /** * Compile an aggregated select clause. * - * @param \Illuminate\Database\Query\Builder $query * @param array{function: string, columns: array<\Illuminate\Contracts\Database\Query\Expression|string>} $aggregate * @return string */ @@ -145,7 +142,6 @@ protected function compileAggregate(Builder $query, $aggregate) /** * Compile the "select *" portion of the query. * - * @param \Illuminate\Database\Query\Builder $query * @param array $columns * @return string|null */ @@ -170,7 +166,6 @@ protected function compileColumns(Builder $query, $columns) /** * Compile the "from" portion of the query. * - * @param \Illuminate\Database\Query\Builder $query * @param string $table * @return string */ @@ -182,7 +177,6 @@ protected function compileFrom(Builder $query, $table) /** * Compile the "join" portions of the query. * - * @param \Illuminate\Database\Query\Builder $query * @param array $joins * @return string */ @@ -206,9 +200,6 @@ protected function compileJoins(Builder $query, $joins) /** * Compile a "lateral join" clause. * - * @param \Illuminate\Database\Query\JoinLateralClause $join - * @param string $expression - * @return string * * @throws \RuntimeException */ @@ -220,7 +211,6 @@ public function compileJoinLateral(JoinLateralClause $join, string $expression): /** * Compile the "where" portions of the query. * - * @param \Illuminate\Database\Query\Builder $query * @return string */ public function compileWheres(Builder $query) @@ -272,7 +262,6 @@ protected function concatenateWhereClauses($query, $sql) /** * Compile a raw where clause. * - * @param \Illuminate\Database\Query\Builder $query * @param array $where * @return string */ @@ -284,7 +273,6 @@ protected function whereRaw(Builder $query, $where) /** * Compile a basic where clause. * - * @param \Illuminate\Database\Query\Builder $query * @param array $where * @return string */ @@ -300,7 +288,6 @@ protected function whereBasic(Builder $query, $where) /** * Compile a bitwise operator where clause. * - * @param \Illuminate\Database\Query\Builder $query * @param array $where * @return string */ @@ -312,7 +299,6 @@ protected function whereBitwise(Builder $query, $where) /** * Compile a "where like" clause. * - * @param \Illuminate\Database\Query\Builder $query * @param array $where * @return string */ @@ -330,7 +316,6 @@ protected function whereLike(Builder $query, $where) /** * Compile a "where in" clause. * - * @param \Illuminate\Database\Query\Builder $query * @param array $where * @return string */ @@ -346,7 +331,6 @@ protected function whereIn(Builder $query, $where) /** * Compile a "where not in" clause. * - * @param \Illuminate\Database\Query\Builder $query * @param array $where * @return string */ @@ -364,7 +348,6 @@ protected function whereNotIn(Builder $query, $where) * * For safety, whereIntegerInRaw ensures this method is only used with integer values. * - * @param \Illuminate\Database\Query\Builder $query * @param array $where * @return string */ @@ -382,7 +365,6 @@ protected function whereNotInRaw(Builder $query, $where) * * For safety, whereIntegerInRaw ensures this method is only used with integer values. * - * @param \Illuminate\Database\Query\Builder $query * @param array $where * @return string */ @@ -398,7 +380,6 @@ protected function whereInRaw(Builder $query, $where) /** * Compile a "where null" clause. * - * @param \Illuminate\Database\Query\Builder $query * @param array $where * @return string */ @@ -410,7 +391,6 @@ protected function whereNull(Builder $query, $where) /** * Compile a "where not null" clause. * - * @param \Illuminate\Database\Query\Builder $query * @param array $where * @return string */ @@ -422,7 +402,6 @@ protected function whereNotNull(Builder $query, $where) /** * Compile a "between" where clause. * - * @param \Illuminate\Database\Query\Builder $query * @param array $where * @return string */ @@ -440,7 +419,6 @@ protected function whereBetween(Builder $query, $where) /** * Compile a "between" where clause. * - * @param \Illuminate\Database\Query\Builder $query * @param array $where * @return string */ @@ -458,7 +436,6 @@ protected function whereBetweenColumns(Builder $query, $where) /** * Compile a "value between" where clause. * - * @param \Illuminate\Database\Query\Builder $query * @param array $where * @return string */ @@ -476,7 +453,6 @@ protected function whereValueBetween(Builder $query, $where) /** * Compile a "where date" clause. * - * @param \Illuminate\Database\Query\Builder $query * @param array $where * @return string */ @@ -488,7 +464,6 @@ protected function whereDate(Builder $query, $where) /** * Compile a "where time" clause. * - * @param \Illuminate\Database\Query\Builder $query * @param array $where * @return string */ @@ -500,7 +475,6 @@ protected function whereTime(Builder $query, $where) /** * Compile a "where day" clause. * - * @param \Illuminate\Database\Query\Builder $query * @param array $where * @return string */ @@ -512,7 +486,6 @@ protected function whereDay(Builder $query, $where) /** * Compile a "where month" clause. * - * @param \Illuminate\Database\Query\Builder $query * @param array $where * @return string */ @@ -524,7 +497,6 @@ protected function whereMonth(Builder $query, $where) /** * Compile a "where year" clause. * - * @param \Illuminate\Database\Query\Builder $query * @param array $where * @return string */ @@ -537,7 +509,6 @@ protected function whereYear(Builder $query, $where) * Compile a date based where clause. * * @param string $type - * @param \Illuminate\Database\Query\Builder $query * @param array $where * @return string */ @@ -551,7 +522,6 @@ protected function dateBasedWhere($type, Builder $query, $where) /** * Compile a where clause comparing two columns. * - * @param \Illuminate\Database\Query\Builder $query * @param array $where * @return string */ @@ -563,7 +533,6 @@ protected function whereColumn(Builder $query, $where) /** * Compile a nested where clause. * - * @param \Illuminate\Database\Query\Builder $query * @param array $where * @return string */ @@ -580,7 +549,6 @@ protected function whereNested(Builder $query, $where) /** * Compile a where condition with a sub-select. * - * @param \Illuminate\Database\Query\Builder $query * @param array $where * @return string */ @@ -594,7 +562,6 @@ protected function whereSub(Builder $query, $where) /** * Compile a where exists clause. * - * @param \Illuminate\Database\Query\Builder $query * @param array $where * @return string */ @@ -606,7 +573,6 @@ protected function whereExists(Builder $query, $where) /** * Compile a where exists clause. * - * @param \Illuminate\Database\Query\Builder $query * @param array $where * @return string */ @@ -618,7 +584,6 @@ protected function whereNotExists(Builder $query, $where) /** * Compile a where row values condition. * - * @param \Illuminate\Database\Query\Builder $query * @param array $where * @return string */ @@ -634,7 +599,6 @@ protected function whereRowValues(Builder $query, $where) /** * Compile a "where JSON boolean" clause. * - * @param \Illuminate\Database\Query\Builder $query * @param array $where * @return string */ @@ -652,7 +616,6 @@ protected function whereJsonBoolean(Builder $query, $where) /** * Compile a "where JSON contains" clause. * - * @param \Illuminate\Database\Query\Builder $query * @param array $where * @return string */ @@ -683,7 +646,6 @@ protected function compileJsonContains($column, $value) /** * Compile a "where JSON overlaps" clause. * - * @param \Illuminate\Database\Query\Builder $query * @param array $where * @return string */ @@ -714,7 +676,6 @@ protected function compileJsonOverlaps($column, $value) /** * Prepare the binding for a "JSON contains" statement. * - * @param mixed $binding * @return string */ public function prepareBindingForJsonContains($binding) @@ -725,7 +686,6 @@ public function prepareBindingForJsonContains($binding) /** * Compile a "where JSON contains key" clause. * - * @param \Illuminate\Database\Query\Builder $query * @param array $where * @return string */ @@ -754,7 +714,6 @@ protected function compileJsonContainsKey($column) /** * Compile a "where JSON length" clause. * - * @param \Illuminate\Database\Query\Builder $query * @param array $where * @return string */ @@ -796,7 +755,6 @@ public function compileJsonValueCast($value) /** * Compile a "where fulltext" clause. * - * @param \Illuminate\Database\Query\Builder $query * @param array $where * @return string */ @@ -808,7 +766,6 @@ public function whereFullText(Builder $query, $where) /** * Compile a clause based on an expression. * - * @param \Illuminate\Database\Query\Builder $query * @param array $where * @return string */ @@ -820,7 +777,6 @@ public function whereExpression(Builder $query, $where) /** * Compile the "group by" portions of the query. * - * @param \Illuminate\Database\Query\Builder $query * @param array $groups * @return string */ @@ -832,7 +788,6 @@ protected function compileGroups(Builder $query, $groups) /** * Compile the "having" portions of the query. * - * @param \Illuminate\Database\Query\Builder $query * @return string */ protected function compileHavings(Builder $query) @@ -845,7 +800,6 @@ protected function compileHavings(Builder $query) /** * Compile a single having clause. * - * @param array $having * @return string */ protected function compileHaving(array $having) @@ -965,7 +919,6 @@ protected function compileNestedHavings($having) /** * Compile the "order by" portions of the query. * - * @param \Illuminate\Database\Query\Builder $query * @param array $orders * @return string */ @@ -981,7 +934,6 @@ protected function compileOrders(Builder $query, $orders) /** * Compile the query orders to an array. * - * @param \Illuminate\Database\Query\Builder $query * @param array $orders * @return array */ @@ -1006,7 +958,6 @@ public function compileRandom($seed) /** * Compile the "limit" portions of the query. * - * @param \Illuminate\Database\Query\Builder $query * @param int $limit * @return string */ @@ -1018,7 +969,6 @@ protected function compileLimit(Builder $query, $limit) /** * Compile a group limit clause. * - * @param \Illuminate\Database\Query\Builder $query * @return string */ protected function compileGroupLimit(Builder $query) @@ -1078,7 +1028,6 @@ protected function compileRowNumber($partition, $orders) /** * Compile the "offset" portions of the query. * - * @param \Illuminate\Database\Query\Builder $query * @param int $offset * @return string */ @@ -1090,7 +1039,6 @@ protected function compileOffset(Builder $query, $offset) /** * Compile the "union" queries attached to the main query. * - * @param \Illuminate\Database\Query\Builder $query * @return string */ protected function compileUnions(Builder $query) @@ -1119,7 +1067,6 @@ protected function compileUnions(Builder $query) /** * Compile a single union statement. * - * @param array $union * @return string */ protected function compileUnion(array $union) @@ -1143,7 +1090,6 @@ protected function wrapUnion($sql) /** * Compile a union aggregate query into SQL. * - * @param \Illuminate\Database\Query\Builder $query * @return string */ protected function compileUnionAggregate(Builder $query) @@ -1158,7 +1104,6 @@ protected function compileUnionAggregate(Builder $query) /** * Compile an exists statement into SQL. * - * @param \Illuminate\Database\Query\Builder $query * @return string */ public function compileExists(Builder $query) @@ -1171,8 +1116,6 @@ public function compileExists(Builder $query) /** * Compile an insert statement into SQL. * - * @param \Illuminate\Database\Query\Builder $query - * @param array $values * @return string */ public function compileInsert(Builder $query, array $values) @@ -1205,8 +1148,6 @@ public function compileInsert(Builder $query, array $values) /** * Compile an insert ignore statement into SQL. * - * @param \Illuminate\Database\Query\Builder $query - * @param array $values * @return string * * @throws \RuntimeException @@ -1219,7 +1160,6 @@ public function compileInsertOrIgnore(Builder $query, array $values) /** * Compile an insert and get ID statement into SQL. * - * @param \Illuminate\Database\Query\Builder $query * @param array $values * @param string|null $sequence * @return string @@ -1232,9 +1172,6 @@ public function compileInsertGetId(Builder $query, $values, $sequence) /** * Compile an insert statement using a subquery into SQL. * - * @param \Illuminate\Database\Query\Builder $query - * @param array $columns - * @param string $sql * @return string */ public function compileInsertUsing(Builder $query, array $columns, string $sql) @@ -1251,9 +1188,6 @@ public function compileInsertUsing(Builder $query, array $columns, string $sql) /** * Compile an insert ignore statement using a subquery into SQL. * - * @param \Illuminate\Database\Query\Builder $query - * @param array $columns - * @param string $sql * @return string * * @throws \RuntimeException @@ -1266,8 +1200,6 @@ public function compileInsertOrIgnoreUsing(Builder $query, array $columns, strin /** * Compile an update statement into SQL. * - * @param \Illuminate\Database\Query\Builder $query - * @param array $values * @return string */ public function compileUpdate(Builder $query, array $values) @@ -1288,8 +1220,6 @@ public function compileUpdate(Builder $query, array $values) /** * Compile the columns for an update statement. * - * @param \Illuminate\Database\Query\Builder $query - * @param array $values * @return string */ protected function compileUpdateColumns(Builder $query, array $values) @@ -1302,7 +1232,6 @@ protected function compileUpdateColumns(Builder $query, array $values) /** * Compile an update statement without joins into SQL. * - * @param \Illuminate\Database\Query\Builder $query * @param string $table * @param string $columns * @param string $where @@ -1316,7 +1245,6 @@ protected function compileUpdateWithoutJoins(Builder $query, $table, $columns, $ /** * Compile an update statement with joins into SQL. * - * @param \Illuminate\Database\Query\Builder $query * @param string $table * @param string $columns * @param string $where @@ -1332,10 +1260,6 @@ protected function compileUpdateWithJoins(Builder $query, $table, $columns, $whe /** * Compile an "upsert" statement into SQL. * - * @param \Illuminate\Database\Query\Builder $query - * @param array $values - * @param array $uniqueBy - * @param array $update * @return string * * @throws \RuntimeException @@ -1348,8 +1272,6 @@ public function compileUpsert(Builder $query, array $values, array $uniqueBy, ar /** * Prepare the bindings for an update statement. * - * @param array $bindings - * @param array $values * @return array */ public function prepareBindingsForUpdate(array $bindings, array $values) @@ -1366,7 +1288,6 @@ public function prepareBindingsForUpdate(array $bindings, array $values) /** * Compile a delete statement into SQL. * - * @param \Illuminate\Database\Query\Builder $query * @return string */ public function compileDelete(Builder $query) @@ -1385,7 +1306,6 @@ public function compileDelete(Builder $query) /** * Compile a delete statement without joins into SQL. * - * @param \Illuminate\Database\Query\Builder $query * @param string $table * @param string $where * @return string @@ -1398,7 +1318,6 @@ protected function compileDeleteWithoutJoins(Builder $query, $table, $where) /** * Compile a delete statement with joins into SQL. * - * @param \Illuminate\Database\Query\Builder $query * @param string $table * @param string $where * @return string @@ -1415,7 +1334,6 @@ protected function compileDeleteWithJoins(Builder $query, $table, $where) /** * Prepare the bindings for a delete statement. * - * @param array $bindings * @return array */ public function prepareBindingsForDelete(array $bindings) @@ -1428,7 +1346,6 @@ public function prepareBindingsForDelete(array $bindings) /** * Compile a truncate table statement into SQL. * - * @param \Illuminate\Database\Query\Builder $query * @return array */ public function compileTruncate(Builder $query) @@ -1439,7 +1356,6 @@ public function compileTruncate(Builder $query) /** * Compile the lock into SQL. * - * @param \Illuminate\Database\Query\Builder $query * @param bool|string $value * @return string */ diff --git a/src/Illuminate/Database/Query/Grammars/MariaDbGrammar.php b/src/Illuminate/Database/Query/Grammars/MariaDbGrammar.php index da51125b9774..b746437055ad 100755 --- a/src/Illuminate/Database/Query/Grammars/MariaDbGrammar.php +++ b/src/Illuminate/Database/Query/Grammars/MariaDbGrammar.php @@ -11,9 +11,6 @@ class MariaDbGrammar extends MySqlGrammar /** * Compile a "lateral join" clause. * - * @param \Illuminate\Database\Query\JoinLateralClause $join - * @param string $expression - * @return string * * @throws \RuntimeException */ @@ -46,7 +43,6 @@ public function compileThreadCount() /** * Determine whether to use a legacy group limit clause for MySQL < 8.0. * - * @param \Illuminate\Database\Query\Builder $query * @return bool */ public function useLegacyGroupLimit(Builder $query) diff --git a/src/Illuminate/Database/Query/Grammars/MySqlGrammar.php b/src/Illuminate/Database/Query/Grammars/MySqlGrammar.php index 4372bae32791..717a258e481d 100755 --- a/src/Illuminate/Database/Query/Grammars/MySqlGrammar.php +++ b/src/Illuminate/Database/Query/Grammars/MySqlGrammar.php @@ -19,7 +19,6 @@ class MySqlGrammar extends Grammar /** * Compile a "where like" clause. * - * @param \Illuminate\Database\Query\Builder $query * @param array $where * @return string */ @@ -35,7 +34,6 @@ protected function whereLike(Builder $query, $where) /** * Add a "where null" clause to the query. * - * @param \Illuminate\Database\Query\Builder $query * @param array $where * @return string */ @@ -55,7 +53,6 @@ protected function whereNull(Builder $query, $where) /** * Add a "where not null" clause to the query. * - * @param \Illuminate\Database\Query\Builder $query * @param array $where * @return string */ @@ -75,7 +72,6 @@ protected function whereNotNull(Builder $query, $where) /** * Compile a "where fulltext" clause. * - * @param \Illuminate\Database\Query\Builder $query * @param array $where * @return string */ @@ -99,7 +95,6 @@ public function whereFullText(Builder $query, $where) /** * Compile the index hints for the query. * - * @param \Illuminate\Database\Query\Builder $query * @param \Illuminate\Database\Query\IndexHint $indexHint * @return string */ @@ -115,7 +110,6 @@ protected function compileIndexHint(Builder $query, $indexHint) /** * Compile a group limit clause. * - * @param \Illuminate\Database\Query\Builder $query * @return string */ protected function compileGroupLimit(Builder $query) @@ -128,7 +122,6 @@ protected function compileGroupLimit(Builder $query) /** * Determine whether to use a legacy group limit clause for MySQL < 8.0. * - * @param \Illuminate\Database\Query\Builder $query * @return bool */ public function useLegacyGroupLimit(Builder $query) @@ -143,7 +136,6 @@ public function useLegacyGroupLimit(Builder $query) * * Derived from https://softonsofa.com/tweaking-eloquent-relations-how-to-get-n-related-models-per-parent/. * - * @param \Illuminate\Database\Query\Builder $query * @return string */ protected function compileLegacyGroupLimit(Builder $query) @@ -191,8 +183,6 @@ protected function compileLegacyGroupLimit(Builder $query) /** * Compile an insert ignore statement into SQL. * - * @param \Illuminate\Database\Query\Builder $query - * @param array $values * @return string */ public function compileInsertOrIgnore(Builder $query, array $values) @@ -203,9 +193,6 @@ public function compileInsertOrIgnore(Builder $query, array $values) /** * Compile an insert ignore statement using a subquery into SQL. * - * @param \Illuminate\Database\Query\Builder $query - * @param array $columns - * @param string $sql * @return string */ public function compileInsertOrIgnoreUsing(Builder $query, array $columns, string $sql) @@ -294,7 +281,6 @@ public function compileRandom($seed) /** * Compile the lock into SQL. * - * @param \Illuminate\Database\Query\Builder $query * @param bool|string $value * @return string */ @@ -310,8 +296,6 @@ protected function compileLock(Builder $query, $value) /** * Compile an insert statement into SQL. * - * @param \Illuminate\Database\Query\Builder $query - * @param array $values * @return string */ public function compileInsert(Builder $query, array $values) @@ -326,8 +310,6 @@ public function compileInsert(Builder $query, array $values) /** * Compile the columns for an update statement. * - * @param \Illuminate\Database\Query\Builder $query - * @param array $values * @return string */ protected function compileUpdateColumns(Builder $query, array $values) @@ -344,10 +326,6 @@ protected function compileUpdateColumns(Builder $query, array $values) /** * Compile an "upsert" statement into SQL. * - * @param \Illuminate\Database\Query\Builder $query - * @param array $values - * @param array $uniqueBy - * @param array $update * @return string */ public function compileUpsert(Builder $query, array $values, array $uniqueBy, array $update) @@ -377,10 +355,6 @@ public function compileUpsert(Builder $query, array $values, array $uniqueBy, ar /** * Compile a "lateral join" clause. - * - * @param \Illuminate\Database\Query\JoinLateralClause $join - * @param string $expression - * @return string */ public function compileJoinLateral(JoinLateralClause $join, string $expression): string { @@ -391,7 +365,6 @@ public function compileJoinLateral(JoinLateralClause $join, string $expression): * Prepare a JSON column being updated using the JSON_SET function. * * @param string $key - * @param mixed $value * @return string */ protected function compileJsonUpdateColumn($key, $value) @@ -412,7 +385,6 @@ protected function compileJsonUpdateColumn($key, $value) /** * Compile an update statement without joins into SQL. * - * @param \Illuminate\Database\Query\Builder $query * @param string $table * @param string $columns * @param string $where @@ -438,8 +410,6 @@ protected function compileUpdateWithoutJoins(Builder $query, $table, $columns, $ * * Booleans, integers, and doubles are inserted into JSON updates as raw values. * - * @param array $bindings - * @param array $values * @return array */ public function prepareBindingsForUpdate(array $bindings, array $values) @@ -455,7 +425,6 @@ public function prepareBindingsForUpdate(array $bindings, array $values) /** * Compile a delete query that does not use joins. * - * @param \Illuminate\Database\Query\Builder $query * @param string $table * @param string $where * @return string diff --git a/src/Illuminate/Database/Query/Grammars/PostgresGrammar.php b/src/Illuminate/Database/Query/Grammars/PostgresGrammar.php index 615852e2ae7d..814a917a025b 100755 --- a/src/Illuminate/Database/Query/Grammars/PostgresGrammar.php +++ b/src/Illuminate/Database/Query/Grammars/PostgresGrammar.php @@ -49,7 +49,6 @@ class PostgresGrammar extends Grammar /** * Compile a basic where clause. * - * @param \Illuminate\Database\Query\Builder $query * @param array $where * @return string */ @@ -70,7 +69,6 @@ protected function whereBasic(Builder $query, $where) /** * Compile a bitwise operator where clause. * - * @param \Illuminate\Database\Query\Builder $query * @param array $where * @return string */ @@ -86,7 +84,6 @@ protected function whereBitwise(Builder $query, $where) /** * Compile a "where like" clause. * - * @param \Illuminate\Database\Query\Builder $query * @param array $where * @return string */ @@ -102,7 +99,6 @@ protected function whereLike(Builder $query, $where) /** * Compile a "where date" clause. * - * @param \Illuminate\Database\Query\Builder $query * @param array $where * @return string */ @@ -121,7 +117,6 @@ protected function whereDate(Builder $query, $where) /** * Compile a "where time" clause. * - * @param \Illuminate\Database\Query\Builder $query * @param array $where * @return string */ @@ -141,7 +136,6 @@ protected function whereTime(Builder $query, $where) * Compile a date based where clause. * * @param string $type - * @param \Illuminate\Database\Query\Builder $query * @param array $where * @return string */ @@ -155,7 +149,6 @@ protected function dateBasedWhere($type, Builder $query, $where) /** * Compile a "where fulltext" clause. * - * @param \Illuminate\Database\Query\Builder $query * @param array $where * @return string */ @@ -220,7 +213,6 @@ protected function validFullTextLanguages() /** * Compile the "select *" portion of the query. * - * @param \Illuminate\Database\Query\Builder $query * @param array $columns * @return string|null */ @@ -310,7 +302,6 @@ protected function compileJsonLength($column, $operator, $value) /** * Compile a single having clause. * - * @param array $having * @return string */ protected function compileHaving(array $having) @@ -340,7 +331,6 @@ protected function compileHavingBitwise($having) /** * Compile the lock into SQL. * - * @param \Illuminate\Database\Query\Builder $query * @param bool|string $value * @return string */ @@ -356,8 +346,6 @@ protected function compileLock(Builder $query, $value) /** * Compile an insert ignore statement into SQL. * - * @param \Illuminate\Database\Query\Builder $query - * @param array $values * @return string */ public function compileInsertOrIgnore(Builder $query, array $values) @@ -368,9 +356,6 @@ public function compileInsertOrIgnore(Builder $query, array $values) /** * Compile an insert ignore statement using a subquery into SQL. * - * @param \Illuminate\Database\Query\Builder $query - * @param array $columns - * @param string $sql * @return string */ public function compileInsertOrIgnoreUsing(Builder $query, array $columns, string $sql) @@ -381,7 +366,6 @@ public function compileInsertOrIgnoreUsing(Builder $query, array $columns, strin /** * Compile an insert and get ID statement into SQL. * - * @param \Illuminate\Database\Query\Builder $query * @param array $values * @param string|null $sequence * @return string @@ -394,8 +378,6 @@ public function compileInsertGetId(Builder $query, $values, $sequence) /** * Compile an update statement into SQL. * - * @param \Illuminate\Database\Query\Builder $query - * @param array $values * @return string */ public function compileUpdate(Builder $query, array $values) @@ -410,8 +392,6 @@ public function compileUpdate(Builder $query, array $values) /** * Compile the columns for an update statement. * - * @param \Illuminate\Database\Query\Builder $query - * @param array $values * @return string */ protected function compileUpdateColumns(Builder $query, array $values) @@ -430,10 +410,6 @@ protected function compileUpdateColumns(Builder $query, array $values) /** * Compile an "upsert" statement into SQL. * - * @param \Illuminate\Database\Query\Builder $query - * @param array $values - * @param array $uniqueBy - * @param array $update * @return string */ public function compileUpsert(Builder $query, array $values, array $uniqueBy, array $update) @@ -453,10 +429,6 @@ public function compileUpsert(Builder $query, array $values, array $uniqueBy, ar /** * Compile a "lateral join" clause. - * - * @param \Illuminate\Database\Query\JoinLateralClause $join - * @param string $expression - * @return string */ public function compileJoinLateral(JoinLateralClause $join, string $expression): string { @@ -467,7 +439,6 @@ public function compileJoinLateral(JoinLateralClause $join, string $expression): * Prepares a JSON column being updated using the JSONB_SET function. * * @param string $key - * @param mixed $value * @return string */ protected function compileJsonUpdateColumn($key, $value) @@ -484,7 +455,6 @@ protected function compileJsonUpdateColumn($key, $value) /** * Compile an update from statement into SQL. * - * @param \Illuminate\Database\Query\Builder $query * @param array $values * @return string */ @@ -520,7 +490,6 @@ public function compileUpdateFrom(Builder $query, $values) /** * Compile the additional where clauses for updates with joins. * - * @param \Illuminate\Database\Query\Builder $query * @return string */ protected function compileUpdateWheres(Builder $query) @@ -546,7 +515,6 @@ protected function compileUpdateWheres(Builder $query) /** * Compile the "join" clause where clauses for an update. * - * @param \Illuminate\Database\Query\Builder $query * @return string */ protected function compileUpdateJoinWheres(Builder $query) @@ -570,8 +538,6 @@ protected function compileUpdateJoinWheres(Builder $query) /** * Prepare the bindings for an update statement. * - * @param array $bindings - * @param array $values * @return array */ public function prepareBindingsForUpdateFrom(array $bindings, array $values) @@ -594,8 +560,6 @@ public function prepareBindingsForUpdateFrom(array $bindings, array $values) /** * Compile an update statement with joins or limit into SQL. * - * @param \Illuminate\Database\Query\Builder $query - * @param array $values * @return string */ protected function compileUpdateWithJoinsOrLimit(Builder $query, array $values) @@ -614,8 +578,6 @@ protected function compileUpdateWithJoinsOrLimit(Builder $query, array $values) /** * Prepare the bindings for an update statement. * - * @param array $bindings - * @param array $values * @return array */ public function prepareBindingsForUpdate(array $bindings, array $values) @@ -636,7 +598,6 @@ public function prepareBindingsForUpdate(array $bindings, array $values) /** * Compile a delete statement into SQL. * - * @param \Illuminate\Database\Query\Builder $query * @return string */ public function compileDelete(Builder $query) @@ -651,7 +612,6 @@ public function compileDelete(Builder $query) /** * Compile a delete statement with joins or limit into SQL. * - * @param \Illuminate\Database\Query\Builder $query * @return string */ protected function compileDeleteWithJoinsOrLimit(Builder $query) @@ -668,7 +628,6 @@ protected function compileDeleteWithJoinsOrLimit(Builder $query) /** * Compile a truncate table statement into SQL. * - * @param \Illuminate\Database\Query\Builder $query * @return array */ public function compileTruncate(Builder $query) @@ -815,7 +774,6 @@ public function getOperators() /** * Set any Postgres grammar specific custom operators. * - * @param array $operators * @return void */ public static function customOperators(array $operators) @@ -828,7 +786,6 @@ public static function customOperators(array $operators) /** * Enable or disable the "cascade" option when compiling the truncate statement. * - * @param bool $value * @return void */ public static function cascadeOnTruncate(bool $value = true) diff --git a/src/Illuminate/Database/Query/Grammars/SQLiteGrammar.php b/src/Illuminate/Database/Query/Grammars/SQLiteGrammar.php index a70571d2ceb9..435bb8128423 100755 --- a/src/Illuminate/Database/Query/Grammars/SQLiteGrammar.php +++ b/src/Illuminate/Database/Query/Grammars/SQLiteGrammar.php @@ -23,7 +23,6 @@ class SQLiteGrammar extends Grammar /** * Compile the lock into SQL. * - * @param \Illuminate\Database\Query\Builder $query * @param bool|string $value * @return string */ @@ -46,7 +45,6 @@ protected function wrapUnion($sql) /** * Compile a "where like" clause. * - * @param \Illuminate\Database\Query\Builder $query * @param array $where * @return string */ @@ -79,7 +77,6 @@ public function prepareWhereLikeBinding($value, $caseSensitive) /** * Compile a "where date" clause. * - * @param \Illuminate\Database\Query\Builder $query * @param array $where * @return string */ @@ -91,7 +88,6 @@ protected function whereDate(Builder $query, $where) /** * Compile a "where day" clause. * - * @param \Illuminate\Database\Query\Builder $query * @param array $where * @return string */ @@ -103,7 +99,6 @@ protected function whereDay(Builder $query, $where) /** * Compile a "where month" clause. * - * @param \Illuminate\Database\Query\Builder $query * @param array $where * @return string */ @@ -115,7 +110,6 @@ protected function whereMonth(Builder $query, $where) /** * Compile a "where year" clause. * - * @param \Illuminate\Database\Query\Builder $query * @param array $where * @return string */ @@ -127,7 +121,6 @@ protected function whereYear(Builder $query, $where) /** * Compile a "where time" clause. * - * @param \Illuminate\Database\Query\Builder $query * @param array $where * @return string */ @@ -140,7 +133,6 @@ protected function whereTime(Builder $query, $where) * Compile a date based where clause. * * @param string $type - * @param \Illuminate\Database\Query\Builder $query * @param array $where * @return string */ @@ -154,7 +146,6 @@ protected function dateBasedWhere($type, Builder $query, $where) /** * Compile the index hints for the query. * - * @param \Illuminate\Database\Query\Builder $query * @param \Illuminate\Database\Query\IndexHint $indexHint * @return string */ @@ -184,7 +175,6 @@ protected function compileJsonLength($column, $operator, $value) * Compile a "JSON contains" statement into SQL. * * @param string $column - * @param mixed $value * @return string */ protected function compileJsonContains($column, $value) @@ -196,9 +186,6 @@ protected function compileJsonContains($column, $value) /** * Prepare the binding for a "JSON contains" statement. - * - * @param mixed $binding - * @return mixed */ public function prepareBindingForJsonContains($binding) { @@ -221,7 +208,6 @@ protected function compileJsonContainsKey($column) /** * Compile a group limit clause. * - * @param \Illuminate\Database\Query\Builder $query * @return string */ protected function compileGroupLimit(Builder $query) @@ -240,8 +226,6 @@ protected function compileGroupLimit(Builder $query) /** * Compile an update statement into SQL. * - * @param \Illuminate\Database\Query\Builder $query - * @param array $values * @return string */ public function compileUpdate(Builder $query, array $values) @@ -256,8 +240,6 @@ public function compileUpdate(Builder $query, array $values) /** * Compile an insert ignore statement into SQL. * - * @param \Illuminate\Database\Query\Builder $query - * @param array $values * @return string */ public function compileInsertOrIgnore(Builder $query, array $values) @@ -268,9 +250,6 @@ public function compileInsertOrIgnore(Builder $query, array $values) /** * Compile an insert ignore statement using a subquery into SQL. * - * @param \Illuminate\Database\Query\Builder $query - * @param array $columns - * @param string $sql * @return string */ public function compileInsertOrIgnoreUsing(Builder $query, array $columns, string $sql) @@ -281,8 +260,6 @@ public function compileInsertOrIgnoreUsing(Builder $query, array $columns, strin /** * Compile the columns for an update statement. * - * @param \Illuminate\Database\Query\Builder $query - * @param array $values * @return string */ protected function compileUpdateColumns(Builder $query, array $values) @@ -305,10 +282,6 @@ protected function compileUpdateColumns(Builder $query, array $values) /** * Compile an "upsert" statement into SQL. * - * @param \Illuminate\Database\Query\Builder $query - * @param array $values - * @param array $uniqueBy - * @param array $update * @return string */ public function compileUpsert(Builder $query, array $values, array $uniqueBy, array $update) @@ -329,7 +302,6 @@ public function compileUpsert(Builder $query, array $values, array $uniqueBy, ar /** * Group the nested JSON columns. * - * @param array $values * @return array */ protected function groupJsonColumnsForUpdate(array $values) @@ -349,7 +321,6 @@ protected function groupJsonColumnsForUpdate(array $values) * Compile a "JSON" patch statement into SQL. * * @param string $column - * @param mixed $value * @return string */ protected function compileJsonPatch($column, $value) @@ -360,8 +331,6 @@ protected function compileJsonPatch($column, $value) /** * Compile an update statement with joins or limit into SQL. * - * @param \Illuminate\Database\Query\Builder $query - * @param array $values * @return string */ protected function compileUpdateWithJoinsOrLimit(Builder $query, array $values) @@ -380,8 +349,6 @@ protected function compileUpdateWithJoinsOrLimit(Builder $query, array $values) /** * Prepare the bindings for an update statement. * - * @param array $bindings - * @param array $values * @return array */ public function prepareBindingsForUpdate(array $bindings, array $values) @@ -404,7 +371,6 @@ public function prepareBindingsForUpdate(array $bindings, array $values) /** * Compile a delete statement into SQL. * - * @param \Illuminate\Database\Query\Builder $query * @return string */ public function compileDelete(Builder $query) @@ -419,7 +385,6 @@ public function compileDelete(Builder $query) /** * Compile a delete statement with joins or limit into SQL. * - * @param \Illuminate\Database\Query\Builder $query * @return string */ protected function compileDeleteWithJoinsOrLimit(Builder $query) @@ -436,7 +401,6 @@ protected function compileDeleteWithJoinsOrLimit(Builder $query) /** * Compile a truncate table statement into SQL. * - * @param \Illuminate\Database\Query\Builder $query * @return array */ public function compileTruncate(Builder $query) diff --git a/src/Illuminate/Database/Query/Grammars/SqlServerGrammar.php b/src/Illuminate/Database/Query/Grammars/SqlServerGrammar.php index 6c3b2836b020..9eae434106d5 100755 --- a/src/Illuminate/Database/Query/Grammars/SqlServerGrammar.php +++ b/src/Illuminate/Database/Query/Grammars/SqlServerGrammar.php @@ -44,7 +44,6 @@ class SqlServerGrammar extends Grammar /** * Compile a select query into SQL. * - * @param \Illuminate\Database\Query\Builder $query * @return string */ public function compileSelect(Builder $query) @@ -60,7 +59,6 @@ public function compileSelect(Builder $query) /** * Compile the "select *" portion of the query. * - * @param \Illuminate\Database\Query\Builder $query * @param array $columns * @return string|null */ @@ -85,7 +83,6 @@ protected function compileColumns(Builder $query, $columns) /** * Compile the "from" portion of the query. * - * @param \Illuminate\Database\Query\Builder $query * @param string $table * @return string */ @@ -107,7 +104,6 @@ protected function compileFrom(Builder $query, $table) /** * Compile the index hints for the query. * - * @param \Illuminate\Database\Query\Builder $query * @param \Illuminate\Database\Query\IndexHint $indexHint * @return string */ @@ -121,7 +117,6 @@ protected function compileIndexHint(Builder $query, $indexHint) /** * {@inheritdoc} * - * @param \Illuminate\Database\Query\Builder $query * @param array $where * @return string */ @@ -137,7 +132,6 @@ protected function whereBitwise(Builder $query, $where) /** * Compile a "where date" clause. * - * @param \Illuminate\Database\Query\Builder $query * @param array $where * @return string */ @@ -151,7 +145,6 @@ protected function whereDate(Builder $query, $where) /** * Compile a "where time" clause. * - * @param \Illuminate\Database\Query\Builder $query * @param array $where * @return string */ @@ -179,7 +172,6 @@ protected function compileJsonContains($column, $value) /** * Prepare the binding for a "JSON contains" statement. * - * @param mixed $binding * @return string */ public function prepareBindingForJsonContains($binding) @@ -241,7 +233,6 @@ public function compileJsonValueCast($value) /** * Compile a single having clause. * - * @param array $having * @return string */ protected function compileHaving(array $having) @@ -271,7 +262,6 @@ protected function compileHavingBitwise($having) /** * Compile a delete statement without joins into SQL. * - * @param \Illuminate\Database\Query\Builder $query * @param string $table * @param string $where * @return string @@ -299,7 +289,6 @@ public function compileRandom($seed) /** * Compile the "limit" portions of the query. * - * @param \Illuminate\Database\Query\Builder $query * @param int $limit * @return string */ @@ -333,7 +322,6 @@ protected function compileRowNumber($partition, $orders) /** * Compile the "offset" portions of the query. * - * @param \Illuminate\Database\Query\Builder $query * @param int $offset * @return string */ @@ -351,7 +339,6 @@ protected function compileOffset(Builder $query, $offset) /** * Compile the lock into SQL. * - * @param \Illuminate\Database\Query\Builder $query * @param bool|string $value * @return string */ @@ -374,7 +361,6 @@ protected function wrapUnion($sql) /** * Compile an exists statement into SQL. * - * @param \Illuminate\Database\Query\Builder $query * @return string */ public function compileExists(Builder $query) @@ -389,7 +375,6 @@ public function compileExists(Builder $query) /** * Compile an update statement with joins into SQL. * - * @param \Illuminate\Database\Query\Builder $query * @param string $table * @param string $columns * @param string $where @@ -407,10 +392,6 @@ protected function compileUpdateWithJoins(Builder $query, $table, $columns, $whe /** * Compile an "upsert" statement into SQL. * - * @param \Illuminate\Database\Query\Builder $query - * @param array $values - * @param array $uniqueBy - * @param array $update * @return string */ public function compileUpsert(Builder $query, array $values, array $uniqueBy, array $update) @@ -449,8 +430,6 @@ public function compileUpsert(Builder $query, array $values, array $uniqueBy, ar /** * Prepare the bindings for an update statement. * - * @param array $bindings - * @param array $values * @return array */ public function prepareBindingsForUpdate(array $bindings, array $values) @@ -464,10 +443,6 @@ public function prepareBindingsForUpdate(array $bindings, array $values) /** * Compile a "lateral join" clause. - * - * @param \Illuminate\Database\Query\JoinLateralClause $join - * @param string $expression - * @return string */ public function compileJoinLateral(JoinLateralClause $join, string $expression): string { diff --git a/src/Illuminate/Database/Query/JoinClause.php b/src/Illuminate/Database/Query/JoinClause.php index d5733f35504b..84a4c0c43066 100755 --- a/src/Illuminate/Database/Query/JoinClause.php +++ b/src/Illuminate/Database/Query/JoinClause.php @@ -51,7 +51,6 @@ class JoinClause extends Builder /** * Create a new join clause instance. * - * @param \Illuminate\Database\Query\Builder $parentQuery * @param string $type * @param string $table */ diff --git a/src/Illuminate/Database/Query/Processors/MySqlProcessor.php b/src/Illuminate/Database/Query/Processors/MySqlProcessor.php index 331f2d8a688e..c1d4d43c76b7 100644 --- a/src/Illuminate/Database/Query/Processors/MySqlProcessor.php +++ b/src/Illuminate/Database/Query/Processors/MySqlProcessor.php @@ -24,7 +24,6 @@ public function processColumnListing($results) /** * Process an "insert get ID" query. * - * @param \Illuminate\Database\Query\Builder $query * @param string $sql * @param array $values * @param string|null $sequence diff --git a/src/Illuminate/Database/Query/Processors/PostgresProcessor.php b/src/Illuminate/Database/Query/Processors/PostgresProcessor.php index 871575a5c488..bb9f35ba265c 100755 --- a/src/Illuminate/Database/Query/Processors/PostgresProcessor.php +++ b/src/Illuminate/Database/Query/Processors/PostgresProcessor.php @@ -9,7 +9,6 @@ class PostgresProcessor extends Processor /** * Process an "insert get ID" query. * - * @param \Illuminate\Database\Query\Builder $query * @param string $sql * @param array $values * @param string|null $sequence diff --git a/src/Illuminate/Database/Query/Processors/Processor.php b/src/Illuminate/Database/Query/Processors/Processor.php index 46f692e49a58..6881cf5f9352 100755 --- a/src/Illuminate/Database/Query/Processors/Processor.php +++ b/src/Illuminate/Database/Query/Processors/Processor.php @@ -9,7 +9,6 @@ class Processor /** * Process the results of a "select" query. * - * @param \Illuminate\Database\Query\Builder $query * @param array $results * @return array */ @@ -21,7 +20,6 @@ public function processSelect(Builder $query, $results) /** * Process an "insert get ID" query. * - * @param \Illuminate\Database\Query\Builder $query * @param string $sql * @param array $values * @param string|null $sequence diff --git a/src/Illuminate/Database/Query/Processors/SqlServerProcessor.php b/src/Illuminate/Database/Query/Processors/SqlServerProcessor.php index 8d000c4579ac..df531f57b27a 100755 --- a/src/Illuminate/Database/Query/Processors/SqlServerProcessor.php +++ b/src/Illuminate/Database/Query/Processors/SqlServerProcessor.php @@ -11,7 +11,6 @@ class SqlServerProcessor extends Processor /** * Process an "insert get ID" query. * - * @param \Illuminate\Database\Query\Builder $query * @param string $sql * @param array $values * @param string|null $sequence @@ -35,7 +34,6 @@ public function processInsertGetId(Builder $query, $sql, $values, $sequence = nu /** * Process an "insert get ID" query for ODBC. * - * @param \Illuminate\Database\Connection $connection * @return int * * @throws \Exception diff --git a/src/Illuminate/Database/QueryException.php b/src/Illuminate/Database/QueryException.php index a83657188538..1977ad979e94 100644 --- a/src/Illuminate/Database/QueryException.php +++ b/src/Illuminate/Database/QueryException.php @@ -35,8 +35,6 @@ class QueryException extends PDOException * * @param string $connectionName * @param string $sql - * @param array $bindings - * @param \Throwable $previous */ public function __construct($connectionName, $sql, array $bindings, Throwable $previous) { @@ -59,7 +57,6 @@ public function __construct($connectionName, $sql, array $bindings, Throwable $p * @param string $connectionName * @param string $sql * @param array $bindings - * @param \Throwable $previous * @return string */ protected function formatMessage($connectionName, $sql, $bindings, Throwable $previous) diff --git a/src/Illuminate/Database/SQLiteConnection.php b/src/Illuminate/Database/SQLiteConnection.php index 42a5947741f2..d117660693eb 100755 --- a/src/Illuminate/Database/SQLiteConnection.php +++ b/src/Illuminate/Database/SQLiteConnection.php @@ -54,7 +54,6 @@ protected function escapeBinary($value) /** * Determine if the given database exception was caused by a unique constraint violation. * - * @param \Exception $exception * @return bool */ protected function isUniqueConstraintError(Exception $exception) @@ -99,8 +98,6 @@ protected function getDefaultSchemaGrammar() /** * Get the schema state for the connection. * - * @param \Illuminate\Filesystem\Filesystem|null $files - * @param callable|null $processFactory * * @throws \RuntimeException */ diff --git a/src/Illuminate/Database/Schema/Blueprint.php b/src/Illuminate/Database/Schema/Blueprint.php index 5879b97981ca..9e2b1616a661 100755 --- a/src/Illuminate/Database/Schema/Blueprint.php +++ b/src/Illuminate/Database/Schema/Blueprint.php @@ -95,9 +95,7 @@ class Blueprint /** * Create a new schema blueprint. * - * @param \Illuminate\Database\Connection $connection * @param string $table - * @param \Closure|null $callback */ public function __construct(Connection $connection, $table, ?Closure $callback = null) { @@ -176,7 +174,6 @@ protected function ensureCommandsAreValid() * * @deprecated Will be removed in a future Laravel version. * - * @param array $names * @return \Illuminate\Support\Collection */ protected function commandsNamed(array $names) @@ -407,7 +404,6 @@ public function dropIfExists() /** * Indicate that the given columns should be dropped. * - * @param mixed $columns * @return \Illuminate\Support\Fluent */ public function dropColumn($columns) @@ -1099,7 +1095,6 @@ public function boolean($column) * Create a new enum column on the table. * * @param string $column - * @param array $allowed * @return \Illuminate\Database\Schema\ColumnDefinition */ public function enum($column, array $allowed) @@ -1113,7 +1108,6 @@ public function enum($column, array $allowed) * Create a new set column on the table. * * @param string $column - * @param array $allowed * @return \Illuminate\Database\Schema\ColumnDefinition */ public function set($column, array $allowed) @@ -1734,7 +1728,6 @@ protected function dropIndexCommand($command, $type, $index) * Create a default index name for the table. * * @param string $type - * @param array $columns * @return string */ protected function createIndexName($type, array $columns) @@ -1757,7 +1750,6 @@ protected function createIndexName($type, array $columns) * * @param string $type * @param string $name - * @param array $parameters * @return \Illuminate\Database\Schema\ColumnDefinition */ public function addColumn($type, $name, array $parameters = []) @@ -1794,7 +1786,6 @@ protected function addColumnDefinition($definition) * Add the columns from the callback after the given column. * * @param string $column - * @param \Closure $callback * @return void */ public function after($column, Closure $callback) @@ -1829,7 +1820,6 @@ public function removeColumn($name) * Add a new command to the blueprint. * * @param string $name - * @param array $parameters * @return \Illuminate\Support\Fluent */ protected function addCommand($name, array $parameters = []) @@ -1843,7 +1833,6 @@ protected function addCommand($name, array $parameters = []) * Create a new Fluent command. * * @param string $name - * @param array $parameters * @return \Illuminate\Support\Fluent */ protected function createCommand($name, array $parameters = []) @@ -1895,8 +1884,6 @@ public function getCommands() /** * Determine if the blueprint has state. - * - * @return bool */ private function hasState(): bool { diff --git a/src/Illuminate/Database/Schema/BlueprintState.php b/src/Illuminate/Database/Schema/BlueprintState.php index a4ad1149d479..b2811a9735a7 100644 --- a/src/Illuminate/Database/Schema/BlueprintState.php +++ b/src/Illuminate/Database/Schema/BlueprintState.php @@ -54,9 +54,6 @@ class BlueprintState /** * Create a new blueprint state instance. - * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Database\Connection $connection */ public function __construct(Blueprint $blueprint, Connection $connection) { diff --git a/src/Illuminate/Database/Schema/Builder.php b/src/Illuminate/Database/Schema/Builder.php index cf3018f89699..797ce49f264a 100755 --- a/src/Illuminate/Database/Schema/Builder.php +++ b/src/Illuminate/Database/Schema/Builder.php @@ -55,8 +55,6 @@ class Builder /** * Create a new database Schema manager. - * - * @param \Illuminate\Database\Connection $connection */ public function __construct(Connection $connection) { @@ -86,7 +84,6 @@ public static function defaultTimePrecision(?int $precision): void /** * Set the default morph key type for migrations. * - * @param string $type * @return void * * @throws \InvalidArgumentException @@ -295,9 +292,6 @@ public function hasColumns($table, array $columns) /** * Execute a table builder callback if the given table has a given column. * - * @param string $table - * @param string $column - * @param \Closure $callback * @return void */ public function whenTableHasColumn(string $table, string $column, Closure $callback) @@ -310,9 +304,6 @@ public function whenTableHasColumn(string $table, string $column, Closure $callb /** * Execute a table builder callback if the given table doesn't have a given column. * - * @param string $table - * @param string $column - * @param \Closure $callback * @return void */ public function whenTableDoesntHaveColumn(string $table, string $column, Closure $callback) @@ -452,7 +443,6 @@ public function getForeignKeys($table) * Modify a table on the schema. * * @param string $table - * @param \Closure $callback * @return void */ public function table($table, Closure $callback) @@ -464,7 +454,6 @@ public function table($table, Closure $callback) * Create a new table on the schema. * * @param string $table - * @param \Closure $callback * @return void */ public function create($table, Closure $callback) @@ -592,9 +581,6 @@ public function disableForeignKeyConstraints() /** * Disable foreign key constraints during the execution of a callback. - * - * @param \Closure $callback - * @return mixed */ public function withoutForeignKeyConstraints(Closure $callback) { @@ -610,7 +596,6 @@ public function withoutForeignKeyConstraints(Closure $callback) /** * Execute the blueprint to build / modify the table. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint * @return void */ protected function build(Blueprint $blueprint) @@ -622,7 +607,6 @@ protected function build(Blueprint $blueprint) * Create a new command set with a Closure. * * @param string $table - * @param \Closure|null $callback * @return \Illuminate\Database\Schema\Blueprint */ protected function createBlueprint($table, ?Closure $callback = null) diff --git a/src/Illuminate/Database/Schema/ForeignIdColumnDefinition.php b/src/Illuminate/Database/Schema/ForeignIdColumnDefinition.php index c7f66d19bb96..1ff6289e2cf9 100644 --- a/src/Illuminate/Database/Schema/ForeignIdColumnDefinition.php +++ b/src/Illuminate/Database/Schema/ForeignIdColumnDefinition.php @@ -16,7 +16,6 @@ class ForeignIdColumnDefinition extends ColumnDefinition /** * Create a new foreign ID column definition. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint * @param array $attributes */ public function __construct(Blueprint $blueprint, $attributes = []) diff --git a/src/Illuminate/Database/Schema/Grammars/Grammar.php b/src/Illuminate/Database/Schema/Grammars/Grammar.php index 8cadfec09219..e0007c9113e6 100755 --- a/src/Illuminate/Database/Schema/Grammars/Grammar.php +++ b/src/Illuminate/Database/Schema/Grammars/Grammar.php @@ -167,8 +167,6 @@ public function compileForeignKeys($schema, $table) /** * Compile a rename column command. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $command * @return list|string */ public function compileRenameColumn(Blueprint $blueprint, Fluent $command) @@ -183,8 +181,6 @@ public function compileRenameColumn(Blueprint $blueprint, Fluent $command) /** * Compile a change column command into a series of SQL statements. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $command * @return list|string * * @throws \RuntimeException @@ -197,8 +193,6 @@ public function compileChange(Blueprint $blueprint, Fluent $command) /** * Compile a fulltext index key command. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $command * @return string * * @throws \RuntimeException @@ -211,8 +205,6 @@ public function compileFulltext(Blueprint $blueprint, Fluent $command) /** * Compile a drop fulltext index command. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $command * @return string * * @throws \RuntimeException @@ -225,8 +217,6 @@ public function compileDropFullText(Blueprint $blueprint, Fluent $command) /** * Compile a foreign key command. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $command * @return string */ public function compileForeign(Blueprint $blueprint, Fluent $command) @@ -265,8 +255,6 @@ public function compileForeign(Blueprint $blueprint, Fluent $command) /** * Compile a drop foreign key command. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $command * @return string */ public function compileDropForeign(Blueprint $blueprint, Fluent $command) @@ -277,7 +265,6 @@ public function compileDropForeign(Blueprint $blueprint, Fluent $command) /** * Compile the blueprint's added column definitions. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint * @return array */ protected function getColumns(Blueprint $blueprint) @@ -294,7 +281,6 @@ protected function getColumns(Blueprint $blueprint) /** * Compile the column definition. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint * @param \Illuminate\Database\Schema\ColumnDefinition $column * @return string */ @@ -311,7 +297,6 @@ protected function getColumn(Blueprint $blueprint, $column) /** * Get the SQL for the column data type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function getType(Fluent $column) @@ -322,7 +307,6 @@ protected function getType(Fluent $column) /** * Create the column definition for a generated, computed column type. * - * @param \Illuminate\Support\Fluent $column * @return void * * @throws \RuntimeException @@ -335,7 +319,6 @@ protected function typeComputed(Fluent $column) /** * Create the column definition for a vector type. * - * @param \Illuminate\Support\Fluent $column * @return string * * @throws \RuntimeException @@ -348,7 +331,6 @@ protected function typeVector(Fluent $column) /** * Create the column definition for a raw column type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeRaw(Fluent $column) @@ -360,8 +342,6 @@ protected function typeRaw(Fluent $column) * Add the column modifiers to the definition. * * @param string $sql - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $column * @return string */ protected function addModifiers($sql, Blueprint $blueprint, Fluent $column) @@ -378,7 +358,6 @@ protected function addModifiers($sql, Blueprint $blueprint, Fluent $column) /** * Get the command with a given name if it exists on the blueprint. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint * @param string $name * @return \Illuminate\Support\Fluent|null */ @@ -394,7 +373,6 @@ protected function getCommandByName(Blueprint $blueprint, $name) /** * Get all of the commands with a given name. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint * @param string $name * @return array */ @@ -440,7 +418,6 @@ public function prefixArray($prefix, array $values) /** * Wrap a table in keyword identifiers. * - * @param mixed $table * @param string|null $prefix * @return string */ @@ -468,7 +445,6 @@ public function wrap($value) /** * Format a value so that it can be used in "default" clauses. * - * @param mixed $value * @return string */ protected function getDefaultValue($value) diff --git a/src/Illuminate/Database/Schema/Grammars/MariaDbGrammar.php b/src/Illuminate/Database/Schema/Grammars/MariaDbGrammar.php index 3cb682626587..cff931e9ac7e 100755 --- a/src/Illuminate/Database/Schema/Grammars/MariaDbGrammar.php +++ b/src/Illuminate/Database/Schema/Grammars/MariaDbGrammar.php @@ -20,7 +20,6 @@ public function compileRenameColumn(Blueprint $blueprint, Fluent $command) /** * Create the column definition for a uuid type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeUuid(Fluent $column) @@ -35,7 +34,6 @@ protected function typeUuid(Fluent $column) /** * Create the column definition for a spatial Geometry type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeGeometry(Fluent $column) diff --git a/src/Illuminate/Database/Schema/Grammars/MySqlGrammar.php b/src/Illuminate/Database/Schema/Grammars/MySqlGrammar.php index 16e8634d3e6b..0aecbfbce8b7 100755 --- a/src/Illuminate/Database/Schema/Grammars/MySqlGrammar.php +++ b/src/Illuminate/Database/Schema/Grammars/MySqlGrammar.php @@ -202,8 +202,6 @@ public function compileForeignKeys($schema, $table) /** * Compile a create table command. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $command * @return string */ public function compileCreate(Blueprint $blueprint, Fluent $command) @@ -257,7 +255,6 @@ protected function compileCreateTable($blueprint, $command) * Append the character set specifications to a command. * * @param string $sql - * @param \Illuminate\Database\Schema\Blueprint $blueprint * @return string */ protected function compileCreateEncoding($sql, Blueprint $blueprint) @@ -287,7 +284,6 @@ protected function compileCreateEncoding($sql, Blueprint $blueprint) * Append the engine specifications to a command. * * @param string $sql - * @param \Illuminate\Database\Schema\Blueprint $blueprint * @return string */ protected function compileCreateEngine($sql, Blueprint $blueprint) @@ -304,8 +300,6 @@ protected function compileCreateEngine($sql, Blueprint $blueprint) /** * Compile an add column command. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $command * @return string */ public function compileAdd(Blueprint $blueprint, Fluent $command) @@ -319,8 +313,6 @@ public function compileAdd(Blueprint $blueprint, Fluent $command) /** * Compile the auto-incrementing column starting values. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $command * @return string */ public function compileAutoIncrementStartingValues(Blueprint $blueprint, Fluent $command) @@ -348,8 +340,6 @@ public function compileRenameColumn(Blueprint $blueprint, Fluent $command) /** * Compile a rename column command for legacy versions of MySQL. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $command * @return string */ protected function compileLegacyRenameColumn(Blueprint $blueprint, Fluent $command) @@ -409,8 +399,6 @@ public function compileChange(Blueprint $blueprint, Fluent $command) /** * Compile a primary key command. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $command * @return string */ public function compilePrimary(Blueprint $blueprint, Fluent $command) @@ -425,8 +413,6 @@ public function compilePrimary(Blueprint $blueprint, Fluent $command) /** * Compile a unique key command. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $command * @return string */ public function compileUnique(Blueprint $blueprint, Fluent $command) @@ -437,8 +423,6 @@ public function compileUnique(Blueprint $blueprint, Fluent $command) /** * Compile a plain index key command. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $command * @return string */ public function compileIndex(Blueprint $blueprint, Fluent $command) @@ -449,8 +433,6 @@ public function compileIndex(Blueprint $blueprint, Fluent $command) /** * Compile a fulltext index key command. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $command * @return string */ public function compileFullText(Blueprint $blueprint, Fluent $command) @@ -461,8 +443,6 @@ public function compileFullText(Blueprint $blueprint, Fluent $command) /** * Compile a spatial index key command. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $command * @return string */ public function compileSpatialIndex(Blueprint $blueprint, Fluent $command) @@ -473,8 +453,6 @@ public function compileSpatialIndex(Blueprint $blueprint, Fluent $command) /** * Compile an index creation command. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $command * @param string $type * @return string */ @@ -492,8 +470,6 @@ protected function compileKey(Blueprint $blueprint, Fluent $command, $type) /** * Compile a drop table command. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $command * @return string */ public function compileDrop(Blueprint $blueprint, Fluent $command) @@ -504,8 +480,6 @@ public function compileDrop(Blueprint $blueprint, Fluent $command) /** * Compile a drop table (if exists) command. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $command * @return string */ public function compileDropIfExists(Blueprint $blueprint, Fluent $command) @@ -516,8 +490,6 @@ public function compileDropIfExists(Blueprint $blueprint, Fluent $command) /** * Compile a drop column command. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $command * @return string */ public function compileDropColumn(Blueprint $blueprint, Fluent $command) @@ -530,8 +502,6 @@ public function compileDropColumn(Blueprint $blueprint, Fluent $command) /** * Compile a drop primary key command. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $command * @return string */ public function compileDropPrimary(Blueprint $blueprint, Fluent $command) @@ -542,8 +512,6 @@ public function compileDropPrimary(Blueprint $blueprint, Fluent $command) /** * Compile a drop unique key command. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $command * @return string */ public function compileDropUnique(Blueprint $blueprint, Fluent $command) @@ -556,8 +524,6 @@ public function compileDropUnique(Blueprint $blueprint, Fluent $command) /** * Compile a drop index command. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $command * @return string */ public function compileDropIndex(Blueprint $blueprint, Fluent $command) @@ -570,8 +536,6 @@ public function compileDropIndex(Blueprint $blueprint, Fluent $command) /** * Compile a drop fulltext index command. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $command * @return string */ public function compileDropFullText(Blueprint $blueprint, Fluent $command) @@ -582,8 +546,6 @@ public function compileDropFullText(Blueprint $blueprint, Fluent $command) /** * Compile a drop spatial index command. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $command * @return string */ public function compileDropSpatialIndex(Blueprint $blueprint, Fluent $command) @@ -594,8 +556,6 @@ public function compileDropSpatialIndex(Blueprint $blueprint, Fluent $command) /** * Compile a drop foreign key command. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $command * @return string */ public function compileDropForeign(Blueprint $blueprint, Fluent $command) @@ -608,8 +568,6 @@ public function compileDropForeign(Blueprint $blueprint, Fluent $command) /** * Compile a rename table command. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $command * @return string */ public function compileRename(Blueprint $blueprint, Fluent $command) @@ -622,8 +580,6 @@ public function compileRename(Blueprint $blueprint, Fluent $command) /** * Compile a rename index command. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $command * @return string */ public function compileRenameIndex(Blueprint $blueprint, Fluent $command) @@ -680,8 +636,6 @@ public function compileDisableForeignKeyConstraints() /** * Compile a table comment command. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $command * @return string */ public function compileTableComment(Blueprint $blueprint, Fluent $command) @@ -709,7 +663,6 @@ public function escapeNames($names) /** * Create the column definition for a char type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeChar(Fluent $column) @@ -720,7 +673,6 @@ protected function typeChar(Fluent $column) /** * Create the column definition for a string type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeString(Fluent $column) @@ -731,7 +683,6 @@ protected function typeString(Fluent $column) /** * Create the column definition for a tiny text type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeTinyText(Fluent $column) @@ -742,7 +693,6 @@ protected function typeTinyText(Fluent $column) /** * Create the column definition for a text type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeText(Fluent $column) @@ -753,7 +703,6 @@ protected function typeText(Fluent $column) /** * Create the column definition for a medium text type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeMediumText(Fluent $column) @@ -764,7 +713,6 @@ protected function typeMediumText(Fluent $column) /** * Create the column definition for a long text type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeLongText(Fluent $column) @@ -775,7 +723,6 @@ protected function typeLongText(Fluent $column) /** * Create the column definition for a big integer type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeBigInteger(Fluent $column) @@ -786,7 +733,6 @@ protected function typeBigInteger(Fluent $column) /** * Create the column definition for an integer type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeInteger(Fluent $column) @@ -797,7 +743,6 @@ protected function typeInteger(Fluent $column) /** * Create the column definition for a medium integer type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeMediumInteger(Fluent $column) @@ -808,7 +753,6 @@ protected function typeMediumInteger(Fluent $column) /** * Create the column definition for a tiny integer type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeTinyInteger(Fluent $column) @@ -819,7 +763,6 @@ protected function typeTinyInteger(Fluent $column) /** * Create the column definition for a small integer type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeSmallInteger(Fluent $column) @@ -830,7 +773,6 @@ protected function typeSmallInteger(Fluent $column) /** * Create the column definition for a float type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeFloat(Fluent $column) @@ -845,7 +787,6 @@ protected function typeFloat(Fluent $column) /** * Create the column definition for a double type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeDouble(Fluent $column) @@ -856,7 +797,6 @@ protected function typeDouble(Fluent $column) /** * Create the column definition for a decimal type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeDecimal(Fluent $column) @@ -867,7 +807,6 @@ protected function typeDecimal(Fluent $column) /** * Create the column definition for a boolean type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeBoolean(Fluent $column) @@ -878,7 +817,6 @@ protected function typeBoolean(Fluent $column) /** * Create the column definition for an enumeration type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeEnum(Fluent $column) @@ -889,7 +827,6 @@ protected function typeEnum(Fluent $column) /** * Create the column definition for a set enumeration type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeSet(Fluent $column) @@ -900,7 +837,6 @@ protected function typeSet(Fluent $column) /** * Create the column definition for a json type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeJson(Fluent $column) @@ -911,7 +847,6 @@ protected function typeJson(Fluent $column) /** * Create the column definition for a jsonb type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeJsonb(Fluent $column) @@ -922,7 +857,6 @@ protected function typeJsonb(Fluent $column) /** * Create the column definition for a date type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeDate(Fluent $column) @@ -943,7 +877,6 @@ protected function typeDate(Fluent $column) /** * Create the column definition for a date-time type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeDateTime(Fluent $column) @@ -964,7 +897,6 @@ protected function typeDateTime(Fluent $column) /** * Create the column definition for a date-time (with time zone) type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeDateTimeTz(Fluent $column) @@ -975,7 +907,6 @@ protected function typeDateTimeTz(Fluent $column) /** * Create the column definition for a time type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeTime(Fluent $column) @@ -986,7 +917,6 @@ protected function typeTime(Fluent $column) /** * Create the column definition for a time (with time zone) type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeTimeTz(Fluent $column) @@ -997,7 +927,6 @@ protected function typeTimeTz(Fluent $column) /** * Create the column definition for a timestamp type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeTimestamp(Fluent $column) @@ -1018,7 +947,6 @@ protected function typeTimestamp(Fluent $column) /** * Create the column definition for a timestamp (with time zone) type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeTimestampTz(Fluent $column) @@ -1029,7 +957,6 @@ protected function typeTimestampTz(Fluent $column) /** * Create the column definition for a year type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeYear(Fluent $column) @@ -1050,7 +977,6 @@ protected function typeYear(Fluent $column) /** * Create the column definition for a binary type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeBinary(Fluent $column) @@ -1065,7 +991,6 @@ protected function typeBinary(Fluent $column) /** * Create the column definition for a uuid type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeUuid(Fluent $column) @@ -1076,7 +1001,6 @@ protected function typeUuid(Fluent $column) /** * Create the column definition for an IP address type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeIpAddress(Fluent $column) @@ -1087,7 +1011,6 @@ protected function typeIpAddress(Fluent $column) /** * Create the column definition for a MAC address type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeMacAddress(Fluent $column) @@ -1098,7 +1021,6 @@ protected function typeMacAddress(Fluent $column) /** * Create the column definition for a spatial Geometry type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeGeometry(Fluent $column) @@ -1122,7 +1044,6 @@ protected function typeGeometry(Fluent $column) /** * Create the column definition for a spatial Geography type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeGeography(Fluent $column) @@ -1133,7 +1054,6 @@ protected function typeGeography(Fluent $column) /** * Create the column definition for a generated, computed column type. * - * @param \Illuminate\Support\Fluent $column * @return void * * @throws \RuntimeException @@ -1146,7 +1066,6 @@ protected function typeComputed(Fluent $column) /** * Create the column definition for a vector type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeVector(Fluent $column) @@ -1159,8 +1078,6 @@ protected function typeVector(Fluent $column) /** * Get the SQL for a generated virtual column modifier. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $column * @return string|null */ protected function modifyVirtualAs(Blueprint $blueprint, Fluent $column) @@ -1181,8 +1098,6 @@ protected function modifyVirtualAs(Blueprint $blueprint, Fluent $column) /** * Get the SQL for a generated stored column modifier. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $column * @return string|null */ protected function modifyStoredAs(Blueprint $blueprint, Fluent $column) @@ -1203,8 +1118,6 @@ protected function modifyStoredAs(Blueprint $blueprint, Fluent $column) /** * Get the SQL for an unsigned column modifier. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $column * @return string|null */ protected function modifyUnsigned(Blueprint $blueprint, Fluent $column) @@ -1217,8 +1130,6 @@ protected function modifyUnsigned(Blueprint $blueprint, Fluent $column) /** * Get the SQL for a character set column modifier. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $column * @return string|null */ protected function modifyCharset(Blueprint $blueprint, Fluent $column) @@ -1231,8 +1142,6 @@ protected function modifyCharset(Blueprint $blueprint, Fluent $column) /** * Get the SQL for a collation column modifier. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $column * @return string|null */ protected function modifyCollate(Blueprint $blueprint, Fluent $column) @@ -1245,8 +1154,6 @@ protected function modifyCollate(Blueprint $blueprint, Fluent $column) /** * Get the SQL for a nullable column modifier. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $column * @return string|null */ protected function modifyNullable(Blueprint $blueprint, Fluent $column) @@ -1266,8 +1173,6 @@ protected function modifyNullable(Blueprint $blueprint, Fluent $column) /** * Get the SQL for an invisible column modifier. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $column * @return string|null */ protected function modifyInvisible(Blueprint $blueprint, Fluent $column) @@ -1280,8 +1185,6 @@ protected function modifyInvisible(Blueprint $blueprint, Fluent $column) /** * Get the SQL for a default column modifier. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $column * @return string|null */ protected function modifyDefault(Blueprint $blueprint, Fluent $column) @@ -1294,8 +1197,6 @@ protected function modifyDefault(Blueprint $blueprint, Fluent $column) /** * Get the SQL for an "on update" column modifier. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $column * @return string|null */ protected function modifyOnUpdate(Blueprint $blueprint, Fluent $column) @@ -1308,8 +1209,6 @@ protected function modifyOnUpdate(Blueprint $blueprint, Fluent $column) /** * Get the SQL for an auto-increment column modifier. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $column * @return string|null */ protected function modifyIncrement(Blueprint $blueprint, Fluent $column) @@ -1324,8 +1223,6 @@ protected function modifyIncrement(Blueprint $blueprint, Fluent $column) /** * Get the SQL for a "first" column modifier. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $column * @return string|null */ protected function modifyFirst(Blueprint $blueprint, Fluent $column) @@ -1338,8 +1235,6 @@ protected function modifyFirst(Blueprint $blueprint, Fluent $column) /** * Get the SQL for an "after" column modifier. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $column * @return string|null */ protected function modifyAfter(Blueprint $blueprint, Fluent $column) @@ -1352,8 +1247,6 @@ protected function modifyAfter(Blueprint $blueprint, Fluent $column) /** * Get the SQL for a "comment" column modifier. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $column * @return string|null */ protected function modifyComment(Blueprint $blueprint, Fluent $column) diff --git a/src/Illuminate/Database/Schema/Grammars/PostgresGrammar.php b/src/Illuminate/Database/Schema/Grammars/PostgresGrammar.php index fa95e2a50fd9..3918b1bcaa94 100755 --- a/src/Illuminate/Database/Schema/Grammars/PostgresGrammar.php +++ b/src/Illuminate/Database/Schema/Grammars/PostgresGrammar.php @@ -230,8 +230,6 @@ public function compileForeignKeys($schema, $table) /** * Compile a create table command. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $command * @return string */ public function compileCreate(Blueprint $blueprint, Fluent $command) @@ -246,8 +244,6 @@ public function compileCreate(Blueprint $blueprint, Fluent $command) /** * Compile a column addition command. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $command * @return string */ public function compileAdd(Blueprint $blueprint, Fluent $command) @@ -261,8 +257,6 @@ public function compileAdd(Blueprint $blueprint, Fluent $command) /** * Compile the auto-incrementing column starting values. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $command * @return string */ public function compileAutoIncrementStartingValues(Blueprint $blueprint, Fluent $command) @@ -307,8 +301,6 @@ public function compileChange(Blueprint $blueprint, Fluent $command) /** * Compile a primary key command. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $command * @return string */ public function compilePrimary(Blueprint $blueprint, Fluent $command) @@ -321,8 +313,6 @@ public function compilePrimary(Blueprint $blueprint, Fluent $command) /** * Compile a unique key command. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $command * @return string[] */ public function compileUnique(Blueprint $blueprint, Fluent $command) @@ -371,8 +361,6 @@ public function compileUnique(Blueprint $blueprint, Fluent $command) /** * Compile a plain index key command. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $command * @return string */ public function compileIndex(Blueprint $blueprint, Fluent $command) @@ -389,8 +377,6 @@ public function compileIndex(Blueprint $blueprint, Fluent $command) /** * Compile a fulltext index key command. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $command * @return string * * @throws \RuntimeException @@ -414,8 +400,6 @@ public function compileFulltext(Blueprint $blueprint, Fluent $command) /** * Compile a spatial index key command. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $command * @return string */ public function compileSpatialIndex(Blueprint $blueprint, Fluent $command) @@ -432,8 +416,6 @@ public function compileSpatialIndex(Blueprint $blueprint, Fluent $command) /** * Compile a spatial index with operator class key command. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $command * @return string */ protected function compileIndexWithOperatorClass(Blueprint $blueprint, Fluent $command) @@ -452,7 +434,6 @@ protected function compileIndexWithOperatorClass(Blueprint $blueprint, Fluent $c /** * Convert an array of column names to a delimited string with operator class. * - * @param array $columns * @param string $operatorClass * @return string */ @@ -466,8 +447,6 @@ protected function columnizeWithOperatorClass(array $columns, $operatorClass) /** * Compile a foreign key command. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $command * @return string */ public function compileForeign(Blueprint $blueprint, Fluent $command) @@ -492,8 +471,6 @@ public function compileForeign(Blueprint $blueprint, Fluent $command) /** * Compile a drop table command. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $command * @return string */ public function compileDrop(Blueprint $blueprint, Fluent $command) @@ -504,8 +481,6 @@ public function compileDrop(Blueprint $blueprint, Fluent $command) /** * Compile a drop table (if exists) command. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $command * @return string */ public function compileDropIfExists(Blueprint $blueprint, Fluent $command) @@ -560,8 +535,6 @@ public function compileDropAllDomains($domains) /** * Compile a drop column command. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $command * @return string */ public function compileDropColumn(Blueprint $blueprint, Fluent $command) @@ -574,8 +547,6 @@ public function compileDropColumn(Blueprint $blueprint, Fluent $command) /** * Compile a drop primary key command. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $command * @return string */ public function compileDropPrimary(Blueprint $blueprint, Fluent $command) @@ -589,8 +560,6 @@ public function compileDropPrimary(Blueprint $blueprint, Fluent $command) /** * Compile a drop unique key command. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $command * @return string */ public function compileDropUnique(Blueprint $blueprint, Fluent $command) @@ -603,8 +572,6 @@ public function compileDropUnique(Blueprint $blueprint, Fluent $command) /** * Compile a drop index command. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $command * @return string */ public function compileDropIndex(Blueprint $blueprint, Fluent $command) @@ -615,8 +582,6 @@ public function compileDropIndex(Blueprint $blueprint, Fluent $command) /** * Compile a drop fulltext index command. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $command * @return string */ public function compileDropFullText(Blueprint $blueprint, Fluent $command) @@ -627,8 +592,6 @@ public function compileDropFullText(Blueprint $blueprint, Fluent $command) /** * Compile a drop spatial index command. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $command * @return string */ public function compileDropSpatialIndex(Blueprint $blueprint, Fluent $command) @@ -639,8 +602,6 @@ public function compileDropSpatialIndex(Blueprint $blueprint, Fluent $command) /** * Compile a drop foreign key command. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $command * @return string */ public function compileDropForeign(Blueprint $blueprint, Fluent $command) @@ -653,8 +614,6 @@ public function compileDropForeign(Blueprint $blueprint, Fluent $command) /** * Compile a rename table command. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $command * @return string */ public function compileRename(Blueprint $blueprint, Fluent $command) @@ -667,8 +626,6 @@ public function compileRename(Blueprint $blueprint, Fluent $command) /** * Compile a rename index command. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $command * @return string */ public function compileRenameIndex(Blueprint $blueprint, Fluent $command) @@ -702,8 +659,6 @@ public function compileDisableForeignKeyConstraints() /** * Compile a comment command. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $command * @return string */ public function compileComment(Blueprint $blueprint, Fluent $command) @@ -720,8 +675,6 @@ public function compileComment(Blueprint $blueprint, Fluent $command) /** * Compile a table comment command. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $command * @return string */ public function compileTableComment(Blueprint $blueprint, Fluent $command) @@ -749,7 +702,6 @@ public function escapeNames($names) /** * Create the column definition for a char type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeChar(Fluent $column) @@ -764,7 +716,6 @@ protected function typeChar(Fluent $column) /** * Create the column definition for a string type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeString(Fluent $column) @@ -779,7 +730,6 @@ protected function typeString(Fluent $column) /** * Create the column definition for a tiny text type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeTinyText(Fluent $column) @@ -790,7 +740,6 @@ protected function typeTinyText(Fluent $column) /** * Create the column definition for a text type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeText(Fluent $column) @@ -801,7 +750,6 @@ protected function typeText(Fluent $column) /** * Create the column definition for a medium text type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeMediumText(Fluent $column) @@ -812,7 +760,6 @@ protected function typeMediumText(Fluent $column) /** * Create the column definition for a long text type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeLongText(Fluent $column) @@ -823,7 +770,6 @@ protected function typeLongText(Fluent $column) /** * Create the column definition for an integer type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeInteger(Fluent $column) @@ -834,7 +780,6 @@ protected function typeInteger(Fluent $column) /** * Create the column definition for a big integer type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeBigInteger(Fluent $column) @@ -845,7 +790,6 @@ protected function typeBigInteger(Fluent $column) /** * Create the column definition for a medium integer type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeMediumInteger(Fluent $column) @@ -856,7 +800,6 @@ protected function typeMediumInteger(Fluent $column) /** * Create the column definition for a tiny integer type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeTinyInteger(Fluent $column) @@ -867,7 +810,6 @@ protected function typeTinyInteger(Fluent $column) /** * Create the column definition for a small integer type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeSmallInteger(Fluent $column) @@ -878,7 +820,6 @@ protected function typeSmallInteger(Fluent $column) /** * Create the column definition for a float type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeFloat(Fluent $column) @@ -893,7 +834,6 @@ protected function typeFloat(Fluent $column) /** * Create the column definition for a double type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeDouble(Fluent $column) @@ -904,7 +844,6 @@ protected function typeDouble(Fluent $column) /** * Create the column definition for a real type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeReal(Fluent $column) @@ -915,7 +854,6 @@ protected function typeReal(Fluent $column) /** * Create the column definition for a decimal type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeDecimal(Fluent $column) @@ -926,7 +864,6 @@ protected function typeDecimal(Fluent $column) /** * Create the column definition for a boolean type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeBoolean(Fluent $column) @@ -937,7 +874,6 @@ protected function typeBoolean(Fluent $column) /** * Create the column definition for an enumeration type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeEnum(Fluent $column) @@ -952,7 +888,6 @@ protected function typeEnum(Fluent $column) /** * Create the column definition for a json type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeJson(Fluent $column) @@ -963,7 +898,6 @@ protected function typeJson(Fluent $column) /** * Create the column definition for a jsonb type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeJsonb(Fluent $column) @@ -974,7 +908,6 @@ protected function typeJsonb(Fluent $column) /** * Create the column definition for a date type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeDate(Fluent $column) @@ -989,7 +922,6 @@ protected function typeDate(Fluent $column) /** * Create the column definition for a date-time type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeDateTime(Fluent $column) @@ -1000,7 +932,6 @@ protected function typeDateTime(Fluent $column) /** * Create the column definition for a date-time (with time zone) type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeDateTimeTz(Fluent $column) @@ -1011,7 +942,6 @@ protected function typeDateTimeTz(Fluent $column) /** * Create the column definition for a time type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeTime(Fluent $column) @@ -1022,7 +952,6 @@ protected function typeTime(Fluent $column) /** * Create the column definition for a time (with time zone) type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeTimeTz(Fluent $column) @@ -1033,7 +962,6 @@ protected function typeTimeTz(Fluent $column) /** * Create the column definition for a timestamp type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeTimestamp(Fluent $column) @@ -1048,7 +976,6 @@ protected function typeTimestamp(Fluent $column) /** * Create the column definition for a timestamp (with time zone) type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeTimestampTz(Fluent $column) @@ -1063,7 +990,6 @@ protected function typeTimestampTz(Fluent $column) /** * Create the column definition for a year type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeYear(Fluent $column) @@ -1078,7 +1004,6 @@ protected function typeYear(Fluent $column) /** * Create the column definition for a binary type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeBinary(Fluent $column) @@ -1089,7 +1014,6 @@ protected function typeBinary(Fluent $column) /** * Create the column definition for a uuid type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeUuid(Fluent $column) @@ -1100,7 +1024,6 @@ protected function typeUuid(Fluent $column) /** * Create the column definition for an IP address type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeIpAddress(Fluent $column) @@ -1111,7 +1034,6 @@ protected function typeIpAddress(Fluent $column) /** * Create the column definition for a MAC address type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeMacAddress(Fluent $column) @@ -1122,7 +1044,6 @@ protected function typeMacAddress(Fluent $column) /** * Create the column definition for a spatial Geometry type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeGeometry(Fluent $column) @@ -1140,7 +1061,6 @@ protected function typeGeometry(Fluent $column) /** * Create the column definition for a spatial Geography type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeGeography(Fluent $column) @@ -1158,7 +1078,6 @@ protected function typeGeography(Fluent $column) /** * Create the column definition for a vector type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeVector(Fluent $column) @@ -1171,8 +1090,6 @@ protected function typeVector(Fluent $column) /** * Get the SQL for a collation column modifier. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $column * @return string|null */ protected function modifyCollate(Blueprint $blueprint, Fluent $column) @@ -1185,8 +1102,6 @@ protected function modifyCollate(Blueprint $blueprint, Fluent $column) /** * Get the SQL for a nullable column modifier. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $column * @return string|null */ protected function modifyNullable(Blueprint $blueprint, Fluent $column) @@ -1201,8 +1116,6 @@ protected function modifyNullable(Blueprint $blueprint, Fluent $column) /** * Get the SQL for a default column modifier. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $column * @return string|null */ protected function modifyDefault(Blueprint $blueprint, Fluent $column) @@ -1223,8 +1136,6 @@ protected function modifyDefault(Blueprint $blueprint, Fluent $column) /** * Get the SQL for an auto-increment column modifier. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $column * @return string|null */ protected function modifyIncrement(Blueprint $blueprint, Fluent $column) @@ -1240,8 +1151,6 @@ protected function modifyIncrement(Blueprint $blueprint, Fluent $column) /** * Get the SQL for a generated virtual column modifier. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $column * @return string|null */ protected function modifyVirtualAs(Blueprint $blueprint, Fluent $column) @@ -1264,8 +1173,6 @@ protected function modifyVirtualAs(Blueprint $blueprint, Fluent $column) /** * Get the SQL for a generated stored column modifier. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $column * @return string|null */ protected function modifyStoredAs(Blueprint $blueprint, Fluent $column) @@ -1288,8 +1195,6 @@ protected function modifyStoredAs(Blueprint $blueprint, Fluent $column) /** * Get the SQL for an identity column modifier. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $column * @return string|list|null */ protected function modifyGeneratedAs(Blueprint $blueprint, Fluent $column) diff --git a/src/Illuminate/Database/Schema/Grammars/SQLiteGrammar.php b/src/Illuminate/Database/Schema/Grammars/SQLiteGrammar.php index 8908836dd9c7..9a2933d84cc6 100644 --- a/src/Illuminate/Database/Schema/Grammars/SQLiteGrammar.php +++ b/src/Illuminate/Database/Schema/Grammars/SQLiteGrammar.php @@ -224,8 +224,6 @@ public function compileForeignKeys($schema, $table) /** * Compile a create table command. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $command * @return string */ public function compileCreate(Blueprint $blueprint, Fluent $command) @@ -302,8 +300,6 @@ protected function addPrimaryKeys($primary) /** * Compile alter table commands for adding columns. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $command * @return string */ public function compileAdd(Blueprint $blueprint, Fluent $command) @@ -317,8 +313,6 @@ public function compileAdd(Blueprint $blueprint, Fluent $command) /** * Compile alter table command into a series of SQL statements. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $command * @return list|string */ public function compileAlter(Blueprint $blueprint, Fluent $command) @@ -379,8 +373,6 @@ public function compileChange(Blueprint $blueprint, Fluent $command) /** * Compile a primary key command. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $command * @return string */ public function compilePrimary(Blueprint $blueprint, Fluent $command) @@ -391,8 +383,6 @@ public function compilePrimary(Blueprint $blueprint, Fluent $command) /** * Compile a unique key command. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $command * @return string */ public function compileUnique(Blueprint $blueprint, Fluent $command) @@ -410,8 +400,6 @@ public function compileUnique(Blueprint $blueprint, Fluent $command) /** * Compile a plain index key command. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $command * @return string */ public function compileIndex(Blueprint $blueprint, Fluent $command) @@ -429,8 +417,6 @@ public function compileIndex(Blueprint $blueprint, Fluent $command) /** * Compile a spatial index key command. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $command * @return void * * @throws \RuntimeException @@ -443,8 +429,6 @@ public function compileSpatialIndex(Blueprint $blueprint, Fluent $command) /** * Compile a foreign key command. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $command * @return string|null */ public function compileForeign(Blueprint $blueprint, Fluent $command) @@ -455,8 +439,6 @@ public function compileForeign(Blueprint $blueprint, Fluent $command) /** * Compile a drop table command. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $command * @return string */ public function compileDrop(Blueprint $blueprint, Fluent $command) @@ -467,8 +449,6 @@ public function compileDrop(Blueprint $blueprint, Fluent $command) /** * Compile a drop table (if exists) command. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $command * @return string */ public function compileDropIfExists(Blueprint $blueprint, Fluent $command) @@ -518,8 +498,6 @@ public function compileRebuild($schema = null) /** * Compile a drop column command. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $command * @return list|null */ public function compileDropColumn(Blueprint $blueprint, Fluent $command) @@ -540,8 +518,6 @@ public function compileDropColumn(Blueprint $blueprint, Fluent $command) /** * Compile a drop primary key command. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $command * @return string */ public function compileDropPrimary(Blueprint $blueprint, Fluent $command) @@ -552,8 +528,6 @@ public function compileDropPrimary(Blueprint $blueprint, Fluent $command) /** * Compile a drop unique key command. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $command * @return string */ public function compileDropUnique(Blueprint $blueprint, Fluent $command) @@ -564,8 +538,6 @@ public function compileDropUnique(Blueprint $blueprint, Fluent $command) /** * Compile a drop index command. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $command * @return string */ public function compileDropIndex(Blueprint $blueprint, Fluent $command) @@ -581,8 +553,6 @@ public function compileDropIndex(Blueprint $blueprint, Fluent $command) /** * Compile a drop spatial index command. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $command * @return void * * @throws \RuntimeException @@ -595,8 +565,6 @@ public function compileDropSpatialIndex(Blueprint $blueprint, Fluent $command) /** * Compile a drop foreign key command. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $command * @return array */ public function compileDropForeign(Blueprint $blueprint, Fluent $command) @@ -611,8 +579,6 @@ public function compileDropForeign(Blueprint $blueprint, Fluent $command) /** * Compile a rename table command. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $command * @return string */ public function compileRename(Blueprint $blueprint, Fluent $command) @@ -625,8 +591,6 @@ public function compileRename(Blueprint $blueprint, Fluent $command) /** * Compile a rename index command. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $command * @return array * * @throws \RuntimeException @@ -684,10 +648,6 @@ public function compileDisableForeignKeyConstraints() /** * Get the SQL to get or set a PRAGMA value. - * - * @param string $key - * @param mixed $value - * @return string */ public function pragma(string $key, mixed $value = null): string { @@ -700,7 +660,6 @@ public function pragma(string $key, mixed $value = null): string /** * Create the column definition for a char type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeChar(Fluent $column) @@ -711,7 +670,6 @@ protected function typeChar(Fluent $column) /** * Create the column definition for a string type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeString(Fluent $column) @@ -722,7 +680,6 @@ protected function typeString(Fluent $column) /** * Create the column definition for a tiny text type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeTinyText(Fluent $column) @@ -733,7 +690,6 @@ protected function typeTinyText(Fluent $column) /** * Create the column definition for a text type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeText(Fluent $column) @@ -744,7 +700,6 @@ protected function typeText(Fluent $column) /** * Create the column definition for a medium text type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeMediumText(Fluent $column) @@ -755,7 +710,6 @@ protected function typeMediumText(Fluent $column) /** * Create the column definition for a long text type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeLongText(Fluent $column) @@ -766,7 +720,6 @@ protected function typeLongText(Fluent $column) /** * Create the column definition for an integer type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeInteger(Fluent $column) @@ -777,7 +730,6 @@ protected function typeInteger(Fluent $column) /** * Create the column definition for a big integer type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeBigInteger(Fluent $column) @@ -788,7 +740,6 @@ protected function typeBigInteger(Fluent $column) /** * Create the column definition for a medium integer type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeMediumInteger(Fluent $column) @@ -799,7 +750,6 @@ protected function typeMediumInteger(Fluent $column) /** * Create the column definition for a tiny integer type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeTinyInteger(Fluent $column) @@ -810,7 +760,6 @@ protected function typeTinyInteger(Fluent $column) /** * Create the column definition for a small integer type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeSmallInteger(Fluent $column) @@ -821,7 +770,6 @@ protected function typeSmallInteger(Fluent $column) /** * Create the column definition for a float type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeFloat(Fluent $column) @@ -832,7 +780,6 @@ protected function typeFloat(Fluent $column) /** * Create the column definition for a double type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeDouble(Fluent $column) @@ -843,7 +790,6 @@ protected function typeDouble(Fluent $column) /** * Create the column definition for a decimal type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeDecimal(Fluent $column) @@ -854,7 +800,6 @@ protected function typeDecimal(Fluent $column) /** * Create the column definition for a boolean type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeBoolean(Fluent $column) @@ -865,7 +810,6 @@ protected function typeBoolean(Fluent $column) /** * Create the column definition for an enumeration type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeEnum(Fluent $column) @@ -880,7 +824,6 @@ protected function typeEnum(Fluent $column) /** * Create the column definition for a json type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeJson(Fluent $column) @@ -891,7 +834,6 @@ protected function typeJson(Fluent $column) /** * Create the column definition for a jsonb type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeJsonb(Fluent $column) @@ -902,7 +844,6 @@ protected function typeJsonb(Fluent $column) /** * Create the column definition for a date type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeDate(Fluent $column) @@ -917,7 +858,6 @@ protected function typeDate(Fluent $column) /** * Create the column definition for a date-time type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeDateTime(Fluent $column) @@ -932,7 +872,6 @@ protected function typeDateTime(Fluent $column) * * @link https://www.sqlite.org/datatype3.html * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeDateTimeTz(Fluent $column) @@ -943,7 +882,6 @@ protected function typeDateTimeTz(Fluent $column) /** * Create the column definition for a time type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeTime(Fluent $column) @@ -954,7 +892,6 @@ protected function typeTime(Fluent $column) /** * Create the column definition for a time (with time zone) type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeTimeTz(Fluent $column) @@ -965,7 +902,6 @@ protected function typeTimeTz(Fluent $column) /** * Create the column definition for a timestamp type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeTimestamp(Fluent $column) @@ -980,7 +916,6 @@ protected function typeTimestamp(Fluent $column) /** * Create the column definition for a timestamp (with time zone) type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeTimestampTz(Fluent $column) @@ -991,7 +926,6 @@ protected function typeTimestampTz(Fluent $column) /** * Create the column definition for a year type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeYear(Fluent $column) @@ -1006,7 +940,6 @@ protected function typeYear(Fluent $column) /** * Create the column definition for a binary type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeBinary(Fluent $column) @@ -1017,7 +950,6 @@ protected function typeBinary(Fluent $column) /** * Create the column definition for a uuid type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeUuid(Fluent $column) @@ -1028,7 +960,6 @@ protected function typeUuid(Fluent $column) /** * Create the column definition for an IP address type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeIpAddress(Fluent $column) @@ -1039,7 +970,6 @@ protected function typeIpAddress(Fluent $column) /** * Create the column definition for a MAC address type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeMacAddress(Fluent $column) @@ -1050,7 +980,6 @@ protected function typeMacAddress(Fluent $column) /** * Create the column definition for a spatial Geometry type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeGeometry(Fluent $column) @@ -1061,7 +990,6 @@ protected function typeGeometry(Fluent $column) /** * Create the column definition for a spatial Geography type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeGeography(Fluent $column) @@ -1072,7 +1000,6 @@ protected function typeGeography(Fluent $column) /** * Create the column definition for a generated, computed column type. * - * @param \Illuminate\Support\Fluent $column * @return void * * @throws \RuntimeException @@ -1085,8 +1012,6 @@ protected function typeComputed(Fluent $column) /** * Get the SQL for a generated virtual column modifier. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $column * @return string|null */ protected function modifyVirtualAs(Blueprint $blueprint, Fluent $column) @@ -1107,8 +1032,6 @@ protected function modifyVirtualAs(Blueprint $blueprint, Fluent $column) /** * Get the SQL for a generated stored column modifier. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $column * @return string|null */ protected function modifyStoredAs(Blueprint $blueprint, Fluent $column) @@ -1129,8 +1052,6 @@ protected function modifyStoredAs(Blueprint $blueprint, Fluent $column) /** * Get the SQL for a nullable column modifier. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $column * @return string|null */ protected function modifyNullable(Blueprint $blueprint, Fluent $column) @@ -1150,8 +1071,6 @@ protected function modifyNullable(Blueprint $blueprint, Fluent $column) /** * Get the SQL for a default column modifier. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $column * @return string|null */ protected function modifyDefault(Blueprint $blueprint, Fluent $column) @@ -1164,8 +1083,6 @@ protected function modifyDefault(Blueprint $blueprint, Fluent $column) /** * Get the SQL for an auto-increment column modifier. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $column * @return string|null */ protected function modifyIncrement(Blueprint $blueprint, Fluent $column) @@ -1178,8 +1095,6 @@ protected function modifyIncrement(Blueprint $blueprint, Fluent $column) /** * Get the SQL for a collation column modifier. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $column * @return string|null */ protected function modifyCollate(Blueprint $blueprint, Fluent $column) diff --git a/src/Illuminate/Database/Schema/Grammars/SqlServerGrammar.php b/src/Illuminate/Database/Schema/Grammars/SqlServerGrammar.php index 28b5e5a7a161..efaf2037ad32 100755 --- a/src/Illuminate/Database/Schema/Grammars/SqlServerGrammar.php +++ b/src/Illuminate/Database/Schema/Grammars/SqlServerGrammar.php @@ -199,8 +199,6 @@ public function compileForeignKeys($schema, $table) /** * Compile a create table command. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $command * @return string */ public function compileCreate(Blueprint $blueprint, Fluent $command) @@ -214,8 +212,6 @@ public function compileCreate(Blueprint $blueprint, Fluent $command) /** * Compile a column addition table command. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $command * @return string */ public function compileAdd(Blueprint $blueprint, Fluent $command) @@ -250,8 +246,6 @@ public function compileChange(Blueprint $blueprint, Fluent $command) /** * Compile a primary key command. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $command * @return string */ public function compilePrimary(Blueprint $blueprint, Fluent $command) @@ -266,8 +260,6 @@ public function compilePrimary(Blueprint $blueprint, Fluent $command) /** * Compile a unique key command. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $command * @return string */ public function compileUnique(Blueprint $blueprint, Fluent $command) @@ -283,8 +275,6 @@ public function compileUnique(Blueprint $blueprint, Fluent $command) /** * Compile a plain index key command. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $command * @return string */ public function compileIndex(Blueprint $blueprint, Fluent $command) @@ -300,8 +290,6 @@ public function compileIndex(Blueprint $blueprint, Fluent $command) /** * Compile a spatial index key command. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $command * @return string */ public function compileSpatialIndex(Blueprint $blueprint, Fluent $command) @@ -316,8 +304,6 @@ public function compileSpatialIndex(Blueprint $blueprint, Fluent $command) /** * Compile a default command. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $command * @return string|null */ public function compileDefault(Blueprint $blueprint, Fluent $command) @@ -334,8 +320,6 @@ public function compileDefault(Blueprint $blueprint, Fluent $command) /** * Compile a drop table command. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $command * @return string */ public function compileDrop(Blueprint $blueprint, Fluent $command) @@ -346,8 +330,6 @@ public function compileDrop(Blueprint $blueprint, Fluent $command) /** * Compile a drop table (if exists) command. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $command * @return string */ public function compileDropIfExists(Blueprint $blueprint, Fluent $command) @@ -371,8 +353,6 @@ public function compileDropAllTables() /** * Compile a drop column command. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $command * @return string */ public function compileDropColumn(Blueprint $blueprint, Fluent $command) @@ -387,8 +367,6 @@ public function compileDropColumn(Blueprint $blueprint, Fluent $command) /** * Compile a drop default constraint command. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $command * @return string */ public function compileDropDefaultConstraint(Blueprint $blueprint, Fluent $command) @@ -412,8 +390,6 @@ public function compileDropDefaultConstraint(Blueprint $blueprint, Fluent $comma /** * Compile a drop primary key command. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $command * @return string */ public function compileDropPrimary(Blueprint $blueprint, Fluent $command) @@ -426,8 +402,6 @@ public function compileDropPrimary(Blueprint $blueprint, Fluent $command) /** * Compile a drop unique key command. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $command * @return string */ public function compileDropUnique(Blueprint $blueprint, Fluent $command) @@ -440,8 +414,6 @@ public function compileDropUnique(Blueprint $blueprint, Fluent $command) /** * Compile a drop index command. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $command * @return string */ public function compileDropIndex(Blueprint $blueprint, Fluent $command) @@ -454,8 +426,6 @@ public function compileDropIndex(Blueprint $blueprint, Fluent $command) /** * Compile a drop spatial index command. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $command * @return string */ public function compileDropSpatialIndex(Blueprint $blueprint, Fluent $command) @@ -466,8 +436,6 @@ public function compileDropSpatialIndex(Blueprint $blueprint, Fluent $command) /** * Compile a drop foreign key command. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $command * @return string */ public function compileDropForeign(Blueprint $blueprint, Fluent $command) @@ -480,8 +448,6 @@ public function compileDropForeign(Blueprint $blueprint, Fluent $command) /** * Compile a rename table command. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $command * @return string */ public function compileRename(Blueprint $blueprint, Fluent $command) @@ -495,8 +461,6 @@ public function compileRename(Blueprint $blueprint, Fluent $command) /** * Compile a rename index command. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $command * @return string */ public function compileRenameIndex(Blueprint $blueprint, Fluent $command) @@ -560,7 +524,6 @@ public function compileDropAllViews() /** * Create the column definition for a char type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeChar(Fluent $column) @@ -571,7 +534,6 @@ protected function typeChar(Fluent $column) /** * Create the column definition for a string type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeString(Fluent $column) @@ -582,7 +544,6 @@ protected function typeString(Fluent $column) /** * Create the column definition for a tiny text type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeTinyText(Fluent $column) @@ -593,7 +554,6 @@ protected function typeTinyText(Fluent $column) /** * Create the column definition for a text type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeText(Fluent $column) @@ -604,7 +564,6 @@ protected function typeText(Fluent $column) /** * Create the column definition for a medium text type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeMediumText(Fluent $column) @@ -615,7 +574,6 @@ protected function typeMediumText(Fluent $column) /** * Create the column definition for a long text type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeLongText(Fluent $column) @@ -626,7 +584,6 @@ protected function typeLongText(Fluent $column) /** * Create the column definition for an integer type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeInteger(Fluent $column) @@ -637,7 +594,6 @@ protected function typeInteger(Fluent $column) /** * Create the column definition for a big integer type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeBigInteger(Fluent $column) @@ -648,7 +604,6 @@ protected function typeBigInteger(Fluent $column) /** * Create the column definition for a medium integer type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeMediumInteger(Fluent $column) @@ -659,7 +614,6 @@ protected function typeMediumInteger(Fluent $column) /** * Create the column definition for a tiny integer type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeTinyInteger(Fluent $column) @@ -670,7 +624,6 @@ protected function typeTinyInteger(Fluent $column) /** * Create the column definition for a small integer type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeSmallInteger(Fluent $column) @@ -681,7 +634,6 @@ protected function typeSmallInteger(Fluent $column) /** * Create the column definition for a float type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeFloat(Fluent $column) @@ -696,7 +648,6 @@ protected function typeFloat(Fluent $column) /** * Create the column definition for a double type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeDouble(Fluent $column) @@ -707,7 +658,6 @@ protected function typeDouble(Fluent $column) /** * Create the column definition for a decimal type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeDecimal(Fluent $column) @@ -718,7 +668,6 @@ protected function typeDecimal(Fluent $column) /** * Create the column definition for a boolean type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeBoolean(Fluent $column) @@ -729,7 +678,6 @@ protected function typeBoolean(Fluent $column) /** * Create the column definition for an enumeration type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeEnum(Fluent $column) @@ -744,7 +692,6 @@ protected function typeEnum(Fluent $column) /** * Create the column definition for a json type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeJson(Fluent $column) @@ -755,7 +702,6 @@ protected function typeJson(Fluent $column) /** * Create the column definition for a jsonb type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeJsonb(Fluent $column) @@ -766,7 +712,6 @@ protected function typeJsonb(Fluent $column) /** * Create the column definition for a date type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeDate(Fluent $column) @@ -781,7 +726,6 @@ protected function typeDate(Fluent $column) /** * Create the column definition for a date-time type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeDateTime(Fluent $column) @@ -792,7 +736,6 @@ protected function typeDateTime(Fluent $column) /** * Create the column definition for a date-time (with time zone) type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeDateTimeTz(Fluent $column) @@ -803,7 +746,6 @@ protected function typeDateTimeTz(Fluent $column) /** * Create the column definition for a time type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeTime(Fluent $column) @@ -814,7 +756,6 @@ protected function typeTime(Fluent $column) /** * Create the column definition for a time (with time zone) type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeTimeTz(Fluent $column) @@ -825,7 +766,6 @@ protected function typeTimeTz(Fluent $column) /** * Create the column definition for a timestamp type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeTimestamp(Fluent $column) @@ -842,7 +782,6 @@ protected function typeTimestamp(Fluent $column) * * @link https://docs.microsoft.com/en-us/sql/t-sql/data-types/datetimeoffset-transact-sql?view=sql-server-ver15 * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeTimestampTz(Fluent $column) @@ -857,7 +796,6 @@ protected function typeTimestampTz(Fluent $column) /** * Create the column definition for a year type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeYear(Fluent $column) @@ -872,7 +810,6 @@ protected function typeYear(Fluent $column) /** * Create the column definition for a binary type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeBinary(Fluent $column) @@ -887,7 +824,6 @@ protected function typeBinary(Fluent $column) /** * Create the column definition for a uuid type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeUuid(Fluent $column) @@ -898,7 +834,6 @@ protected function typeUuid(Fluent $column) /** * Create the column definition for an IP address type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeIpAddress(Fluent $column) @@ -909,7 +844,6 @@ protected function typeIpAddress(Fluent $column) /** * Create the column definition for a MAC address type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeMacAddress(Fluent $column) @@ -920,7 +854,6 @@ protected function typeMacAddress(Fluent $column) /** * Create the column definition for a spatial Geometry type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeGeometry(Fluent $column) @@ -931,7 +864,6 @@ protected function typeGeometry(Fluent $column) /** * Create the column definition for a spatial Geography type. * - * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeGeography(Fluent $column) @@ -942,7 +874,6 @@ protected function typeGeography(Fluent $column) /** * Create the column definition for a generated, computed column type. * - * @param \Illuminate\Support\Fluent $column * @return string|null */ protected function typeComputed(Fluent $column) @@ -953,8 +884,6 @@ protected function typeComputed(Fluent $column) /** * Get the SQL for a collation column modifier. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $column * @return string|null */ protected function modifyCollate(Blueprint $blueprint, Fluent $column) @@ -967,8 +896,6 @@ protected function modifyCollate(Blueprint $blueprint, Fluent $column) /** * Get the SQL for a nullable column modifier. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $column * @return string|null */ protected function modifyNullable(Blueprint $blueprint, Fluent $column) @@ -981,8 +908,6 @@ protected function modifyNullable(Blueprint $blueprint, Fluent $column) /** * Get the SQL for a default column modifier. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $column * @return string|null */ protected function modifyDefault(Blueprint $blueprint, Fluent $column) @@ -995,8 +920,6 @@ protected function modifyDefault(Blueprint $blueprint, Fluent $column) /** * Get the SQL for an auto-increment column modifier. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $column * @return string|null */ protected function modifyIncrement(Blueprint $blueprint, Fluent $column) @@ -1009,8 +932,6 @@ protected function modifyIncrement(Blueprint $blueprint, Fluent $column) /** * Get the SQL for a generated stored column modifier. * - * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @param \Illuminate\Support\Fluent $column * @return string|null */ protected function modifyPersisted(Blueprint $blueprint, Fluent $column) diff --git a/src/Illuminate/Database/Schema/MySqlSchemaState.php b/src/Illuminate/Database/Schema/MySqlSchemaState.php index 427c943ff736..04edc1facd83 100644 --- a/src/Illuminate/Database/Schema/MySqlSchemaState.php +++ b/src/Illuminate/Database/Schema/MySqlSchemaState.php @@ -12,7 +12,6 @@ class MySqlSchemaState extends SchemaState /** * Dump the database's schema into a file. * - * @param \Illuminate\Database\Connection $connection * @param string $path * @return void */ @@ -34,7 +33,6 @@ public function dump(Connection $connection, $path) /** * Remove the auto-incrementing state from the given schema dump. * - * @param string $path * @return void */ protected function removeAutoIncrementingState(string $path) @@ -49,7 +47,6 @@ protected function removeAutoIncrementingState(string $path) /** * Append the migration data to the schema dump. * - * @param string $path * @return void */ protected function appendMigrationData(string $path) @@ -126,7 +123,6 @@ protected function connectionString() /** * Get the base variables for a dump / load command. * - * @param array $config * @return array */ protected function baseVariables(array $config) @@ -147,10 +143,7 @@ protected function baseVariables(array $config) /** * Execute the given dump process. * - * @param \Symfony\Component\Process\Process $process * @param callable $output - * @param array $variables - * @param int $depth * @return \Symfony\Component\Process\Process */ protected function executeDumpProcess(Process $process, $output, array $variables, int $depth = 0) diff --git a/src/Illuminate/Database/Schema/PostgresSchemaState.php b/src/Illuminate/Database/Schema/PostgresSchemaState.php index 25da812e61c5..4709585102c3 100644 --- a/src/Illuminate/Database/Schema/PostgresSchemaState.php +++ b/src/Illuminate/Database/Schema/PostgresSchemaState.php @@ -10,7 +10,6 @@ class PostgresSchemaState extends SchemaState /** * Dump the database's schema into a file. * - * @param \Illuminate\Database\Connection $connection * @param string $path * @return void */ @@ -54,8 +53,6 @@ public function load($path) /** * Get the name of the application's migration table. - * - * @return string */ protected function getMigrationTable(): string { @@ -77,7 +74,6 @@ protected function baseDumpCommand() /** * Get the base variables for a dump / load command. * - * @param array $config * @return array */ protected function baseVariables(array $config) diff --git a/src/Illuminate/Database/Schema/SQLiteBuilder.php b/src/Illuminate/Database/Schema/SQLiteBuilder.php index 040f1623f8a1..d47bfa9776a9 100644 --- a/src/Illuminate/Database/Schema/SQLiteBuilder.php +++ b/src/Illuminate/Database/Schema/SQLiteBuilder.php @@ -140,8 +140,6 @@ public function dropAllViews() * Get the value for the given pragma name or set the given value. * * @param string $key - * @param mixed $value - * @return mixed */ public function pragma($key, $value = null) { diff --git a/src/Illuminate/Database/Schema/SchemaState.php b/src/Illuminate/Database/Schema/SchemaState.php index be792138f7b4..973bdbf69298 100644 --- a/src/Illuminate/Database/Schema/SchemaState.php +++ b/src/Illuminate/Database/Schema/SchemaState.php @@ -45,10 +45,6 @@ abstract class SchemaState /** * Create a new dumper instance. - * - * @param \Illuminate\Database\Connection $connection - * @param \Illuminate\Filesystem\Filesystem|null $files - * @param callable|null $processFactory */ public function __construct(Connection $connection, ?Filesystem $files = null, ?callable $processFactory = null) { @@ -68,7 +64,6 @@ public function __construct(Connection $connection, ?Filesystem $files = null, ? /** * Dump the database's schema into a file. * - * @param \Illuminate\Database\Connection $connection * @param string $path * @return void */ @@ -85,7 +80,6 @@ abstract public function load($path); /** * Create a new process instance. * - * @param mixed ...$arguments * @return \Symfony\Component\Process\Process */ public function makeProcess(...$arguments) @@ -95,8 +89,6 @@ public function makeProcess(...$arguments) /** * Determine if the current connection has a migration table. - * - * @return bool */ public function hasMigrationTable(): bool { @@ -105,8 +97,6 @@ public function hasMigrationTable(): bool /** * Get the name of the application's migration table. - * - * @return string */ protected function getMigrationTable(): string { @@ -116,7 +106,6 @@ protected function getMigrationTable(): string /** * Specify the name of the application's migration table. * - * @param string $table * @return $this */ public function withMigrationTable(string $table) @@ -129,7 +118,6 @@ public function withMigrationTable(string $table) /** * Specify the callback that should be used to handle process output. * - * @param callable $output * @return $this */ public function handleOutputUsing(callable $output) diff --git a/src/Illuminate/Database/Schema/SqliteSchemaState.php b/src/Illuminate/Database/Schema/SqliteSchemaState.php index bda420fefe31..21d10debd77b 100644 --- a/src/Illuminate/Database/Schema/SqliteSchemaState.php +++ b/src/Illuminate/Database/Schema/SqliteSchemaState.php @@ -10,7 +10,6 @@ class SqliteSchemaState extends SchemaState /** * Dump the database's schema into a file. * - * @param \Illuminate\Database\Connection $connection * @param string $path * @return void */ @@ -34,7 +33,6 @@ public function dump(Connection $connection, $path) /** * Append the migration data to the schema dump. * - * @param string $path * @return void */ protected function appendMigrationData(string $path) @@ -91,7 +89,6 @@ protected function baseCommand() /** * Get the base variables for a dump / load command. * - * @param array $config * @return array */ protected function baseVariables(array $config) diff --git a/src/Illuminate/Database/Seeder.php b/src/Illuminate/Database/Seeder.php index 08e57b2d7834..b7f02a3bddcc 100755 --- a/src/Illuminate/Database/Seeder.php +++ b/src/Illuminate/Database/Seeder.php @@ -37,7 +37,6 @@ abstract class Seeder * * @param array|string $class * @param bool $silent - * @param array $parameters * @return $this */ public function call($class, $silent = false, array $parameters = []) @@ -81,7 +80,6 @@ public function call($class, $silent = false, array $parameters = []) * Run the given seeder class. * * @param array|string $class - * @param array $parameters * @return void */ public function callWith($class, array $parameters = []) @@ -93,7 +91,6 @@ public function callWith($class, array $parameters = []) * Silently run the given seeder class. * * @param array|string $class - * @param array $parameters * @return void */ public function callSilent($class, array $parameters = []) @@ -147,7 +144,6 @@ protected function resolve($class) /** * Set the IoC container instance. * - * @param \Illuminate\Contracts\Container\Container $container * @return $this */ public function setContainer(Container $container) @@ -160,7 +156,6 @@ public function setContainer(Container $container) /** * Set the console command instance. * - * @param \Illuminate\Console\Command $command * @return $this */ public function setCommand(Command $command) @@ -173,8 +168,6 @@ public function setCommand(Command $command) /** * Run the database seeds. * - * @param array $parameters - * @return mixed * * @throws \InvalidArgumentException */ diff --git a/src/Illuminate/Database/SqlServerConnection.php b/src/Illuminate/Database/SqlServerConnection.php index 1e6fe52bfe16..02872d2dd256 100755 --- a/src/Illuminate/Database/SqlServerConnection.php +++ b/src/Illuminate/Database/SqlServerConnection.php @@ -25,9 +25,7 @@ public function getDriverTitle() /** * Execute a Closure within a transaction. * - * @param \Closure $callback * @param int $attempts - * @return mixed * * @throws \Throwable */ @@ -78,7 +76,6 @@ protected function escapeBinary($value) /** * Determine if the given database exception was caused by a unique constraint violation. * - * @param \Exception $exception * @return bool */ protected function isUniqueConstraintError(Exception $exception) @@ -123,8 +120,6 @@ protected function getDefaultSchemaGrammar() /** * Get the schema state for the connection. * - * @param \Illuminate\Filesystem\Filesystem|null $files - * @param callable|null $processFactory * * @throws \RuntimeException */ diff --git a/src/Illuminate/Encryption/Encrypter.php b/src/Illuminate/Encryption/Encrypter.php index 5c6c021a1965..fdc36e1cca58 100755 --- a/src/Illuminate/Encryption/Encrypter.php +++ b/src/Illuminate/Encryption/Encrypter.php @@ -95,7 +95,6 @@ public static function generateKey($cipher) /** * Encrypt the given value. * - * @param mixed $value * @param bool $serialize * @return string * @@ -148,7 +147,6 @@ public function encryptString(#[\SensitiveParameter] $value) * * @param string $payload * @param bool $unserialize - * @return mixed * * @throws \Illuminate\Contracts\Encryption\DecryptException */ @@ -212,7 +210,6 @@ public function decryptString($payload) * Create a MAC for the given value. * * @param string $iv - * @param mixed $value * @param string $key * @return string */ @@ -250,7 +247,6 @@ protected function getJsonPayload($payload) /** * Verify that the encryption payload is valid. * - * @param mixed $payload * @return bool */ protected function validPayload($payload) @@ -275,7 +271,6 @@ protected function validPayload($payload) /** * Determine if the MAC for the given payload is valid for the primary key. * - * @param array $payload * @return bool */ protected function validMac(array $payload) @@ -357,7 +352,6 @@ public function getPreviousKeys() /** * Set the previous / legacy encryption keys that should be utilized if decryption fails. * - * @param array $keys * @return $this */ public function previousKeys(array $keys) diff --git a/src/Illuminate/Encryption/EncryptionServiceProvider.php b/src/Illuminate/Encryption/EncryptionServiceProvider.php index 5307042792af..8bfc8f1fe3cc 100755 --- a/src/Illuminate/Encryption/EncryptionServiceProvider.php +++ b/src/Illuminate/Encryption/EncryptionServiceProvider.php @@ -56,7 +56,6 @@ protected function registerSerializableClosureSecurityKey() /** * Parse the encryption key. * - * @param array $config * @return string */ protected function parseKey(array $config) @@ -71,7 +70,6 @@ protected function parseKey(array $config) /** * Extract the encryption key from the given configuration. * - * @param array $config * @return string * * @throws \Illuminate\Encryption\MissingAppKeyException diff --git a/src/Illuminate/Events/CallQueuedListener.php b/src/Illuminate/Events/CallQueuedListener.php index e78a4c4e2c5f..c0c0789ce2a9 100644 --- a/src/Illuminate/Events/CallQueuedListener.php +++ b/src/Illuminate/Events/CallQueuedListener.php @@ -99,7 +99,6 @@ public function __construct($class, $method, $data) /** * Handle the queued job. * - * @param \Illuminate\Container\Container $container * @return void */ public function handle(Container $container) @@ -116,7 +115,6 @@ public function handle(Container $container) /** * Set the job instance of the given class if necessary. * - * @param \Illuminate\Contracts\Queue\Job $job * @param object $instance * @return object */ diff --git a/src/Illuminate/Events/Dispatcher.php b/src/Illuminate/Events/Dispatcher.php index 9c12d741e7eb..ee590ead902a 100755 --- a/src/Illuminate/Events/Dispatcher.php +++ b/src/Illuminate/Events/Dispatcher.php @@ -92,8 +92,6 @@ class Dispatcher implements DispatcherContract /** * Create a new event dispatcher instance. - * - * @param \Illuminate\Contracts\Container\Container|null $container */ public function __construct(?ContainerContract $container = null) { @@ -232,7 +230,6 @@ public function subscribe($subscriber) * Resolve the subscriber instance. * * @param object|string $subscriber - * @return mixed */ protected function resolveSubscriber($subscriber) { @@ -247,8 +244,6 @@ protected function resolveSubscriber($subscriber) * Fire an event until the first non-null response is returned. * * @param string|object $event - * @param mixed $payload - * @return mixed */ public function until($event, $payload = []) { @@ -259,7 +254,6 @@ public function until($event, $payload = []) * Fire an event and call the listeners. * * @param string|object $event - * @param mixed $payload * @param bool $halt * @return array|null */ @@ -299,7 +293,6 @@ public function dispatch($event, $payload = [], $halt = false) * Broadcast an event and call its listeners. * * @param string|object $event - * @param mixed $payload * @param bool $halt * @return array|null */ @@ -337,8 +330,6 @@ protected function invokeListeners($event, $payload, $halt = false) /** * Parse the given event and payload and prepare them for dispatching. * - * @param mixed $event - * @param mixed $payload * @return array */ protected function parseEventAndPayload($event, $payload) @@ -353,7 +344,6 @@ protected function parseEventAndPayload($event, $payload) /** * Determine if the payload has a broadcastable event. * - * @param array $payload * @return bool */ protected function shouldBroadcast(array $payload) @@ -366,7 +356,6 @@ protected function shouldBroadcast(array $payload) /** * Check if the event should be broadcasted by the condition. * - * @param mixed $event * @return bool */ protected function broadcastWhen($event) @@ -430,7 +419,6 @@ protected function getWildcardListeners($eventName) * Add the listeners for the event's interfaces to the given array. * * @param string $eventName - * @param array $listeners * @return array */ protected function addInterfaceListeners($eventName, array $listeners = []) @@ -449,7 +437,6 @@ protected function addInterfaceListeners($eventName, array $listeners = []) /** * Prepare the listeners for a given event. * - * @param string $eventName * @return \Closure[] */ protected function prepareListeners(string $eventName) @@ -587,7 +574,6 @@ protected function createQueuedHandlerCallable($class, $method) /** * Determine if the given event handler should be dispatched after all database transactions have committed. * - * @param mixed $listener * @return bool */ protected function handlerShouldBeDispatchedAfterDatabaseTransactions($listener) @@ -600,7 +586,6 @@ protected function handlerShouldBeDispatchedAfterDatabaseTransactions($listener) /** * Create a callable for dispatching a listener after database transactions. * - * @param mixed $listener * @param string $method * @return \Closure */ @@ -684,9 +669,7 @@ protected function createListenerAndJob($class, $method, $arguments) /** * Propagate listener options to the job. * - * @param mixed $listener * @param \Illuminate\Events\CallQueuedListener $job - * @return mixed */ protected function propagateListenerOptions($listener, $job) { @@ -762,7 +745,6 @@ protected function resolveQueue() /** * Set the queue resolver implementation. * - * @param callable $resolver * @return $this */ public function setQueueResolver(callable $resolver) @@ -785,7 +767,6 @@ protected function resolveTransactionManager() /** * Set the database transaction manager resolver implementation. * - * @param callable $resolver * @return $this */ public function setTransactionManagerResolver(callable $resolver) @@ -797,10 +778,6 @@ public function setTransactionManagerResolver(callable $resolver) /** * Execute the given callback while deferring events, then dispatch all deferred events. - * - * @param callable $callback - * @param array|null $events - * @return mixed */ public function defer(callable $callback, ?array $events = null) { @@ -832,7 +809,6 @@ public function defer(callable $callback, ?array $events = null) /** * Determine if the given event should be deferred. * - * @param string $event * @return bool */ protected function shouldDeferEvent(string $event) diff --git a/src/Illuminate/Events/InvokeQueuedClosure.php b/src/Illuminate/Events/InvokeQueuedClosure.php index aa7f1e5e5234..d9f58e61ece7 100644 --- a/src/Illuminate/Events/InvokeQueuedClosure.php +++ b/src/Illuminate/Events/InvokeQueuedClosure.php @@ -10,7 +10,6 @@ class InvokeQueuedClosure * Handle the event. * * @param \Laravel\SerializableClosure\SerializableClosure $closure - * @param array $arguments * @return void */ public function handle($closure, array $arguments) @@ -22,8 +21,6 @@ public function handle($closure, array $arguments) * Handle a job failure. * * @param \Laravel\SerializableClosure\SerializableClosure $closure - * @param array $arguments - * @param array $catchCallbacks * @param \Throwable $exception * @return void */ diff --git a/src/Illuminate/Events/NullDispatcher.php b/src/Illuminate/Events/NullDispatcher.php index b0c9cdf8ef6f..12b9febba6bf 100644 --- a/src/Illuminate/Events/NullDispatcher.php +++ b/src/Illuminate/Events/NullDispatcher.php @@ -18,8 +18,6 @@ class NullDispatcher implements DispatcherContract /** * Create a new event dispatcher instance that does not fire. - * - * @param \Illuminate\Contracts\Events\Dispatcher $dispatcher */ public function __construct(DispatcherContract $dispatcher) { @@ -30,7 +28,6 @@ public function __construct(DispatcherContract $dispatcher) * Don't fire an event. * * @param string|object $event - * @param mixed $payload * @param bool $halt * @return void */ @@ -55,8 +52,6 @@ public function push($event, $payload = []) * Don't dispatch an event. * * @param string|object $event - * @param mixed $payload - * @return mixed */ public function until($event, $payload = []) { @@ -134,7 +129,6 @@ public function forgetPushed() * * @param string $method * @param array $parameters - * @return mixed */ public function __call($method, $parameters) { diff --git a/src/Illuminate/Events/QueuedClosure.php b/src/Illuminate/Events/QueuedClosure.php index a1a2d63d1fbb..7209fa4480ae 100644 --- a/src/Illuminate/Events/QueuedClosure.php +++ b/src/Illuminate/Events/QueuedClosure.php @@ -47,8 +47,6 @@ class QueuedClosure /** * Create a new queued closure event listener resolver. - * - * @param \Closure $closure */ public function __construct(Closure $closure) { @@ -97,7 +95,6 @@ public function delay($delay) /** * Specify a callback that should be invoked if the queued listener job fails. * - * @param \Closure $closure * @return $this */ public function catch(Closure $closure) diff --git a/src/Illuminate/Events/functions.php b/src/Illuminate/Events/functions.php index 36b778885c84..8865e1f0a0a3 100644 --- a/src/Illuminate/Events/functions.php +++ b/src/Illuminate/Events/functions.php @@ -7,8 +7,6 @@ if (! function_exists('Illuminate\Events\queueable')) { /** * Create a new queued Closure event listener. - * - * @param \Closure $closure */ function queueable(Closure $closure): QueuedClosure { diff --git a/src/Illuminate/Filesystem/AwsS3V3Adapter.php b/src/Illuminate/Filesystem/AwsS3V3Adapter.php index 7b125e2a68fe..5b90c58e4d1a 100644 --- a/src/Illuminate/Filesystem/AwsS3V3Adapter.php +++ b/src/Illuminate/Filesystem/AwsS3V3Adapter.php @@ -20,11 +20,6 @@ class AwsS3V3Adapter extends FilesystemAdapter /** * Create a new AwsS3V3FilesystemAdapter instance. - * - * @param \League\Flysystem\FilesystemOperator $driver - * @param \League\Flysystem\AwsS3V3\AwsS3V3Adapter $adapter - * @param array $config - * @param \Aws\S3\S3Client $client */ public function __construct(FilesystemOperator $driver, S3Adapter $adapter, array $config, S3Client $client) { @@ -70,7 +65,6 @@ public function providesTemporaryUrls() * * @param string $path * @param \DateTimeInterface $expiration - * @param array $options * @return string */ public function temporaryUrl($path, $expiration, array $options = []) @@ -99,7 +93,6 @@ public function temporaryUrl($path, $expiration, array $options = []) * * @param string $path * @param \DateTimeInterface $expiration - * @param array $options * @return array */ public function temporaryUploadUrl($path, $expiration, array $options = []) diff --git a/src/Illuminate/Filesystem/Filesystem.php b/src/Illuminate/Filesystem/Filesystem.php index 38e5a5448c9d..8cb5430affc1 100644 --- a/src/Illuminate/Filesystem/Filesystem.php +++ b/src/Illuminate/Filesystem/Filesystem.php @@ -106,8 +106,6 @@ public function sharedGet($path) * Get the returned value of a file. * * @param string $path - * @param array $data - * @return mixed * * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException */ @@ -131,8 +129,6 @@ public function getRequire($path, array $data = []) * Require the given file once. * * @param string $path - * @param array $data - * @return mixed * * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException */ @@ -280,7 +276,6 @@ public function append($path, $data, $lock = false) * * @param string $path * @param int|null $mode - * @return mixed */ public function chmod($path, $mode = null) { diff --git a/src/Illuminate/Filesystem/FilesystemAdapter.php b/src/Illuminate/Filesystem/FilesystemAdapter.php index 588f8c66f973..376d8d4a74aa 100644 --- a/src/Illuminate/Filesystem/FilesystemAdapter.php +++ b/src/Illuminate/Filesystem/FilesystemAdapter.php @@ -93,10 +93,6 @@ class FilesystemAdapter implements CloudFilesystemContract /** * Create a new filesystem adapter instance. - * - * @param \League\Flysystem\FilesystemOperator $driver - * @param \League\Flysystem\FilesystemAdapter $adapter - * @param array $config */ public function __construct(FilesystemOperator $driver, FlysystemAdapter $adapter, array $config = []) { @@ -314,7 +310,6 @@ public function json($path, $flags = 0) * * @param string $path * @param string|null $name - * @param array $headers * @param string|null $disposition * @return \Symfony\Component\HttpFoundation\StreamedResponse */ @@ -349,10 +344,8 @@ public function response($path, $name = null, array $headers = [], $disposition /** * Create a streamed download response for a given file. * - * @param \Illuminate\Http\Request $request * @param string $path * @param string|null $name - * @param array $headers * @return \Symfony\Component\HttpFoundation\StreamedResponse */ public function serve(Request $request, $path, $name = null, array $headers = []) @@ -367,7 +360,6 @@ public function serve(Request $request, $path, $name = null, array $headers = [] * * @param string $path * @param string|null $name - * @param array $headers * @return \Symfony\Component\HttpFoundation\StreamedResponse */ public function download($path, $name = null, array $headers = []) @@ -391,7 +383,6 @@ protected function fallbackName($name) * * @param string $path * @param \Psr\Http\Message\StreamInterface|\Illuminate\Http\File|\Illuminate\Http\UploadedFile|string|resource $contents - * @param mixed $options * @return string|bool */ public function put($path, $contents, $options = []) @@ -434,7 +425,6 @@ public function put($path, $contents, $options = []) * * @param \Illuminate\Http\File|\Illuminate\Http\UploadedFile|string $path * @param \Illuminate\Http\File|\Illuminate\Http\UploadedFile|string|array|null $file - * @param mixed $options * @return string|false */ public function putFile($path, $file = null, $options = []) @@ -454,7 +444,6 @@ public function putFile($path, $file = null, $options = []) * @param \Illuminate\Http\File|\Illuminate\Http\UploadedFile|string $path * @param \Illuminate\Http\File|\Illuminate\Http\UploadedFile|string|array|null $file * @param string|array|null $name - * @param mixed $options * @return string|false */ public function putFileAs($path, $file, $name = null, $options = []) @@ -798,7 +787,6 @@ public function providesTemporaryUrls() * * @param string $path * @param \DateTimeInterface $expiration - * @param array $options * @return string * * @throws \RuntimeException @@ -823,7 +811,6 @@ public function temporaryUrl($path, $expiration, array $options = []) * * @param string $path * @param \DateTimeInterface $expiration - * @param array $options * @return array * * @throws \RuntimeException @@ -1023,7 +1010,6 @@ protected function parseVisibility($visibility) /** * Define a custom callback that generates file download responses. * - * @param \Closure $callback * @return void */ public function serveUsing(Closure $callback) @@ -1034,7 +1020,6 @@ public function serveUsing(Closure $callback) /** * Define a custom temporary URL builder callback. * - * @param \Closure $callback * @return void */ public function buildTemporaryUrlsUsing(Closure $callback) @@ -1044,8 +1029,6 @@ public function buildTemporaryUrlsUsing(Closure $callback) /** * Determine if Flysystem exceptions should be thrown. - * - * @return bool */ protected function throwsExceptions(): bool { @@ -1067,8 +1050,6 @@ protected function report($exception) /** * Determine if Flysystem exceptions should be reported. - * - * @return bool */ protected function shouldReport(): bool { @@ -1080,7 +1061,6 @@ protected function shouldReport(): bool * * @param string $method * @param array $parameters - * @return mixed * * @throws \BadMethodCallException */ diff --git a/src/Illuminate/Filesystem/FilesystemManager.php b/src/Illuminate/Filesystem/FilesystemManager.php index 53372b53f40e..d01063dda646 100644 --- a/src/Illuminate/Filesystem/FilesystemManager.php +++ b/src/Illuminate/Filesystem/FilesystemManager.php @@ -156,7 +156,6 @@ protected function resolve($name, $config = null) /** * Call a custom driver creator. * - * @param array $config * @return \Illuminate\Contracts\Filesystem\Filesystem */ protected function callCustomCreator(array $config) @@ -167,8 +166,6 @@ protected function callCustomCreator(array $config) /** * Create an instance of the local driver. * - * @param array $config - * @param string $name * @return \Illuminate\Contracts\Filesystem\Filesystem */ public function createLocalDriver(array $config, string $name = 'local') @@ -199,7 +196,6 @@ public function createLocalDriver(array $config, string $name = 'local') /** * Create an instance of the ftp driver. * - * @param array $config * @return \Illuminate\Contracts\Filesystem\Filesystem */ public function createFtpDriver(array $config) @@ -216,7 +212,6 @@ public function createFtpDriver(array $config) /** * Create an instance of the sftp driver. * - * @param array $config * @return \Illuminate\Contracts\Filesystem\Filesystem */ public function createSftpDriver(array $config) @@ -237,7 +232,6 @@ public function createSftpDriver(array $config) /** * Create an instance of the Amazon S3 driver. * - * @param array $config * @return \Illuminate\Contracts\Filesystem\Cloud */ public function createS3Driver(array $config) @@ -264,7 +258,6 @@ public function createS3Driver(array $config) /** * Format the given S3 configuration with the default options. * - * @param array $config * @return array */ protected function formatS3Config(array $config) @@ -285,7 +278,6 @@ protected function formatS3Config(array $config) /** * Create a scoped driver. * - * @param array $config * @return \Illuminate\Contracts\Filesystem\Filesystem */ public function createScopedDriver(array $config) @@ -320,8 +312,6 @@ function (&$parent) use ($config) { /** * Create a Flysystem instance with the given adapter. * - * @param \League\Flysystem\FilesystemAdapter $adapter - * @param array $config * @return \League\Flysystem\FilesystemOperator */ protected function createFlysystem(FlysystemAdapter $adapter, array $config) @@ -352,7 +342,6 @@ protected function createFlysystem(FlysystemAdapter $adapter, array $config) * Set the given disk instance. * * @param string $name - * @param mixed $disk * @return $this */ public function set($name, $disk) @@ -425,7 +414,6 @@ public function purge($name = null) * Register a custom driver creator Closure. * * @param string $driver - * @param \Closure $callback * @return $this */ public function extend($driver, Closure $callback) @@ -453,7 +441,6 @@ public function setApplication($app) * * @param string $method * @param array $parameters - * @return mixed */ public function __call($method, $parameters) { diff --git a/src/Illuminate/Filesystem/FilesystemServiceProvider.php b/src/Illuminate/Filesystem/FilesystemServiceProvider.php index 5fe6b9e531be..b48f003e16e6 100644 --- a/src/Illuminate/Filesystem/FilesystemServiceProvider.php +++ b/src/Illuminate/Filesystem/FilesystemServiceProvider.php @@ -109,7 +109,6 @@ protected function serveFiles() /** * Determine if the disk is serveable. * - * @param array $config * @return bool */ protected function shouldServeFiles(array $config) diff --git a/src/Illuminate/Filesystem/LocalFilesystemAdapter.php b/src/Illuminate/Filesystem/LocalFilesystemAdapter.php index bca0ea42ea24..0e65a333dd91 100644 --- a/src/Illuminate/Filesystem/LocalFilesystemAdapter.php +++ b/src/Illuminate/Filesystem/LocalFilesystemAdapter.php @@ -48,7 +48,6 @@ public function providesTemporaryUrls() * * @param string $path * @param \DateTimeInterface $expiration - * @param array $options * @return string */ public function temporaryUrl($path, $expiration, array $options = []) @@ -76,7 +75,6 @@ public function temporaryUrl($path, $expiration, array $options = []) /** * Specify the name of the disk the adapter is managing. * - * @param string $disk * @return $this */ public function diskName(string $disk) @@ -89,8 +87,6 @@ public function diskName(string $disk) /** * Indicate that signed URLs should serve the corresponding files. * - * @param bool $serve - * @param \Closure|null $urlGeneratorResolver * @return $this */ public function shouldServeSignedUrls(bool $serve = true, ?Closure $urlGeneratorResolver = null) diff --git a/src/Illuminate/Foundation/AliasLoader.php b/src/Illuminate/Foundation/AliasLoader.php index 9c8224538483..3bd65a773e54 100755 --- a/src/Illuminate/Foundation/AliasLoader.php +++ b/src/Illuminate/Foundation/AliasLoader.php @@ -45,7 +45,6 @@ private function __construct($aliases) /** * Get or create the singleton alias loader instance. * - * @param array $aliases * @return \Illuminate\Foundation\AliasLoader */ public static function getInstance(array $aliases = []) @@ -179,7 +178,6 @@ public function getAliases() /** * Set the registered aliases. * - * @param array $aliases * @return void */ public function setAliases(array $aliases) diff --git a/src/Illuminate/Foundation/Application.php b/src/Illuminate/Foundation/Application.php index 8889e11c30f5..16c08055d91a 100755 --- a/src/Illuminate/Foundation/Application.php +++ b/src/Illuminate/Foundation/Application.php @@ -228,7 +228,6 @@ public function __construct($basePath = null) /** * Begin configuring a new Laravel application instance. * - * @param string|null $basePath * @return \Illuminate\Foundation\Configuration\ApplicationBuilder */ public static function configure(?string $basePath = null) @@ -347,7 +346,6 @@ public function bootstrapWith(array $bootstrappers) /** * Register a callback to run after loading the environment. * - * @param \Closure $callback * @return void */ public function afterLoadingEnvironment(Closure $callback) @@ -361,7 +359,6 @@ public function afterLoadingEnvironment(Closure $callback) * Register a callback to run before a bootstrapper. * * @param string $bootstrapper - * @param \Closure $callback * @return void */ public function beforeBootstrapping($bootstrapper, Closure $callback) @@ -373,7 +370,6 @@ public function beforeBootstrapping($bootstrapper, Closure $callback) * Register a callback to run after a bootstrapper. * * @param string $bootstrapper - * @param \Closure $callback * @return void */ public function afterBootstrapping($bootstrapper, Closure $callback) @@ -779,7 +775,6 @@ public function isProduction() /** * Detect the application's current environment. * - * @param \Closure $callback * @return string */ public function detectEnvironment(Closure $callback) @@ -1045,7 +1040,6 @@ public function registerDeferredProvider($provider, $service = null) * @template TClass of object * * @param string|class-string $abstract - * @param array $parameters * @return ($abstract is class-string ? TClass : mixed) * * @throws \Illuminate\Contracts\Container\BindingResolutionException @@ -1139,7 +1133,6 @@ public function boot() /** * Boot the given service provider. * - * @param \Illuminate\Support\ServiceProvider $provider * @return void */ protected function bootProvider(ServiceProvider $provider) @@ -1198,8 +1191,6 @@ protected function fireAppCallbacks(array &$callbacks) /** * {@inheritdoc} - * - * @return \Symfony\Component\HttpFoundation\Response */ public function handle(SymfonyRequest $request, int $type = self::MAIN_REQUEST, bool $catch = true): SymfonyResponse { @@ -1209,7 +1200,6 @@ public function handle(SymfonyRequest $request, int $type = self::MAIN_REQUEST, /** * Handle the incoming HTTP request and send the response to the browser. * - * @param \Illuminate\Http\Request $request * @return void */ public function handleRequest(Request $request) @@ -1224,7 +1214,6 @@ public function handleRequest(Request $request) /** * Handle the incoming Artisan command. * - * @param \Symfony\Component\Console\Input\InputInterface $input * @return int */ public function handleCommand(InputInterface $input) @@ -1410,7 +1399,6 @@ public function isDownForMaintenance() * * @param int $code * @param string $message - * @param array $headers * @return never * * @throws \Symfony\Component\HttpKernel\Exception\HttpException @@ -1467,7 +1455,6 @@ public function getLoadedProviders() /** * Determine if the given service provider is loaded. * - * @param string $provider * @return bool */ public function providerIsLoaded(string $provider) @@ -1488,7 +1475,6 @@ public function getDeferredServices() /** * Set the application's deferred services. * - * @param array $services * @return void */ public function setDeferredServices(array $services) @@ -1510,7 +1496,6 @@ public function isDeferredService($service) /** * Add an array of services to the application's deferred services. * - * @param array $services * @return void */ public function addDeferredServices(array $services) @@ -1521,7 +1506,6 @@ public function addDeferredServices(array $services) /** * Remove an array of services from the application's deferred services. * - * @param array $services * @return void */ public function removeDeferredServices(array $services) diff --git a/src/Illuminate/Foundation/Auth/Access/Authorizable.php b/src/Illuminate/Foundation/Auth/Access/Authorizable.php index 8a90c793d667..4146ad09af87 100644 --- a/src/Illuminate/Foundation/Auth/Access/Authorizable.php +++ b/src/Illuminate/Foundation/Auth/Access/Authorizable.php @@ -10,7 +10,6 @@ trait Authorizable * Determine if the entity has the given abilities. * * @param iterable|\BackedEnum|string $abilities - * @param mixed $arguments * @return bool */ public function can($abilities, $arguments = []) @@ -22,7 +21,6 @@ public function can($abilities, $arguments = []) * Determine if the entity has any of the given abilities. * * @param iterable|\BackedEnum|string $abilities - * @param mixed $arguments * @return bool */ public function canAny($abilities, $arguments = []) @@ -34,7 +32,6 @@ public function canAny($abilities, $arguments = []) * Determine if the entity does not have the given abilities. * * @param iterable|\BackedEnum|string $abilities - * @param mixed $arguments * @return bool */ public function cant($abilities, $arguments = []) @@ -46,7 +43,6 @@ public function cant($abilities, $arguments = []) * Determine if the entity does not have the given abilities. * * @param iterable|\BackedEnum|string $abilities - * @param mixed $arguments * @return bool */ public function cannot($abilities, $arguments = []) diff --git a/src/Illuminate/Foundation/Auth/Access/AuthorizesRequests.php b/src/Illuminate/Foundation/Auth/Access/AuthorizesRequests.php index 4bff28944216..1e9b324fe8a2 100644 --- a/src/Illuminate/Foundation/Auth/Access/AuthorizesRequests.php +++ b/src/Illuminate/Foundation/Auth/Access/AuthorizesRequests.php @@ -12,8 +12,6 @@ trait AuthorizesRequests /** * Authorize a given action for the current user. * - * @param mixed $ability - * @param mixed $arguments * @return \Illuminate\Auth\Access\Response * * @throws \Illuminate\Auth\Access\AuthorizationException @@ -29,8 +27,6 @@ public function authorize($ability, $arguments = []) * Authorize a given action for a user. * * @param \Illuminate\Contracts\Auth\Authenticatable|mixed $user - * @param mixed $ability - * @param mixed $arguments * @return \Illuminate\Auth\Access\Response * * @throws \Illuminate\Auth\Access\AuthorizationException @@ -45,8 +41,6 @@ public function authorizeForUser($user, $ability, $arguments = []) /** * Guesses the ability's name if it wasn't provided. * - * @param mixed $ability - * @param mixed $arguments * @return array */ protected function parseAbilityAndArguments($ability, $arguments) @@ -80,7 +74,6 @@ protected function normalizeGuessedAbilityName($ability) * * @param string|array $model * @param string|array|null $parameter - * @param array $options * @param \Illuminate\Http\Request|null $request * @return void */ diff --git a/src/Illuminate/Foundation/Auth/EmailVerificationRequest.php b/src/Illuminate/Foundation/Auth/EmailVerificationRequest.php index 9656682965d7..3909de6b1100 100644 --- a/src/Illuminate/Foundation/Auth/EmailVerificationRequest.php +++ b/src/Illuminate/Foundation/Auth/EmailVerificationRequest.php @@ -55,7 +55,6 @@ public function fulfill() /** * Configure the validator instance. * - * @param \Illuminate\Validation\Validator $validator * @return \Illuminate\Validation\Validator */ public function withValidator(Validator $validator) diff --git a/src/Illuminate/Foundation/Bootstrap/BootProviders.php b/src/Illuminate/Foundation/Bootstrap/BootProviders.php index 2c0bcb0bec0a..d725ec021962 100644 --- a/src/Illuminate/Foundation/Bootstrap/BootProviders.php +++ b/src/Illuminate/Foundation/Bootstrap/BootProviders.php @@ -9,7 +9,6 @@ class BootProviders /** * Bootstrap the given application. * - * @param \Illuminate\Contracts\Foundation\Application $app * @return void */ public function bootstrap(Application $app) diff --git a/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php b/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php index a06b655dffad..cd6124e7182b 100644 --- a/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php +++ b/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php @@ -35,7 +35,6 @@ class HandleExceptions /** * Bootstrap the given application. * - * @param \Illuminate\Contracts\Foundation\Application $app * @return void */ public function bootstrap(Application $app) @@ -175,7 +174,6 @@ protected function ensureNullLogDriverIsConfigured() * the HTTP and Console kernels. But, fatal error exceptions must * be handled differently since they are not normal exceptions. * - * @param \Throwable $e * @return void */ public function handleException(Throwable $e) @@ -202,7 +200,6 @@ public function handleException(Throwable $e) /** * Render an exception to the console. * - * @param \Throwable $e * @return void */ protected function renderForConsole(Throwable $e) @@ -213,7 +210,6 @@ protected function renderForConsole(Throwable $e) /** * Render an exception as an HTTP response and send it. * - * @param \Throwable $e * @return void */ protected function renderHttpResponse(Throwable $e) @@ -238,7 +234,6 @@ public function handleShutdown() /** * Create a new fatal error instance from an error array. * - * @param array $error * @param int|null $traceOffset * @return \Symfony\Component\ErrorHandler\Error\FatalError */ @@ -306,7 +301,6 @@ public static function forgetApp() /** * Flush the bootstrapper's global state. * - * @param \PHPUnit\Framework\TestCase|null $testCase * @return void */ public static function flushState(?TestCase $testCase = null) @@ -325,7 +319,6 @@ public static function flushState(?TestCase $testCase = null) /** * Flush the bootstrapper's global handlers state. * - * @param \PHPUnit\Framework\TestCase|null $testCase * @return void */ public static function flushHandlersState(?TestCase $testCase = null) diff --git a/src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php b/src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php index 4c5f00e9a2c0..759645dea91b 100644 --- a/src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php +++ b/src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php @@ -14,7 +14,6 @@ class LoadConfiguration /** * Bootstrap the given application. * - * @param \Illuminate\Contracts\Foundation\Application $app * @return void */ public function bootstrap(Application $app) @@ -54,8 +53,6 @@ public function bootstrap(Application $app) /** * Load the configuration items from all of the files. * - * @param \Illuminate\Contracts\Foundation\Application $app - * @param \Illuminate\Contracts\Config\Repository $repository * @return void * * @throws \Exception @@ -88,10 +85,8 @@ protected function loadConfigurationFiles(Application $app, RepositoryContract $ /** * Load the given configuration file. * - * @param \Illuminate\Contracts\Config\Repository $repository * @param string $name * @param string $path - * @param array $base * @return array */ protected function loadConfigurationFile(RepositoryContract $repository, $name, $path, array $base) @@ -138,7 +133,6 @@ protected function mergeableOptions($name) /** * Get all of the configuration files for the application. * - * @param \Illuminate\Contracts\Foundation\Application $app * @return array */ protected function getConfigurationFiles(Application $app) @@ -165,7 +159,6 @@ protected function getConfigurationFiles(Application $app) /** * Get the configuration file nesting path. * - * @param \SplFileInfo $file * @param string $configPath * @return string */ diff --git a/src/Illuminate/Foundation/Bootstrap/LoadEnvironmentVariables.php b/src/Illuminate/Foundation/Bootstrap/LoadEnvironmentVariables.php index 050a96967e04..af31d997b8d1 100644 --- a/src/Illuminate/Foundation/Bootstrap/LoadEnvironmentVariables.php +++ b/src/Illuminate/Foundation/Bootstrap/LoadEnvironmentVariables.php @@ -14,7 +14,6 @@ class LoadEnvironmentVariables /** * Bootstrap the given application. * - * @param \Illuminate\Contracts\Foundation\Application $app * @return void */ public function bootstrap(Application $app) @@ -93,7 +92,6 @@ protected function createDotenv($app) /** * Write the error information to the screen and exit. * - * @param \Dotenv\Exception\InvalidFileException $e * @return never */ protected function writeErrorAndDie(InvalidFileException $e) diff --git a/src/Illuminate/Foundation/Bootstrap/RegisterFacades.php b/src/Illuminate/Foundation/Bootstrap/RegisterFacades.php index 2a4c6b4ad1e2..3a2d6077543a 100644 --- a/src/Illuminate/Foundation/Bootstrap/RegisterFacades.php +++ b/src/Illuminate/Foundation/Bootstrap/RegisterFacades.php @@ -12,7 +12,6 @@ class RegisterFacades /** * Bootstrap the given application. * - * @param \Illuminate\Contracts\Foundation\Application $app * @return void */ public function bootstrap(Application $app) diff --git a/src/Illuminate/Foundation/Bootstrap/RegisterProviders.php b/src/Illuminate/Foundation/Bootstrap/RegisterProviders.php index 2c608430063f..9d5a44a547f6 100644 --- a/src/Illuminate/Foundation/Bootstrap/RegisterProviders.php +++ b/src/Illuminate/Foundation/Bootstrap/RegisterProviders.php @@ -24,7 +24,6 @@ class RegisterProviders /** * Bootstrap the given application. * - * @param \Illuminate\Contracts\Foundation\Application $app * @return void */ public function bootstrap(Application $app) @@ -68,8 +67,6 @@ protected function mergeAdditionalProviders(Application $app) /** * Merge the given providers into the provider configuration before registration. * - * @param array $providers - * @param string|null $bootstrapProviderPath * @return void */ public static function merge(array $providers, ?string $bootstrapProviderPath = null) diff --git a/src/Illuminate/Foundation/Bootstrap/SetRequestForConsole.php b/src/Illuminate/Foundation/Bootstrap/SetRequestForConsole.php index 613fa857ed04..3a85297b5bbe 100644 --- a/src/Illuminate/Foundation/Bootstrap/SetRequestForConsole.php +++ b/src/Illuminate/Foundation/Bootstrap/SetRequestForConsole.php @@ -10,7 +10,6 @@ class SetRequestForConsole /** * Bootstrap the given application. * - * @param \Illuminate\Contracts\Foundation\Application $app * @return void */ public function bootstrap(Application $app) diff --git a/src/Illuminate/Foundation/Bus/Dispatchable.php b/src/Illuminate/Foundation/Bus/Dispatchable.php index 1fef9872f833..583f6d80049a 100644 --- a/src/Illuminate/Foundation/Bus/Dispatchable.php +++ b/src/Illuminate/Foundation/Bus/Dispatchable.php @@ -11,7 +11,6 @@ trait Dispatchable /** * Dispatch the job with the given arguments. * - * @param mixed ...$arguments * @return \Illuminate\Foundation\Bus\PendingDispatch */ public static function dispatch(...$arguments) @@ -23,7 +22,6 @@ public static function dispatch(...$arguments) * Dispatch the job with the given arguments if the given truth test passes. * * @param bool|\Closure $boolean - * @param mixed ...$arguments * @return \Illuminate\Foundation\Bus\PendingDispatch|\Illuminate\Support\Fluent */ public static function dispatchIf($boolean, ...$arguments) @@ -45,7 +43,6 @@ public static function dispatchIf($boolean, ...$arguments) * Dispatch the job with the given arguments unless the given truth test passes. * * @param bool|\Closure $boolean - * @param mixed ...$arguments * @return \Illuminate\Foundation\Bus\PendingDispatch|\Illuminate\Support\Fluent */ public static function dispatchUnless($boolean, ...$arguments) @@ -67,9 +64,6 @@ public static function dispatchUnless($boolean, ...$arguments) * Dispatch a command to its appropriate handler in the current process. * * Queueable jobs will be dispatched to the "sync" queue. - * - * @param mixed ...$arguments - * @return mixed */ public static function dispatchSync(...$arguments) { @@ -78,9 +72,6 @@ public static function dispatchSync(...$arguments) /** * Dispatch a command to its appropriate handler after the current process. - * - * @param mixed ...$arguments - * @return mixed */ public static function dispatchAfterResponse(...$arguments) { @@ -101,7 +92,6 @@ public static function withChain($chain) /** * Create a new pending job dispatch instance. * - * @param mixed $job * @return \Illuminate\Foundation\Bus\PendingDispatch */ protected static function newPendingDispatch($job) diff --git a/src/Illuminate/Foundation/Bus/DispatchesJobs.php b/src/Illuminate/Foundation/Bus/DispatchesJobs.php index b01ae041b0b9..5c2cbfb18e0d 100644 --- a/src/Illuminate/Foundation/Bus/DispatchesJobs.php +++ b/src/Illuminate/Foundation/Bus/DispatchesJobs.php @@ -6,9 +6,6 @@ trait DispatchesJobs { /** * Dispatch a job to its appropriate handler. - * - * @param mixed $job - * @return mixed */ protected function dispatch($job) { @@ -19,9 +16,6 @@ protected function dispatch($job) * Dispatch a job to its appropriate handler in the current process. * * Queueable jobs will be dispatched to the "sync" queue. - * - * @param mixed $job - * @return mixed */ public function dispatchSync($job) { diff --git a/src/Illuminate/Foundation/Bus/PendingChain.php b/src/Illuminate/Foundation/Bus/PendingChain.php index b2976e756b1b..4f9c7017ed98 100644 --- a/src/Illuminate/Foundation/Bus/PendingChain.php +++ b/src/Illuminate/Foundation/Bus/PendingChain.php @@ -18,8 +18,6 @@ class PendingChain /** * The class name of the job being dispatched. - * - * @var mixed */ public $job; @@ -61,7 +59,6 @@ class PendingChain /** * Create a new PendingChain instance. * - * @param mixed $job * @param array $chain */ public function __construct($job, $chain) @@ -99,7 +96,6 @@ public function onQueue($queue) /** * Prepend a job to the chain. * - * @param mixed $job * @return $this */ public function prepend($job) @@ -122,7 +118,6 @@ public function prepend($job) /** * Append a job to the chain. * - * @param mixed $job * @return $this */ public function append($job) diff --git a/src/Illuminate/Foundation/Bus/PendingClosureDispatch.php b/src/Illuminate/Foundation/Bus/PendingClosureDispatch.php index 84cc14a7788c..a578c8aaa5d3 100644 --- a/src/Illuminate/Foundation/Bus/PendingClosureDispatch.php +++ b/src/Illuminate/Foundation/Bus/PendingClosureDispatch.php @@ -9,7 +9,6 @@ class PendingClosureDispatch extends PendingDispatch /** * Add a callback to be executed if the job fails. * - * @param \Closure $callback * @return $this */ public function catch(Closure $callback) diff --git a/src/Illuminate/Foundation/Bus/PendingDispatch.php b/src/Illuminate/Foundation/Bus/PendingDispatch.php index 443eb5eddf5a..7810f3d6632d 100644 --- a/src/Illuminate/Foundation/Bus/PendingDispatch.php +++ b/src/Illuminate/Foundation/Bus/PendingDispatch.php @@ -15,8 +15,6 @@ class PendingDispatch /** * The job. - * - * @var mixed */ protected $job; @@ -29,8 +27,6 @@ class PendingDispatch /** * Create a new pending job dispatch. - * - * @param mixed $job */ public function __construct($job) { @@ -180,8 +176,6 @@ protected function shouldDispatch() /** * Get the underlying job instance. - * - * @return mixed */ public function getJob() { diff --git a/src/Illuminate/Foundation/CacheBasedMaintenanceMode.php b/src/Illuminate/Foundation/CacheBasedMaintenanceMode.php index 630df4f3a530..3e1c59776999 100644 --- a/src/Illuminate/Foundation/CacheBasedMaintenanceMode.php +++ b/src/Illuminate/Foundation/CacheBasedMaintenanceMode.php @@ -31,10 +31,6 @@ class CacheBasedMaintenanceMode implements MaintenanceMode /** * Create a new cache based maintenance mode implementation. - * - * @param \Illuminate\Contracts\Cache\Factory $cache - * @param string $store - * @param string $key */ public function __construct(Factory $cache, string $store, string $key) { @@ -45,9 +41,6 @@ public function __construct(Factory $cache, string $store, string $key) /** * Take the application down for maintenance. - * - * @param array $payload - * @return void */ public function activate(array $payload): void { @@ -56,8 +49,6 @@ public function activate(array $payload): void /** * Take the application out of maintenance. - * - * @return void */ public function deactivate(): void { @@ -66,8 +57,6 @@ public function deactivate(): void /** * Determine if the application is currently down for maintenance. - * - * @return bool */ public function active(): bool { @@ -76,8 +65,6 @@ public function active(): bool /** * Get the data array which was provided when the application was placed into maintenance. - * - * @return array */ public function data(): array { @@ -86,8 +73,6 @@ public function data(): array /** * Get the cache store to use. - * - * @return \Illuminate\Contracts\Cache\Repository */ protected function getStore(): Repository { diff --git a/src/Illuminate/Foundation/ComposerScripts.php b/src/Illuminate/Foundation/ComposerScripts.php index 8cf568409138..e5672a6c7680 100644 --- a/src/Illuminate/Foundation/ComposerScripts.php +++ b/src/Illuminate/Foundation/ComposerScripts.php @@ -9,7 +9,6 @@ class ComposerScripts /** * Handle the post-install Composer event. * - * @param \Composer\Script\Event $event * @return void */ public static function postInstall(Event $event) @@ -22,7 +21,6 @@ public static function postInstall(Event $event) /** * Handle the post-update Composer event. * - * @param \Composer\Script\Event $event * @return void */ public static function postUpdate(Event $event) @@ -35,7 +33,6 @@ public static function postUpdate(Event $event) /** * Handle the post-autoload-dump Composer event. * - * @param \Composer\Script\Event $event * @return void */ public static function postAutoloadDump(Event $event) diff --git a/src/Illuminate/Foundation/Configuration/ApplicationBuilder.php b/src/Illuminate/Foundation/Configuration/ApplicationBuilder.php index e386d8273c8e..a3a852a8abe8 100644 --- a/src/Illuminate/Foundation/Configuration/ApplicationBuilder.php +++ b/src/Illuminate/Foundation/Configuration/ApplicationBuilder.php @@ -24,22 +24,16 @@ class ApplicationBuilder { /** * The service provider that are marked for registration. - * - * @var array */ protected array $pendingProviders = []; /** * Any additional routing callbacks that should be invoked while registering routes. - * - * @var array */ protected array $additionalRoutingCallbacks = []; /** * The Folio / page middleware that have been defined by the user. - * - * @var array */ protected array $pageMiddleware = []; @@ -73,8 +67,6 @@ public function withKernels() /** * Register additional service providers. * - * @param array $providers - * @param bool $withBootstrapProviders * @return $this */ public function withProviders(array $providers = [], bool $withBootstrapProviders = true) @@ -119,8 +111,6 @@ public function withEvents(iterable|bool $discover = true) /** * Register the broadcasting services for the application. * - * @param string $channels - * @param array $attributes * @return $this */ public function withBroadcasting(string $channels, array $attributes = []) @@ -139,14 +129,6 @@ public function withBroadcasting(string $channels, array $attributes = []) /** * Register the routing services for the application. * - * @param \Closure|null $using - * @param array|string|null $web - * @param array|string|null $api - * @param string|null $commands - * @param string|null $channels - * @param string|null $pages - * @param string $apiPrefix - * @param callable|null $then * @return $this */ public function withRouting(?Closure $using = null, @@ -187,12 +169,6 @@ public function withRouting(?Closure $using = null, /** * Create the routing callback for the application. * - * @param array|string|null $web - * @param array|string|null $api - * @param string|null $pages - * @param string|null $health - * @param string $apiPrefix - * @param callable|null $then * @return \Closure */ protected function buildRoutingCallback(array|string|null $web, @@ -268,7 +244,6 @@ class_exists(Folio::class)) { /** * Register the global middleware, middleware groups, and middleware aliases for the application. * - * @param callable|null $callback * @return $this */ public function withMiddleware(?callable $callback = null) @@ -309,7 +284,6 @@ public function withMiddleware(?callable $callback = null) /** * Register additional Artisan commands with the application. * - * @param array $commands * @return $this */ public function withCommands(array $commands = []) @@ -335,7 +309,6 @@ public function withCommands(array $commands = []) /** * Register additional Artisan route paths. * - * @param array $paths * @return $this */ protected function withCommandRouting(array $paths) @@ -363,7 +336,6 @@ public function withSchedule(callable $callback) /** * Register and configure the application's exception handler. * - * @param callable|null $using * @return $this */ public function withExceptions(?callable $using = null) @@ -386,7 +358,6 @@ public function withExceptions(?callable $using = null) /** * Register an array of container bindings to be bound when the application is booting. * - * @param array $bindings * @return $this */ public function withBindings(array $bindings) @@ -401,7 +372,6 @@ public function withBindings(array $bindings) /** * Register an array of singleton container bindings to be bound when the application is booting. * - * @param array $singletons * @return $this */ public function withSingletons(array $singletons) @@ -420,7 +390,6 @@ public function withSingletons(array $singletons) /** * Register an array of scoped singleton container bindings to be bound when the application is booting. * - * @param array $scopedSingletons * @return $this */ public function withScopedSingletons(array $scopedSingletons) @@ -439,7 +408,6 @@ public function withScopedSingletons(array $scopedSingletons) /** * Register a callback to be invoked when the application's service providers are registered. * - * @param callable $callback * @return $this */ public function registered(callable $callback) @@ -452,7 +420,6 @@ public function registered(callable $callback) /** * Register a callback to be invoked when the application is "booting". * - * @param callable $callback * @return $this */ public function booting(callable $callback) @@ -465,7 +432,6 @@ public function booting(callable $callback) /** * Register a callback to be invoked when the application is "booted". * - * @param callable $callback * @return $this */ public function booted(callable $callback) diff --git a/src/Illuminate/Foundation/Configuration/Exceptions.php b/src/Illuminate/Foundation/Configuration/Exceptions.php index aa92d688a0d8..4145a4aa71b2 100644 --- a/src/Illuminate/Foundation/Configuration/Exceptions.php +++ b/src/Illuminate/Foundation/Configuration/Exceptions.php @@ -11,8 +11,6 @@ class Exceptions { /** * Create a new exception handling configuration instance. - * - * @param \Illuminate\Foundation\Exceptions\Handler $handler */ public function __construct(public Handler $handler) { @@ -21,7 +19,6 @@ public function __construct(public Handler $handler) /** * Register a reportable callback. * - * @param callable $using * @return \Illuminate\Foundation\Exceptions\ReportableHandler */ public function report(callable $using) @@ -32,7 +29,6 @@ public function report(callable $using) /** * Register a reportable callback. * - * @param callable $reportUsing * @return \Illuminate\Foundation\Exceptions\ReportableHandler */ public function reportable(callable $reportUsing) @@ -43,7 +39,6 @@ public function reportable(callable $reportUsing) /** * Register a renderable callback. * - * @param callable $using * @return $this */ public function render(callable $using) @@ -56,7 +51,6 @@ public function render(callable $using) /** * Register a renderable callback. * - * @param callable $renderUsing * @return $this */ public function renderable(callable $renderUsing) @@ -69,7 +63,6 @@ public function renderable(callable $renderUsing) /** * Register a callback to prepare the final, rendered exception response. * - * @param callable $using * @return $this */ public function respond(callable $using) @@ -82,7 +75,6 @@ public function respond(callable $using) /** * Specify the callback that should be used to throttle reportable exceptions. * - * @param callable $throttleUsing * @return $this */ public function throttle(callable $throttleUsing) @@ -125,7 +117,6 @@ public function level(string $type, string $level) /** * Register a closure that should be used to build exception context data. * - * @param \Closure $contextCallback * @return $this */ public function context(Closure $contextCallback) @@ -138,7 +129,6 @@ public function context(Closure $contextCallback) /** * Indicate that the given exception type should not be reported. * - * @param array|string $class * @return $this */ public function dontReport(array|string $class) @@ -178,7 +168,6 @@ public function dontReportDuplicates() /** * Indicate that the given attributes should never be flashed to the session on validation errors. * - * @param array|string $attributes * @return $this */ public function dontFlash(array|string $attributes) @@ -217,7 +206,6 @@ public function stopIgnoring(array|string $class) /** * Set the truncation length for request exception messages. * - * @param int $length * @return $this */ public function truncateRequestExceptionsAt(int $length) diff --git a/src/Illuminate/Foundation/Configuration/Middleware.php b/src/Illuminate/Foundation/Configuration/Middleware.php index 20b50499aedf..dfe88be0077f 100644 --- a/src/Illuminate/Foundation/Configuration/Middleware.php +++ b/src/Illuminate/Foundation/Configuration/Middleware.php @@ -163,7 +163,6 @@ class Middleware /** * Prepend middleware to the application's global middleware stack. * - * @param array|string $middleware * @return $this */ public function prepend(array|string $middleware) @@ -179,7 +178,6 @@ public function prepend(array|string $middleware) /** * Append middleware to the application's global middleware stack. * - * @param array|string $middleware * @return $this */ public function append(array|string $middleware) @@ -195,7 +193,6 @@ public function append(array|string $middleware) /** * Remove middleware from the application's global middleware stack. * - * @param array|string $middleware * @return $this */ public function remove(array|string $middleware) @@ -211,8 +208,6 @@ public function remove(array|string $middleware) /** * Specify a middleware that should be replaced with another middleware. * - * @param string $search - * @param string $replace * @return $this */ public function replace(string $search, string $replace) @@ -225,7 +220,6 @@ public function replace(string $search, string $replace) /** * Define the global middleware for the application. * - * @param array $middleware * @return $this */ public function use(array $middleware) @@ -238,8 +232,6 @@ public function use(array $middleware) /** * Define a middleware group. * - * @param string $group - * @param array $middleware * @return $this */ public function group(string $group, array $middleware) @@ -252,8 +244,6 @@ public function group(string $group, array $middleware) /** * Prepend the given middleware to the specified group. * - * @param string $group - * @param array|string $middleware * @return $this */ public function prependToGroup(string $group, array|string $middleware) @@ -269,8 +259,6 @@ public function prependToGroup(string $group, array|string $middleware) /** * Append the given middleware to the specified group. * - * @param string $group - * @param array|string $middleware * @return $this */ public function appendToGroup(string $group, array|string $middleware) @@ -286,8 +274,6 @@ public function appendToGroup(string $group, array|string $middleware) /** * Remove the given middleware from the specified group. * - * @param string $group - * @param array|string $middleware * @return $this */ public function removeFromGroup(string $group, array|string $middleware) @@ -303,9 +289,6 @@ public function removeFromGroup(string $group, array|string $middleware) /** * Replace the given middleware in the specified group with another middleware. * - * @param string $group - * @param string $search - * @param string $replace * @return $this */ public function replaceInGroup(string $group, string $search, string $replace) @@ -318,10 +301,6 @@ public function replaceInGroup(string $group, string $search, string $replace) /** * Modify the middleware in the "web" group. * - * @param array|string $append - * @param array|string $prepend - * @param array|string $remove - * @param array $replace * @return $this */ public function web(array|string $append = [], array|string $prepend = [], array|string $remove = [], array $replace = []) @@ -332,10 +311,6 @@ public function web(array|string $append = [], array|string $prepend = [], array /** * Modify the middleware in the "api" group. * - * @param array|string $append - * @param array|string $prepend - * @param array|string $remove - * @param array $replace * @return $this */ public function api(array|string $append = [], array|string $prepend = [], array|string $remove = [], array $replace = []) @@ -346,11 +321,6 @@ public function api(array|string $append = [], array|string $prepend = [], array /** * Modify the middleware in the given group. * - * @param string $group - * @param array|string $append - * @param array|string $prepend - * @param array|string $remove - * @param array $replace * @return $this */ protected function modifyGroup(string $group, array|string $append, array|string $prepend, array|string $remove, array $replace) @@ -379,7 +349,6 @@ protected function modifyGroup(string $group, array|string $append, array|string /** * Register the Folio / page middleware for the application. * - * @param array $middleware * @return $this */ public function pages(array $middleware) @@ -392,7 +361,6 @@ public function pages(array $middleware) /** * Register additional middleware aliases. * - * @param array $aliases * @return $this */ public function alias(array $aliases) @@ -405,7 +373,6 @@ public function alias(array $aliases) /** * Define the middleware priority for the application. * - * @param array $priority * @return $this */ public function priority(array $priority) @@ -533,7 +500,6 @@ public function getMiddlewareGroups() /** * Configure where guests are redirected by the "auth" middleware. * - * @param callable|string $redirect * @return $this */ public function redirectGuestsTo(callable|string $redirect) @@ -544,7 +510,6 @@ public function redirectGuestsTo(callable|string $redirect) /** * Configure where users are redirected by the "guest" middleware. * - * @param callable|string $redirect * @return $this */ public function redirectUsersTo(callable|string $redirect) @@ -593,7 +558,6 @@ public function encryptCookies(array $except = []) /** * Configure the CSRF token validation middleware. * - * @param array $except * @return $this */ public function validateCsrfTokens(array $except = []) @@ -606,7 +570,6 @@ public function validateCsrfTokens(array $except = []) /** * Configure the URL signature validation middleware. * - * @param array $except * @return $this */ public function validateSignatures(array $except = []) @@ -650,7 +613,6 @@ public function trimStrings(array $except = []) * Indicate that the trusted host middleware should be enabled. * * @param array|(callable(): array)|null $at - * @param bool $subdomains * @return $this */ public function trustHosts(array|callable|null $at = null, bool $subdomains = true) @@ -668,7 +630,6 @@ public function trustHosts(array|callable|null $at = null, bool $subdomains = tr * Configure the trusted proxies for the application. * * @param array|string|null $at - * @param int|null $headers * @return $this */ public function trustProxies(array|string|null $at = null, ?int $headers = null) diff --git a/src/Illuminate/Foundation/Console/AboutCommand.php b/src/Illuminate/Foundation/Console/AboutCommand.php index 8df4e28e1861..c37076dfcf7b 100644 --- a/src/Illuminate/Foundation/Console/AboutCommand.php +++ b/src/Illuminate/Foundation/Console/AboutCommand.php @@ -51,8 +51,6 @@ class AboutCommand extends Command /** * Create a new command instance. - * - * @param \Illuminate\Support\Composer $composer */ public function __construct(Composer $composer) { @@ -224,7 +222,6 @@ protected function gatherApplicationInformation() /** * Determine storage symbolic links status. * - * @param callable $formatStorageLinkedStatus * @return array */ protected function determineStoragePathLinkStatus(callable $formatStorageLinkedStatus): array @@ -240,9 +237,6 @@ protected function determineStoragePathLinkStatus(callable $formatStorageLinkedS /** * Determine whether the given directory has PHP files. - * - * @param string $path - * @return bool */ protected function hasPhpFiles(string $path): bool { @@ -252,9 +246,7 @@ protected function hasPhpFiles(string $path): bool /** * Add additional data to the output of the "about" command. * - * @param string $section * @param callable|string|array $data - * @param string|null $value * @return void */ public static function add(string $section, $data, ?string $value = null) @@ -265,9 +257,7 @@ public static function add(string $section, $data, ?string $value = null) /** * Add additional data to the output of the "about" command. * - * @param string $section * @param callable|string|array $data - * @param string|null $value * @return void */ protected static function addToSection(string $section, $data, ?string $value = null) @@ -299,7 +289,6 @@ protected function sections() /** * Materialize a function that formats a given value for CLI or JSON output. * - * @param mixed $value * @param (\Closure(mixed):(mixed))|null $console * @param (\Closure(mixed):(mixed))|null $json * @return \Closure(bool):mixed @@ -320,7 +309,6 @@ public static function format($value, ?Closure $console = null, ?Closure $json = /** * Format the given string for searching. * - * @param string $value * @return string */ protected function toSearchKeyword(string $value) diff --git a/src/Illuminate/Foundation/Console/BroadcastingInstallCommand.php b/src/Illuminate/Foundation/Console/BroadcastingInstallCommand.php index 028825255c4d..4a43b896af35 100644 --- a/src/Illuminate/Foundation/Console/BroadcastingInstallCommand.php +++ b/src/Illuminate/Foundation/Console/BroadcastingInstallCommand.php @@ -441,8 +441,6 @@ protected function installNodeDependencies() /** * Resolve the provider to use based on the user's choice. - * - * @return string */ protected function resolveDriver(): string { @@ -467,8 +465,6 @@ protected function resolveDriver(): string /** * Detect if the user is using a supported framework (React or Vue). - * - * @return bool */ protected function isUsingSupportedFramework(): bool { @@ -477,8 +473,6 @@ protected function isUsingSupportedFramework(): bool /** * Detect if the user is using React. - * - * @return bool */ protected function appUsesReact(): bool { @@ -487,8 +481,6 @@ protected function appUsesReact(): bool /** * Detect if the user is using Vue. - * - * @return bool */ protected function appUsesVue(): bool { @@ -497,8 +489,6 @@ protected function appUsesVue(): bool /** * Detect if the package is installed. - * - * @return bool */ protected function packageDependenciesInclude(string $package): bool { diff --git a/src/Illuminate/Foundation/Console/ChannelListCommand.php b/src/Illuminate/Foundation/Console/ChannelListCommand.php index 7063f1addfe1..b9bfb9152c87 100644 --- a/src/Illuminate/Foundation/Console/ChannelListCommand.php +++ b/src/Illuminate/Foundation/Console/ChannelListCommand.php @@ -36,7 +36,6 @@ class ChannelListCommand extends Command /** * Execute the console command. * - * @param \Illuminate\Contracts\Broadcasting\Broadcaster $broadcaster * @return void */ public function handle(Broadcaster $broadcaster) diff --git a/src/Illuminate/Foundation/Console/CliDumper.php b/src/Illuminate/Foundation/Console/CliDumper.php index 44cddcb1e204..dde8abe6269d 100644 --- a/src/Illuminate/Foundation/Console/CliDumper.php +++ b/src/Illuminate/Foundation/Console/CliDumper.php @@ -79,7 +79,6 @@ public static function register($basePath, $compiledViewPath) /** * Dump a variable with its source file / line. * - * @param \Symfony\Component\VarDumper\Cloner\Data $data * @return void */ public function dumpWithSource(Data $data) diff --git a/src/Illuminate/Foundation/Console/ClosureCommand.php b/src/Illuminate/Foundation/Console/ClosureCommand.php index f781ba44d2ea..b08e9073c1a4 100644 --- a/src/Illuminate/Foundation/Console/ClosureCommand.php +++ b/src/Illuminate/Foundation/Console/ClosureCommand.php @@ -36,7 +36,6 @@ class ClosureCommand extends Command * Create a new command instance. * * @param string $signature - * @param \Closure $callback */ public function __construct($signature, Closure $callback) { @@ -48,10 +47,6 @@ public function __construct($signature, Closure $callback) /** * Execute the console command. - * - * @param \Symfony\Component\Console\Input\InputInterface $input - * @param \Symfony\Component\Console\Output\OutputInterface $output - * @return int */ protected function execute(InputInterface $input, OutputInterface $output): int { @@ -116,7 +111,6 @@ public function schedule($parameters = []) * * @param string $method * @param array $parameters - * @return mixed * * @throws \BadMethodCallException */ diff --git a/src/Illuminate/Foundation/Console/ConfigCacheCommand.php b/src/Illuminate/Foundation/Console/ConfigCacheCommand.php index 6cef3389ea64..d0a5ceeeea24 100644 --- a/src/Illuminate/Foundation/Console/ConfigCacheCommand.php +++ b/src/Illuminate/Foundation/Console/ConfigCacheCommand.php @@ -35,8 +35,6 @@ class ConfigCacheCommand extends Command /** * Create a new config cache command instance. - * - * @param \Illuminate\Filesystem\Filesystem $files */ public function __construct(Filesystem $files) { diff --git a/src/Illuminate/Foundation/Console/ConfigClearCommand.php b/src/Illuminate/Foundation/Console/ConfigClearCommand.php index e88e2432c034..9cdacf9f86ff 100644 --- a/src/Illuminate/Foundation/Console/ConfigClearCommand.php +++ b/src/Illuminate/Foundation/Console/ConfigClearCommand.php @@ -32,8 +32,6 @@ class ConfigClearCommand extends Command /** * Create a new config clear command instance. - * - * @param \Illuminate\Filesystem\Filesystem $files */ public function __construct(Filesystem $files) { diff --git a/src/Illuminate/Foundation/Console/ConfigPublishCommand.php b/src/Illuminate/Foundation/Console/ConfigPublishCommand.php index fc24a425f0c5..eaffbaddbc96 100644 --- a/src/Illuminate/Foundation/Console/ConfigPublishCommand.php +++ b/src/Illuminate/Foundation/Console/ConfigPublishCommand.php @@ -63,9 +63,6 @@ public function handle() /** * Publish the given file to the given destination. * - * @param string $name - * @param string $file - * @param string $destination * @return void */ protected function publish(string $name, string $file, string $destination) diff --git a/src/Illuminate/Foundation/Console/ConfigShowCommand.php b/src/Illuminate/Foundation/Console/ConfigShowCommand.php index d3dd580e130b..fb8bfe051c63 100644 --- a/src/Illuminate/Foundation/Console/ConfigShowCommand.php +++ b/src/Illuminate/Foundation/Console/ConfigShowCommand.php @@ -104,7 +104,6 @@ protected function formatKey($key) /** * Format the given configuration value. * - * @param mixed $value * @return string */ protected function formatValue($value) diff --git a/src/Illuminate/Foundation/Console/DocsCommand.php b/src/Illuminate/Foundation/Console/DocsCommand.php index 1eea49070cc5..55d73866e9c5 100644 --- a/src/Illuminate/Foundation/Console/DocsCommand.php +++ b/src/Illuminate/Foundation/Console/DocsCommand.php @@ -94,8 +94,6 @@ protected function configure() /** * Execute the console command. * - * @param \Illuminate\Http\Client\Factory $http - * @param \Illuminate\Contracts\Cache\Repository $cache * @return int */ public function handle(Http $http, Cache $cache) diff --git a/src/Illuminate/Foundation/Console/EnumMakeCommand.php b/src/Illuminate/Foundation/Console/EnumMakeCommand.php index fab08bb9433a..05d2c051c454 100644 --- a/src/Illuminate/Foundation/Console/EnumMakeCommand.php +++ b/src/Illuminate/Foundation/Console/EnumMakeCommand.php @@ -100,8 +100,6 @@ protected function buildClass($name) /** * Interact further with the user if they were prompted for missing arguments. * - * @param \Symfony\Component\Console\Input\InputInterface $input - * @param \Symfony\Component\Console\Output\OutputInterface $output * @return void */ protected function afterPromptingForMissingArguments(InputInterface $input, OutputInterface $output) diff --git a/src/Illuminate/Foundation/Console/EnvironmentDecryptCommand.php b/src/Illuminate/Foundation/Console/EnvironmentDecryptCommand.php index 1146489800c9..009afc1a240b 100644 --- a/src/Illuminate/Foundation/Console/EnvironmentDecryptCommand.php +++ b/src/Illuminate/Foundation/Console/EnvironmentDecryptCommand.php @@ -44,8 +44,6 @@ class EnvironmentDecryptCommand extends Command /** * Create a new command instance. - * - * @param \Illuminate\Filesystem\Filesystem $files */ public function __construct(Filesystem $files) { @@ -114,7 +112,6 @@ public function handle() /** * Parse the encryption key. * - * @param string $key * @return string */ protected function parseKey(string $key) diff --git a/src/Illuminate/Foundation/Console/EnvironmentEncryptCommand.php b/src/Illuminate/Foundation/Console/EnvironmentEncryptCommand.php index a66d18f058db..61b543b1578a 100644 --- a/src/Illuminate/Foundation/Console/EnvironmentEncryptCommand.php +++ b/src/Illuminate/Foundation/Console/EnvironmentEncryptCommand.php @@ -43,8 +43,6 @@ class EnvironmentEncryptCommand extends Command /** * Create a new command instance. - * - * @param \Illuminate\Filesystem\Filesystem $files */ public function __construct(Filesystem $files) { @@ -126,7 +124,6 @@ public function handle() /** * Parse the encryption key. * - * @param string $key * @return string */ protected function parseKey(string $key) diff --git a/src/Illuminate/Foundation/Console/EventClearCommand.php b/src/Illuminate/Foundation/Console/EventClearCommand.php index 61c503308609..fad20762c389 100644 --- a/src/Illuminate/Foundation/Console/EventClearCommand.php +++ b/src/Illuminate/Foundation/Console/EventClearCommand.php @@ -32,8 +32,6 @@ class EventClearCommand extends Command /** * Create a new config clear command instance. - * - * @param \Illuminate\Filesystem\Filesystem $files */ public function __construct(Filesystem $files) { diff --git a/src/Illuminate/Foundation/Console/EventListCommand.php b/src/Illuminate/Foundation/Console/EventListCommand.php index b6dfd9f63065..871b1225c459 100644 --- a/src/Illuminate/Foundation/Console/EventListCommand.php +++ b/src/Illuminate/Foundation/Console/EventListCommand.php @@ -65,7 +65,6 @@ public function handle() /** * Display events and their listeners in JSON. * - * @param \Illuminate\Support\Collection $events * @return void */ protected function displayJson(Collection $events) @@ -83,7 +82,6 @@ protected function displayJson(Collection $events) /** * Display the events and their listeners for the CLI. * - * @param \Illuminate\Support\Collection $events * @return void */ protected function displayForCli(Collection $events) @@ -187,7 +185,6 @@ protected function appendListenerInterfaces($listener) /** * Get a displayable string representation of a Closure listener. * - * @param \Closure $rawListener * @return string */ protected function stringifyClosure(Closure $rawListener) diff --git a/src/Illuminate/Foundation/Console/ExceptionMakeCommand.php b/src/Illuminate/Foundation/Console/ExceptionMakeCommand.php index a38b11c711e8..efa9f8fcc59d 100644 --- a/src/Illuminate/Foundation/Console/ExceptionMakeCommand.php +++ b/src/Illuminate/Foundation/Console/ExceptionMakeCommand.php @@ -77,8 +77,6 @@ protected function getDefaultNamespace($rootNamespace) /** * Interact further with the user if they were prompted for missing arguments. * - * @param \Symfony\Component\Console\Input\InputInterface $input - * @param \Symfony\Component\Console\Output\OutputInterface $output * @return void */ protected function afterPromptingForMissingArguments(InputInterface $input, OutputInterface $output) diff --git a/src/Illuminate/Foundation/Console/InteractsWithComposerPackages.php b/src/Illuminate/Foundation/Console/InteractsWithComposerPackages.php index 4628f2946b8d..45c4e8d6d551 100644 --- a/src/Illuminate/Foundation/Console/InteractsWithComposerPackages.php +++ b/src/Illuminate/Foundation/Console/InteractsWithComposerPackages.php @@ -11,8 +11,6 @@ trait InteractsWithComposerPackages /** * Installs the given Composer Packages into the application. * - * @param string $composer - * @param array $packages * @return bool */ protected function requireComposerPackages(string $composer, array $packages) diff --git a/src/Illuminate/Foundation/Console/Kernel.php b/src/Illuminate/Foundation/Console/Kernel.php index 6dcd2b24935f..3fc55e02be10 100644 --- a/src/Illuminate/Foundation/Console/Kernel.php +++ b/src/Illuminate/Foundation/Console/Kernel.php @@ -128,9 +128,6 @@ class Kernel implements KernelContract /** * Create a new console kernel instance. - * - * @param \Illuminate\Contracts\Foundation\Application $app - * @param \Illuminate\Contracts\Events\Dispatcher $events */ public function __construct(Application $app, Dispatcher $events) { @@ -270,7 +267,6 @@ public function commandStartedAt() /** * Define the application's command schedule. * - * @param \Illuminate\Console\Scheduling\Schedule $schedule * @return void */ protected function schedule(Schedule $schedule) @@ -328,7 +324,6 @@ protected function commands() * Register a Closure based command with the application. * * @param string $signature - * @param \Closure $callback * @return \Illuminate\Foundation\Console\ClosureCommand */ public function command($signature, Closure $callback) @@ -380,10 +375,6 @@ protected function load($paths) /** * Extract the command class name from the given file path. - * - * @param \SplFileInfo $file - * @param string $namespace - * @return string */ protected function commandClassFromFile(SplFileInfo $file, string $namespace): string { @@ -409,7 +400,6 @@ public function registerCommand($command) * Run an Artisan console command by name. * * @param \Symfony\Component\Console\Command\Command|string $command - * @param array $parameters * @param \Symfony\Component\Console\Output\OutputInterface|null $outputBuffer * @return int * @@ -430,7 +420,6 @@ public function call($command, array $parameters = [], $outputBuffer = null) * Queue the given console command. * * @param string $command - * @param array $parameters * @return \Illuminate\Foundation\Bus\PendingDispatch */ public function queue($command, array $parameters = []) @@ -563,7 +552,6 @@ public function setArtisan($artisan) /** * Set the Artisan commands provided by the application. * - * @param array $commands * @return $this */ public function addCommands(array $commands) @@ -576,7 +564,6 @@ public function addCommands(array $commands) /** * Set the paths that should have their Artisan commands automatically discovered. * - * @param array $paths * @return $this */ public function addCommandPaths(array $paths) @@ -589,7 +576,6 @@ public function addCommandPaths(array $paths) /** * Set the paths that should have their Artisan "routes" automatically discovered. * - * @param array $paths * @return $this */ public function addCommandRoutePaths(array $paths) @@ -612,7 +598,6 @@ protected function bootstrappers() /** * Report the exception to the exception handler. * - * @param \Throwable $e * @return void */ protected function reportException(Throwable $e) @@ -624,7 +609,6 @@ protected function reportException(Throwable $e) * Render the given exception. * * @param \Symfony\Component\Console\Output\OutputInterface $output - * @param \Throwable $e * @return void */ protected function renderException($output, Throwable $e) diff --git a/src/Illuminate/Foundation/Console/ListenerMakeCommand.php b/src/Illuminate/Foundation/Console/ListenerMakeCommand.php index a2d2dfaa5535..896543e9e4cc 100644 --- a/src/Illuminate/Foundation/Console/ListenerMakeCommand.php +++ b/src/Illuminate/Foundation/Console/ListenerMakeCommand.php @@ -135,8 +135,6 @@ protected function getOptions() /** * Interact further with the user if they were prompted for missing arguments. * - * @param \Symfony\Component\Console\Input\InputInterface $input - * @param \Symfony\Component\Console\Output\OutputInterface $output * @return void */ protected function afterPromptingForMissingArguments(InputInterface $input, OutputInterface $output) diff --git a/src/Illuminate/Foundation/Console/MailMakeCommand.php b/src/Illuminate/Foundation/Console/MailMakeCommand.php index cc5bb3375873..4140205c828b 100644 --- a/src/Illuminate/Foundation/Console/MailMakeCommand.php +++ b/src/Illuminate/Foundation/Console/MailMakeCommand.php @@ -222,8 +222,6 @@ protected function getOptions() /** * Interact further with the user if they were prompted for missing arguments. * - * @param \Symfony\Component\Console\Input\InputInterface $input - * @param \Symfony\Component\Console\Output\OutputInterface $output * @return void */ protected function afterPromptingForMissingArguments(InputInterface $input, OutputInterface $output) diff --git a/src/Illuminate/Foundation/Console/ModelMakeCommand.php b/src/Illuminate/Foundation/Console/ModelMakeCommand.php index c63dd32e30d7..ae8f1eeae6c5 100644 --- a/src/Illuminate/Foundation/Console/ModelMakeCommand.php +++ b/src/Illuminate/Foundation/Console/ModelMakeCommand.php @@ -308,8 +308,6 @@ protected function getOptions() /** * Interact further with the user if they were prompted for missing arguments. * - * @param \Symfony\Component\Console\Input\InputInterface $input - * @param \Symfony\Component\Console\Output\OutputInterface $output * @return void */ protected function afterPromptingForMissingArguments(InputInterface $input, OutputInterface $output) diff --git a/src/Illuminate/Foundation/Console/NotificationMakeCommand.php b/src/Illuminate/Foundation/Console/NotificationMakeCommand.php index 44d16438adc4..45e833f4e7de 100644 --- a/src/Illuminate/Foundation/Console/NotificationMakeCommand.php +++ b/src/Illuminate/Foundation/Console/NotificationMakeCommand.php @@ -138,8 +138,6 @@ protected function getDefaultNamespace($rootNamespace) /** * Perform actions after the user was prompted for missing arguments. * - * @param \Symfony\Component\Console\Input\InputInterface $input - * @param \Symfony\Component\Console\Output\OutputInterface $output * @return void */ protected function afterPromptingForMissingArguments(InputInterface $input, OutputInterface $output) diff --git a/src/Illuminate/Foundation/Console/ObserverMakeCommand.php b/src/Illuminate/Foundation/Console/ObserverMakeCommand.php index 2193d8583fd1..4cba0471314b 100644 --- a/src/Illuminate/Foundation/Console/ObserverMakeCommand.php +++ b/src/Illuminate/Foundation/Console/ObserverMakeCommand.php @@ -147,8 +147,6 @@ protected function getOptions() /** * Interact further with the user if they were prompted for missing arguments. * - * @param \Symfony\Component\Console\Input\InputInterface $input - * @param \Symfony\Component\Console\Output\OutputInterface $output * @return void */ protected function afterPromptingForMissingArguments(InputInterface $input, OutputInterface $output) diff --git a/src/Illuminate/Foundation/Console/PackageDiscoverCommand.php b/src/Illuminate/Foundation/Console/PackageDiscoverCommand.php index 2cf4a5f5669b..8ad20be9a961 100644 --- a/src/Illuminate/Foundation/Console/PackageDiscoverCommand.php +++ b/src/Illuminate/Foundation/Console/PackageDiscoverCommand.php @@ -27,7 +27,6 @@ class PackageDiscoverCommand extends Command /** * Execute the console command. * - * @param \Illuminate\Foundation\PackageManifest $manifest * @return void */ public function handle(PackageManifest $manifest) diff --git a/src/Illuminate/Foundation/Console/PolicyMakeCommand.php b/src/Illuminate/Foundation/Console/PolicyMakeCommand.php index 521c135b062b..304d1188df12 100644 --- a/src/Illuminate/Foundation/Console/PolicyMakeCommand.php +++ b/src/Illuminate/Foundation/Console/PolicyMakeCommand.php @@ -206,8 +206,6 @@ protected function getOptions() /** * Interact further with the user if they were prompted for missing arguments. * - * @param \Symfony\Component\Console\Input\InputInterface $input - * @param \Symfony\Component\Console\Output\OutputInterface $output * @return void */ protected function afterPromptingForMissingArguments(InputInterface $input, OutputInterface $output) diff --git a/src/Illuminate/Foundation/Console/QueuedCommand.php b/src/Illuminate/Foundation/Console/QueuedCommand.php index eef9cacc8754..207e6a8e6cc4 100644 --- a/src/Illuminate/Foundation/Console/QueuedCommand.php +++ b/src/Illuminate/Foundation/Console/QueuedCommand.php @@ -31,7 +31,6 @@ public function __construct($data) /** * Handle the job. * - * @param \Illuminate\Contracts\Console\Kernel $kernel * @return void */ public function handle(KernelContract $kernel) diff --git a/src/Illuminate/Foundation/Console/RouteCacheCommand.php b/src/Illuminate/Foundation/Console/RouteCacheCommand.php index 9b8632af50b2..ed1371744835 100644 --- a/src/Illuminate/Foundation/Console/RouteCacheCommand.php +++ b/src/Illuminate/Foundation/Console/RouteCacheCommand.php @@ -34,8 +34,6 @@ class RouteCacheCommand extends Command /** * Create a new route command instance. - * - * @param \Illuminate\Filesystem\Filesystem $files */ public function __construct(Filesystem $files) { @@ -98,7 +96,6 @@ protected function getFreshApplication() /** * Build the route cache file. * - * @param \Illuminate\Routing\RouteCollection $routes * @return string */ protected function buildRouteCacheFile(RouteCollection $routes) diff --git a/src/Illuminate/Foundation/Console/RouteClearCommand.php b/src/Illuminate/Foundation/Console/RouteClearCommand.php index b077f820076c..d37af0cb96c1 100644 --- a/src/Illuminate/Foundation/Console/RouteClearCommand.php +++ b/src/Illuminate/Foundation/Console/RouteClearCommand.php @@ -32,8 +32,6 @@ class RouteClearCommand extends Command /** * Create a new route clear command instance. - * - * @param \Illuminate\Filesystem\Filesystem $files */ public function __construct(Filesystem $files) { diff --git a/src/Illuminate/Foundation/Console/RouteListCommand.php b/src/Illuminate/Foundation/Console/RouteListCommand.php index 36813d87d1a5..9d4344161ca7 100644 --- a/src/Illuminate/Foundation/Console/RouteListCommand.php +++ b/src/Illuminate/Foundation/Console/RouteListCommand.php @@ -74,8 +74,6 @@ class RouteListCommand extends Command /** * Create a new route command instance. - * - * @param \Illuminate\Routing\Router $router */ public function __construct(Router $router) { @@ -134,7 +132,6 @@ protected function getRoutes() /** * Get the route information for a given route. * - * @param \Illuminate\Routing\Route $route * @return array */ protected function getRouteInformation(Route $route) @@ -154,7 +151,6 @@ protected function getRouteInformation(Route $route) * Sort the routes by a given element. * * @param string $sort - * @param array $routes * @return array */ protected function sortRoutes($sort, array $routes) @@ -175,7 +171,6 @@ protected function sortRoutes($sort, array $routes) /** * Remove unnecessary columns from the routes. * - * @param array $routes * @return array */ protected function pluckColumns(array $routes) @@ -188,7 +183,6 @@ protected function pluckColumns(array $routes) /** * Display the route information on the console. * - * @param array $routes * @return void */ protected function displayRoutes(array $routes) @@ -216,7 +210,6 @@ protected function getMiddleware($route) /** * Determine if the route has been defined outside of the application. * - * @param \Illuminate\Routing\Route $route * @return bool */ protected function isVendorRoute(Route $route) @@ -244,7 +237,6 @@ protected function isVendorRoute(Route $route) /** * Determine if the route uses a framework controller. * - * @param \Illuminate\Routing\Route $route * @return bool */ protected function isFrameworkController(Route $route) @@ -258,7 +250,6 @@ protected function isFrameworkController(Route $route) /** * Filter the route by URI and / or name. * - * @param array $route * @return array|null */ protected function filterRoute(array $route) @@ -307,7 +298,6 @@ protected function getColumns() /** * Parse the column list. * - * @param array $columns * @return array */ protected function parseColumns(array $columns) diff --git a/src/Illuminate/Foundation/Console/StorageLinkCommand.php b/src/Illuminate/Foundation/Console/StorageLinkCommand.php index 2a216ebebcdb..7f2785d0d997 100644 --- a/src/Illuminate/Foundation/Console/StorageLinkCommand.php +++ b/src/Illuminate/Foundation/Console/StorageLinkCommand.php @@ -66,10 +66,6 @@ protected function links() /** * Determine if the provided path is a symlink that can be removed. - * - * @param string $link - * @param bool $force - * @return bool */ protected function isRemovableSymlink(string $link, bool $force): bool { diff --git a/src/Illuminate/Foundation/Console/TestMakeCommand.php b/src/Illuminate/Foundation/Console/TestMakeCommand.php index e24766a9021c..e292ba5f7579 100644 --- a/src/Illuminate/Foundation/Console/TestMakeCommand.php +++ b/src/Illuminate/Foundation/Console/TestMakeCommand.php @@ -118,8 +118,6 @@ protected function getOptions() /** * Interact further with the user if they were prompted for missing arguments. * - * @param \Symfony\Component\Console\Input\InputInterface $input - * @param \Symfony\Component\Console\Output\OutputInterface $output * @return void */ protected function afterPromptingForMissingArguments(InputInterface $input, OutputInterface $output) diff --git a/src/Illuminate/Foundation/Console/VendorPublishCommand.php b/src/Illuminate/Foundation/Console/VendorPublishCommand.php index 1ccab52ec83b..999fa28c1c92 100644 --- a/src/Illuminate/Foundation/Console/VendorPublishCommand.php +++ b/src/Illuminate/Foundation/Console/VendorPublishCommand.php @@ -77,8 +77,6 @@ class VendorPublishCommand extends Command /** * Create a new command instance. - * - * @param \Illuminate\Filesystem\Filesystem $files */ public function __construct(Filesystem $files) { @@ -190,7 +188,6 @@ protected function parseChoice($choice) * Publishes the assets for a tag. * * @param string $tag - * @return mixed */ protected function publishTag($tag) { diff --git a/src/Illuminate/Foundation/Console/ViewCacheCommand.php b/src/Illuminate/Foundation/Console/ViewCacheCommand.php index 3eacc26fd769..c887b6838999 100644 --- a/src/Illuminate/Foundation/Console/ViewCacheCommand.php +++ b/src/Illuminate/Foundation/Console/ViewCacheCommand.php @@ -28,8 +28,6 @@ class ViewCacheCommand extends Command /** * Execute the console command. - * - * @return mixed */ public function handle() { @@ -51,7 +49,6 @@ public function handle() /** * Compile the given view files. * - * @param \Illuminate\Support\Collection $views * @return void */ protected function compileViews(Collection $views) @@ -72,7 +69,6 @@ protected function compileViews(Collection $views) /** * Get the Blade files in the given path. * - * @param array $paths * @return \Illuminate\Support\Collection */ protected function bladeFilesIn(array $paths) diff --git a/src/Illuminate/Foundation/Console/ViewClearCommand.php b/src/Illuminate/Foundation/Console/ViewClearCommand.php index ec942bddb998..510fa22b6a44 100644 --- a/src/Illuminate/Foundation/Console/ViewClearCommand.php +++ b/src/Illuminate/Foundation/Console/ViewClearCommand.php @@ -33,8 +33,6 @@ class ViewClearCommand extends Command /** * Create a new config clear command instance. - * - * @param \Illuminate\Filesystem\Filesystem $files */ public function __construct(Filesystem $files) { diff --git a/src/Illuminate/Foundation/EnvironmentDetector.php b/src/Illuminate/Foundation/EnvironmentDetector.php index 8fa61bd2e983..855dccef9b22 100644 --- a/src/Illuminate/Foundation/EnvironmentDetector.php +++ b/src/Illuminate/Foundation/EnvironmentDetector.php @@ -9,7 +9,6 @@ class EnvironmentDetector /** * Detect the application's current environment. * - * @param \Closure $callback * @param array|null $consoleArgs * @return string */ @@ -25,7 +24,6 @@ public function detect(Closure $callback, $consoleArgs = null) /** * Set the application environment for a web request. * - * @param \Closure $callback * @return string */ protected function detectWebEnvironment(Closure $callback) @@ -36,8 +34,6 @@ protected function detectWebEnvironment(Closure $callback) /** * Set the application environment from command-line arguments. * - * @param \Closure $callback - * @param array $args * @return string */ protected function detectConsoleEnvironment(Closure $callback, array $args) @@ -55,7 +51,6 @@ protected function detectConsoleEnvironment(Closure $callback, array $args) /** * Get the environment argument from the console. * - * @param array $args * @return string|null */ protected function getEnvironmentArgument(array $args) diff --git a/src/Illuminate/Foundation/Events/DiscoverEvents.php b/src/Illuminate/Foundation/Events/DiscoverEvents.php index 35f244837bce..24d5bd4b37da 100644 --- a/src/Illuminate/Foundation/Events/DiscoverEvents.php +++ b/src/Illuminate/Foundation/Events/DiscoverEvents.php @@ -94,7 +94,6 @@ protected static function getListenerEvents($listeners, $basePath) /** * Extract the class name from the given file path. * - * @param \SplFileInfo $file * @param string $basePath * @return class-string */ diff --git a/src/Illuminate/Foundation/Events/Dispatchable.php b/src/Illuminate/Foundation/Events/Dispatchable.php index 6e5e979c2f5e..8c1425f3ea72 100644 --- a/src/Illuminate/Foundation/Events/Dispatchable.php +++ b/src/Illuminate/Foundation/Events/Dispatchable.php @@ -6,8 +6,6 @@ trait Dispatchable { /** * Dispatch the event with the given arguments. - * - * @return mixed */ public static function dispatch() { @@ -18,8 +16,6 @@ public static function dispatch() * Dispatch the event with the given arguments if the given truth test passes. * * @param bool $boolean - * @param mixed ...$arguments - * @return mixed */ public static function dispatchIf($boolean, ...$arguments) { @@ -32,8 +28,6 @@ public static function dispatchIf($boolean, ...$arguments) * Dispatch the event with the given arguments unless the given truth test passes. * * @param bool $boolean - * @param mixed ...$arguments - * @return mixed */ public static function dispatchUnless($boolean, ...$arguments) { diff --git a/src/Illuminate/Foundation/Events/PublishingStubs.php b/src/Illuminate/Foundation/Events/PublishingStubs.php index 854327982ed4..e776fd2653f1 100644 --- a/src/Illuminate/Foundation/Events/PublishingStubs.php +++ b/src/Illuminate/Foundation/Events/PublishingStubs.php @@ -15,8 +15,6 @@ class PublishingStubs /** * Create a new event instance. - * - * @param array $stubs */ public function __construct(array $stubs) { @@ -26,8 +24,6 @@ public function __construct(array $stubs) /** * Add a new stub to be published. * - * @param string $path - * @param string $name * @return $this */ public function add(string $path, string $name) diff --git a/src/Illuminate/Foundation/Exceptions/Handler.php b/src/Illuminate/Foundation/Exceptions/Handler.php index 52342f698e80..6eafde6dac94 100644 --- a/src/Illuminate/Foundation/Exceptions/Handler.php +++ b/src/Illuminate/Foundation/Exceptions/Handler.php @@ -189,8 +189,6 @@ class Handler implements ExceptionHandlerContract /** * Create a new exception handler instance. - * - * @param \Illuminate\Contracts\Container\Container $container */ public function __construct(Container $container) { @@ -214,7 +212,6 @@ public function register() /** * Register a reportable callback. * - * @param callable $reportUsing * @return \Illuminate\Foundation\Exceptions\ReportableHandler */ public function reportable(callable $reportUsing) @@ -231,7 +228,6 @@ public function reportable(callable $reportUsing) /** * Register a renderable callback. * - * @param callable $renderUsing * @return $this */ public function renderable(callable $renderUsing) @@ -278,7 +274,6 @@ public function map($from, $to = null) * * Alias of "ignore". * - * @param array|string $exceptions * @return $this */ public function dontReport(array|string $exceptions) @@ -306,7 +301,6 @@ public function dontReportWhen(callable $dontReportWhen) /** * Indicate that the given exception type should not be reported. * - * @param array|string $exceptions * @return $this */ public function ignore(array|string $exceptions) @@ -321,7 +315,6 @@ public function ignore(array|string $exceptions) /** * Indicate that the given attributes should never be flashed to the session on validation errors. * - * @param array|string $attributes * @return $this */ public function dontFlash(array|string $attributes) @@ -350,7 +343,6 @@ public function level($type, $level) /** * Report or log an exception. * - * @param \Throwable $e * @return void * * @throws \Throwable @@ -369,8 +361,6 @@ public function report(Throwable $e) /** * Reports error based on report method on exception or to logger. * - * @param \Throwable $e - * @return void * * @throws \Throwable */ @@ -407,7 +397,6 @@ protected function reportThrowable(Throwable $e): void /** * Determine if the exception should be reported. * - * @param \Throwable $e * @return bool */ public function shouldReport(Throwable $e) @@ -418,7 +407,6 @@ public function shouldReport(Throwable $e) /** * Determine if the exception is in the "do not report" list. * - * @param \Throwable $e * @return bool */ protected function shouldntReport(Throwable $e) @@ -464,7 +452,6 @@ protected function shouldntReport(Throwable $e) /** * Throttle the given exception. * - * @param \Throwable $e * @return \Illuminate\Support\Lottery|\Illuminate\Cache\RateLimiting\Limit|null */ protected function throttle(Throwable $e) @@ -487,7 +474,6 @@ protected function throttle(Throwable $e) /** * Specify the callback that should be used to throttle reportable exceptions. * - * @param callable $throttleUsing * @return $this */ public function throttleUsing(callable $throttleUsing) @@ -504,7 +490,6 @@ public function throttleUsing(callable $throttleUsing) /** * Remove the given exception class from the list of exceptions that should be ignored. * - * @param array|string $exceptions * @return $this */ public function stopIgnoring(array|string $exceptions) @@ -527,7 +512,6 @@ public function stopIgnoring(array|string $exceptions) /** * Create the context array for logging the given exception. * - * @param \Throwable $e * @return array */ protected function buildExceptionContext(Throwable $e) @@ -542,7 +526,6 @@ protected function buildExceptionContext(Throwable $e) /** * Get the default exception context variables for logging. * - * @param \Throwable $e * @return array */ protected function exceptionContext(Throwable $e) @@ -579,7 +562,6 @@ protected function context() /** * Register a closure that should be used to build exception context data. * - * @param \Closure $contextCallback * @return $this */ public function buildContextUsing(Closure $contextCallback) @@ -593,7 +575,6 @@ public function buildContextUsing(Closure $contextCallback) * Render an exception into an HTTP response. * * @param \Illuminate\Http\Request $request - * @param \Throwable $e * @return \Symfony\Component\HttpFoundation\Response * * @throws \Throwable @@ -633,7 +614,6 @@ public function render($request, Throwable $e) * * @param \Illuminate\Http\Request $request * @param \Symfony\Component\HttpFoundation\Response $response - * @param \Throwable $e * @return \Symfony\Component\HttpFoundation\Response */ protected function finalizeRenderedResponse($request, $response, Throwable $e) @@ -659,7 +639,6 @@ public function respondUsing($callback) /** * Prepare exception for rendering. * - * @param \Throwable $e * @return \Throwable */ protected function prepareException(Throwable $e) @@ -682,7 +661,6 @@ protected function prepareException(Throwable $e) /** * Map the exception using a registered mapper if possible. * - * @param \Throwable $e * @return \Throwable */ protected function mapException(Throwable $e) @@ -705,8 +683,6 @@ protected function mapException(Throwable $e) * Try to render a response from request and exception via render callbacks. * * @param \Illuminate\Http\Request $request - * @param \Throwable $e - * @return mixed * * @throws \ReflectionException */ @@ -729,7 +705,6 @@ protected function renderViaCallbacks($request, Throwable $e) * Render a default exception response if any. * * @param \Illuminate\Http\Request $request - * @param \Throwable $e * @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse|\Illuminate\Http\RedirectResponse */ protected function renderExceptionResponse($request, Throwable $e) @@ -743,7 +718,6 @@ protected function renderExceptionResponse($request, Throwable $e) * Convert an authentication exception into a response. * * @param \Illuminate\Http\Request $request - * @param \Illuminate\Auth\AuthenticationException $exception * @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse|\Illuminate\Http\RedirectResponse */ protected function unauthenticated($request, AuthenticationException $exception) @@ -756,7 +730,6 @@ protected function unauthenticated($request, AuthenticationException $exception) /** * Create a response object from the given validation exception. * - * @param \Illuminate\Validation\ValidationException $e * @param \Illuminate\Http\Request $request * @return \Symfony\Component\HttpFoundation\Response */ @@ -775,7 +748,6 @@ protected function convertValidationExceptionToResponse(ValidationException $e, * Convert a validation exception into a response. * * @param \Illuminate\Http\Request $request - * @param \Illuminate\Validation\ValidationException $exception * @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse|\Illuminate\Http\RedirectResponse */ protected function invalid($request, ValidationException $exception) @@ -789,7 +761,6 @@ protected function invalid($request, ValidationException $exception) * Convert a validation exception into a JSON response. * * @param \Illuminate\Http\Request $request - * @param \Illuminate\Validation\ValidationException $exception * @return \Illuminate\Http\JsonResponse */ protected function invalidJson($request, ValidationException $exception) @@ -804,7 +775,6 @@ protected function invalidJson($request, ValidationException $exception) * Determine if the exception handler response should be JSON. * * @param \Illuminate\Http\Request $request - * @param \Throwable $e * @return bool */ protected function shouldReturnJson($request, Throwable $e) @@ -831,7 +801,6 @@ public function shouldRenderJsonWhen($callback) * Prepare a response for the given exception. * * @param \Illuminate\Http\Request $request - * @param \Throwable $e * @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse|\Illuminate\Http\RedirectResponse */ protected function prepareResponse($request, Throwable $e) @@ -852,7 +821,6 @@ protected function prepareResponse($request, Throwable $e) /** * Create a Symfony response for the given exception. * - * @param \Throwable $e * @return \Symfony\Component\HttpFoundation\Response */ protected function convertExceptionToResponse(Throwable $e) @@ -867,7 +835,6 @@ protected function convertExceptionToResponse(Throwable $e) /** * Get the response content for the given exception. * - * @param \Throwable $e * @return string */ protected function renderExceptionContent(Throwable $e) @@ -890,7 +857,6 @@ protected function renderExceptionContent(Throwable $e) /** * Render an exception to a string using the registered `ExceptionRenderer`. * - * @param \Throwable $e * @return string */ protected function renderExceptionWithCustomRenderer(Throwable $e) @@ -901,7 +867,6 @@ protected function renderExceptionWithCustomRenderer(Throwable $e) /** * Render an exception to a string using Symfony. * - * @param \Throwable $e * @param bool $debug * @return string */ @@ -915,7 +880,6 @@ protected function renderExceptionWithSymfony(Throwable $e, $debug) /** * Render the given HttpException. * - * @param \Symfony\Component\HttpKernel\Exception\HttpExceptionInterface $e * @return \Symfony\Component\HttpFoundation\Response */ protected function renderHttpException(HttpExceptionInterface $e) @@ -951,7 +915,6 @@ protected function registerErrorViewPaths() /** * Get the view used to render HTTP exceptions. * - * @param \Symfony\Component\HttpKernel\Exception\HttpExceptionInterface $e * @return string|null */ protected function getHttpExceptionView(HttpExceptionInterface $e) @@ -975,7 +938,6 @@ protected function getHttpExceptionView(HttpExceptionInterface $e) * Map the given exception into an Illuminate response. * * @param \Symfony\Component\HttpFoundation\Response $response - * @param \Throwable $e * @return \Illuminate\Http\Response|\Illuminate\Http\RedirectResponse */ protected function toIlluminateResponse($response, Throwable $e) @@ -997,7 +959,6 @@ protected function toIlluminateResponse($response, Throwable $e) * Prepare a JSON response for the given exception. * * @param \Illuminate\Http\Request $request - * @param \Throwable $e * @return \Illuminate\Http\JsonResponse */ protected function prepareJsonResponse($request, Throwable $e) @@ -1013,7 +974,6 @@ protected function prepareJsonResponse($request, Throwable $e) /** * Convert the given exception to an array. * - * @param \Throwable $e * @return array */ protected function convertExceptionToArray(Throwable $e) @@ -1033,7 +993,6 @@ protected function convertExceptionToArray(Throwable $e) * Render an exception to the console. * * @param \Symfony\Component\Console\Output\OutputInterface $output - * @param \Throwable $e * @return void * * @internal This method is not meant to be used or overwritten outside the framework. @@ -1075,7 +1034,6 @@ public function dontReportDuplicates() /** * Determine if the given exception is an HTTP exception. * - * @param \Throwable $e * @return bool */ protected function isHttpException(Throwable $e) @@ -1086,7 +1044,6 @@ protected function isHttpException(Throwable $e) /** * Map the exception to a log level. * - * @param \Throwable $e * @return \Psr\Log\LogLevel::* */ protected function mapLogLevel(Throwable $e) diff --git a/src/Illuminate/Foundation/Exceptions/Renderer/Exception.php b/src/Illuminate/Foundation/Exceptions/Renderer/Exception.php index eb65929f3150..d982f169a021 100644 --- a/src/Illuminate/Foundation/Exceptions/Renderer/Exception.php +++ b/src/Illuminate/Foundation/Exceptions/Renderer/Exception.php @@ -42,11 +42,6 @@ class Exception /** * Creates a new exception renderer instance. - * - * @param \Symfony\Component\ErrorHandler\Exception\FlattenException $exception - * @param \Illuminate\Http\Request $request - * @param \Illuminate\Foundation\Exceptions\Renderer\Listener $listener - * @param string $basePath */ public function __construct(FlattenException $exception, Request $request, Listener $listener, string $basePath) { diff --git a/src/Illuminate/Foundation/Exceptions/Renderer/Frame.php b/src/Illuminate/Foundation/Exceptions/Renderer/Frame.php index efd6d7a62f63..2fd070c4c5e3 100644 --- a/src/Illuminate/Foundation/Exceptions/Renderer/Frame.php +++ b/src/Illuminate/Foundation/Exceptions/Renderer/Frame.php @@ -40,10 +40,8 @@ class Frame /** * Create a new frame instance. * - * @param \Symfony\Component\ErrorHandler\Exception\FlattenException $exception * @param array $classMap * @param array{file: string, line: int, class?: string, type?: string, function?: string} $frame - * @param string $basePath */ public function __construct(FlattenException $exception, array $classMap, array $frame, string $basePath) { diff --git a/src/Illuminate/Foundation/Exceptions/Renderer/Listener.php b/src/Illuminate/Foundation/Exceptions/Renderer/Listener.php index d5a71b7d9178..b2e790a2fab9 100644 --- a/src/Illuminate/Foundation/Exceptions/Renderer/Listener.php +++ b/src/Illuminate/Foundation/Exceptions/Renderer/Listener.php @@ -23,7 +23,6 @@ class Listener /** * Register the appropriate listeners on the given event dispatcher. * - * @param \Illuminate\Contracts\Events\Dispatcher $events * @return void */ public function registerListeners(Dispatcher $events) @@ -54,7 +53,6 @@ public function queries() /** * Listens for the query executed event. * - * @param \Illuminate\Database\Events\QueryExecuted $event * @return void */ public function onQueryExecuted(QueryExecuted $event) diff --git a/src/Illuminate/Foundation/Exceptions/Renderer/Mappers/BladeMapper.php b/src/Illuminate/Foundation/Exceptions/Renderer/Mappers/BladeMapper.php index a235812cb3fe..ac7123c68703 100644 --- a/src/Illuminate/Foundation/Exceptions/Renderer/Mappers/BladeMapper.php +++ b/src/Illuminate/Foundation/Exceptions/Renderer/Mappers/BladeMapper.php @@ -60,9 +60,6 @@ class BladeMapper /** * Create a new Blade mapper instance. - * - * @param \Illuminate\Contracts\View\Factory $factory - * @param \Illuminate\View\Compilers\BladeCompiler $bladeCompiler */ public function __construct(Factory $factory, BladeCompiler $bladeCompiler) { @@ -73,7 +70,6 @@ public function __construct(Factory $factory, BladeCompiler $bladeCompiler) /** * Map cached view paths to their original paths. * - * @param \Symfony\Component\ErrorHandler\Exception\FlattenException $exception * @return \Symfony\Component\ErrorHandler\Exception\FlattenException */ public function map(FlattenException $exception) @@ -102,7 +98,6 @@ public function map(FlattenException $exception) /** * Find the compiled view file for the given compiled path. * - * @param string $compiledPath * @return string|null */ protected function findCompiledView(string $compiledPath) @@ -161,8 +156,6 @@ protected function filterViewData(array $data) /** * Detect the line number in the original blade file. * - * @param string $filename - * @param int $compiledLineNumber * @return int */ protected function detectLineNumber(string $filename, int $compiledLineNumber) @@ -175,7 +168,6 @@ protected function detectLineNumber(string $filename, int $compiledLineNumber) /** * Compile the source map for the given blade file. * - * @param string $value * @return string */ protected function compileSourcemap(string $value) @@ -198,7 +190,6 @@ protected function compileSourcemap(string $value) /** * Add line numbers to echo statements. * - * @param string $value * @return string */ protected function addEchoLineNumbers(string $value) @@ -224,7 +215,6 @@ protected function addEchoLineNumbers(string $value) /** * Add line numbers to blade statements. * - * @param string $value * @return string */ protected function addStatementLineNumbers(string $value) @@ -250,7 +240,6 @@ protected function addStatementLineNumbers(string $value) /** * Add line numbers to blade components. * - * @param string $value * @return string */ protected function addBladeComponentLineNumbers(string $value) @@ -276,8 +265,6 @@ protected function addBladeComponentLineNumbers(string $value) /** * Insert a line number at the given position. * - * @param int $position - * @param string $value * @return string */ protected function insertLineNumberAtPosition(int $position, string $value) @@ -292,7 +279,6 @@ protected function insertLineNumberAtPosition(int $position, string $value) /** * Trim empty lines from the given value. * - * @param string $value * @return string */ protected function trimEmptyLines(string $value) @@ -305,8 +291,6 @@ protected function trimEmptyLines(string $value) /** * Find the closest line number mapping in the given source map. * - * @param string $map - * @param int $compiledLineNumber * @return int */ protected function findClosestLineNumberMapping(string $map, int $compiledLineNumber) diff --git a/src/Illuminate/Foundation/Exceptions/Renderer/Renderer.php b/src/Illuminate/Foundation/Exceptions/Renderer/Renderer.php index ac8c03476438..bdc90034ab42 100644 --- a/src/Illuminate/Foundation/Exceptions/Renderer/Renderer.php +++ b/src/Illuminate/Foundation/Exceptions/Renderer/Renderer.php @@ -55,12 +55,6 @@ class Renderer /** * Creates a new exception renderer instance. - * - * @param \Illuminate\Contracts\View\Factory $viewFactory - * @param \Illuminate\Foundation\Exceptions\Renderer\Listener $listener - * @param \Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer $htmlErrorRenderer - * @param \Illuminate\Foundation\Exceptions\Renderer\Mappers\BladeMapper $bladeMapper - * @param string $basePath */ public function __construct( Factory $viewFactory, @@ -79,8 +73,6 @@ public function __construct( /** * Render the given exception as an HTML string. * - * @param \Illuminate\Http\Request $request - * @param \Throwable $throwable * @return string */ public function render(Request $request, Throwable $throwable) diff --git a/src/Illuminate/Foundation/Exceptions/ReportableHandler.php b/src/Illuminate/Foundation/Exceptions/ReportableHandler.php index f7193654e250..a2ed28d33edf 100644 --- a/src/Illuminate/Foundation/Exceptions/ReportableHandler.php +++ b/src/Illuminate/Foundation/Exceptions/ReportableHandler.php @@ -25,8 +25,6 @@ class ReportableHandler /** * Create a new reportable handler instance. - * - * @param callable $callback */ public function __construct(callable $callback) { @@ -36,7 +34,6 @@ public function __construct(callable $callback) /** * Invoke the handler. * - * @param \Throwable $e * @return bool */ public function __invoke(Throwable $e) @@ -53,7 +50,6 @@ public function __invoke(Throwable $e) /** * Determine if the callback handles the given exception. * - * @param \Throwable $e * @return bool */ public function handles(Throwable $e) diff --git a/src/Illuminate/Foundation/FileBasedMaintenanceMode.php b/src/Illuminate/Foundation/FileBasedMaintenanceMode.php index c63522ce34f3..1919d9f2b030 100644 --- a/src/Illuminate/Foundation/FileBasedMaintenanceMode.php +++ b/src/Illuminate/Foundation/FileBasedMaintenanceMode.php @@ -8,9 +8,6 @@ class FileBasedMaintenanceMode implements MaintenanceModeContract { /** * Take the application down for maintenance. - * - * @param array $payload - * @return void */ public function activate(array $payload): void { @@ -22,8 +19,6 @@ public function activate(array $payload): void /** * Take the application out of maintenance. - * - * @return void */ public function deactivate(): void { @@ -34,8 +29,6 @@ public function deactivate(): void /** * Determine if the application is currently down for maintenance. - * - * @return bool */ public function active(): bool { @@ -44,8 +37,6 @@ public function active(): bool /** * Get the data array which was provided when the application was placed into maintenance. - * - * @return array */ public function data(): array { @@ -54,8 +45,6 @@ public function data(): array /** * Get the path where the file is stored that signals that the application is down for maintenance. - * - * @return string */ protected function path(): string { diff --git a/src/Illuminate/Foundation/Http/FormRequest.php b/src/Illuminate/Foundation/Http/FormRequest.php index b5beb3af52f2..e1f5f6ae09ad 100644 --- a/src/Illuminate/Foundation/Http/FormRequest.php +++ b/src/Illuminate/Foundation/Http/FormRequest.php @@ -110,7 +110,6 @@ protected function getValidatorInstance() /** * Create the default validator instance. * - * @param \Illuminate\Contracts\Validation\Factory $factory * @return \Illuminate\Contracts\Validation\Validator */ protected function createDefaultValidator(ValidationFactory $factory) @@ -156,7 +155,6 @@ protected function validationRules() /** * Handle a failed validation attempt. * - * @param \Illuminate\Contracts\Validation\Validator $validator * @return void * * @throws \Illuminate\Validation\ValidationException @@ -223,7 +221,6 @@ protected function failedAuthorization() /** * Get a validated input container for the validated input. * - * @param array|null $keys * @return \Illuminate\Support\ValidatedInput|array */ public function safe(?array $keys = null) @@ -237,8 +234,6 @@ public function safe(?array $keys = null) * Get the validated data from the request. * * @param array|int|string|null $key - * @param mixed $default - * @return mixed */ public function validated($key = null, $default = null) { @@ -268,7 +263,6 @@ public function attributes() /** * Set the Validator instance. * - * @param \Illuminate\Contracts\Validation\Validator $validator * @return $this */ public function setValidator(Validator $validator) @@ -281,7 +275,6 @@ public function setValidator(Validator $validator) /** * Set the Redirector instance. * - * @param \Illuminate\Routing\Redirector $redirector * @return $this */ public function setRedirector(Redirector $redirector) @@ -294,7 +287,6 @@ public function setRedirector(Redirector $redirector) /** * Set the container implementation. * - * @param \Illuminate\Contracts\Container\Container $container * @return $this */ public function setContainer(Container $container) diff --git a/src/Illuminate/Foundation/Http/HtmlDumper.php b/src/Illuminate/Foundation/Http/HtmlDumper.php index 72663f0ec1b6..99d7cb866a72 100644 --- a/src/Illuminate/Foundation/Http/HtmlDumper.php +++ b/src/Illuminate/Foundation/Http/HtmlDumper.php @@ -81,7 +81,6 @@ public static function register($basePath, $compiledViewPath) /** * Dump a variable with its source file / line. * - * @param \Symfony\Component\VarDumper\Cloner\Data $data * @return void */ public function dumpWithSource(Data $data) diff --git a/src/Illuminate/Foundation/Http/Kernel.php b/src/Illuminate/Foundation/Http/Kernel.php index 83a5ae42780c..af940bcf9ec7 100644 --- a/src/Illuminate/Foundation/Http/Kernel.php +++ b/src/Illuminate/Foundation/Http/Kernel.php @@ -116,9 +116,6 @@ class Kernel implements KernelContract /** * Create a new HTTP kernel instance. - * - * @param \Illuminate\Contracts\Foundation\Application $app - * @param \Illuminate\Routing\Router $router */ public function __construct(Application $app, Router $router) { @@ -554,7 +551,6 @@ protected function bootstrappers() /** * Report the exception to the exception handler. * - * @param \Throwable $e * @return void */ protected function reportException(Throwable $e) @@ -566,7 +562,6 @@ protected function reportException(Throwable $e) * Render the exception to a response. * * @param \Illuminate\Http\Request $request - * @param \Throwable $e * @return \Symfony\Component\HttpFoundation\Response */ protected function renderException($request, Throwable $e) @@ -587,7 +582,6 @@ public function getGlobalMiddleware() /** * Set the application's global middleware. * - * @param array $middleware * @return $this */ public function setGlobalMiddleware(array $middleware) @@ -612,7 +606,6 @@ public function getMiddlewareGroups() /** * Set the application's middleware groups. * - * @param array $groups * @return $this */ public function setMiddlewareGroups(array $groups) @@ -649,7 +642,6 @@ public function getMiddlewareAliases() /** * Set the application's route middleware aliases. * - * @param array $aliases * @return $this */ public function setMiddlewareAliases(array $aliases) @@ -664,7 +656,6 @@ public function setMiddlewareAliases(array $aliases) /** * Set the application's middleware priority. * - * @param array $priority * @return $this */ public function setMiddlewarePriority(array $priority) @@ -689,7 +680,6 @@ public function getApplication() /** * Set the Laravel application instance. * - * @param \Illuminate\Contracts\Foundation\Application $app * @return $this */ public function setApplication(Application $app) diff --git a/src/Illuminate/Foundation/Http/MaintenanceModeBypassCookie.php b/src/Illuminate/Foundation/Http/MaintenanceModeBypassCookie.php index 9767fe5849ad..137bd775c36d 100644 --- a/src/Illuminate/Foundation/Http/MaintenanceModeBypassCookie.php +++ b/src/Illuminate/Foundation/Http/MaintenanceModeBypassCookie.php @@ -10,7 +10,6 @@ class MaintenanceModeBypassCookie /** * Create a new maintenance mode bypass cookie. * - * @param string $key * @return \Symfony\Component\HttpFoundation\Cookie */ public static function create(string $key) @@ -26,8 +25,6 @@ public static function create(string $key) /** * Determine if the given maintenance mode bypass cookie is valid. * - * @param string $cookie - * @param string $key * @return bool */ public static function isValid(string $cookie, string $key) diff --git a/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php b/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php index 89707d7e4dd6..64c83588680e 100644 --- a/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php +++ b/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php @@ -17,8 +17,6 @@ class ConvertEmptyStringsToNull extends TransformsRequest * Handle an incoming request. * * @param \Illuminate\Http\Request $request - * @param \Closure $next - * @return mixed */ public function handle($request, Closure $next) { @@ -35,8 +33,6 @@ public function handle($request, Closure $next) * Transform the given value. * * @param string $key - * @param mixed $value - * @return mixed */ protected function transform($key, $value) { @@ -46,7 +42,6 @@ protected function transform($key, $value) /** * Register a callback that instructs the middleware to be skipped. * - * @param \Closure $callback * @return void */ public static function skipWhen(Closure $callback) diff --git a/src/Illuminate/Foundation/Http/Middleware/HandlePrecognitiveRequests.php b/src/Illuminate/Foundation/Http/Middleware/HandlePrecognitiveRequests.php index c13e2bf12277..20250c49c1c1 100644 --- a/src/Illuminate/Foundation/Http/Middleware/HandlePrecognitiveRequests.php +++ b/src/Illuminate/Foundation/Http/Middleware/HandlePrecognitiveRequests.php @@ -19,8 +19,6 @@ class HandlePrecognitiveRequests /** * Create a new middleware instance. - * - * @param \Illuminate\Container\Container $container */ public function __construct(Container $container) { diff --git a/src/Illuminate/Foundation/Http/Middleware/InvokeDeferredCallbacks.php b/src/Illuminate/Foundation/Http/Middleware/InvokeDeferredCallbacks.php index 9e31e026c87e..8cb1c757cab1 100644 --- a/src/Illuminate/Foundation/Http/Middleware/InvokeDeferredCallbacks.php +++ b/src/Illuminate/Foundation/Http/Middleware/InvokeDeferredCallbacks.php @@ -13,8 +13,6 @@ class InvokeDeferredCallbacks /** * Handle the incoming request. * - * @param \Illuminate\Http\Request $request - * @param \Closure $next * @return \Symfony\Component\HttpFoundation\Response */ public function handle(Request $request, Closure $next) @@ -25,8 +23,6 @@ public function handle(Request $request, Closure $next) /** * Invoke the deferred callbacks. * - * @param \Illuminate\Http\Request $request - * @param \Symfony\Component\HttpFoundation\Response $response * @return void */ public function terminate(Request $request, Response $response) diff --git a/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php b/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php index c3944d6c72f7..8bdc9350814e 100644 --- a/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php +++ b/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php @@ -37,8 +37,6 @@ class PreventRequestsDuringMaintenance /** * Create a new middleware instance. - * - * @param \Illuminate\Contracts\Foundation\Application $app */ public function __construct(Application $app) { @@ -49,8 +47,6 @@ public function __construct(Application $app) * Handle an incoming request. * * @param \Illuminate\Http\Request $request - * @param \Closure $next - * @return mixed * * @throws \Symfony\Component\HttpKernel\Exception\HttpException * @throws \ErrorException @@ -113,7 +109,6 @@ public function handle($request, Closure $next) * Determine if the incoming request has a maintenance mode bypass cookie. * * @param \Illuminate\Http\Request $request - * @param array $data * @return bool */ protected function hasValidBypassCookie($request, array $data) @@ -129,7 +124,6 @@ protected function hasValidBypassCookie($request, array $data) /** * Redirect the user to their intended destination with a maintenance mode bypass cookie. * - * @param string $secret * @return \Illuminate\Http\RedirectResponse */ protected function bypassResponse(string $secret) diff --git a/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php b/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php index 40dbcd08fa04..246fd17f6d11 100644 --- a/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php +++ b/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php @@ -11,8 +11,6 @@ class TransformsRequest * Handle an incoming request. * * @param \Illuminate\Http\Request $request - * @param \Closure $next - * @return mixed */ public function handle($request, Closure $next) { @@ -41,7 +39,6 @@ protected function clean($request) /** * Clean the data in the parameter bag. * - * @param \Symfony\Component\HttpFoundation\ParameterBag $bag * @return void */ protected function cleanParameterBag(ParameterBag $bag) @@ -52,7 +49,6 @@ protected function cleanParameterBag(ParameterBag $bag) /** * Clean the data in the given array. * - * @param array $data * @param string $keyPrefix * @return array */ @@ -69,8 +65,6 @@ protected function cleanArray(array $data, $keyPrefix = '') * Clean the given value. * * @param string $key - * @param mixed $value - * @return mixed */ protected function cleanValue($key, $value) { @@ -85,8 +79,6 @@ protected function cleanValue($key, $value) * Transform the given value. * * @param string $key - * @param mixed $value - * @return mixed */ protected function transform($key, $value) { diff --git a/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php b/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php index 80be7a476e90..e1b6e3004ee6 100644 --- a/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php +++ b/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php @@ -37,8 +37,6 @@ class TrimStrings extends TransformsRequest * Handle an incoming request. * * @param \Illuminate\Http\Request $request - * @param \Closure $next - * @return mixed */ public function handle($request, Closure $next) { @@ -55,8 +53,6 @@ public function handle($request, Closure $next) * Transform the given value. * * @param string $key - * @param mixed $value - * @return mixed */ protected function transform($key, $value) { @@ -97,7 +93,6 @@ public static function except($attributes) /** * Register a callback that instructs the middleware to be skipped. * - * @param \Closure $callback * @return void */ public static function skipWhen(Closure $callback) diff --git a/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php b/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php index 7a47b4fbe471..56789303565a 100644 --- a/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php +++ b/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php @@ -57,9 +57,6 @@ class VerifyCsrfToken /** * Create a new middleware instance. - * - * @param \Illuminate\Contracts\Foundation\Application $app - * @param \Illuminate\Contracts\Encryption\Encrypter $encrypter */ public function __construct(Application $app, Encrypter $encrypter) { @@ -71,8 +68,6 @@ public function __construct(Application $app, Encrypter $encrypter) * Handle an incoming request. * * @param \Illuminate\Http\Request $request - * @param \Closure $next - * @return mixed * * @throws \Illuminate\Session\TokenMismatchException */ diff --git a/src/Illuminate/Foundation/MaintenanceModeManager.php b/src/Illuminate/Foundation/MaintenanceModeManager.php index 4d233f44f3e3..64f573066d70 100644 --- a/src/Illuminate/Foundation/MaintenanceModeManager.php +++ b/src/Illuminate/Foundation/MaintenanceModeManager.php @@ -8,8 +8,6 @@ class MaintenanceModeManager extends Manager { /** * Create an instance of the file based maintenance driver. - * - * @return \Illuminate\Foundation\FileBasedMaintenanceMode */ protected function createFileDriver(): FileBasedMaintenanceMode { @@ -19,7 +17,6 @@ protected function createFileDriver(): FileBasedMaintenanceMode /** * Create an instance of the cache based maintenance driver. * - * @return \Illuminate\Foundation\CacheBasedMaintenanceMode * * @throws \Illuminate\Contracts\Container\BindingResolutionException */ @@ -34,8 +31,6 @@ protected function createCacheDriver(): CacheBasedMaintenanceMode /** * Get the default driver name. - * - * @return string */ public function getDefaultDriver(): string { diff --git a/src/Illuminate/Foundation/PackageManifest.php b/src/Illuminate/Foundation/PackageManifest.php index d2494db25993..0add7ff0be28 100644 --- a/src/Illuminate/Foundation/PackageManifest.php +++ b/src/Illuminate/Foundation/PackageManifest.php @@ -47,7 +47,6 @@ class PackageManifest /** * Create a new package manifest instance. * - * @param \Illuminate\Filesystem\Filesystem $files * @param string $basePath * @param string $manifestPath */ @@ -168,7 +167,6 @@ protected function packagesToIgnore() /** * Write the given manifest array to disk. * - * @param array $manifest * @return void * * @throws \Exception diff --git a/src/Illuminate/Foundation/ProviderRepository.php b/src/Illuminate/Foundation/ProviderRepository.php index df76e054bb41..bbdadd70496c 100755 --- a/src/Illuminate/Foundation/ProviderRepository.php +++ b/src/Illuminate/Foundation/ProviderRepository.php @@ -32,8 +32,6 @@ class ProviderRepository /** * Create a new service repository instance. * - * @param \Illuminate\Contracts\Foundation\Application $app - * @param \Illuminate\Filesystem\Filesystem $files * @param string $manifestPath */ public function __construct(ApplicationContract $app, Filesystem $files, $manifestPath) @@ -46,7 +44,6 @@ public function __construct(ApplicationContract $app, Filesystem $files, $manife /** * Register the application service providers. * - * @param array $providers * @return void */ public function load(array $providers) @@ -112,7 +109,6 @@ public function shouldRecompile($manifest, $providers) * Register the load events for the given provider. * * @param string $provider - * @param array $events * @return void */ protected function registerLoadEvents($provider, array $events) @@ -165,7 +161,6 @@ protected function compileManifest($providers) /** * Create a fresh service manifest data structure. * - * @param array $providers * @return array */ protected function freshManifest(array $providers) diff --git a/src/Illuminate/Foundation/Providers/ArtisanServiceProvider.php b/src/Illuminate/Foundation/Providers/ArtisanServiceProvider.php index ae5fdc9c9c4e..b738fb14af50 100755 --- a/src/Illuminate/Foundation/Providers/ArtisanServiceProvider.php +++ b/src/Illuminate/Foundation/Providers/ArtisanServiceProvider.php @@ -250,7 +250,6 @@ public function register() /** * Register the given commands. * - * @param array $commands * @return void */ protected function registerCommands(array $commands) diff --git a/src/Illuminate/Foundation/Queue/InteractsWithUniqueJobs.php b/src/Illuminate/Foundation/Queue/InteractsWithUniqueJobs.php index 064c3f094233..4010f010afe8 100644 --- a/src/Illuminate/Foundation/Queue/InteractsWithUniqueJobs.php +++ b/src/Illuminate/Foundation/Queue/InteractsWithUniqueJobs.php @@ -10,9 +10,6 @@ trait InteractsWithUniqueJobs { /** * Store unique job information in the context in case we can't resolve the job on the queue side. - * - * @param mixed $job - * @return void */ public function addUniqueJobInformationToContext($job): void { @@ -26,9 +23,6 @@ public function addUniqueJobInformationToContext($job): void /** * Remove the unique job information from the context. - * - * @param mixed $job - * @return void */ public function removeUniqueJobInformationFromContext($job): void { @@ -42,9 +36,6 @@ public function removeUniqueJobInformationFromContext($job): void /** * Determine the cache store used by the unique job to acquire locks. - * - * @param mixed $job - * @return string|null */ protected function getUniqueJobCacheStore($job): ?string { diff --git a/src/Illuminate/Foundation/Routing/PrecognitionCallableDispatcher.php b/src/Illuminate/Foundation/Routing/PrecognitionCallableDispatcher.php index 66456a192d84..41c8d02ea741 100644 --- a/src/Illuminate/Foundation/Routing/PrecognitionCallableDispatcher.php +++ b/src/Illuminate/Foundation/Routing/PrecognitionCallableDispatcher.php @@ -10,9 +10,7 @@ class PrecognitionCallableDispatcher extends CallableDispatcher /** * Dispatch a request to a given callable. * - * @param \Illuminate\Routing\Route $route * @param callable $callable - * @return mixed */ public function dispatch(Route $route, $callable) { diff --git a/src/Illuminate/Foundation/Routing/PrecognitionControllerDispatcher.php b/src/Illuminate/Foundation/Routing/PrecognitionControllerDispatcher.php index 7ed860560f4d..25bf66be5f99 100644 --- a/src/Illuminate/Foundation/Routing/PrecognitionControllerDispatcher.php +++ b/src/Illuminate/Foundation/Routing/PrecognitionControllerDispatcher.php @@ -11,8 +11,6 @@ class PrecognitionControllerDispatcher extends ControllerDispatcher /** * Dispatch a request to a given controller and method. * - * @param \Illuminate\Routing\Route $route - * @param mixed $controller * @param string $method * @return void */ diff --git a/src/Illuminate/Foundation/Support/Providers/RouteServiceProvider.php b/src/Illuminate/Foundation/Support/Providers/RouteServiceProvider.php index ad881b371193..210f23940493 100644 --- a/src/Illuminate/Foundation/Support/Providers/RouteServiceProvider.php +++ b/src/Illuminate/Foundation/Support/Providers/RouteServiceProvider.php @@ -79,7 +79,6 @@ public function boot() /** * Register the callback that will be used to load the application's routes. * - * @param \Closure $routesCallback * @return $this */ protected function routes(Closure $routesCallback) @@ -92,7 +91,6 @@ protected function routes(Closure $routesCallback) /** * Register the callback that will be used to load the application's routes. * - * @param \Closure|null $routesCallback * @return void */ public static function loadRoutesUsing(?Closure $routesCallback) @@ -103,7 +101,6 @@ public static function loadRoutesUsing(?Closure $routesCallback) /** * Register the callback that will be used to load the application's cached routes. * - * @param \Closure|null $routesCallback * @return void */ public static function loadCachedRoutesUsing(?Closure $routesCallback) @@ -174,7 +171,6 @@ protected function loadRoutes() * * @param string $method * @param array $parameters - * @return mixed */ public function __call($method, $parameters) { diff --git a/src/Illuminate/Foundation/Testing/Concerns/InteractsWithAuthentication.php b/src/Illuminate/Foundation/Testing/Concerns/InteractsWithAuthentication.php index fc1b13e7c67a..98a882ee2143 100644 --- a/src/Illuminate/Foundation/Testing/Concerns/InteractsWithAuthentication.php +++ b/src/Illuminate/Foundation/Testing/Concerns/InteractsWithAuthentication.php @@ -9,7 +9,6 @@ trait InteractsWithAuthentication /** * Set the currently logged in user for the application. * - * @param \Illuminate\Contracts\Auth\Authenticatable $user * @param string|null $guard * @return $this */ @@ -36,7 +35,6 @@ public function actingAsGuest($guard = null) /** * Set the currently logged in user for the application. * - * @param \Illuminate\Contracts\Auth\Authenticatable $user * @param string|null $guard * @return $this */ @@ -119,7 +117,6 @@ public function assertAuthenticatedAs($user, $guard = null) /** * Assert that the given credentials are valid. * - * @param array $credentials * @param string|null $guard * @return $this */ @@ -135,7 +132,6 @@ public function assertCredentials(array $credentials, $guard = null) /** * Assert that the given credentials are invalid. * - * @param array $credentials * @param string|null $guard * @return $this */ @@ -151,7 +147,6 @@ public function assertInvalidCredentials(array $credentials, $guard = null) /** * Return true if the credentials are valid, false otherwise. * - * @param array $credentials * @param string|null $guard * @return bool */ diff --git a/src/Illuminate/Foundation/Testing/Concerns/InteractsWithContainer.php b/src/Illuminate/Foundation/Testing/Concerns/InteractsWithContainer.php index c63a33164c25..0184565e264f 100644 --- a/src/Illuminate/Foundation/Testing/Concerns/InteractsWithContainer.php +++ b/src/Illuminate/Foundation/Testing/Concerns/InteractsWithContainer.php @@ -63,7 +63,6 @@ protected function instance($abstract, $instance) * Mock an instance of an object in the container. * * @param string $abstract - * @param \Closure|null $mock * @return \Mockery\MockInterface */ protected function mock($abstract, ?Closure $mock = null) @@ -75,7 +74,6 @@ protected function mock($abstract, ?Closure $mock = null) * Mock a partial instance of an object in the container. * * @param string $abstract - * @param \Closure|null $mock * @return \Mockery\MockInterface */ protected function partialMock($abstract, ?Closure $mock = null) @@ -87,7 +85,6 @@ protected function partialMock($abstract, ?Closure $mock = null) * Spy an instance of an object in the container. * * @param string $abstract - * @param \Closure|null $mock * @return \Mockery\MockInterface */ protected function spy($abstract, ?Closure $mock = null) diff --git a/src/Illuminate/Foundation/Testing/Concerns/InteractsWithDatabase.php b/src/Illuminate/Foundation/Testing/Concerns/InteractsWithDatabase.php index c23ce0de4e37..ae0073e724d7 100644 --- a/src/Illuminate/Foundation/Testing/Concerns/InteractsWithDatabase.php +++ b/src/Illuminate/Foundation/Testing/Concerns/InteractsWithDatabase.php @@ -85,7 +85,6 @@ protected function assertDatabaseMissing($table, array $data = [], $connection = * Assert the count of table entries. * * @param \Illuminate\Database\Eloquent\Model|class-string<\Illuminate\Database\Eloquent\Model>|string $table - * @param int $count * @param string|null $connection * @return $this */ @@ -249,7 +248,6 @@ public function expectsDatabaseQueryCount($expected, $connection = null) /** * Determine if the argument is a soft deletable model. * - * @param mixed $model * @return bool */ protected function isSoftDeletableModel($model) diff --git a/src/Illuminate/Foundation/Testing/Concerns/InteractsWithExceptionHandling.php b/src/Illuminate/Foundation/Testing/Concerns/InteractsWithExceptionHandling.php index af1739d1c07a..4999ac5501ec 100644 --- a/src/Illuminate/Foundation/Testing/Concerns/InteractsWithExceptionHandling.php +++ b/src/Illuminate/Foundation/Testing/Concerns/InteractsWithExceptionHandling.php @@ -99,7 +99,6 @@ public function __construct($originalHandler, $except = []) /** * Report or log an exception. * - * @param \Throwable $e * @return void * * @throws \Exception @@ -112,7 +111,6 @@ public function report(Throwable $e) /** * Determine if the exception should be reported. * - * @param \Throwable $e * @return false */ public function shouldReport(Throwable $e) @@ -124,7 +122,6 @@ public function shouldReport(Throwable $e) * Render an exception into an HTTP response. * * @param \Illuminate\Http\Request $request - * @param \Throwable $e * @return \Symfony\Component\HttpFoundation\Response * * @throws \Throwable @@ -150,7 +147,6 @@ public function render($request, Throwable $e) * Render an exception to the console. * * @param \Symfony\Component\Console\Output\OutputInterface $output - * @param \Throwable $e * @return void */ public function renderForConsole($output, Throwable $e) @@ -171,9 +167,7 @@ public function renderForConsole($output, Throwable $e) /** * Assert that the given callback throws an exception with the given message when invoked. * - * @param \Closure $test * @param (\Closure(\Throwable): bool)|class-string<\Throwable> $expectedClass - * @param string|null $expectedMessage * @return $this */ protected function assertThrows(Closure $test, string|Closure $expectedClass = Throwable::class, ?string $expectedMessage = null) @@ -217,7 +211,6 @@ protected function assertThrows(Closure $test, string|Closure $expectedClass = T /** * Assert that the given callback does not throw an exception. * - * @param \Closure $test * @return $this */ protected function assertDoesntThrow(Closure $test) diff --git a/src/Illuminate/Foundation/Testing/Concerns/InteractsWithSession.php b/src/Illuminate/Foundation/Testing/Concerns/InteractsWithSession.php index 9d72e7c30118..b2a520fc9184 100644 --- a/src/Illuminate/Foundation/Testing/Concerns/InteractsWithSession.php +++ b/src/Illuminate/Foundation/Testing/Concerns/InteractsWithSession.php @@ -7,7 +7,6 @@ trait InteractsWithSession /** * Set the session to the given array. * - * @param array $data * @return $this */ public function withSession(array $data) @@ -20,7 +19,6 @@ public function withSession(array $data) /** * Set the session to the given array. * - * @param array $data * @return $this */ public function session(array $data) diff --git a/src/Illuminate/Foundation/Testing/Concerns/InteractsWithTestCaseLifecycle.php b/src/Illuminate/Foundation/Testing/Concerns/InteractsWithTestCaseLifecycle.php index 7bfbba6e7daf..d9805fdae069 100644 --- a/src/Illuminate/Foundation/Testing/Concerns/InteractsWithTestCaseLifecycle.php +++ b/src/Illuminate/Foundation/Testing/Concerns/InteractsWithTestCaseLifecycle.php @@ -80,8 +80,6 @@ trait InteractsWithTestCaseLifecycle * Setup the test environment. * * @internal - * - * @return void */ protected function setUpTheTestEnvironment(): void { @@ -108,8 +106,6 @@ protected function setUpTheTestEnvironment(): void * Clean up the testing environment before the next test. * * @internal - * - * @return void */ protected function tearDownTheTestEnvironment(): void { @@ -260,7 +256,6 @@ public static function tearDownAfterClassUsingTestCase() /** * Register a callback to be run after the application is created. * - * @param callable $callback * @return void */ public function afterApplicationCreated(callable $callback) @@ -275,7 +270,6 @@ public function afterApplicationCreated(callable $callback) /** * Register a callback to be run before the application is destroyed. * - * @param callable $callback * @return void */ protected function beforeApplicationDestroyed(callable $callback) diff --git a/src/Illuminate/Foundation/Testing/Concerns/InteractsWithTime.php b/src/Illuminate/Foundation/Testing/Concerns/InteractsWithTime.php index 4eb10714b1e1..cdde50c5c1e8 100644 --- a/src/Illuminate/Foundation/Testing/Concerns/InteractsWithTime.php +++ b/src/Illuminate/Foundation/Testing/Concerns/InteractsWithTime.php @@ -11,7 +11,6 @@ trait InteractsWithTime * Freeze time. * * @param callable|null $callback - * @return mixed */ public function freezeTime($callback = null) { @@ -24,7 +23,6 @@ public function freezeTime($callback = null) * Freeze time at the beginning of the current second. * * @param callable|null $callback - * @return mixed */ public function freezeSecond($callback = null) { @@ -49,7 +47,6 @@ public function travel($value) * * @param \DateTimeInterface|\Closure|\Illuminate\Support\Carbon|string|bool|null $date * @param callable|null $callback - * @return mixed */ public function travelTo($date, $callback = null) { diff --git a/src/Illuminate/Foundation/Testing/Concerns/InteractsWithViews.php b/src/Illuminate/Foundation/Testing/Concerns/InteractsWithViews.php index 727bb1d55644..9e44f36a2f85 100644 --- a/src/Illuminate/Foundation/Testing/Concerns/InteractsWithViews.php +++ b/src/Illuminate/Foundation/Testing/Concerns/InteractsWithViews.php @@ -14,7 +14,6 @@ trait InteractsWithViews /** * Create a new TestView from the given view. * - * @param string $view * @param \Illuminate\Contracts\Support\Arrayable|array $data * @return \Illuminate\Testing\TestView */ @@ -26,7 +25,6 @@ protected function view(string $view, $data = []) /** * Render the contents of the given Blade template string. * - * @param string $template * @param \Illuminate\Contracts\Support\Arrayable|array $data * @return \Illuminate\Testing\TestView */ @@ -50,7 +48,6 @@ protected function blade(string $template, $data = []) /** * Render the given view component. * - * @param string $componentClass * @param \Illuminate\Contracts\Support\Arrayable|array $data * @return \Illuminate\Testing\TestComponent */ @@ -70,7 +67,6 @@ protected function component(string $componentClass, $data = []) /** * Populate the shared view error bag with the given errors. * - * @param array $errors * @param string $key * @return $this */ diff --git a/src/Illuminate/Foundation/Testing/Concerns/MakesHttpRequests.php b/src/Illuminate/Foundation/Testing/Concerns/MakesHttpRequests.php index 1ace8556feef..d82c50e040c1 100644 --- a/src/Illuminate/Foundation/Testing/Concerns/MakesHttpRequests.php +++ b/src/Illuminate/Foundation/Testing/Concerns/MakesHttpRequests.php @@ -69,7 +69,6 @@ trait MakesHttpRequests /** * Define additional headers to be sent with the request. * - * @param array $headers * @return $this */ public function withHeaders(array $headers) @@ -82,8 +81,6 @@ public function withHeaders(array $headers) /** * Add a header to be sent with the request. * - * @param string $name - * @param string $value * @return $this */ public function withHeader(string $name, string $value) @@ -96,7 +93,6 @@ public function withHeader(string $name, string $value) /** * Remove a header from the request. * - * @param string $name * @return $this */ public function withoutHeader(string $name) @@ -109,7 +105,6 @@ public function withoutHeader(string $name) /** * Remove headers from the request. * - * @param array $headers * @return $this */ public function withoutHeaders(array $headers) @@ -124,8 +119,6 @@ public function withoutHeaders(array $headers) /** * Add an authorization token for the request. * - * @param string $token - * @param string $type * @return $this */ public function withToken(string $token, string $type = 'Bearer') @@ -136,8 +129,6 @@ public function withToken(string $token, string $type = 'Bearer') /** * Add a basic authentication header to the request with the given credentials. * - * @param string $username - * @param string $password * @return $this */ public function withBasicAuth(string $username, string $password) @@ -170,7 +161,6 @@ public function flushHeaders() /** * Define a set of server variables to be sent with the requests. * - * @param array $server * @return $this */ public function withServerVariables(array $server) @@ -231,7 +221,6 @@ public function withMiddleware($middleware = null) /** * Define additional cookies to be sent with the request. * - * @param array $cookies * @return $this */ public function withCookies(array $cookies) @@ -244,8 +233,6 @@ public function withCookies(array $cookies) /** * Add a cookie to be sent with the request. * - * @param string $name - * @param string $value * @return $this */ public function withCookie(string $name, string $value) @@ -258,7 +245,6 @@ public function withCookie(string $name, string $value) /** * Define additional cookies will not be encrypted before sending with the request. * - * @param array $cookies * @return $this */ public function withUnencryptedCookies(array $cookies) @@ -271,8 +257,6 @@ public function withUnencryptedCookies(array $cookies) /** * Add a cookie will not be encrypted before sending with the request. * - * @param string $name - * @param string $value * @return $this */ public function withUnencryptedCookie(string $name, string $value) @@ -321,7 +305,6 @@ public function disableCookieEncryption() /** * Set the referer header and previous URL session value from a given URL in order to simulate a previous request. * - * @param string $url * @return $this */ public function from(string $url) @@ -334,8 +317,6 @@ public function from(string $url) /** * Set the referer header and previous URL session value from a given route in order to simulate a previous request. * - * @param \BackedEnum|string $name - * @param mixed $parameters * @return $this */ public function fromRoute(BackedEnum|string $name, $parameters = []) @@ -357,7 +338,6 @@ public function withPrecognition() * Visit the given URI with a GET request. * * @param \Illuminate\Support\Uri|string $uri - * @param array $headers * @return \Illuminate\Testing\TestResponse */ public function get($uri, array $headers = []) @@ -372,7 +352,6 @@ public function get($uri, array $headers = []) * Visit the given URI with a GET request, expecting a JSON response. * * @param \Illuminate\Support\Uri|string $uri - * @param array $headers * @param int $options * @return \Illuminate\Testing\TestResponse */ @@ -385,8 +364,6 @@ public function getJson($uri, array $headers = [], $options = 0) * Visit the given URI with a POST request. * * @param \Illuminate\Support\Uri|string $uri - * @param array $data - * @param array $headers * @return \Illuminate\Testing\TestResponse */ public function post($uri, array $data = [], array $headers = []) @@ -401,8 +378,6 @@ public function post($uri, array $data = [], array $headers = []) * Visit the given URI with a POST request, expecting a JSON response. * * @param \Illuminate\Support\Uri|string $uri - * @param array $data - * @param array $headers * @param int $options * @return \Illuminate\Testing\TestResponse */ @@ -415,8 +390,6 @@ public function postJson($uri, array $data = [], array $headers = [], $options = * Visit the given URI with a PUT request. * * @param \Illuminate\Support\Uri|string $uri - * @param array $data - * @param array $headers * @return \Illuminate\Testing\TestResponse */ public function put($uri, array $data = [], array $headers = []) @@ -431,8 +404,6 @@ public function put($uri, array $data = [], array $headers = []) * Visit the given URI with a PUT request, expecting a JSON response. * * @param \Illuminate\Support\Uri|string $uri - * @param array $data - * @param array $headers * @param int $options * @return \Illuminate\Testing\TestResponse */ @@ -445,8 +416,6 @@ public function putJson($uri, array $data = [], array $headers = [], $options = * Visit the given URI with a PATCH request. * * @param \Illuminate\Support\Uri|string $uri - * @param array $data - * @param array $headers * @return \Illuminate\Testing\TestResponse */ public function patch($uri, array $data = [], array $headers = []) @@ -461,8 +430,6 @@ public function patch($uri, array $data = [], array $headers = []) * Visit the given URI with a PATCH request, expecting a JSON response. * * @param \Illuminate\Support\Uri|string $uri - * @param array $data - * @param array $headers * @param int $options * @return \Illuminate\Testing\TestResponse */ @@ -475,8 +442,6 @@ public function patchJson($uri, array $data = [], array $headers = [], $options * Visit the given URI with a DELETE request. * * @param \Illuminate\Support\Uri|string $uri - * @param array $data - * @param array $headers * @return \Illuminate\Testing\TestResponse */ public function delete($uri, array $data = [], array $headers = []) @@ -491,8 +456,6 @@ public function delete($uri, array $data = [], array $headers = []) * Visit the given URI with a DELETE request, expecting a JSON response. * * @param \Illuminate\Support\Uri|string $uri - * @param array $data - * @param array $headers * @param int $options * @return \Illuminate\Testing\TestResponse */ @@ -505,8 +468,6 @@ public function deleteJson($uri, array $data = [], array $headers = [], $options * Visit the given URI with an OPTIONS request. * * @param \Illuminate\Support\Uri|string $uri - * @param array $data - * @param array $headers * @return \Illuminate\Testing\TestResponse */ public function options($uri, array $data = [], array $headers = []) @@ -522,8 +483,6 @@ public function options($uri, array $data = [], array $headers = []) * Visit the given URI with an OPTIONS request, expecting a JSON response. * * @param \Illuminate\Support\Uri|string $uri - * @param array $data - * @param array $headers * @param int $options * @return \Illuminate\Testing\TestResponse */ @@ -536,7 +495,6 @@ public function optionsJson($uri, array $data = [], array $headers = [], $option * Visit the given URI with a HEAD request. * * @param \Illuminate\Support\Uri|string $uri - * @param array $headers * @return \Illuminate\Testing\TestResponse */ public function head($uri, array $headers = []) @@ -553,8 +511,6 @@ public function head($uri, array $headers = []) * * @param string $method * @param \Illuminate\Support\Uri|string $uri - * @param array $data - * @param array $headers * @param int $options * @return \Illuminate\Testing\TestResponse */ @@ -637,7 +593,6 @@ protected function prepareUrlForRequest($uri) /** * Transform headers array to array of $_SERVER vars with HTTP_* format. * - * @param array $headers * @return array */ protected function transformHeadersToServerVars(array $headers) diff --git a/src/Illuminate/Foundation/Testing/DatabaseTransactionsManager.php b/src/Illuminate/Foundation/Testing/DatabaseTransactionsManager.php index 4fea491d51b1..88fa67477942 100644 --- a/src/Illuminate/Foundation/Testing/DatabaseTransactionsManager.php +++ b/src/Illuminate/Foundation/Testing/DatabaseTransactionsManager.php @@ -13,8 +13,6 @@ class DatabaseTransactionsManager extends BaseManager /** * Create a new database transaction manager instance. - * - * @param array $connectionsTransacting */ public function __construct(array $connectionsTransacting) { diff --git a/src/Illuminate/Foundation/Testing/DatabaseTruncation.php b/src/Illuminate/Foundation/Testing/DatabaseTruncation.php index a84c082343b7..8288e2b794a3 100644 --- a/src/Illuminate/Foundation/Testing/DatabaseTruncation.php +++ b/src/Illuminate/Foundation/Testing/DatabaseTruncation.php @@ -14,15 +14,11 @@ trait DatabaseTruncation /** * The cached names of the database tables for each connection. - * - * @var array */ protected static array $allTables; /** * Truncate the database tables for all configured connections. - * - * @return void */ protected function truncateDatabaseTables(): void { @@ -55,8 +51,6 @@ protected function truncateDatabaseTables(): void /** * Truncate the database tables for all configured connections. - * - * @return void */ protected function truncateTablesForAllConnections(): void { @@ -74,10 +68,6 @@ protected function truncateTablesForAllConnections(): void /** * Truncate the database tables for the given database connection. - * - * @param \Illuminate\Database\ConnectionInterface $connection - * @param string|null $name - * @return void */ protected function truncateTablesForConnection(ConnectionInterface $connection, ?string $name): void { @@ -136,8 +126,6 @@ protected function tableExistsIn(array $table, array $tables): bool /** * The database connections that should have their tables truncated. - * - * @return array */ protected function connectionsToTruncate(): array { @@ -176,8 +164,6 @@ protected function exceptTables(ConnectionInterface $connection, ?string $connec /** * Perform any work that should take place before the database has started truncating. - * - * @return void */ protected function beforeTruncatingDatabase(): void { @@ -186,8 +172,6 @@ protected function beforeTruncatingDatabase(): void /** * Perform any work that should take place once the database has finished truncating. - * - * @return void */ protected function afterTruncatingDatabase(): void { diff --git a/src/Illuminate/Foundation/Testing/TestCase.php b/src/Illuminate/Foundation/Testing/TestCase.php index 1d7a17df84ce..61ac6a6727ce 100644 --- a/src/Illuminate/Foundation/Testing/TestCase.php +++ b/src/Illuminate/Foundation/Testing/TestCase.php @@ -36,8 +36,6 @@ public function createApplication() /** * Setup the test environment. - * - * @return void */ protected function setUp(): void { @@ -57,7 +55,6 @@ protected function refreshApplication() /** * Clean up the testing environment before the next test. * - * @return void * * @throws \Mockery\Exception\InvalidCountException */ @@ -68,8 +65,6 @@ protected function tearDown(): void /** * Clean up the testing environment before the next test case. - * - * @return void */ public static function tearDownAfterClass(): void { diff --git a/src/Illuminate/Foundation/Testing/Traits/CanConfigureMigrationCommands.php b/src/Illuminate/Foundation/Testing/Traits/CanConfigureMigrationCommands.php index aafca6f1f249..3b022e1a36e5 100644 --- a/src/Illuminate/Foundation/Testing/Traits/CanConfigureMigrationCommands.php +++ b/src/Illuminate/Foundation/Testing/Traits/CanConfigureMigrationCommands.php @@ -54,8 +54,6 @@ protected function shouldSeed() /** * Determine the specific seeder class that should be used when refreshing the database. - * - * @return mixed */ protected function seeder() { diff --git a/src/Illuminate/Foundation/Testing/Wormhole.php b/src/Illuminate/Foundation/Testing/Wormhole.php index 3bf5d2e89af3..75e4cdd4cc21 100644 --- a/src/Illuminate/Foundation/Testing/Wormhole.php +++ b/src/Illuminate/Foundation/Testing/Wormhole.php @@ -27,7 +27,6 @@ public function __construct($value) * Travel forward the given number of microseconds. * * @param callable|null $callback - * @return mixed */ public function microsecond($callback = null) { @@ -38,7 +37,6 @@ public function microsecond($callback = null) * Travel forward the given number of microseconds. * * @param callable|null $callback - * @return mixed */ public function microseconds($callback = null) { @@ -51,7 +49,6 @@ public function microseconds($callback = null) * Travel forward the given number of milliseconds. * * @param callable|null $callback - * @return mixed */ public function millisecond($callback = null) { @@ -62,7 +59,6 @@ public function millisecond($callback = null) * Travel forward the given number of milliseconds. * * @param callable|null $callback - * @return mixed */ public function milliseconds($callback = null) { @@ -75,7 +71,6 @@ public function milliseconds($callback = null) * Travel forward the given number of seconds. * * @param callable|null $callback - * @return mixed */ public function second($callback = null) { @@ -86,7 +81,6 @@ public function second($callback = null) * Travel forward the given number of seconds. * * @param callable|null $callback - * @return mixed */ public function seconds($callback = null) { @@ -99,7 +93,6 @@ public function seconds($callback = null) * Travel forward the given number of minutes. * * @param callable|null $callback - * @return mixed */ public function minute($callback = null) { @@ -110,7 +103,6 @@ public function minute($callback = null) * Travel forward the given number of minutes. * * @param callable|null $callback - * @return mixed */ public function minutes($callback = null) { @@ -123,7 +115,6 @@ public function minutes($callback = null) * Travel forward the given number of hours. * * @param callable|null $callback - * @return mixed */ public function hour($callback = null) { @@ -134,7 +125,6 @@ public function hour($callback = null) * Travel forward the given number of hours. * * @param callable|null $callback - * @return mixed */ public function hours($callback = null) { @@ -147,7 +137,6 @@ public function hours($callback = null) * Travel forward the given number of days. * * @param callable|null $callback - * @return mixed */ public function day($callback = null) { @@ -158,7 +147,6 @@ public function day($callback = null) * Travel forward the given number of days. * * @param callable|null $callback - * @return mixed */ public function days($callback = null) { @@ -171,7 +159,6 @@ public function days($callback = null) * Travel forward the given number of weeks. * * @param callable|null $callback - * @return mixed */ public function week($callback = null) { @@ -182,7 +169,6 @@ public function week($callback = null) * Travel forward the given number of weeks. * * @param callable|null $callback - * @return mixed */ public function weeks($callback = null) { @@ -195,7 +181,6 @@ public function weeks($callback = null) * Travel forward the given number of months. * * @param callable|null $callback - * @return mixed */ public function month($callback = null) { @@ -206,7 +191,6 @@ public function month($callback = null) * Travel forward the given number of months. * * @param callable|null $callback - * @return mixed */ public function months($callback = null) { @@ -219,7 +203,6 @@ public function months($callback = null) * Travel forward the given number of years. * * @param callable|null $callback - * @return mixed */ public function year($callback = null) { @@ -230,7 +213,6 @@ public function year($callback = null) * Travel forward the given number of years. * * @param callable|null $callback - * @return mixed */ public function years($callback = null) { @@ -255,7 +237,6 @@ public static function back() * Handle the given optional execution callback. * * @param callable|null $callback - * @return mixed */ protected function handleCallback($callback) { diff --git a/src/Illuminate/Foundation/Validation/ValidatesRequests.php b/src/Illuminate/Foundation/Validation/ValidatesRequests.php index 4d7aad2a65d1..a74634eba638 100644 --- a/src/Illuminate/Foundation/Validation/ValidatesRequests.php +++ b/src/Illuminate/Foundation/Validation/ValidatesRequests.php @@ -13,7 +13,6 @@ trait ValidatesRequests * Run the validation routine against the given validator. * * @param \Illuminate\Contracts\Validation\Validator|array $validator - * @param \Illuminate\Http\Request|null $request * @return array * * @throws \Illuminate\Validation\ValidationException @@ -39,10 +38,6 @@ public function validateWith($validator, ?Request $request = null) /** * Validate the given request with the given rules. * - * @param \Illuminate\Http\Request $request - * @param array $rules - * @param array $messages - * @param array $attributes * @return array * * @throws \Illuminate\Validation\ValidationException @@ -68,10 +63,6 @@ public function validate(Request $request, array $rules, * Validate the given request with the given rules. * * @param string $errorBag - * @param \Illuminate\Http\Request $request - * @param array $rules - * @param array $messages - * @param array $attributes * @return array * * @throws \Illuminate\Validation\ValidationException diff --git a/src/Illuminate/Foundation/helpers.php b/src/Illuminate/Foundation/helpers.php index 6499d848ce4a..b97e9976c965 100644 --- a/src/Illuminate/Foundation/helpers.php +++ b/src/Illuminate/Foundation/helpers.php @@ -111,7 +111,6 @@ function abort_unless($boolean, $code, $message = '', array $headers = []): void * Generate the URL to a controller action. * * @param string|array $name - * @param mixed $parameters * @param bool $absolute */ function action($name, $parameters = [], $absolute = true): string @@ -187,7 +186,6 @@ function auth($guard = null): AuthFactory|StatefulGuard * * @param int $status * @param array $headers - * @param mixed $fallback */ function back($status = 302, $headers = [], $fallback = false): RedirectResponse { @@ -223,8 +221,6 @@ function bcrypt($value, $options = []): string if (! function_exists('broadcast')) { /** * Begin broadcasting an event. - * - * @param mixed $event */ function broadcast($event = null): PendingBroadcast { @@ -237,7 +233,6 @@ function broadcast($event = null): PendingBroadcast * Begin broadcasting an event if the given condition is true. * * @param bool $boolean - * @param mixed $event */ function broadcast_if($boolean, $event = null): PendingBroadcast { @@ -254,7 +249,6 @@ function broadcast_if($boolean, $event = null): PendingBroadcast * Begin broadcasting an event unless the given condition is true. * * @param bool $boolean - * @param mixed $event */ function broadcast_unless($boolean, $event = null): PendingBroadcast { @@ -305,7 +299,6 @@ function cache($key = null, $default = null) * If an array is passed as the key, we will assume you want to set an array of values. * * @param array|string|null $key - * @param mixed $default * @return ($key is null ? \Illuminate\Config\Repository : ($key is string ? mixed : null)) */ function config($key = null, $default = null) @@ -339,7 +332,6 @@ function config_path($path = ''): string * Get / set the specified context value. * * @param array|string|null $key - * @param mixed $default * @return ($key is string ? mixed : \Illuminate\Log\Context\Repository) */ function context($key = null, $default = null) @@ -427,7 +419,6 @@ function database_path($path = ''): string * * @param string $value * @param bool $unserialize - * @return mixed */ function decrypt($value, $unserialize = true) { @@ -451,7 +442,6 @@ function defer(?callable $callback = null, ?string $name = null, bool $always = /** * Dispatch a job to its appropriate handler. * - * @param mixed $job * @return ($job is \Closure ? \Illuminate\Foundation\Bus\PendingClosureDispatch : \Illuminate\Foundation\Bus\PendingDispatch) */ function dispatch($job): PendingDispatch|PendingClosureDispatch @@ -467,10 +457,6 @@ function dispatch($job): PendingDispatch|PendingClosureDispatch * Dispatch a command to its appropriate handler in the current process. * * Queueable jobs will be dispatched to the "sync" queue. - * - * @param mixed $job - * @param mixed $handler - * @return mixed */ function dispatch_sync($job, $handler = null) { @@ -482,7 +468,6 @@ function dispatch_sync($job, $handler = null) /** * Encrypt the given value. * - * @param mixed $value * @param bool $serialize */ function encrypt($value, $serialize = true): string @@ -499,9 +484,9 @@ function encrypt($value, $serialize = true): string * @param mixed $payload * @param bool $halt */ - function event(...$args) + function event($event, $payload = [], $halt = false) { - return app('events')->dispatch(...$args); + return app('events')->dispatch($event, $payload, $halt); } } @@ -643,7 +628,6 @@ function old($key = null, $default = null) * Get a policy instance for a given class. * * @param object|string $class - * @return mixed * * @throws \InvalidArgumentException */ @@ -658,7 +642,6 @@ function policy($class) * Handle a Precognition controller hook. * * @param null|callable $callable - * @return mixed */ function precognitive($callable = null) { @@ -765,7 +748,6 @@ function report_unless($boolean, $exception): void * Get an instance of the current request or an input item from the request. * * @param list|string|null $key - * @param mixed $default * @return ($key is null ? \Illuminate\Http\Request : ($key is string ? mixed : array)) */ function request($key = null, $default = null) @@ -862,7 +844,6 @@ function response($content = null, $status = 200, array $headers = []): Response * Generate the URL to a named route. * * @param \BackedEnum|string $name - * @param mixed $parameters * @param bool $absolute */ function route($name, $parameters = [], $absolute = true): string @@ -888,7 +869,6 @@ function secure_asset($path): string * Generate a HTTPS url for the application. * * @param string $path - * @param mixed $parameters */ function secure_url($path, $parameters = []): string { @@ -903,7 +883,6 @@ function secure_url($path, $parameters = []): string * If an array is passed as the key, we will assume you want to set an array of values. * * @param array|string|null $key - * @param mixed $default * @return ($key is null ? \Illuminate\Session\SessionManager : ($key is string ? mixed : null)) */ function session($key = null, $default = null) @@ -937,7 +916,6 @@ function storage_path($path = ''): string * Create a new redirect response to a controller action. * * @param string|array $action - * @param mixed $parameters * @param int $status * @param array $headers */ @@ -952,7 +930,6 @@ function to_action($action, $parameters = [], $status = 302, $headers = []): Red * Create a new redirect response to a named route. * * @param \BackedEnum|string $route - * @param mixed $parameters * @param int $status * @param array $headers */ @@ -1045,7 +1022,6 @@ function uri(UriInterface|Stringable|array|string $uri, mixed $parameters = [], * Generate a URL for the application. * * @param string|null $path - * @param mixed $parameters * @param bool|null $secure * @return ($path is null ? \Illuminate\Contracts\Routing\UrlGenerator : string) */ diff --git a/src/Illuminate/Hashing/AbstractHasher.php b/src/Illuminate/Hashing/AbstractHasher.php index 08151424bf36..756cc019935b 100644 --- a/src/Illuminate/Hashing/AbstractHasher.php +++ b/src/Illuminate/Hashing/AbstractHasher.php @@ -20,7 +20,6 @@ public function info($hashedValue) * * @param string $value * @param string $hashedValue - * @param array $options * @return bool */ public function check(#[\SensitiveParameter] $value, $hashedValue, array $options = []) diff --git a/src/Illuminate/Hashing/Argon2IdHasher.php b/src/Illuminate/Hashing/Argon2IdHasher.php index 55601882c2e6..72a5bcbd444e 100644 --- a/src/Illuminate/Hashing/Argon2IdHasher.php +++ b/src/Illuminate/Hashing/Argon2IdHasher.php @@ -11,7 +11,6 @@ class Argon2IdHasher extends ArgonHasher * * @param string $value * @param string $hashedValue - * @param array $options * @return bool * * @throws \RuntimeException diff --git a/src/Illuminate/Hashing/ArgonHasher.php b/src/Illuminate/Hashing/ArgonHasher.php index 74ff9301ed7b..e8f7cd859ea7 100644 --- a/src/Illuminate/Hashing/ArgonHasher.php +++ b/src/Illuminate/Hashing/ArgonHasher.php @@ -38,8 +38,6 @@ class ArgonHasher extends AbstractHasher implements HasherContract /** * Create a new hasher instance. - * - * @param array $options */ public function __construct(array $options = []) { @@ -53,7 +51,6 @@ public function __construct(array $options = []) * Hash the given value. * * @param string $value - * @param array $options * @return string * * @throws \RuntimeException @@ -88,7 +85,6 @@ protected function algorithm() * * @param string $value * @param string $hashedValue - * @param array $options * @return bool * * @throws \RuntimeException @@ -110,7 +106,6 @@ public function check(#[\SensitiveParameter] $value, $hashedValue, array $option * Check if the given hash has been hashed using the given options. * * @param string $hashedValue - * @param array $options * @return bool */ public function needsRehash($hashedValue, array $options = []) @@ -175,7 +170,6 @@ protected function isUsingValidOptions($hashedValue) /** * Set the default password memory factor. * - * @param int $memory * @return $this */ public function setMemory(int $memory) @@ -188,7 +182,6 @@ public function setMemory(int $memory) /** * Set the default password timing factor. * - * @param int $time * @return $this */ public function setTime(int $time) @@ -201,7 +194,6 @@ public function setTime(int $time) /** * Set the default password threads factor. * - * @param int $threads * @return $this */ public function setThreads(int $threads) @@ -214,7 +206,6 @@ public function setThreads(int $threads) /** * Extract the memory cost value from the options array. * - * @param array $options * @return int */ protected function memory(array $options) @@ -225,7 +216,6 @@ protected function memory(array $options) /** * Extract the time cost value from the options array. * - * @param array $options * @return int */ protected function time(array $options) @@ -236,7 +226,6 @@ protected function time(array $options) /** * Extract the thread's value from the options array. * - * @param array $options * @return int */ protected function threads(array $options) diff --git a/src/Illuminate/Hashing/BcryptHasher.php b/src/Illuminate/Hashing/BcryptHasher.php index efe0c50aa44b..3d68079de657 100755 --- a/src/Illuminate/Hashing/BcryptHasher.php +++ b/src/Illuminate/Hashing/BcryptHasher.php @@ -32,8 +32,6 @@ class BcryptHasher extends AbstractHasher implements HasherContract /** * Create a new hasher instance. - * - * @param array $options */ public function __construct(array $options = []) { @@ -46,7 +44,6 @@ public function __construct(array $options = []) * Hash the given value. * * @param string $value - * @param array $options * @return string * * @throws \RuntimeException @@ -73,7 +70,6 @@ public function make(#[\SensitiveParameter] $value, array $options = []) * * @param string $value * @param string $hashedValue - * @param array $options * @return bool * * @throws \RuntimeException @@ -95,7 +91,6 @@ public function check(#[\SensitiveParameter] $value, $hashedValue, array $option * Check if the given hash has been hashed using the given options. * * @param string $hashedValue - * @param array $options * @return bool */ public function needsRehash($hashedValue, array $options = []) @@ -163,7 +158,6 @@ public function setRounds($rounds) /** * Extract the cost value from the options array. * - * @param array $options * @return int */ protected function cost(array $options = []) diff --git a/src/Illuminate/Hashing/HashManager.php b/src/Illuminate/Hashing/HashManager.php index f1d46998a1ac..71fd89eab680 100644 --- a/src/Illuminate/Hashing/HashManager.php +++ b/src/Illuminate/Hashing/HashManager.php @@ -55,7 +55,6 @@ public function info($hashedValue) * Hash the given value. * * @param string $value - * @param array $options * @return string */ public function make(#[\SensitiveParameter] $value, array $options = []) @@ -68,7 +67,6 @@ public function make(#[\SensitiveParameter] $value, array $options = []) * * @param string $value * @param string $hashedValue - * @param array $options * @return bool */ public function check(#[\SensitiveParameter] $value, $hashedValue, array $options = []) @@ -80,7 +78,6 @@ public function check(#[\SensitiveParameter] $value, $hashedValue, array $option * Check if the given hash has been hashed using the given options. * * @param string $hashedValue - * @param array $options * @return bool */ public function needsRehash($hashedValue, array $options = []) diff --git a/src/Illuminate/Http/Client/Events/ConnectionFailed.php b/src/Illuminate/Http/Client/Events/ConnectionFailed.php index 94c829e56452..525ab40ca327 100644 --- a/src/Illuminate/Http/Client/Events/ConnectionFailed.php +++ b/src/Illuminate/Http/Client/Events/ConnectionFailed.php @@ -23,9 +23,6 @@ class ConnectionFailed /** * Create a new event instance. - * - * @param \Illuminate\Http\Client\Request $request - * @param \Illuminate\Http\Client\ConnectionException $exception */ public function __construct(Request $request, ConnectionException $exception) { diff --git a/src/Illuminate/Http/Client/Events/RequestSending.php b/src/Illuminate/Http/Client/Events/RequestSending.php index f92c5c1438c0..f3798e507b42 100644 --- a/src/Illuminate/Http/Client/Events/RequestSending.php +++ b/src/Illuminate/Http/Client/Events/RequestSending.php @@ -15,8 +15,6 @@ class RequestSending /** * Create a new event instance. - * - * @param \Illuminate\Http\Client\Request $request */ public function __construct(Request $request) { diff --git a/src/Illuminate/Http/Client/Events/ResponseReceived.php b/src/Illuminate/Http/Client/Events/ResponseReceived.php index 82db448371ff..359eae90a323 100644 --- a/src/Illuminate/Http/Client/Events/ResponseReceived.php +++ b/src/Illuminate/Http/Client/Events/ResponseReceived.php @@ -23,9 +23,6 @@ class ResponseReceived /** * Create a new event instance. - * - * @param \Illuminate\Http\Client\Request $request - * @param \Illuminate\Http\Client\Response $response */ public function __construct(Request $request, Response $response) { diff --git a/src/Illuminate/Http/Client/Factory.php b/src/Illuminate/Http/Client/Factory.php index c99bace1ce53..c3f677de2b70 100644 --- a/src/Illuminate/Http/Client/Factory.php +++ b/src/Illuminate/Http/Client/Factory.php @@ -89,8 +89,6 @@ class Factory /** * Create a new factory instance. - * - * @param \Illuminate\Contracts\Events\Dispatcher|null $dispatcher */ public function __construct(?Dispatcher $dispatcher = null) { @@ -217,7 +215,6 @@ public static function failedConnection($message = null) /** * Get an invokable object that returns a sequence of responses in order for use during stubbing. * - * @param array $responses * @return \Illuminate\Http\Client\ResponseSequence */ public function sequence(array $responses = []) @@ -544,7 +541,6 @@ public function getGlobalMiddleware() * * @param string $method * @param array $parameters - * @return mixed */ public function __call($method, $parameters) { diff --git a/src/Illuminate/Http/Client/PendingRequest.php b/src/Illuminate/Http/Client/PendingRequest.php index 3a4af82ff379..e3d7f09ec381 100644 --- a/src/Illuminate/Http/Client/PendingRequest.php +++ b/src/Illuminate/Http/Client/PendingRequest.php @@ -231,7 +231,6 @@ class PendingRequest /** * Create a new HTTP Client instance. * - * @param \Illuminate\Http\Client\Factory|null $factory * @param array $middleware */ public function __construct(?Factory $factory = null, $middleware = []) @@ -259,7 +258,6 @@ public function __construct(?Factory $factory = null, $middleware = []) /** * Set the base URL for the pending request. * - * @param string $url * @return $this */ public function baseUrl(string $url) @@ -313,7 +311,6 @@ public function asForm() * @param string|array $name * @param string|resource $contents * @param string|null $filename - * @param array $headers * @return $this */ public function attach($name, $contents = '', $filename = null, array $headers = []) @@ -351,7 +348,6 @@ public function asMultipart() /** * Specify the body format of the request. * - * @param string $format * @return $this */ public function bodyFormat(string $format) @@ -364,7 +360,6 @@ public function bodyFormat(string $format) /** * Set the given query parameters in the request URI. * - * @param array $parameters * @return $this */ public function withQueryParameters(array $parameters) @@ -379,7 +374,6 @@ public function withQueryParameters(array $parameters) /** * Specify the request's content type. * - * @param string $contentType * @return $this */ public function contentType(string $contentType) @@ -413,7 +407,6 @@ public function accept($contentType) /** * Add the given headers to the request. * - * @param array $headers * @return $this */ public function withHeaders(array $headers) @@ -429,7 +422,6 @@ public function withHeaders(array $headers) * Add the given header to the request. * * @param string $name - * @param mixed $value * @return $this */ public function withHeader($name, $value) @@ -440,7 +432,6 @@ public function withHeader($name, $value) /** * Replace the given headers on the request. * - * @param array $headers * @return $this */ public function replaceHeaders(array $headers) @@ -453,8 +444,6 @@ public function replaceHeaders(array $headers) /** * Specify the basic authentication username and password for the request. * - * @param string $username - * @param string $password * @return $this */ public function withBasicAuth(string $username, string $password) @@ -522,7 +511,6 @@ public function withUserAgent($userAgent) /** * Specify the URL parameters that can be substituted into the request URL. * - * @param array $parameters * @return $this */ public function withUrlParameters(array $parameters = []) @@ -535,8 +523,6 @@ public function withUrlParameters(array $parameters = []) /** * Specify the cookies that should be included with the request. * - * @param array $cookies - * @param string $domain * @return $this */ public function withCookies(array $cookies, string $domain) @@ -551,7 +537,6 @@ public function withCookies(array $cookies, string $domain) /** * Specify the maximum number of redirects to allow. * - * @param int $max * @return $this */ public function maxRedirects(int $max) @@ -601,7 +586,6 @@ public function sink($to) /** * Specify the timeout (in seconds) for the request. * - * @param int|float $seconds * @return $this */ public function timeout(int|float $seconds) @@ -614,7 +598,6 @@ public function timeout(int|float $seconds) /** * Specify the connect timeout (in seconds) for the request. * - * @param int|float $seconds * @return $this */ public function connectTimeout(int|float $seconds) @@ -627,10 +610,6 @@ public function connectTimeout(int|float $seconds) /** * Specify the number of times the request should be attempted. * - * @param array|int $times - * @param Closure|int $sleepMilliseconds - * @param callable|null $when - * @param bool $throw * @return $this */ public function retry(array|int $times, Closure|int $sleepMilliseconds = 0, ?callable $when = null, bool $throw = true) @@ -646,7 +625,6 @@ public function retry(array|int $times, Closure|int $sleepMilliseconds = 0, ?cal /** * Replace the specified options on the request. * - * @param array $options * @return $this */ public function withOptions(array $options) @@ -662,7 +640,6 @@ public function withOptions(array $options) /** * Add new middleware the client handler stack. * - * @param callable $middleware * @return $this */ public function withMiddleware(callable $middleware) @@ -675,7 +652,6 @@ public function withMiddleware(callable $middleware) /** * Add new request middleware the client handler stack. * - * @param callable $middleware * @return $this */ public function withRequestMiddleware(callable $middleware) @@ -688,7 +664,6 @@ public function withRequestMiddleware(callable $middleware) /** * Add new response middleware the client handler stack. * - * @param callable $middleware * @return $this */ public function withResponseMiddleware(callable $middleware) @@ -714,7 +689,6 @@ public function beforeSending($callback) /** * Throw an exception if a server or client error occurs. * - * @param callable|null $callback * @return $this */ public function throw(?callable $callback = null) @@ -787,7 +761,6 @@ public function dd() /** * Issue a GET request to the given URL. * - * @param string $url * @param array|string|null $query * @return \Illuminate\Http\Client\Response * @@ -803,7 +776,6 @@ public function get(string $url, $query = null) /** * Issue a HEAD request to the given URL. * - * @param string $url * @param array|string|null $query * @return \Illuminate\Http\Client\Response * @@ -819,7 +791,6 @@ public function head(string $url, $query = null) /** * Issue a POST request to the given URL. * - * @param string $url * @param array|\JsonSerializable|\Illuminate\Contracts\Support\Arrayable $data * @return \Illuminate\Http\Client\Response * @@ -835,7 +806,6 @@ public function post(string $url, $data = []) /** * Issue a PATCH request to the given URL. * - * @param string $url * @param array|\JsonSerializable|\Illuminate\Contracts\Support\Arrayable $data * @return \Illuminate\Http\Client\Response * @@ -851,7 +821,6 @@ public function patch(string $url, $data = []) /** * Issue a PUT request to the given URL. * - * @param string $url * @param array|\JsonSerializable|\Illuminate\Contracts\Support\Arrayable $data * @return \Illuminate\Http\Client\Response * @@ -867,7 +836,6 @@ public function put(string $url, $data = []) /** * Issue a DELETE request to the given URL. * - * @param string $url * @param array|\JsonSerializable|\Illuminate\Contracts\Support\Arrayable $data * @return \Illuminate\Http\Client\Response * @@ -883,7 +851,6 @@ public function delete(string $url, $data = []) /** * Send a pool of asynchronous requests concurrently. * - * @param callable $callback * @return array */ public function pool(callable $callback) @@ -902,9 +869,6 @@ public function pool(callable $callback) /** * Send the request to the given URL. * - * @param string $method - * @param string $url - * @param array $options * @return \Illuminate\Http\Client\Response * * @throws \Exception @@ -990,7 +954,6 @@ public function send(string $method, string $url, array $options = []) /** * Substitute the URL parameters in the given URL. * - * @param string $url * @return string */ protected function expandUrlParameters(string $url) @@ -1001,7 +964,6 @@ protected function expandUrlParameters(string $url) /** * Parse the given HTTP options and set the appropriate additional options. * - * @param array $options * @return array */ protected function parseHttpOptions(array $options) @@ -1036,7 +998,6 @@ protected function parseHttpOptions(array $options) /** * Parse multi-part form data. * - * @param array $data * @return array|array[] */ protected function parseMultipartBodyFormat(array $data) @@ -1064,10 +1025,6 @@ protected function parseMultipartBodyFormat(array $data) /** * Send an asynchronous request to the given URL. * - * @param string $method - * @param string $url - * @param array $options - * @param int $attempt * @return \GuzzleHttp\Promise\PromiseInterface */ protected function makePromise(string $method, string $url, array $options = [], int $attempt = 1) @@ -1107,7 +1064,6 @@ protected function makePromise(string $method, string $url, array $options = [], * @param string $url * @param array $options * @param int $attempt - * @return mixed */ protected function handlePromiseResponse(Response|ConnectionException|TransferException $response, $method, $url, $options, $attempt) { @@ -1159,9 +1115,6 @@ protected function handlePromiseResponse(Response|ConnectionException|TransferEx /** * Send a request either synchronously or asynchronously. * - * @param string $method - * @param string $url - * @param array $options * @return \Psr\Http\Message\MessageInterface|\GuzzleHttp\Promise\PromiseInterface * * @throws \Exception @@ -1193,7 +1146,6 @@ protected function sendRequest(string $method, string $url, array $options = []) * * @param string $method * @param string $url - * @param array $options * @return array */ protected function parseRequestData($method, $url, array $options) @@ -1226,7 +1178,6 @@ protected function parseRequestData($method, $url, array $options) /** * Normalize the given request options. * - * @param array $options * @return array */ protected function normalizeRequestOptions(array $options) @@ -1245,7 +1196,6 @@ protected function normalizeRequestOptions(array $options) /** * Populate the given response with additional data. * - * @param \Illuminate\Http\Client\Response $response * @return \Illuminate\Http\Client\Response */ protected function populateResponse(Response $response) @@ -1429,7 +1379,6 @@ protected function sinkStubHandler($sink) * Execute the "before sending" callbacks. * * @param \GuzzleHttp\Psr7\RequestInterface $request - * @param array $options * @return \GuzzleHttp\Psr7\RequestInterface */ public function runBeforeSendingCallbacks($request, array $options) @@ -1545,7 +1494,6 @@ public function isAllowedRequestUrl($url) /** * Toggle asynchronicity in requests. * - * @param bool $async * @return $this */ public function async(bool $async = true) @@ -1580,7 +1528,6 @@ protected function dispatchRequestSendingEvent() /** * Dispatch the ResponseReceived event if a dispatcher is available. * - * @param \Illuminate\Http\Client\Response $response * @return void */ protected function dispatchResponseReceivedEvent(Response $response) @@ -1595,8 +1542,6 @@ protected function dispatchResponseReceivedEvent(Response $response) /** * Dispatch the ConnectionFailed event if a dispatcher is available. * - * @param \Illuminate\Http\Client\Request $request - * @param \Illuminate\Http\Client\ConnectionException $exception * @return void */ protected function dispatchConnectionFailedEvent(Request $request, ConnectionException $exception) @@ -1634,7 +1579,6 @@ public function dontTruncateExceptions() /** * Handle the given connection exception. * - * @param \GuzzleHttp\Exception\ConnectException $e * @return void */ protected function marshalConnectionException(ConnectException $e) @@ -1655,7 +1599,6 @@ protected function marshalConnectionException(ConnectException $e) /** * Handle the given request exception. * - * @param \GuzzleHttp\Exception\RequestException $e * @return void */ protected function marshalRequestExceptionWithoutResponse(RequestException $e) @@ -1676,7 +1619,6 @@ protected function marshalRequestExceptionWithoutResponse(RequestException $e) /** * Handle the given request exception. * - * @param \GuzzleHttp\Exception\RequestException $e * @return void */ protected function marshalRequestExceptionWithResponse(RequestException $e) @@ -1694,7 +1636,6 @@ protected function marshalRequestExceptionWithResponse(RequestException $e) /** * Set the client instance. * - * @param \GuzzleHttp\Client $client * @return $this */ public function setClient(Client $client) diff --git a/src/Illuminate/Http/Client/Pool.php b/src/Illuminate/Http/Client/Pool.php index e9716be08571..780c8266c66c 100644 --- a/src/Illuminate/Http/Client/Pool.php +++ b/src/Illuminate/Http/Client/Pool.php @@ -32,8 +32,6 @@ class Pool /** * Create a new requests pool. - * - * @param \Illuminate\Http\Client\Factory|null $factory */ public function __construct(?Factory $factory = null) { @@ -44,7 +42,6 @@ public function __construct(?Factory $factory = null) /** * Add a request to the pool with a key. * - * @param string $key * @return \Illuminate\Http\Client\PendingRequest */ public function as(string $key) diff --git a/src/Illuminate/Http/Client/Request.php b/src/Illuminate/Http/Client/Request.php index 7e6891221864..9a050dd3c03e 100644 --- a/src/Illuminate/Http/Client/Request.php +++ b/src/Illuminate/Http/Client/Request.php @@ -60,7 +60,6 @@ public function url() * Determine if the request has a given header. * * @param string $key - * @param mixed $value * @return bool */ public function hasHeader($key, $value = null) @@ -234,7 +233,6 @@ public function isMultipart() /** * Set the decoded data on the request. * - * @param array $data * @return $this */ public function withData(array $data) @@ -258,7 +256,6 @@ public function toPsrRequest() * Determine if the given offset exists. * * @param string $offset - * @return bool */ public function offsetExists($offset): bool { @@ -269,7 +266,6 @@ public function offsetExists($offset): bool * Get the value for a given offset. * * @param string $offset - * @return mixed */ public function offsetGet($offset): mixed { @@ -280,8 +276,6 @@ public function offsetGet($offset): mixed * Set the value at the given offset. * * @param string $offset - * @param mixed $value - * @return void * * @throws \LogicException */ @@ -294,7 +288,6 @@ public function offsetSet($offset, $value): void * Unset the value at the given offset. * * @param string $offset - * @return void * * @throws \LogicException */ diff --git a/src/Illuminate/Http/Client/RequestException.php b/src/Illuminate/Http/Client/RequestException.php index a72f12873594..659a520d47b2 100644 --- a/src/Illuminate/Http/Client/RequestException.php +++ b/src/Illuminate/Http/Client/RequestException.php @@ -22,8 +22,6 @@ class RequestException extends HttpClientException /** * Create a new exception instance. - * - * @param \Illuminate\Http\Client\Response $response */ public function __construct(Response $response) { @@ -45,7 +43,6 @@ public static function truncate() /** * Set the truncation length for request exception messages. * - * @param int $length * @return void */ public static function truncateAt(int $length) @@ -66,7 +63,6 @@ public static function dontTruncate() /** * Prepare the exception message. * - * @param \Illuminate\Http\Client\Response $response * @return string */ protected function prepareMessage(Response $response) diff --git a/src/Illuminate/Http/Client/Response.php b/src/Illuminate/Http/Client/Response.php index 27f0899cb517..4693c2f36d43 100644 --- a/src/Illuminate/Http/Client/Response.php +++ b/src/Illuminate/Http/Client/Response.php @@ -78,8 +78,6 @@ public function body() * Get the JSON decoded body of the response as an array or scalar value. * * @param string|null $key - * @param mixed $default - * @return mixed */ public function json($key = null, $default = null) { @@ -141,7 +139,6 @@ public function resource() /** * Get a header from the response. * - * @param string $header * @return string */ public function header(string $header) @@ -505,7 +502,6 @@ public function ddHeaders() * Determine if the given offset exists. * * @param string $offset - * @return bool */ public function offsetExists($offset): bool { @@ -516,7 +512,6 @@ public function offsetExists($offset): bool * Get the value for a given offset. * * @param string $offset - * @return mixed */ public function offsetGet($offset): mixed { @@ -527,8 +522,6 @@ public function offsetGet($offset): mixed * Set the value at the given offset. * * @param string $offset - * @param mixed $value - * @return void * * @throws \LogicException */ @@ -541,7 +534,6 @@ public function offsetSet($offset, $value): void * Unset the value at the given offset. * * @param string $offset - * @return void * * @throws \LogicException */ @@ -565,7 +557,6 @@ public function __toString() * * @param string $method * @param array $parameters - * @return mixed */ public function __call($method, $parameters) { diff --git a/src/Illuminate/Http/Client/ResponseSequence.php b/src/Illuminate/Http/Client/ResponseSequence.php index 23ac08511d4c..b9d062d7bc96 100644 --- a/src/Illuminate/Http/Client/ResponseSequence.php +++ b/src/Illuminate/Http/Client/ResponseSequence.php @@ -33,8 +33,6 @@ class ResponseSequence /** * Create a new response sequence. - * - * @param array $responses */ public function __construct(array $responses) { @@ -45,8 +43,6 @@ public function __construct(array $responses) * Push a response to the sequence. * * @param string|array|null $body - * @param int $status - * @param array $headers * @return $this */ public function push($body = null, int $status = 200, array $headers = []) @@ -59,8 +55,6 @@ public function push($body = null, int $status = 200, array $headers = []) /** * Push a response with the given status code to the sequence. * - * @param int $status - * @param array $headers * @return $this */ public function pushStatus(int $status, array $headers = []) @@ -73,9 +67,6 @@ public function pushStatus(int $status, array $headers = []) /** * Push a response with the contents of a file as the body to the sequence. * - * @param string $filePath - * @param int $status - * @param array $headers * @return $this */ public function pushFile(string $filePath, int $status = 200, array $headers = []) @@ -103,7 +94,6 @@ public function pushFailedConnection($message = null) /** * Push a response to the sequence. * - * @param mixed $response * @return $this */ public function pushResponse($response) @@ -151,7 +141,6 @@ public function isEmpty() * Get the next response in the sequence. * * @param \Illuminate\Http\Client\Request $request - * @return mixed * * @throws \OutOfBoundsException */ diff --git a/src/Illuminate/Http/Concerns/InteractsWithFlashData.php b/src/Illuminate/Http/Concerns/InteractsWithFlashData.php index bc02084fab80..f0ae0a633527 100644 --- a/src/Illuminate/Http/Concerns/InteractsWithFlashData.php +++ b/src/Illuminate/Http/Concerns/InteractsWithFlashData.php @@ -33,7 +33,6 @@ public function flash() /** * Flash only some of the input to the session. * - * @param mixed $keys * @return void */ public function flashOnly($keys) @@ -46,7 +45,6 @@ public function flashOnly($keys) /** * Flash only some of the input to the session. * - * @param mixed $keys * @return void */ public function flashExcept($keys) diff --git a/src/Illuminate/Http/Concerns/InteractsWithInput.php b/src/Illuminate/Http/Concerns/InteractsWithInput.php index a4e9173746a7..d6c318dd3407 100644 --- a/src/Illuminate/Http/Concerns/InteractsWithInput.php +++ b/src/Illuminate/Http/Concerns/InteractsWithInput.php @@ -80,7 +80,6 @@ public function keys() /** * Get all of the input and files for the request. * - * @param mixed $keys * @return array */ public function all($keys = null) @@ -104,8 +103,6 @@ public function all($keys = null) * Retrieve an input item from the request. * * @param string|null $key - * @param mixed $default - * @return mixed */ public function input($key = null, $default = null) { @@ -227,7 +224,6 @@ public function hasFile($key) /** * Check that the given file is a valid file instance. * - * @param mixed $file * @return bool */ protected function isValidFile($file) @@ -239,7 +235,6 @@ protected function isValidFile($file) * Retrieve a file from the request. * * @param string|null $key - * @param mixed $default * @return ($key is null ? array : \Illuminate\Http\UploadedFile|\Illuminate\Http\UploadedFile[]|null) */ public function file($key = null, $default = null) @@ -251,8 +246,6 @@ public function file($key = null, $default = null) * Retrieve data from the instance. * * @param string $key - * @param mixed $default - * @return mixed */ protected function data($key = null, $default = null) { @@ -283,7 +276,6 @@ protected function retrieveItem($source, $key, $default) /** * Dump the items. * - * @param mixed $keys * @return $this */ public function dump($keys = []) diff --git a/src/Illuminate/Http/Exceptions/HttpResponseException.php b/src/Illuminate/Http/Exceptions/HttpResponseException.php index eeafe3205d60..7cf5d5b7f82f 100644 --- a/src/Illuminate/Http/Exceptions/HttpResponseException.php +++ b/src/Illuminate/Http/Exceptions/HttpResponseException.php @@ -17,9 +17,6 @@ class HttpResponseException extends RuntimeException /** * Create a new HTTP response exception instance. - * - * @param \Symfony\Component\HttpFoundation\Response $response - * @param \Throwable $previous */ public function __construct(Response $response, ?Throwable $previous = null) { diff --git a/src/Illuminate/Http/Exceptions/PostTooLargeException.php b/src/Illuminate/Http/Exceptions/PostTooLargeException.php index e317448f02bb..cd3260a4b446 100644 --- a/src/Illuminate/Http/Exceptions/PostTooLargeException.php +++ b/src/Illuminate/Http/Exceptions/PostTooLargeException.php @@ -11,8 +11,6 @@ class PostTooLargeException extends HttpException * Create a new "post too large" exception instance. * * @param string $message - * @param \Throwable|null $previous - * @param array $headers * @param int $code */ public function __construct($message = '', ?Throwable $previous = null, array $headers = [], $code = 0) diff --git a/src/Illuminate/Http/Exceptions/ThrottleRequestsException.php b/src/Illuminate/Http/Exceptions/ThrottleRequestsException.php index bbfd0c9c254c..63661d131d55 100644 --- a/src/Illuminate/Http/Exceptions/ThrottleRequestsException.php +++ b/src/Illuminate/Http/Exceptions/ThrottleRequestsException.php @@ -11,8 +11,6 @@ class ThrottleRequestsException extends TooManyRequestsHttpException * Create a new throttle requests exception instance. * * @param string $message - * @param \Throwable|null $previous - * @param array $headers * @param int $code */ public function __construct($message = '', ?Throwable $previous = null, array $headers = [], $code = 0) diff --git a/src/Illuminate/Http/JsonResponse.php b/src/Illuminate/Http/JsonResponse.php index f604b86d30ae..4bda47314c18 100755 --- a/src/Illuminate/Http/JsonResponse.php +++ b/src/Illuminate/Http/JsonResponse.php @@ -18,7 +18,6 @@ class JsonResponse extends BaseJsonResponse /** * Create a new JSON response instance. * - * @param mixed $data * @param int $status * @param array $headers * @param int $options @@ -33,8 +32,6 @@ public function __construct($data = null, $status = 200, $headers = [], $options /** * {@inheritdoc} - * - * @return static */ #[\Override] public static function fromJsonString(?string $data = null, int $status = 200, array $headers = []): static @@ -58,7 +55,6 @@ public function withCallback($callback = null) * * @param bool $assoc * @param int $depth - * @return mixed */ public function getData($assoc = false, $depth = 512) { @@ -67,8 +63,6 @@ public function getData($assoc = false, $depth = 512) /** * {@inheritdoc} - * - * @return static */ #[\Override] public function setData($data = []): static @@ -114,8 +108,6 @@ protected function hasValidJson($jsonError) /** * {@inheritdoc} - * - * @return static */ #[\Override] public function setEncodingOptions($options): static diff --git a/src/Illuminate/Http/Middleware/CheckResponseForModifications.php b/src/Illuminate/Http/Middleware/CheckResponseForModifications.php index 2a93e21d9bee..55bdaadf1821 100644 --- a/src/Illuminate/Http/Middleware/CheckResponseForModifications.php +++ b/src/Illuminate/Http/Middleware/CheckResponseForModifications.php @@ -11,8 +11,6 @@ class CheckResponseForModifications * Handle an incoming request. * * @param \Illuminate\Http\Request $request - * @param \Closure $next - * @return mixed */ public function handle($request, Closure $next) { diff --git a/src/Illuminate/Http/Middleware/FrameGuard.php b/src/Illuminate/Http/Middleware/FrameGuard.php index 66edce445b87..335a08487034 100644 --- a/src/Illuminate/Http/Middleware/FrameGuard.php +++ b/src/Illuminate/Http/Middleware/FrameGuard.php @@ -10,7 +10,6 @@ class FrameGuard * Handle the given request and get the response. * * @param \Illuminate\Http\Request $request - * @param \Closure $next * @return \Symfony\Component\HttpFoundation\Response */ public function handle($request, Closure $next) diff --git a/src/Illuminate/Http/Middleware/HandleCors.php b/src/Illuminate/Http/Middleware/HandleCors.php index a417deb2b305..13a7cc4d7985 100644 --- a/src/Illuminate/Http/Middleware/HandleCors.php +++ b/src/Illuminate/Http/Middleware/HandleCors.php @@ -25,9 +25,6 @@ class HandleCors /** * Create a new middleware instance. - * - * @param \Illuminate\Contracts\Container\Container $container - * @param \Fruitcake\Cors\CorsService $cors */ public function __construct(Container $container, CorsService $cors) { @@ -39,7 +36,6 @@ public function __construct(Container $container, CorsService $cors) * Handle the incoming request. * * @param \Illuminate\Http\Request $request - * @param \Closure $next * @return \Illuminate\Http\Response */ public function handle($request, Closure $next) @@ -69,9 +65,6 @@ public function handle($request, Closure $next) /** * Get the path from the configuration to determine if the CORS service should run. - * - * @param \Illuminate\Http\Request $request - * @return bool */ protected function hasMatchingPath(Request $request): bool { @@ -93,7 +86,6 @@ protected function hasMatchingPath(Request $request): bool /** * Get the CORS paths for the given host. * - * @param string $host * @return array */ protected function getPathsByHost(string $host) diff --git a/src/Illuminate/Http/Middleware/SetCacheHeaders.php b/src/Illuminate/Http/Middleware/SetCacheHeaders.php index 379abb71a9b8..de01edb0b633 100644 --- a/src/Illuminate/Http/Middleware/SetCacheHeaders.php +++ b/src/Illuminate/Http/Middleware/SetCacheHeaders.php @@ -40,7 +40,6 @@ public static function using($options) * Add cache related HTTP headers. * * @param \Illuminate\Http\Request $request - * @param \Closure $next * @param string|array $options * @return \Symfony\Component\HttpFoundation\Response * diff --git a/src/Illuminate/Http/Middleware/TrustHosts.php b/src/Illuminate/Http/Middleware/TrustHosts.php index b0bb3b5c06a8..c910b6e32cf8 100644 --- a/src/Illuminate/Http/Middleware/TrustHosts.php +++ b/src/Illuminate/Http/Middleware/TrustHosts.php @@ -30,8 +30,6 @@ class TrustHosts /** * Create a new middleware instance. - * - * @param \Illuminate\Contracts\Foundation\Application $app */ public function __construct(Application $app) { @@ -65,7 +63,6 @@ public function hosts() /** * Handle the incoming request. * - * @param \Illuminate\Http\Request $request * @param \Closure $next * @return \Illuminate\Http\Response */ @@ -82,7 +79,6 @@ public function handle(Request $request, $next) * Specify the hosts that should always be trusted. * * @param array|(callable(): array) $hosts - * @param bool $subdomains * @return void */ public static function at(array|callable $hosts, bool $subdomains = true) diff --git a/src/Illuminate/Http/Middleware/TrustProxies.php b/src/Illuminate/Http/Middleware/TrustProxies.php index 93ac857d4d46..cfa3eb465c26 100644 --- a/src/Illuminate/Http/Middleware/TrustProxies.php +++ b/src/Illuminate/Http/Middleware/TrustProxies.php @@ -43,9 +43,6 @@ class TrustProxies /** * Handle an incoming request. * - * @param \Illuminate\Http\Request $request - * @param \Closure $next - * @return mixed * * @throws \Symfony\Component\HttpKernel\Exception\HttpException */ @@ -61,7 +58,6 @@ public function handle(Request $request, Closure $next) /** * Sets the trusted proxies on the request. * - * @param \Illuminate\Http\Request $request * @return void */ protected function setTrustedProxyIpAddresses(Request $request) @@ -91,8 +87,6 @@ protected function setTrustedProxyIpAddresses(Request $request) /** * Specify the IP addresses to trust explicitly. * - * @param \Illuminate\Http\Request $request - * @param array $trustedIps * @return void */ protected function setTrustedProxyIpAddressesToSpecificIps(Request $request, array $trustedIps) @@ -109,7 +103,6 @@ protected function setTrustedProxyIpAddressesToSpecificIps(Request $request, arr /** * Set the trusted proxy to be the IP address calling this servers. * - * @param \Illuminate\Http\Request $request * @return void */ protected function setTrustedProxyIpAddressesToTheCallingIp(Request $request) @@ -165,7 +158,6 @@ protected function proxies() /** * Specify the IP addresses of proxies that should always be trusted. * - * @param array|string $proxies * @return void */ public static function at(array|string $proxies) @@ -176,7 +168,6 @@ public static function at(array|string $proxies) /** * Specify the proxy headers that should always be trusted. * - * @param int $headers * @return void */ public static function withHeaders(int $headers) diff --git a/src/Illuminate/Http/Middleware/ValidatePathEncoding.php b/src/Illuminate/Http/Middleware/ValidatePathEncoding.php index cd67581fe050..cf0ad89505c9 100644 --- a/src/Illuminate/Http/Middleware/ValidatePathEncoding.php +++ b/src/Illuminate/Http/Middleware/ValidatePathEncoding.php @@ -11,8 +11,6 @@ class ValidatePathEncoding /** * Validate that the incoming request has a valid UTF-8 encoded path. * - * @param \Illuminate\Http\Request $request - * @param \Closure $next * @return \Symfony\Component\HttpFoundation\Response */ public function handle(Request $request, Closure $next) diff --git a/src/Illuminate/Http/Middleware/ValidatePostSize.php b/src/Illuminate/Http/Middleware/ValidatePostSize.php index 8b3519c92842..3217270af726 100644 --- a/src/Illuminate/Http/Middleware/ValidatePostSize.php +++ b/src/Illuminate/Http/Middleware/ValidatePostSize.php @@ -11,8 +11,6 @@ class ValidatePostSize * Handle an incoming request. * * @param \Illuminate\Http\Request $request - * @param \Closure $next - * @return mixed * * @throws \Illuminate\Http\Exceptions\PostTooLargeException */ diff --git a/src/Illuminate/Http/RedirectResponse.php b/src/Illuminate/Http/RedirectResponse.php index 6e4a9cde5b1f..eea441a74c5c 100755 --- a/src/Illuminate/Http/RedirectResponse.php +++ b/src/Illuminate/Http/RedirectResponse.php @@ -36,7 +36,6 @@ class RedirectResponse extends BaseRedirectResponse * Flash a piece of data to the session. * * @param string|array $key - * @param mixed $value * @return $this */ public function with($key, $value = null) @@ -53,7 +52,6 @@ public function with($key, $value = null) /** * Add multiple cookies to the response. * - * @param array $cookies * @return $this */ public function withCookies(array $cookies) @@ -68,7 +66,6 @@ public function withCookies(array $cookies) /** * Flash an array of input to the session. * - * @param array|null $input * @return $this */ public function withInput(?array $input = null) @@ -83,7 +80,6 @@ public function withInput(?array $input = null) /** * Remove all uploaded files form the given input array. * - * @param array $input * @return array */ protected function removeFilesFromInput(array $input) @@ -205,7 +201,6 @@ public function getRequest() /** * Set the request instance. * - * @param \Illuminate\Http\Request $request * @return void */ public function setRequest(Request $request) @@ -226,7 +221,6 @@ public function getSession() /** * Set the session store instance. * - * @param \Illuminate\Session\Store $session * @return void */ public function setSession(SessionStore $session) @@ -239,7 +233,6 @@ public function setSession(SessionStore $session) * * @param string $method * @param array $parameters - * @return mixed * * @throws \BadMethodCallException */ diff --git a/src/Illuminate/Http/Request.php b/src/Illuminate/Http/Request.php index d355cab241d2..b8471d6a5ec5 100644 --- a/src/Illuminate/Http/Request.php +++ b/src/Illuminate/Http/Request.php @@ -142,7 +142,6 @@ public function fullUrl() /** * Get the full URL for the request with the added query string parameters. * - * @param array $query * @return string */ public function fullUrlWithQuery(array $query) @@ -222,7 +221,6 @@ public function segments() /** * Determine if the current request URI matches a pattern. * - * @param mixed ...$patterns * @return bool */ public function is(...$patterns) @@ -234,7 +232,6 @@ public function is(...$patterns) /** * Determine if the route name matches a given pattern. * - * @param mixed ...$patterns * @return bool */ public function routeIs(...$patterns) @@ -245,7 +242,6 @@ public function routeIs(...$patterns) /** * Determine if the current request URL and query string match a pattern. * - * @param mixed ...$patterns * @return bool */ public function fullUrlIs(...$patterns) @@ -359,7 +355,6 @@ public function userAgent() /** * Merge new input into the current request's input array. * - * @param array $input * @return $this */ public function merge(array $input) @@ -376,7 +371,6 @@ public function merge(array $input) /** * Merge new input into the request's input, but only when that key is missing from the request. * - * @param array $input * @return $this */ public function mergeIfMissing(array $input) @@ -390,7 +384,6 @@ public function mergeIfMissing(array $input) /** * Replace the input values for the current request. * - * @param array $input * @return $this */ public function replace(array $input) @@ -404,10 +397,6 @@ public function replace(array $input) * This method belongs to Symfony HttpFoundation and is not usually needed when using Laravel. * * Instead, you may use the "input" method. - * - * @param string $key - * @param mixed $default - * @return mixed */ #[\Override] public function get(string $key, mixed $default = null): mixed @@ -419,7 +408,6 @@ public function get(string $key, mixed $default = null): mixed * Get the JSON payload for the request. * * @param string|null $key - * @param mixed $default * @return ($key is null ? \Symfony\Component\HttpFoundation\InputBag : mixed) */ public function json($key = null, $default = null) @@ -452,7 +440,6 @@ protected function getInputSource() /** * Create a new request instance from the given Laravel request. * - * @param \Illuminate\Http\Request $from * @param \Illuminate\Http\Request|null $to * @return static */ @@ -494,7 +481,6 @@ public static function createFrom(self $from, $to = null) /** * Create an Illuminate request from a Symfony instance. * - * @param \Symfony\Component\HttpFoundation\Request $request * @return static */ public static function createFromBase(SymfonyRequest $request) @@ -517,8 +503,6 @@ public static function createFromBase(SymfonyRequest $request) /** * {@inheritdoc} - * - * @return static */ #[\Override] public function duplicate(?array $query = null, ?array $request = null, ?array $attributes = null, ?array $cookies = null, ?array $files = null, ?array $server = null): static @@ -528,9 +512,6 @@ public function duplicate(?array $query = null, ?array $request = null, ?array $ /** * Filter the given array of files, removing any empty values. - * - * @param mixed $files - * @return mixed */ protected function filterFiles($files) { @@ -601,7 +582,6 @@ public function setLaravelSession($session) /** * Set the locale for the request instance. * - * @param string $locale * @return void */ public function setRequestLocale(string $locale) @@ -612,7 +592,6 @@ public function setRequestLocale(string $locale) /** * Set the default locale for the request instance. * - * @param string $locale * @return void */ public function setDefaultRequestLocale(string $locale) @@ -624,7 +603,6 @@ public function setDefaultRequestLocale(string $locale) * Get the user making the request. * * @param string|null $guard - * @return mixed */ public function user($guard = null) { @@ -635,7 +613,6 @@ public function user($guard = null) * Get the route handling the request. * * @param string|null $param - * @param mixed $default * @return ($param is null ? \Illuminate\Routing\Route : object|string|null) */ public function route($param = null, $default = null) @@ -696,7 +673,6 @@ public function getUserResolver() /** * Set the user resolver callback. * - * @param \Closure $callback * @return $this */ public function setUserResolver(Closure $callback) @@ -721,7 +697,6 @@ public function getRouteResolver() /** * Set the route resolver callback. * - * @param \Closure $callback * @return $this */ public function setRouteResolver(Closure $callback) @@ -733,8 +708,6 @@ public function setRouteResolver(Closure $callback) /** * Get all of the input and files for the request. - * - * @return array */ public function toArray(): array { @@ -745,7 +718,6 @@ public function toArray(): array * Determine if the given offset exists. * * @param string $offset - * @return bool */ public function offsetExists($offset): bool { @@ -761,7 +733,6 @@ public function offsetExists($offset): bool * Get the value at the given offset. * * @param string $offset - * @return mixed */ public function offsetGet($offset): mixed { @@ -772,8 +743,6 @@ public function offsetGet($offset): mixed * Set the value at the given offset. * * @param string $offset - * @param mixed $value - * @return void */ public function offsetSet($offset, $value): void { @@ -784,7 +753,6 @@ public function offsetSet($offset, $value): void * Remove the value at the given offset. * * @param string $offset - * @return void */ public function offsetUnset($offset): void { @@ -806,7 +774,6 @@ public function __isset($key) * Get an input element from the request. * * @param string $key - * @return mixed */ public function __get($key) { diff --git a/src/Illuminate/Http/Resources/CollectsResources.php b/src/Illuminate/Http/Resources/CollectsResources.php index 08ec46b52e39..90dd1fd3179c 100644 --- a/src/Illuminate/Http/Resources/CollectsResources.php +++ b/src/Illuminate/Http/Resources/CollectsResources.php @@ -15,9 +15,6 @@ trait CollectsResources { /** * Map the given collection resource into its individual resources. - * - * @param mixed $resource - * @return mixed */ protected function collectResource($resource) { diff --git a/src/Illuminate/Http/Resources/ConditionallyLoadsAttributes.php b/src/Illuminate/Http/Resources/ConditionallyLoadsAttributes.php index 9eeff4a5f1dd..81e6f2b65928 100644 --- a/src/Illuminate/Http/Resources/ConditionallyLoadsAttributes.php +++ b/src/Illuminate/Http/Resources/ConditionallyLoadsAttributes.php @@ -96,8 +96,6 @@ protected function removeMissingValues($data) * Retrieve a value if the given "condition" is truthy. * * @param bool $condition - * @param mixed $value - * @param mixed $default * @return \Illuminate\Http\Resources\MissingValue|mixed */ protected function when($condition, $value, $default = new MissingValue) @@ -113,8 +111,6 @@ protected function when($condition, $value, $default = new MissingValue) * Retrieve a value if the given "condition" is falsy. * * @param bool $condition - * @param mixed $value - * @param mixed $default * @return \Illuminate\Http\Resources\MissingValue|mixed */ public function unless($condition, $value, $default = new MissingValue) @@ -127,7 +123,6 @@ public function unless($condition, $value, $default = new MissingValue) /** * Merge a value into the array. * - * @param mixed $value * @return \Illuminate\Http\Resources\MergeValue|mixed */ protected function merge($value) @@ -139,8 +134,6 @@ protected function merge($value) * Merge a value if the given condition is truthy. * * @param bool $condition - * @param mixed $value - * @param mixed $default * @return \Illuminate\Http\Resources\MergeValue|mixed */ protected function mergeWhen($condition, $value, $default = new MissingValue) @@ -156,8 +149,6 @@ protected function mergeWhen($condition, $value, $default = new MissingValue) * Merge a value unless the given condition is truthy. * * @param bool $condition - * @param mixed $value - * @param mixed $default * @return \Illuminate\Http\Resources\MergeValue|mixed */ protected function mergeUnless($condition, $value, $default = new MissingValue) @@ -184,8 +175,6 @@ protected function attributes($attributes) * Retrieve an attribute if it exists on the resource. * * @param string $attribute - * @param mixed $value - * @param mixed $default * @return \Illuminate\Http\Resources\MissingValue|mixed */ public function whenHas($attribute, $value = null, $default = new MissingValue) @@ -202,8 +191,6 @@ public function whenHas($attribute, $value = null, $default = new MissingValue) /** * Retrieve a model attribute if it is null. * - * @param mixed $value - * @param mixed $default * @return \Illuminate\Http\Resources\MissingValue|mixed */ protected function whenNull($value, $default = new MissingValue) @@ -216,8 +203,6 @@ protected function whenNull($value, $default = new MissingValue) /** * Retrieve a model attribute if it is not null. * - * @param mixed $value - * @param mixed $default * @return \Illuminate\Http\Resources\MissingValue|mixed */ protected function whenNotNull($value, $default = new MissingValue) @@ -231,8 +216,6 @@ protected function whenNotNull($value, $default = new MissingValue) * Retrieve an accessor when it has been appended. * * @param string $attribute - * @param mixed $value - * @param mixed $default * @return \Illuminate\Http\Resources\MissingValue|mixed */ protected function whenAppended($attribute, $value = null, $default = new MissingValue) @@ -248,8 +231,6 @@ protected function whenAppended($attribute, $value = null, $default = new Missin * Retrieve a relationship if it has been loaded. * * @param string $relationship - * @param mixed $value - * @param mixed $default * @return \Illuminate\Http\Resources\MissingValue|mixed */ protected function whenLoaded($relationship, $value = null, $default = new MissingValue) @@ -279,8 +260,6 @@ protected function whenLoaded($relationship, $value = null, $default = new Missi * Retrieve a relationship count if it exists. * * @param string $relationship - * @param mixed $value - * @param mixed $default * @return \Illuminate\Http\Resources\MissingValue|mixed */ public function whenCounted($relationship, $value = null, $default = new MissingValue) @@ -312,8 +291,6 @@ public function whenCounted($relationship, $value = null, $default = new Missing * @param string $relationship * @param string $column * @param string $aggregate - * @param mixed $value - * @param mixed $default * @return \Illuminate\Http\Resources\MissingValue|mixed */ public function whenAggregated($relationship, $column, $aggregate, $value = null, $default = new MissingValue) @@ -343,8 +320,6 @@ public function whenAggregated($relationship, $column, $aggregate, $value = null * Retrieve a relationship existence check if it exists. * * @param string $relationship - * @param mixed $value - * @param mixed $default * @return \Illuminate\Http\Resources\MissingValue|mixed */ public function whenExistsLoaded($relationship, $value = null, $default = new MissingValue) @@ -370,8 +345,6 @@ public function whenExistsLoaded($relationship, $value = null, $default = new Mi * Execute a callback if the given pivot table has been loaded. * * @param string $table - * @param mixed $value - * @param mixed $default * @return \Illuminate\Http\Resources\MissingValue|mixed */ protected function whenPivotLoaded($table, $value, $default = new MissingValue) @@ -384,8 +357,6 @@ protected function whenPivotLoaded($table, $value, $default = new MissingValue) * * @param string $accessor * @param string $table - * @param mixed $value - * @param mixed $default * @return \Illuminate\Http\Resources\MissingValue|mixed */ protected function whenPivotLoadedAs($accessor, $table, $value, $default = new MissingValue) @@ -424,11 +395,6 @@ protected function hasPivotLoadedAs($accessor, $table) /** * Transform the given value if it is present. - * - * @param mixed $value - * @param callable $callback - * @param mixed $default - * @return mixed */ protected function transform($value, callable $callback, $default = new MissingValue) { diff --git a/src/Illuminate/Http/Resources/DelegatesToResource.php b/src/Illuminate/Http/Resources/DelegatesToResource.php index fdb05db3134d..334eb708815d 100644 --- a/src/Illuminate/Http/Resources/DelegatesToResource.php +++ b/src/Illuminate/Http/Resources/DelegatesToResource.php @@ -14,8 +14,6 @@ trait DelegatesToResource /** * Get the value of the resource's route key. - * - * @return mixed */ public function getRouteKey() { @@ -35,7 +33,6 @@ public function getRouteKeyName() /** * Retrieve the model for a bound value. * - * @param mixed $value * @param string|null $field * @return void * @@ -50,7 +47,6 @@ public function resolveRouteBinding($value, $field = null) * Retrieve the model for a bound value. * * @param string $childType - * @param mixed $value * @param string|null $field * @return void * @@ -63,9 +59,6 @@ public function resolveChildRouteBinding($childType, $value, $field = null) /** * Determine if the given attribute exists. - * - * @param mixed $offset - * @return bool */ public function offsetExists($offset): bool { @@ -74,9 +67,6 @@ public function offsetExists($offset): bool /** * Get the value for a given offset. - * - * @param mixed $offset - * @return mixed */ public function offsetGet($offset): mixed { @@ -85,10 +75,6 @@ public function offsetGet($offset): mixed /** * Set the value for a given offset. - * - * @param mixed $offset - * @param mixed $value - * @return void */ public function offsetSet($offset, $value): void { @@ -97,9 +83,6 @@ public function offsetSet($offset, $value): void /** * Unset the value for a given offset. - * - * @param mixed $offset - * @return void */ public function offsetUnset($offset): void { @@ -132,7 +115,6 @@ public function __unset($key) * Dynamically get properties from the underlying resource. * * @param string $key - * @return mixed */ public function __get($key) { @@ -144,7 +126,6 @@ public function __get($key) * * @param string $method * @param array $parameters - * @return mixed */ public function __call($method, $parameters) { diff --git a/src/Illuminate/Http/Resources/Json/AnonymousResourceCollection.php b/src/Illuminate/Http/Resources/Json/AnonymousResourceCollection.php index ba8c087f1194..a56807e53b81 100644 --- a/src/Illuminate/Http/Resources/Json/AnonymousResourceCollection.php +++ b/src/Illuminate/Http/Resources/Json/AnonymousResourceCollection.php @@ -21,7 +21,6 @@ class AnonymousResourceCollection extends ResourceCollection /** * Create a new anonymous resource collection. * - * @param mixed $resource * @param string $collects */ public function __construct($resource, $collects) diff --git a/src/Illuminate/Http/Resources/Json/JsonResource.php b/src/Illuminate/Http/Resources/Json/JsonResource.php index 035c25d969b1..a0c4b530d4d3 100644 --- a/src/Illuminate/Http/Resources/Json/JsonResource.php +++ b/src/Illuminate/Http/Resources/Json/JsonResource.php @@ -21,8 +21,6 @@ class JsonResource implements ArrayAccess, JsonSerializable, Responsable, UrlRou /** * The resource instance. - * - * @var mixed */ public $resource; @@ -51,15 +49,11 @@ class JsonResource implements ArrayAccess, JsonSerializable, Responsable, UrlRou /** * Whether to force wrapping even if the $wrap key exists in underlying resource data. - * - * @var bool */ public static bool $forceWrapping = false; /** * Create a new resource instance. - * - * @param mixed $resource */ public function __construct($resource) { @@ -69,7 +63,6 @@ public function __construct($resource) /** * Create a new resource instance. * - * @param mixed ...$parameters * @return static */ public static function make(...$parameters) @@ -80,7 +73,6 @@ public static function make(...$parameters) /** * Create a new anonymous resource collection. * - * @param mixed $resource * @return \Illuminate\Http\Resources\Json\AnonymousResourceCollection */ public static function collection($resource) @@ -95,7 +87,6 @@ public static function collection($resource) /** * Create a new resource collection instance. * - * @param mixed $resource * @return \Illuminate\Http\Resources\Json\AnonymousResourceCollection */ protected static function newCollection($resource) @@ -127,7 +118,6 @@ public function resolve($request = null) /** * Transform the resource into an array. * - * @param \Illuminate\Http\Request $request * @return array|\Illuminate\Contracts\Support\Arrayable|\JsonSerializable */ public function toArray(Request $request) @@ -175,7 +165,6 @@ public function toPrettyJson() /** * Get any additional data that should be returned with the resource array. * - * @param \Illuminate\Http\Request $request * @return array */ public function with(Request $request) @@ -186,7 +175,6 @@ public function with(Request $request) /** * Add additional meta data to the resource response. * - * @param array $data * @return $this */ public function additional(array $data) @@ -209,8 +197,6 @@ public function jsonOptions() /** * Customize the response for a request. * - * @param \Illuminate\Http\Request $request - * @param \Illuminate\Http\JsonResponse $response * @return void */ public function withResponse(Request $request, JsonResponse $response) @@ -265,8 +251,6 @@ public function toResponse($request) /** * Prepare the resource for JSON serialization. - * - * @return array */ public function jsonSerialize(): array { diff --git a/src/Illuminate/Http/Resources/Json/ResourceCollection.php b/src/Illuminate/Http/Resources/Json/ResourceCollection.php index 81cfc1bd3181..a48f38b42d8a 100644 --- a/src/Illuminate/Http/Resources/Json/ResourceCollection.php +++ b/src/Illuminate/Http/Resources/Json/ResourceCollection.php @@ -43,8 +43,6 @@ class ResourceCollection extends JsonResource implements Countable, IteratorAggr /** * Create a new resource instance. - * - * @param mixed $resource */ public function __construct($resource) { @@ -68,7 +66,6 @@ public function preserveQuery() /** * Specify the query string parameters that should be present on pagination links. * - * @param array $query * @return $this */ public function withQuery(array $query) @@ -82,8 +79,6 @@ public function withQuery(array $query) /** * Return the count of items in the resource collection. - * - * @return int */ public function count(): int { @@ -93,7 +88,6 @@ public function count(): int /** * Transform the resource into a JSON array. * - * @param \Illuminate\Http\Request $request * @return array|\Illuminate\Contracts\Support\Arrayable|\JsonSerializable */ public function toArray(Request $request) diff --git a/src/Illuminate/Http/Resources/Json/ResourceResponse.php b/src/Illuminate/Http/Resources/Json/ResourceResponse.php index 1c9d7e60f2c3..062989821db8 100644 --- a/src/Illuminate/Http/Resources/Json/ResourceResponse.php +++ b/src/Illuminate/Http/Resources/Json/ResourceResponse.php @@ -10,15 +10,11 @@ class ResourceResponse implements Responsable { /** * The underlying resource. - * - * @var mixed */ public $resource; /** * Create a new resource response. - * - * @param mixed $resource */ public function __construct($resource) { diff --git a/src/Illuminate/Http/Response.php b/src/Illuminate/Http/Response.php index 6576f47f6a14..44455935f0e7 100755 --- a/src/Illuminate/Http/Response.php +++ b/src/Illuminate/Http/Response.php @@ -21,9 +21,7 @@ class Response extends SymfonyResponse /** * Create a new HTTP response. * - * @param mixed $content * @param int $status - * @param array $headers * * @throws \InvalidArgumentException */ @@ -48,7 +46,6 @@ public function getContent(): string|false /** * Set the content on the response. * - * @param mixed $content * @return $this * * @throws \InvalidArgumentException @@ -86,7 +83,6 @@ public function setContent(mixed $content): static /** * Determine if the given content should be turned into JSON. * - * @param mixed $content * @return bool */ protected function shouldBeJson($content) @@ -101,7 +97,6 @@ protected function shouldBeJson($content) /** * Morph the given content into JSON. * - * @param mixed $content * @return string|false */ protected function morphToJson($content) diff --git a/src/Illuminate/Http/ResponseTrait.php b/src/Illuminate/Http/ResponseTrait.php index c0ddc711c7cd..3016dc6eabd7 100644 --- a/src/Illuminate/Http/ResponseTrait.php +++ b/src/Illuminate/Http/ResponseTrait.php @@ -10,8 +10,6 @@ trait ResponseTrait { /** * The original content of the response. - * - * @var mixed */ public $original; @@ -54,8 +52,6 @@ public function content() /** * Get the original response content. - * - * @return mixed */ public function getOriginalContent() { @@ -158,7 +154,6 @@ public function getCallback() /** * Set the exception to attach to the response. * - * @param \Throwable $e * @return $this */ public function withException(Throwable $e) diff --git a/src/Illuminate/Http/Testing/File.php b/src/Illuminate/Http/Testing/File.php index fbdc7f3ed253..daca895e393d 100644 --- a/src/Illuminate/Http/Testing/File.php +++ b/src/Illuminate/Http/Testing/File.php @@ -103,8 +103,6 @@ public function size($kilobytes) /** * Get the size of the file. - * - * @return int */ public function getSize(): int { @@ -126,8 +124,6 @@ public function mimeType($mimeType) /** * Get the MIME type of the file. - * - * @return string */ public function getMimeType(): string { diff --git a/src/Illuminate/Http/UploadedFile.php b/src/Illuminate/Http/UploadedFile.php index 5c3113021fc5..8d4a22feaeb5 100644 --- a/src/Illuminate/Http/UploadedFile.php +++ b/src/Illuminate/Http/UploadedFile.php @@ -125,7 +125,6 @@ public function clientExtension() /** * Create a new file instance from a base instance. * - * @param \Symfony\Component\HttpFoundation\File\UploadedFile $file * @param bool $test * @return static */ diff --git a/src/Illuminate/Log/Context/ContextLogProcessor.php b/src/Illuminate/Log/Context/ContextLogProcessor.php index 9ac3e97a77dd..d082e0b13152 100644 --- a/src/Illuminate/Log/Context/ContextLogProcessor.php +++ b/src/Illuminate/Log/Context/ContextLogProcessor.php @@ -11,9 +11,6 @@ class ContextLogProcessor implements ContextLogProcessorContract { /** * Add contextual data to the log's "extra" parameter. - * - * @param \Monolog\LogRecord $record - * @return \Monolog\LogRecord */ public function __invoke(LogRecord $record): LogRecord { diff --git a/src/Illuminate/Log/Context/Repository.php b/src/Illuminate/Log/Context/Repository.php index d0a4b98dec9d..a628213bd5eb 100644 --- a/src/Illuminate/Log/Context/Repository.php +++ b/src/Illuminate/Log/Context/Repository.php @@ -123,8 +123,6 @@ public function allHidden() * Retrieve the given key's value. * * @param string $key - * @param mixed $default - * @return mixed */ public function get($key, $default = null) { @@ -135,8 +133,6 @@ public function get($key, $default = null) * Retrieve the given key's hidden value. * * @param string $key - * @param mixed $default - * @return mixed */ public function getHidden($key, $default = null) { @@ -147,8 +143,6 @@ public function getHidden($key, $default = null) * Retrieve the given key's value and then forget it. * * @param string $key - * @param mixed $default - * @return mixed */ public function pull($key, $default = null) { @@ -161,8 +155,6 @@ public function pull($key, $default = null) * Retrieve the given key's hidden value and then forget it. * * @param string $key - * @param mixed $default - * @return mixed */ public function pullHidden($key, $default = null) { @@ -219,7 +211,6 @@ public function exceptHidden($keys) * Add a context value. * * @param string|array $key - * @param mixed $value * @return $this */ public function add($key, $value = null) @@ -236,7 +227,6 @@ public function add($key, $value = null) * Add a hidden context value. * * @param string|array $key - * @param mixed $value * @return $this */ public function addHidden($key, #[\SensitiveParameter] $value = null) @@ -253,8 +243,6 @@ public function addHidden($key, #[\SensitiveParameter] $value = null) * Add a context value if it does not exist yet, and return the value. * * @param string $key - * @param mixed $value - * @return mixed */ public function remember($key, $value) { @@ -271,8 +259,6 @@ public function remember($key, $value) * Add a hidden context value if it does not exist yet, and return the value. * * @param string $key - * @param mixed $value - * @return mixed */ public function rememberHidden($key, #[\SensitiveParameter] $value) { @@ -319,7 +305,6 @@ public function forgetHidden($key) * Add a context value if it does not exist yet. * * @param string $key - * @param mixed $value * @return $this */ public function addIf($key, $value) @@ -335,7 +320,6 @@ public function addIf($key, $value) * Add a hidden context value if it does not exist yet. * * @param string $key - * @param mixed $value * @return $this */ public function addHiddenIf($key, #[\SensitiveParameter] $value) @@ -351,7 +335,6 @@ public function addHiddenIf($key, #[\SensitiveParameter] $value) * Push the given values onto the key's stack. * * @param string $key - * @param mixed ...$values * @return $this * * @throws \RuntimeException @@ -374,7 +357,6 @@ public function push($key, ...$values) * Pop the latest value from the key's stack. * * @param string $key - * @return mixed * * @throws \RuntimeException */ @@ -391,7 +373,6 @@ public function pop($key) * Push the given hidden values onto the key's stack. * * @param string $key - * @param mixed ...$values * @return $this * * @throws \RuntimeException @@ -414,7 +395,6 @@ public function pushHidden($key, ...$values) * Pop the latest hidden value from the key's stack. * * @param string $key - * @return mixed * * @throws \RuntimeException */ @@ -430,8 +410,6 @@ public function popHidden($key) /** * Increment a context counter. * - * @param string $key - * @param int $amount * @return $this */ public function increment(string $key, int $amount = 1) @@ -447,8 +425,6 @@ public function increment(string $key, int $amount = 1) /** * Decrement a context counter. * - * @param string $key - * @param int $amount * @return $this */ public function decrement(string $key, int $amount = 1) @@ -459,10 +435,6 @@ public function decrement(string $key, int $amount = 1) /** * Determine if the given value is in the given stack. * - * @param string $key - * @param mixed $value - * @param bool $strict - * @return bool * * @throws \RuntimeException */ @@ -486,10 +458,6 @@ public function stackContains(string $key, mixed $value, bool $strict = false): /** * Determine if the given value is in the given hidden stack. * - * @param string $key - * @param mixed $value - * @param bool $strict - * @return bool * * @throws \RuntimeException */ @@ -537,10 +505,8 @@ protected function isHiddenStackable($key) /** * Run the callback function with the given context values and restore the original context state when complete. * - * @param callable $callback * @param array $data * @param array $hidden - * @return mixed * * @throws \Throwable */ diff --git a/src/Illuminate/Log/Events/MessageLogged.php b/src/Illuminate/Log/Events/MessageLogged.php index b3458815af5d..bcd20427c06b 100644 --- a/src/Illuminate/Log/Events/MessageLogged.php +++ b/src/Illuminate/Log/Events/MessageLogged.php @@ -30,7 +30,6 @@ class MessageLogged * * @param string $level * @param string $message - * @param array $context */ public function __construct($level, $message, array $context = []) { diff --git a/src/Illuminate/Log/LogManager.php b/src/Illuminate/Log/LogManager.php index 2987694f1941..582ab2b29edd 100644 --- a/src/Illuminate/Log/LogManager.php +++ b/src/Illuminate/Log/LogManager.php @@ -78,7 +78,6 @@ public function __construct($app) /** * Build an on-demand log channel. * - * @param array $config * @return \Psr\Log\LoggerInterface */ public function build(array $config) @@ -91,7 +90,6 @@ public function build(array $config) /** * Create a new, on-demand aggregate logger instance. * - * @param array $channels * @param string|null $channel * @return \Psr\Log\LoggerInterface */ @@ -129,7 +127,6 @@ public function driver($driver = null) * Attempt to get the log from the local cache. * * @param string $name - * @param array|null $config * @return \Psr\Log\LoggerInterface */ protected function get($name, ?array $config = null) @@ -160,7 +157,6 @@ protected function get($name, ?array $config = null) * Apply the configured taps for the logger. * * @param string $name - * @param \Illuminate\Log\Logger $logger * @return \Illuminate\Log\Logger */ protected function tap($name, Logger $logger) @@ -209,7 +205,6 @@ protected function createEmergencyLogger() * Resolve the given log instance by name. * * @param string $name - * @param array|null $config * @return \Psr\Log\LoggerInterface * * @throws \InvalidArgumentException @@ -237,9 +232,6 @@ protected function resolve($name, ?array $config = null) /** * Call a custom driver creator. - * - * @param array $config - * @return mixed */ protected function callCustomCreator(array $config) { @@ -249,7 +241,6 @@ protected function callCustomCreator(array $config) /** * Create a custom log driver instance. * - * @param array $config * @return \Psr\Log\LoggerInterface */ protected function createCustomDriver(array $config) @@ -262,7 +253,6 @@ protected function createCustomDriver(array $config) /** * Create an aggregate log driver instance. * - * @param array $config * @return \Psr\Log\LoggerInterface */ protected function createStackDriver(array $config) @@ -297,7 +287,6 @@ protected function createStackDriver(array $config) /** * Create an instance of the single file log driver. * - * @param array $config * @return \Psr\Log\LoggerInterface */ protected function createSingleDriver(array $config) @@ -315,7 +304,6 @@ protected function createSingleDriver(array $config) /** * Create an instance of the daily file log driver. * - * @param array $config * @return \Psr\Log\LoggerInterface */ protected function createDailyDriver(array $config) @@ -331,7 +319,6 @@ protected function createDailyDriver(array $config) /** * Create an instance of the Slack log driver. * - * @param array $config * @return \Psr\Log\LoggerInterface */ protected function createSlackDriver(array $config) @@ -355,7 +342,6 @@ protected function createSlackDriver(array $config) /** * Create an instance of the syslog log driver. * - * @param array $config * @return \Psr\Log\LoggerInterface */ protected function createSyslogDriver(array $config) @@ -371,7 +357,6 @@ protected function createSyslogDriver(array $config) /** * Create an instance of the "error log" log driver. * - * @param array $config * @return \Psr\Log\LoggerInterface */ protected function createErrorlogDriver(array $config) @@ -386,7 +371,6 @@ protected function createErrorlogDriver(array $config) /** * Create an instance of any handler available in Monolog. * - * @param array $config * @return \Psr\Log\LoggerInterface * * @throws \InvalidArgumentException @@ -434,7 +418,6 @@ protected function createMonologDriver(array $config) /** * Prepare the handlers for usage by Monolog. * - * @param array $handlers * @return array */ protected function prepareHandlers(array $handlers) @@ -449,8 +432,6 @@ protected function prepareHandlers(array $handlers) /** * Prepare the handler for usage by Monolog. * - * @param \Monolog\Handler\HandlerInterface $handler - * @param array $config * @return \Monolog\Handler\HandlerInterface */ protected function prepareHandler(HandlerInterface $handler, array $config = []) @@ -491,7 +472,6 @@ protected function formatter() /** * Share context across channels and stacks. * - * @param array $context * @return $this */ public function shareContext(array $context) @@ -590,7 +570,6 @@ public function setDefaultDriver($name) * Register a custom driver creator Closure. * * @param string $driver - * @param \Closure $callback * * @param-closure-this $this $callback * @@ -653,8 +632,6 @@ public function getChannels() * System is unusable. * * @param string|\Stringable $message - * @param array $context - * @return void */ public function emergency($message, array $context = []): void { @@ -668,8 +645,6 @@ public function emergency($message, array $context = []): void * trigger the SMS alerts and wake you up. * * @param string|\Stringable $message - * @param array $context - * @return void */ public function alert($message, array $context = []): void { @@ -682,8 +657,6 @@ public function alert($message, array $context = []): void * Example: Application component unavailable, unexpected exception. * * @param string|\Stringable $message - * @param array $context - * @return void */ public function critical($message, array $context = []): void { @@ -695,8 +668,6 @@ public function critical($message, array $context = []): void * be logged and monitored. * * @param string|\Stringable $message - * @param array $context - * @return void */ public function error($message, array $context = []): void { @@ -710,8 +681,6 @@ public function error($message, array $context = []): void * that are not necessarily wrong. * * @param string|\Stringable $message - * @param array $context - * @return void */ public function warning($message, array $context = []): void { @@ -722,8 +691,6 @@ public function warning($message, array $context = []): void * Normal but significant events. * * @param string|\Stringable $message - * @param array $context - * @return void */ public function notice($message, array $context = []): void { @@ -736,8 +703,6 @@ public function notice($message, array $context = []): void * Example: User logs in, SQL logs. * * @param string|\Stringable $message - * @param array $context - * @return void */ public function info($message, array $context = []): void { @@ -748,8 +713,6 @@ public function info($message, array $context = []): void * Detailed debug information. * * @param string|\Stringable $message - * @param array $context - * @return void */ public function debug($message, array $context = []): void { @@ -759,10 +722,7 @@ public function debug($message, array $context = []): void /** * Logs with an arbitrary level. * - * @param mixed $level * @param string|\Stringable $message - * @param array $context - * @return void */ public function log($level, $message, array $context = []): void { @@ -787,7 +747,6 @@ public function setApplication($app) * * @param string $method * @param array $parameters - * @return mixed */ public function __call($method, $parameters) { diff --git a/src/Illuminate/Log/Logger.php b/src/Illuminate/Log/Logger.php index 72a90b902596..21288a128c73 100755 --- a/src/Illuminate/Log/Logger.php +++ b/src/Illuminate/Log/Logger.php @@ -38,9 +38,6 @@ class Logger implements LoggerInterface /** * Create a new log writer instance. - * - * @param \Psr\Log\LoggerInterface $logger - * @param \Illuminate\Contracts\Events\Dispatcher|null $dispatcher */ public function __construct(LoggerInterface $logger, ?Dispatcher $dispatcher = null) { @@ -52,8 +49,6 @@ public function __construct(LoggerInterface $logger, ?Dispatcher $dispatcher = n * Log an emergency message to the logs. * * @param \Illuminate\Contracts\Support\Arrayable|\Illuminate\Contracts\Support\Jsonable|\Illuminate\Support\Stringable|array|string $message - * @param array $context - * @return void */ public function emergency($message, array $context = []): void { @@ -64,8 +59,6 @@ public function emergency($message, array $context = []): void * Log an alert message to the logs. * * @param \Illuminate\Contracts\Support\Arrayable|\Illuminate\Contracts\Support\Jsonable|\Illuminate\Support\Stringable|array|string $message - * @param array $context - * @return void */ public function alert($message, array $context = []): void { @@ -76,8 +69,6 @@ public function alert($message, array $context = []): void * Log a critical message to the logs. * * @param \Illuminate\Contracts\Support\Arrayable|\Illuminate\Contracts\Support\Jsonable|\Illuminate\Support\Stringable|array|string $message - * @param array $context - * @return void */ public function critical($message, array $context = []): void { @@ -88,8 +79,6 @@ public function critical($message, array $context = []): void * Log an error message to the logs. * * @param \Illuminate\Contracts\Support\Arrayable|\Illuminate\Contracts\Support\Jsonable|\Illuminate\Support\Stringable|array|string $message - * @param array $context - * @return void */ public function error($message, array $context = []): void { @@ -100,8 +89,6 @@ public function error($message, array $context = []): void * Log a warning message to the logs. * * @param \Illuminate\Contracts\Support\Arrayable|\Illuminate\Contracts\Support\Jsonable|\Illuminate\Support\Stringable|array|string $message - * @param array $context - * @return void */ public function warning($message, array $context = []): void { @@ -112,8 +99,6 @@ public function warning($message, array $context = []): void * Log a notice to the logs. * * @param \Illuminate\Contracts\Support\Arrayable|\Illuminate\Contracts\Support\Jsonable|\Illuminate\Support\Stringable|array|string $message - * @param array $context - * @return void */ public function notice($message, array $context = []): void { @@ -124,8 +109,6 @@ public function notice($message, array $context = []): void * Log an informational message to the logs. * * @param \Illuminate\Contracts\Support\Arrayable|\Illuminate\Contracts\Support\Jsonable|\Illuminate\Support\Stringable|array|string $message - * @param array $context - * @return void */ public function info($message, array $context = []): void { @@ -136,8 +119,6 @@ public function info($message, array $context = []): void * Log a debug message to the logs. * * @param \Illuminate\Contracts\Support\Arrayable|\Illuminate\Contracts\Support\Jsonable|\Illuminate\Support\Stringable|array|string $message - * @param array $context - * @return void */ public function debug($message, array $context = []): void { @@ -149,8 +130,6 @@ public function debug($message, array $context = []): void * * @param string $level * @param \Illuminate\Contracts\Support\Arrayable|\Illuminate\Contracts\Support\Jsonable|\Illuminate\Support\Stringable|array|string $message - * @param array $context - * @return void */ public function log($level, $message, array $context = []): void { @@ -162,8 +141,6 @@ public function log($level, $message, array $context = []): void * * @param string $level * @param \Illuminate\Contracts\Support\Arrayable|\Illuminate\Contracts\Support\Jsonable|\Illuminate\Support\Stringable|array|string $message - * @param array $context - * @return void */ public function write($level, $message, array $context = []): void { @@ -176,7 +153,6 @@ public function write($level, $message, array $context = []): void * @param string $level * @param \Illuminate\Contracts\Support\Arrayable|\Illuminate\Contracts\Support\Jsonable|\Illuminate\Support\Stringable|array|string $message * @param array $context - * @return void */ protected function writeLog($level, $message, $context): void { @@ -191,7 +167,6 @@ protected function writeLog($level, $message, $context): void /** * Add context to all future logs. * - * @param array $context * @return $this */ public function withContext(array $context = []) @@ -221,7 +196,6 @@ public function withoutContext(?array $keys = null) /** * Register a new callback handler for when a log event is triggered. * - * @param \Closure $callback * @return void * * @throws \RuntimeException @@ -240,7 +214,6 @@ public function listen(Closure $callback) * * @param string $level * @param string $message - * @param array $context * @return void */ protected function fireLogEvent($level, $message, array $context = []) @@ -299,7 +272,6 @@ public function getEventDispatcher() /** * Set the event dispatcher instance. * - * @param \Illuminate\Contracts\Events\Dispatcher $dispatcher * @return void */ public function setEventDispatcher(Dispatcher $dispatcher) @@ -312,7 +284,6 @@ public function setEventDispatcher(Dispatcher $dispatcher) * * @param string $method * @param array $parameters - * @return mixed */ public function __call($method, $parameters) { diff --git a/src/Illuminate/Log/ParsesLogConfiguration.php b/src/Illuminate/Log/ParsesLogConfiguration.php index b658575ad607..878585b44994 100644 --- a/src/Illuminate/Log/ParsesLogConfiguration.php +++ b/src/Illuminate/Log/ParsesLogConfiguration.php @@ -33,7 +33,6 @@ abstract protected function getFallbackChannelName(); /** * Parse the string level into a Monolog constant. * - * @param array $config * @return int * * @throws \InvalidArgumentException @@ -52,7 +51,6 @@ protected function level(array $config) /** * Parse the action level from the given configuration. * - * @param array $config * @return int * * @throws \InvalidArgumentException @@ -71,7 +69,6 @@ protected function actionLevel(array $config) /** * Extract the log channel from the given configuration. * - * @param array $config * @return string */ protected function parseChannel(array $config) diff --git a/src/Illuminate/Log/functions.php b/src/Illuminate/Log/functions.php index 7389f83315ff..70b27dd0c73b 100644 --- a/src/Illuminate/Log/functions.php +++ b/src/Illuminate/Log/functions.php @@ -7,7 +7,6 @@ * Log a debug message to the logs. * * @param string|null $message - * @param array $context * @return ($message is null ? \Illuminate\Log\LogManager : null) */ function log($message = null, array $context = []): ?LogManager diff --git a/src/Illuminate/Macroable/Traits/Macroable.php b/src/Illuminate/Macroable/Traits/Macroable.php index 5490f1ea2b13..eb119a7b8c59 100644 --- a/src/Illuminate/Macroable/Traits/Macroable.php +++ b/src/Illuminate/Macroable/Traits/Macroable.php @@ -79,7 +79,6 @@ public static function flushMacros() * * @param string $method * @param array $parameters - * @return mixed * * @throws \BadMethodCallException */ @@ -105,7 +104,6 @@ public static function __callStatic($method, $parameters) * * @param string $method * @param array $parameters - * @return mixed * * @throws \BadMethodCallException */ diff --git a/src/Illuminate/Mail/Attachment.php b/src/Illuminate/Mail/Attachment.php index 8e2e87ed5496..222767f17570 100644 --- a/src/Illuminate/Mail/Attachment.php +++ b/src/Illuminate/Mail/Attachment.php @@ -36,8 +36,6 @@ class Attachment /** * Create a mail attachment. - * - * @param \Closure $resolver */ private function __construct(Closure $resolver) { @@ -69,7 +67,6 @@ public static function fromUrl($url) /** * Create a mail attachment from in-memory data. * - * @param \Closure $data * @param string|null $name * @return static */ @@ -83,7 +80,6 @@ public static function fromData(Closure $data, $name = null) /** * Create a mail attachment from an UploadedFile instance. * - * @param \Illuminate\Http\UploadedFile $file * @return static */ public static function fromUploadedFile(UploadedFile $file) @@ -158,10 +154,6 @@ public function withMime($mime) /** * Attach the attachment with the given strategies. - * - * @param \Closure $pathStrategy - * @param \Closure $dataStrategy - * @return mixed */ public function attachWith(Closure $pathStrategy, Closure $dataStrategy) { @@ -173,7 +165,6 @@ public function attachWith(Closure $pathStrategy, Closure $dataStrategy) * * @param \Illuminate\Mail\Mailable|\Illuminate\Mail\Message|\Illuminate\Notifications\Messages\MailMessage $mail * @param array $options - * @return mixed */ public function attachTo($mail, $options = []) { @@ -200,7 +191,6 @@ function ($data) use ($mail, $options) { /** * Determine if the given attachment is equivalent to this attachment. * - * @param \Illuminate\Mail\Attachment $attachment * @param array $options * @return bool */ diff --git a/src/Illuminate/Mail/Events/MessageSent.php b/src/Illuminate/Mail/Events/MessageSent.php index 8a5ae558cb36..b7aeefb3f4fb 100644 --- a/src/Illuminate/Mail/Events/MessageSent.php +++ b/src/Illuminate/Mail/Events/MessageSent.php @@ -42,7 +42,6 @@ public function __serialize() /** * Marshal the object from its serialized data. * - * @param array $data * @return void */ public function __unserialize(array $data) @@ -58,7 +57,6 @@ public function __unserialize(array $data) * Dynamically get the original message. * * @param string $key - * @return mixed * * @throws \Exception */ diff --git a/src/Illuminate/Mail/MailManager.php b/src/Illuminate/Mail/MailManager.php index 078630fa0968..cbade2fc8bd6 100644 --- a/src/Illuminate/Mail/MailManager.php +++ b/src/Illuminate/Mail/MailManager.php @@ -156,7 +156,6 @@ public function build($config) /** * Create a new transport instance. * - * @param array $config * @return \Symfony\Component\Mailer\Transport\TransportInterface * * @throws \InvalidArgumentException @@ -183,7 +182,6 @@ public function createSymfonyTransport(array $config) /** * Create an instance of the Symfony SMTP Transport driver. * - * @param array $config * @return \Symfony\Component\Mailer\Transport\Smtp\EsmtpTransport */ protected function createSmtpTransport(array $config) @@ -211,8 +209,6 @@ protected function createSmtpTransport(array $config) /** * Configure the additional SMTP driver options. * - * @param \Symfony\Component\Mailer\Transport\Smtp\EsmtpTransport $transport - * @param array $config * @return \Symfony\Component\Mailer\Transport\Smtp\EsmtpTransport */ protected function configureSmtpTransport(EsmtpTransport $transport, array $config) @@ -235,7 +231,6 @@ protected function configureSmtpTransport(EsmtpTransport $transport, array $conf /** * Create an instance of the Symfony Sendmail Transport driver. * - * @param array $config * @return \Symfony\Component\Mailer\Transport\SendmailTransport */ protected function createSendmailTransport(array $config) @@ -248,7 +243,6 @@ protected function createSendmailTransport(array $config) /** * Create an instance of the Symfony Amazon SES Transport driver. * - * @param array $config * @return \Illuminate\Mail\Transport\SesTransport */ protected function createSesTransport(array $config) @@ -270,7 +264,6 @@ protected function createSesTransport(array $config) /** * Create an instance of the Symfony Amazon SES V2 Transport driver. * - * @param array $config * @return \Illuminate\Mail\Transport\SesV2Transport */ protected function createSesV2Transport(array $config) @@ -292,7 +285,6 @@ protected function createSesV2Transport(array $config) /** * Add the SES credentials to the configuration array. * - * @param array $config * @return array */ protected function addSesCredentials(array $config) @@ -311,7 +303,6 @@ protected function addSesCredentials(array $config) /** * Create an instance of the Resend Transport driver. * - * @param array $config * @return \Illuminate\Mail\Transport\ResendTransprot */ protected function createResendTransport(array $config) @@ -334,7 +325,6 @@ protected function createMailTransport() /** * Create an instance of the Symfony Mailgun Transport driver. * - * @param array $config * @return \Symfony\Component\Mailer\Transport\TransportInterface */ protected function createMailgunTransport(array $config) @@ -356,7 +346,6 @@ protected function createMailgunTransport(array $config) /** * Create an instance of the Symfony Postmark Transport driver. * - * @param array $config * @return \Symfony\Component\Mailer\Bridge\Postmark\Transport\PostmarkApiTransport */ protected function createPostmarkTransport(array $config) @@ -380,7 +369,6 @@ protected function createPostmarkTransport(array $config) /** * Create an instance of the Symfony Failover Transport driver. * - * @param array $config * @return \Symfony\Component\Mailer\Transport\FailoverTransport */ protected function createFailoverTransport(array $config) @@ -391,7 +379,6 @@ protected function createFailoverTransport(array $config) /** * Create an instance of the Symfony Roundrobin Transport driver. * - * @param array $config * @return \Symfony\Component\Mailer\Transport\RoundRobinTransport */ protected function createRoundrobinTransport(array $config) @@ -404,7 +391,6 @@ protected function createRoundrobinTransport(array $config) * * @template TClass of \Symfony\Component\Mailer\Transport\RoundRobinTransport * - * @param array $config * @param class-string $class * @return TClass */ @@ -433,7 +419,6 @@ protected function createRoundrobinTransportOfClass(array $config, string $class /** * Create an instance of the Log Transport driver. * - * @param array $config * @return \Illuminate\Mail\Transport\LogTransport */ protected function createLogTransport(array $config) @@ -478,8 +463,6 @@ protected function getHttpClient(array $config) * Set a global address on the mailer by type. * * @param \Illuminate\Mail\Mailer $mailer - * @param array $config - * @param string $type * @return void */ protected function setGlobalAddress($mailer, array $config, string $type) @@ -494,7 +477,6 @@ protected function setGlobalAddress($mailer, array $config, string $type) /** * Get the mail connection configuration. * - * @param string $name * @return array */ protected function getConfig(string $name) @@ -532,7 +514,6 @@ public function getDefaultDriver() /** * Set the default mail driver name. * - * @param string $name * @return void */ public function setDefaultDriver(string $name) @@ -561,7 +542,6 @@ public function purge($name = null) * Register a custom transport creator Closure. * * @param string $driver - * @param \Closure $callback * @return $this */ public function extend($driver, Closure $callback) @@ -611,7 +591,6 @@ public function forgetMailers() * * @param string $method * @param array $parameters - * @return mixed */ public function __call($method, $parameters) { diff --git a/src/Illuminate/Mail/Mailable.php b/src/Illuminate/Mail/Mailable.php index 2106b1750893..ab32b89c2a97 100644 --- a/src/Illuminate/Mail/Mailable.php +++ b/src/Illuminate/Mail/Mailable.php @@ -218,9 +218,6 @@ public function send($mailer) /** * Queue the message for sending. - * - * @param \Illuminate\Contracts\Queue\Factory $queue - * @return mixed */ public function queue(Queue $queue) { @@ -241,8 +238,6 @@ public function queue(Queue $queue) * Deliver the queued message after (n) seconds. * * @param \DateTimeInterface|\DateInterval|int $delay - * @param \Illuminate\Contracts\Queue\Factory $queue - * @return mixed */ public function later($delay, Queue $queue) { @@ -257,8 +252,6 @@ public function later($delay, Queue $queue) /** * Make the queued mailable job instance. - * - * @return mixed */ protected function newQueuedJob() { @@ -769,7 +762,6 @@ protected function addressesToArray($address, $name) /** * Convert the given recipient into an object. * - * @param mixed $recipient * @return object */ protected function normalizeRecipient($recipient) @@ -877,7 +869,6 @@ public function hasSubject($subject) * Set the Markdown template for the message. * * @param string $view - * @param array $data * @return $this */ public function markdown($view, array $data = []) @@ -892,7 +883,6 @@ public function markdown($view, array $data = []) * Set the view and view data for the message. * * @param string $view - * @param array $data * @return $this */ public function view($view, array $data = []) @@ -920,7 +910,6 @@ public function html($html) * Set the plain text view for the message. * * @param string $textView - * @param array $data * @return $this */ public function text($textView, array $data = []) @@ -935,7 +924,6 @@ public function text($textView, array $data = []) * Set the view data for the message. * * @param string|array $key - * @param mixed $value * @return $this */ public function with($key, $value = null) @@ -953,7 +941,6 @@ public function with($key, $value = null) * Attach a file to the message. * * @param string|\Illuminate\Contracts\Mail\Attachable|\Illuminate\Mail\Attachment $file - * @param array $options * @return $this */ public function attach($file, array $options = []) @@ -997,7 +984,6 @@ public function attachMany($files) * Determine if the mailable has the given attachment. * * @param string|\Illuminate\Contracts\Mail\Attachable|\Illuminate\Mail\Attachment $file - * @param array $options * @return bool */ public function hasAttachment($file, array $options = []) @@ -1058,7 +1044,6 @@ private function hasEnvelopeAttachment($attachment, $options = []) * * @param string $path * @param string|null $name - * @param array $options * @return $this */ public function attachFromStorage($path, $name = null, array $options = []) @@ -1072,7 +1057,6 @@ public function attachFromStorage($path, $name = null, array $options = []) * @param string $disk * @param string $path * @param string|null $name - * @param array $options * @return $this */ public function attachFromStorageDisk($disk, $path, $name = null, array $options = []) @@ -1094,7 +1078,6 @@ public function attachFromStorageDisk($disk, $path, $name = null, array $options * * @param string $path * @param string|null $name - * @param array $options * @return bool */ public function hasAttachmentFromStorage($path, $name = null, array $options = []) @@ -1108,7 +1091,6 @@ public function hasAttachmentFromStorage($path, $name = null, array $options = [ * @param string $disk * @param string $path * @param string|null $name - * @param array $options * @return bool */ public function hasAttachmentFromStorageDisk($disk, $path, $name = null, array $options = []) @@ -1126,7 +1108,6 @@ public function hasAttachmentFromStorageDisk($disk, $path, $name = null, array $ * * @param string $data * @param string $name - * @param array $options * @return $this */ public function attachData($data, $name, array $options = []) @@ -1144,7 +1125,6 @@ public function attachData($data, $name, array $options = []) * * @param string $data * @param string $name - * @param array $options * @return bool */ public function hasAttachedData($data, $name, array $options = []) @@ -1517,7 +1497,6 @@ public function assertSeeInOrderInText($strings) * Assert the mailable has the given attachment. * * @param string|\Illuminate\Contracts\Mail\Attachable|\Illuminate\Mail\Attachment $file - * @param array $options * @return $this */ public function assertHasAttachment($file, array $options = []) @@ -1537,7 +1516,6 @@ public function assertHasAttachment($file, array $options = []) * * @param string $data * @param string $name - * @param array $options * @return $this */ public function assertHasAttachedData($data, $name, array $options = []) @@ -1557,7 +1535,6 @@ public function assertHasAttachedData($data, $name, array $options = []) * * @param string $path * @param string|null $name - * @param array $options * @return $this */ public function assertHasAttachmentFromStorage($path, $name = null, array $options = []) @@ -1578,7 +1555,6 @@ public function assertHasAttachmentFromStorage($path, $name = null, array $optio * @param string $disk * @param string $path * @param string|null $name - * @param array $options * @return $this */ public function assertHasAttachmentFromStorageDisk($disk, $path, $name = null, array $options = []) @@ -1855,7 +1831,6 @@ public function withSymfonyMessage($callback) /** * Register a callback to be called while building the view data. * - * @param callable $callback * @return void */ public static function buildViewDataUsing(callable $callback) diff --git a/src/Illuminate/Mail/Mailables/Address.php b/src/Illuminate/Mail/Mailables/Address.php index 6a03e920e78d..19d40e62b323 100644 --- a/src/Illuminate/Mail/Mailables/Address.php +++ b/src/Illuminate/Mail/Mailables/Address.php @@ -20,9 +20,6 @@ class Address /** * Create a new address instance. - * - * @param string $address - * @param string|null $name */ public function __construct(string $address, ?string $name = null) { diff --git a/src/Illuminate/Mail/Mailables/Content.php b/src/Illuminate/Mail/Mailables/Content.php index 27a7bf6a7746..58624e9de4c7 100644 --- a/src/Illuminate/Mail/Mailables/Content.php +++ b/src/Illuminate/Mail/Mailables/Content.php @@ -55,12 +55,7 @@ class Content /** * Create a new content definition. * - * @param string|null $view - * @param string|null $html - * @param string|null $text * @param string|null $markdown - * @param array $with - * @param string|null $htmlString * * @named-arguments-supported */ @@ -77,7 +72,6 @@ public function __construct(?string $view = null, ?string $html = null, ?string /** * Set the view for the message. * - * @param string $view * @return $this */ public function view(string $view) @@ -90,7 +84,6 @@ public function view(string $view) /** * Set the view for the message. * - * @param string $view * @return $this */ public function html(string $view) @@ -101,7 +94,6 @@ public function html(string $view) /** * Set the plain text view for the message. * - * @param string $view * @return $this */ public function text(string $view) @@ -114,7 +106,6 @@ public function text(string $view) /** * Set the Markdown view for the message. * - * @param string $view * @return $this */ public function markdown(string $view) @@ -127,7 +118,6 @@ public function markdown(string $view) /** * Set the pre-rendered HTML for the message. * - * @param string $html * @return $this */ public function htmlString(string $html) @@ -141,7 +131,6 @@ public function htmlString(string $html) * Add a piece of view data to the message. * * @param array|string $key - * @param mixed $value * @return $this */ public function with($key, $value = null) diff --git a/src/Illuminate/Mail/Mailables/Envelope.php b/src/Illuminate/Mail/Mailables/Envelope.php index 727942d665ff..f8b1d2455f84 100644 --- a/src/Illuminate/Mail/Mailables/Envelope.php +++ b/src/Illuminate/Mail/Mailables/Envelope.php @@ -77,15 +77,10 @@ class Envelope /** * Create a new message envelope instance. * - * @param \Illuminate\Mail\Mailables\Address|string|null $from * @param array $to * @param array $cc * @param array $bcc * @param array $replyTo - * @param string|null $subject - * @param array $tags - * @param array $metadata - * @param \Closure|array $using * * @named-arguments-supported */ @@ -118,7 +113,6 @@ protected function normalizeAddresses($addresses) /** * Specify who the message will be "from". * - * @param \Illuminate\Mail\Mailables\Address|string $address * @param string|null $name * @return $this */ @@ -196,7 +190,6 @@ public function replyTo(Address|array|string $address, $name = null) /** * Set the subject of the message. * - * @param string $subject * @return $this */ public function subject(string $subject) @@ -209,7 +202,6 @@ public function subject(string $subject) /** * Add "tags" to the message. * - * @param array $tags * @return $this */ public function tags(array $tags) @@ -222,7 +214,6 @@ public function tags(array $tags) /** * Add a "tag" to the message. * - * @param string $tag * @return $this */ public function tag(string $tag) @@ -235,8 +226,6 @@ public function tag(string $tag) /** * Add metadata to the message. * - * @param string $key - * @param string|int $value * @return $this */ public function metadata(string $key, string|int $value) @@ -249,7 +238,6 @@ public function metadata(string $key, string|int $value) /** * Add a Symfony Message customization callback to the message. * - * @param \Closure $callback * @return $this */ public function using(Closure $callback) @@ -262,8 +250,6 @@ public function using(Closure $callback) /** * Determine if the message is from the given address. * - * @param string $address - * @param string|null $name * @return bool */ public function isFrom(string $address, ?string $name = null) @@ -279,8 +265,6 @@ public function isFrom(string $address, ?string $name = null) /** * Determine if the message has the given address as a recipient. * - * @param string $address - * @param string|null $name * @return bool */ public function hasTo(string $address, ?string $name = null) @@ -291,8 +275,6 @@ public function hasTo(string $address, ?string $name = null) /** * Determine if the message has the given address as a "cc" recipient. * - * @param string $address - * @param string|null $name * @return bool */ public function hasCc(string $address, ?string $name = null) @@ -303,8 +285,6 @@ public function hasCc(string $address, ?string $name = null) /** * Determine if the message has the given address as a "bcc" recipient. * - * @param string $address - * @param string|null $name * @return bool */ public function hasBcc(string $address, ?string $name = null) @@ -315,8 +295,6 @@ public function hasBcc(string $address, ?string $name = null) /** * Determine if the message has the given address as a "reply to" recipient. * - * @param string $address - * @param string|null $name * @return bool */ public function hasReplyTo(string $address, ?string $name = null) @@ -327,9 +305,6 @@ public function hasReplyTo(string $address, ?string $name = null) /** * Determine if the message has the given recipient. * - * @param array $recipients - * @param string $address - * @param string|null $name * @return bool */ protected function hasRecipient(array $recipients, string $address, ?string $name = null) @@ -347,7 +322,6 @@ protected function hasRecipient(array $recipients, string $address, ?string $nam /** * Determine if the message has the given subject. * - * @param string $subject * @return bool */ public function hasSubject(string $subject) @@ -358,8 +332,6 @@ public function hasSubject(string $subject) /** * Determine if the message has the given metadata. * - * @param string $key - * @param string $value * @return bool */ public function hasMetadata(string $key, string $value) diff --git a/src/Illuminate/Mail/Mailables/Headers.php b/src/Illuminate/Mail/Mailables/Headers.php index 26678f608bec..dcbc62e847ad 100644 --- a/src/Illuminate/Mail/Mailables/Headers.php +++ b/src/Illuminate/Mail/Mailables/Headers.php @@ -34,9 +34,6 @@ class Headers /** * Create a new instance of headers for a message. * - * @param string|null $messageId - * @param array $references - * @param array $text * * @named-arguments-supported */ @@ -50,7 +47,6 @@ public function __construct(?string $messageId = null, array $references = [], a /** * Set the message ID. * - * @param string $messageId * @return $this */ public function messageId(string $messageId) @@ -63,7 +59,6 @@ public function messageId(string $messageId) /** * Set the message IDs referenced by this message. * - * @param array $references * @return $this */ public function references(array $references) @@ -76,7 +71,6 @@ public function references(array $references) /** * Set the headers for this message. * - * @param array $text * @return $this */ public function text(array $text) @@ -88,8 +82,6 @@ public function text(array $text) /** * Get the references header as a string. - * - * @return string */ public function referencesString(): string { diff --git a/src/Illuminate/Mail/Mailer.php b/src/Illuminate/Mail/Mailer.php index b0d3b75bfc80..157e1055c16c 100755 --- a/src/Illuminate/Mail/Mailer.php +++ b/src/Illuminate/Mail/Mailer.php @@ -90,11 +90,6 @@ class Mailer implements MailerContract, MailQueueContract /** * Create a new Mailer instance. - * - * @param string $name - * @param \Illuminate\Contracts\View\Factory $views - * @param \Symfony\Component\Mailer\Transport\TransportInterface $transport - * @param \Illuminate\Contracts\Events\Dispatcher|null $events */ public function __construct(string $name, Factory $views, TransportInterface $transport, ?Dispatcher $events = null) { @@ -154,7 +149,6 @@ public function alwaysTo($address, $name = null) /** * Begin the process of mailing a mailable class instance. * - * @param mixed $users * @param string|null $name * @return \Illuminate\Mail\PendingMail */ @@ -170,7 +164,6 @@ public function to($users, $name = null) /** * Begin the process of mailing a mailable class instance. * - * @param mixed $users * @param string|null $name * @return \Illuminate\Mail\PendingMail */ @@ -186,7 +179,6 @@ public function cc($users, $name = null) /** * Begin the process of mailing a mailable class instance. * - * @param mixed $users * @param string|null $name * @return \Illuminate\Mail\PendingMail */ @@ -203,7 +195,6 @@ public function bcc($users, $name = null) * Send a new message with only an HTML part. * * @param string $html - * @param mixed $callback * @return \Illuminate\Mail\SentMessage|null */ public function html($html, $callback) @@ -215,7 +206,6 @@ public function html($html, $callback) * Send a new message with only a raw text part. * * @param string $text - * @param mixed $callback * @return \Illuminate\Mail\SentMessage|null */ public function raw($text, $callback) @@ -227,8 +217,6 @@ public function raw($text, $callback) * Send a new message with only a plain part. * * @param string $view - * @param array $data - * @param mixed $callback * @return \Illuminate\Mail\SentMessage|null */ public function plain($view, array $data, $callback) @@ -240,7 +228,6 @@ public function plain($view, array $data, $callback) * Render the given message as a view. * * @param string|array $view - * @param array $data * @return string */ public function render($view, array $data = []) @@ -261,8 +248,6 @@ public function render($view, array $data = []) /** * Replace the embedded image attachments with raw, inline image data for browser rendering. * - * @param string $renderedView - * @param array $attachments * @return string */ protected function replaceEmbeddedAttachments(string $renderedView, array $attachments) @@ -290,7 +275,6 @@ protected function replaceEmbeddedAttachments(string $renderedView, array $attac * Send a new message using a view. * * @param \Illuminate\Contracts\Mail\Mailable|string|array $view - * @param array $data * @param \Closure|string|null $callback * @return \Illuminate\Mail\SentMessage|null */ @@ -343,7 +327,6 @@ public function send($view, array $data = [], $callback = null) /** * Send the given mailable. * - * @param \Illuminate\Contracts\Mail\Mailable $mailable * @return \Illuminate\Mail\SentMessage|null */ protected function sendMailable(MailableContract $mailable) @@ -357,7 +340,6 @@ protected function sendMailable(MailableContract $mailable) * Send a new message synchronously using a view. * * @param \Illuminate\Contracts\Mail\Mailable|string|array $mailable - * @param array $data * @param \Closure|string|null $callback * @return \Illuminate\Mail\SentMessage|null */ @@ -465,7 +447,6 @@ protected function setGlobalToAndRemoveCcAndBcc($message) * * @param \Illuminate\Contracts\Mail\Mailable|string|array $view * @param \BackedEnum|string|null $queue - * @return mixed * * @throws \InvalidArgumentException */ @@ -487,7 +468,6 @@ public function queue($view, $queue = null) * * @param \BackedEnum|string|null $queue * @param \Illuminate\Contracts\Mail\Mailable $view - * @return mixed */ public function onQueue($queue, $view) { @@ -501,7 +481,6 @@ public function onQueue($queue, $view) * * @param string $queue * @param \Illuminate\Contracts\Mail\Mailable $view - * @return mixed */ public function queueOn($queue, $view) { @@ -514,7 +493,6 @@ public function queueOn($queue, $view) * @param \DateTimeInterface|\DateInterval|int $delay * @param \Illuminate\Contracts\Mail\Mailable $view * @param string|null $queue - * @return mixed * * @throws \InvalidArgumentException */ @@ -535,7 +513,6 @@ public function later($delay, $view, $queue = null) * @param string $queue * @param \DateTimeInterface|\DateInterval|int $delay * @param \Illuminate\Contracts\Mail\Mailable $view - * @return mixed */ public function laterOn($queue, $delay, $view) { @@ -575,7 +552,6 @@ protected function createMessage() /** * Send a Symfony Email instance. * - * @param \Symfony\Component\Mime\Email $message * @return \Symfony\Component\Mailer\SentMessage|null */ protected function sendSymfonyMessage(Email $message) @@ -642,7 +618,6 @@ public function getViewFactory() /** * Set the Symfony Transport instance. * - * @param \Symfony\Component\Mailer\Transport\TransportInterface $transport * @return void */ public function setSymfonyTransport(TransportInterface $transport) @@ -653,7 +628,6 @@ public function setSymfonyTransport(TransportInterface $transport) /** * Set the queue manager instance. * - * @param \Illuminate\Contracts\Queue\Factory $queue * @return $this */ public function setQueue(QueueContract $queue) diff --git a/src/Illuminate/Mail/Markdown.php b/src/Illuminate/Mail/Markdown.php index d99a232b7f0b..7de0b173f021 100644 --- a/src/Illuminate/Mail/Markdown.php +++ b/src/Illuminate/Mail/Markdown.php @@ -44,9 +44,6 @@ class Markdown /** * Create a new Markdown renderer instance. - * - * @param \Illuminate\Contracts\View\Factory $view - * @param array $options */ public function __construct(ViewFactory $view, array $options = []) { @@ -59,7 +56,6 @@ public function __construct(ViewFactory $view, array $options = []) * Render the Markdown template into HTML. * * @param string $view - * @param array $data * @param \TijsVerkoyen\CssToInlineStyles\CssToInlineStyles|null $inliner * @return \Illuminate\Support\HtmlString */ @@ -116,7 +112,6 @@ function () use ($view, $data) { * Render the Markdown template into text. * * @param string $view - * @param array $data * @return \Illuminate\Support\HtmlString */ public function renderText($view, array $data = []) @@ -136,7 +131,6 @@ public function renderText($view, array $data = []) * Parse the given Markdown text into HTML. * * @param string $text - * @param bool $encoded * @return \Illuminate\Support\HtmlString */ public static function parse($text, bool $encoded = false) @@ -230,7 +224,6 @@ protected function componentPaths() /** * Register new mail component paths. * - * @param array $paths * @return void */ public function loadComponentsFrom(array $paths = []) diff --git a/src/Illuminate/Mail/Message.php b/src/Illuminate/Mail/Message.php index b9a4eb5352ca..f826fbee3ae4 100755 --- a/src/Illuminate/Mail/Message.php +++ b/src/Illuminate/Mail/Message.php @@ -36,8 +36,6 @@ class Message /** * Create a new message instance. - * - * @param \Symfony\Component\Mime\Email $message */ public function __construct(Email $message) { @@ -252,7 +250,6 @@ protected function addAddresses($address, $name, $type) /** * Add an address debug header for a list of recipients. * - * @param string $header * @param \Symfony\Component\Mime\Address[] $addresses * @return $this */ @@ -296,7 +293,6 @@ public function priority($level) * Attach a file to the message. * * @param string|\Illuminate\Contracts\Mail\Attachable|\Illuminate\Mail\Attachment $file - * @param array $options * @return $this */ public function attach($file, array $options = []) @@ -319,7 +315,6 @@ public function attach($file, array $options = []) * * @param string|resource $data * @param string $name - * @param array $options * @return $this */ public function attachData($data, $name, array $options = []) @@ -403,7 +398,6 @@ public function getSymfonyMessage() * * @param string $method * @param array $parameters - * @return mixed */ public function __call($method, $parameters) { diff --git a/src/Illuminate/Mail/PendingMail.php b/src/Illuminate/Mail/PendingMail.php index 0523cac3db95..8ae378cc5e00 100644 --- a/src/Illuminate/Mail/PendingMail.php +++ b/src/Illuminate/Mail/PendingMail.php @@ -48,8 +48,6 @@ class PendingMail /** * Create a new mailable mailer instance. - * - * @param \Illuminate\Contracts\Mail\Mailer $mailer */ public function __construct(MailerContract $mailer) { @@ -72,7 +70,6 @@ public function locale($locale) /** * Set the recipients of the message. * - * @param mixed $users * @return $this */ public function to($users) @@ -89,7 +86,6 @@ public function to($users) /** * Set the recipients of the message. * - * @param mixed $users * @return $this */ public function cc($users) @@ -102,7 +98,6 @@ public function cc($users) /** * Set the recipients of the message. * - * @param mixed $users * @return $this */ public function bcc($users) @@ -115,7 +110,6 @@ public function bcc($users) /** * Send a new mailable message instance. * - * @param \Illuminate\Contracts\Mail\Mailable $mailable * @return \Illuminate\Mail\SentMessage|null */ public function send(MailableContract $mailable) @@ -126,7 +120,6 @@ public function send(MailableContract $mailable) /** * Send a new mailable message instance synchronously. * - * @param \Illuminate\Contracts\Mail\Mailable $mailable * @return \Illuminate\Mail\SentMessage|null */ public function sendNow(MailableContract $mailable) @@ -136,9 +129,6 @@ public function sendNow(MailableContract $mailable) /** * Push the given mailable onto the queue. - * - * @param \Illuminate\Contracts\Mail\Mailable $mailable - * @return mixed */ public function queue(MailableContract $mailable) { @@ -149,8 +139,6 @@ public function queue(MailableContract $mailable) * Deliver the queued message after (n) seconds. * * @param \DateTimeInterface|\DateInterval|int $delay - * @param \Illuminate\Contracts\Mail\Mailable $mailable - * @return mixed */ public function later($delay, MailableContract $mailable) { @@ -160,7 +148,6 @@ public function later($delay, MailableContract $mailable) /** * Populate the mailable with the addresses. * - * @param \Illuminate\Contracts\Mail\Mailable $mailable * @return \Illuminate\Mail\Mailable */ protected function fill(MailableContract $mailable) diff --git a/src/Illuminate/Mail/SendQueuedMailable.php b/src/Illuminate/Mail/SendQueuedMailable.php index a5342da41f50..1388050552ed 100644 --- a/src/Illuminate/Mail/SendQueuedMailable.php +++ b/src/Illuminate/Mail/SendQueuedMailable.php @@ -50,8 +50,6 @@ class SendQueuedMailable /** * Create a new job instance. - * - * @param \Illuminate\Contracts\Mail\Mailable $mailable */ public function __construct(MailableContract $mailable) { @@ -74,7 +72,6 @@ public function __construct(MailableContract $mailable) /** * Handle the queued job. * - * @param \Illuminate\Contracts\Mail\Factory $factory * @return void */ public function handle(MailFactory $factory) @@ -84,8 +81,6 @@ public function handle(MailFactory $factory) /** * Get the number of seconds before a released mailable will be available. - * - * @return mixed */ public function backoff() { diff --git a/src/Illuminate/Mail/SentMessage.php b/src/Illuminate/Mail/SentMessage.php index 036b695e7f5a..98ba99964d88 100644 --- a/src/Illuminate/Mail/SentMessage.php +++ b/src/Illuminate/Mail/SentMessage.php @@ -22,8 +22,6 @@ class SentMessage /** * Create a new SentMessage instance. - * - * @param \Symfony\Component\Mailer\SentMessage $sentMessage */ public function __construct(SymfonySentMessage $sentMessage) { @@ -45,7 +43,6 @@ public function getSymfonySentMessage() * * @param string $method * @param array $parameters - * @return mixed */ public function __call($method, $parameters) { @@ -70,7 +67,6 @@ public function __serialize() /** * Marshal the object from its serialized data. * - * @param array $data * @return void */ public function __unserialize(array $data) diff --git a/src/Illuminate/Mail/TextMessage.php b/src/Illuminate/Mail/TextMessage.php index ba81e3421968..8ab914ba7fce 100644 --- a/src/Illuminate/Mail/TextMessage.php +++ b/src/Illuminate/Mail/TextMessage.php @@ -57,7 +57,6 @@ public function embedData($data, $name, $contentType = null) * * @param string $method * @param array $parameters - * @return mixed */ public function __call($method, $parameters) { diff --git a/src/Illuminate/Mail/Transport/ArrayTransport.php b/src/Illuminate/Mail/Transport/ArrayTransport.php index ae690f8b5a0e..6ec29407461f 100644 --- a/src/Illuminate/Mail/Transport/ArrayTransport.php +++ b/src/Illuminate/Mail/Transport/ArrayTransport.php @@ -56,8 +56,6 @@ public function flush() /** * Get the string representation of the transport. - * - * @return string */ public function __toString(): string { diff --git a/src/Illuminate/Mail/Transport/LogTransport.php b/src/Illuminate/Mail/Transport/LogTransport.php index 90ba275bb202..5cdd7d465270 100644 --- a/src/Illuminate/Mail/Transport/LogTransport.php +++ b/src/Illuminate/Mail/Transport/LogTransport.php @@ -21,8 +21,6 @@ class LogTransport implements Stringable, TransportInterface /** * Create a new log transport instance. - * - * @param \Psr\Log\LoggerInterface $logger */ public function __construct(LoggerInterface $logger) { @@ -59,7 +57,6 @@ public function send(RawMessage $message, ?Envelope $envelope = null): ?SentMess /** * Decode the given quoted printable content. * - * @param string $part * @return string */ protected function decodeQuotedPrintableContent(string $part) @@ -88,8 +85,6 @@ public function logger() /** * Get the string representation of the transport. - * - * @return string */ public function __toString(): string { diff --git a/src/Illuminate/Mail/Transport/SesTransport.php b/src/Illuminate/Mail/Transport/SesTransport.php index f5dbd69e0a94..10a78c8d7c37 100644 --- a/src/Illuminate/Mail/Transport/SesTransport.php +++ b/src/Illuminate/Mail/Transport/SesTransport.php @@ -31,7 +31,6 @@ class SesTransport extends AbstractTransport implements Stringable /** * Create a new SES transport instance. * - * @param \Aws\Ses\SesClient $ses * @param array $options */ public function __construct(SesClient $ses, $options = []) @@ -96,7 +95,6 @@ protected function doSend(SentMessage $message): void /** * Extract the SES list management options, if applicable. * - * @param \Symfony\Component\Mailer\SentMessage $message * @return array|null */ protected function listManagementOptions(SentMessage $message) @@ -131,7 +129,6 @@ public function getOptions() /** * Set the transmission options being used by the transport. * - * @param array $options * @return array */ public function setOptions(array $options) @@ -141,8 +138,6 @@ public function setOptions(array $options) /** * Get the string representation of the transport. - * - * @return string */ public function __toString(): string { diff --git a/src/Illuminate/Mail/Transport/SesV2Transport.php b/src/Illuminate/Mail/Transport/SesV2Transport.php index ff918dc3bad9..0433c0d9e3eb 100644 --- a/src/Illuminate/Mail/Transport/SesV2Transport.php +++ b/src/Illuminate/Mail/Transport/SesV2Transport.php @@ -31,7 +31,6 @@ class SesV2Transport extends AbstractTransport implements Stringable /** * Create a new SES V2 transport instance. * - * @param \Aws\SesV2\SesV2Client $ses * @param array $options */ public function __construct(SesV2Client $ses, $options = []) @@ -135,7 +134,6 @@ public function getOptions() /** * Set the transmission options being used by the transport. * - * @param array $options * @return array */ public function setOptions(array $options) @@ -145,8 +143,6 @@ public function setOptions(array $options) /** * Get the string representation of the transport. - * - * @return string */ public function __toString(): string { diff --git a/src/Illuminate/Notifications/AnonymousNotifiable.php b/src/Illuminate/Notifications/AnonymousNotifiable.php index aa4d7bbc7b42..7540a54d44c9 100644 --- a/src/Illuminate/Notifications/AnonymousNotifiable.php +++ b/src/Illuminate/Notifications/AnonymousNotifiable.php @@ -18,7 +18,6 @@ class AnonymousNotifiable * Add routing information to the target. * * @param string $channel - * @param mixed $route * @return $this * * @throws \InvalidArgumentException @@ -37,7 +36,6 @@ public function route($channel, $route) /** * Send the given notification. * - * @param mixed $notification * @return void */ public function notify($notification) @@ -48,7 +46,6 @@ public function notify($notification) /** * Send the given notification immediately. * - * @param mixed $notification * @return void */ public function notifyNow($notification) @@ -60,7 +57,6 @@ public function notifyNow($notification) * Get the notification routing information for the given driver. * * @param string $driver - * @return mixed */ public function routeNotificationFor($driver) { @@ -69,8 +65,6 @@ public function routeNotificationFor($driver) /** * Get the value of the notifiable's primary key. - * - * @return mixed */ public function getKey() { diff --git a/src/Illuminate/Notifications/ChannelManager.php b/src/Illuminate/Notifications/ChannelManager.php index 85bb615bd06c..77cdf7a0bb9b 100644 --- a/src/Illuminate/Notifications/ChannelManager.php +++ b/src/Illuminate/Notifications/ChannelManager.php @@ -29,7 +29,6 @@ class ChannelManager extends Manager implements DispatcherContract, FactoryContr * Send the given notification to the given notifiable entities. * * @param \Illuminate\Support\Collection|mixed $notifiables - * @param mixed $notification * @return void */ public function send($notifiables, $notification) @@ -43,8 +42,6 @@ public function send($notifiables, $notification) * Send the given notification immediately. * * @param \Illuminate\Support\Collection|mixed $notifiables - * @param mixed $notification - * @param array|null $channels * @return void */ public function sendNow($notifiables, $notification, ?array $channels = null) @@ -58,7 +55,6 @@ public function sendNow($notifiables, $notification, ?array $channels = null) * Get a channel instance. * * @param string|null $name - * @return mixed */ public function channel($name = null) { @@ -99,7 +95,6 @@ protected function createMailDriver() * Create a new driver instance. * * @param string $driver - * @return mixed * * @throws \InvalidArgumentException */ diff --git a/src/Illuminate/Notifications/Channels/BroadcastChannel.php b/src/Illuminate/Notifications/Channels/BroadcastChannel.php index cc51f7188b46..71ecaf8b36b3 100644 --- a/src/Illuminate/Notifications/Channels/BroadcastChannel.php +++ b/src/Illuminate/Notifications/Channels/BroadcastChannel.php @@ -19,8 +19,6 @@ class BroadcastChannel /** * Create a new broadcast channel. - * - * @param \Illuminate\Contracts\Events\Dispatcher $events */ public function __construct(Dispatcher $events) { @@ -30,8 +28,6 @@ public function __construct(Dispatcher $events) /** * Send the given notification. * - * @param mixed $notifiable - * @param \Illuminate\Notifications\Notification $notification * @return array|null */ public function send($notifiable, Notification $notification) @@ -53,9 +49,6 @@ public function send($notifiable, Notification $notification) /** * Get the data for the notification. * - * @param mixed $notifiable - * @param \Illuminate\Notifications\Notification $notification - * @return mixed * * @throws \RuntimeException */ diff --git a/src/Illuminate/Notifications/Channels/DatabaseChannel.php b/src/Illuminate/Notifications/Channels/DatabaseChannel.php index dcfb891382b6..8e20d27158a7 100644 --- a/src/Illuminate/Notifications/Channels/DatabaseChannel.php +++ b/src/Illuminate/Notifications/Channels/DatabaseChannel.php @@ -10,8 +10,6 @@ class DatabaseChannel /** * Send the given notification. * - * @param mixed $notifiable - * @param \Illuminate\Notifications\Notification $notification * @return \Illuminate\Database\Eloquent\Model */ public function send($notifiable, Notification $notification) @@ -24,8 +22,6 @@ public function send($notifiable, Notification $notification) /** * Build an array payload for the DatabaseNotification Model. * - * @param mixed $notifiable - * @param \Illuminate\Notifications\Notification $notification * @return array */ protected function buildPayload($notifiable, Notification $notification) @@ -45,8 +41,6 @@ protected function buildPayload($notifiable, Notification $notification) /** * Get the data for the notification. * - * @param mixed $notifiable - * @param \Illuminate\Notifications\Notification $notification * @return array * * @throws \RuntimeException diff --git a/src/Illuminate/Notifications/Channels/MailChannel.php b/src/Illuminate/Notifications/Channels/MailChannel.php index ffc23b9008ec..86afa099f5b0 100644 --- a/src/Illuminate/Notifications/Channels/MailChannel.php +++ b/src/Illuminate/Notifications/Channels/MailChannel.php @@ -33,9 +33,6 @@ class MailChannel /** * Create a new mail channel instance. - * - * @param \Illuminate\Contracts\Mail\Factory $mailer - * @param \Illuminate\Mail\Markdown $markdown */ public function __construct(MailFactory $mailer, Markdown $markdown) { @@ -46,8 +43,6 @@ public function __construct(MailFactory $mailer, Markdown $markdown) /** * Send the given notification. * - * @param mixed $notifiable - * @param \Illuminate\Notifications\Notification $notification * @return \Illuminate\Mail\SentMessage|null */ public function send($notifiable, Notification $notification) @@ -73,7 +68,6 @@ public function send($notifiable, Notification $notification) /** * Get the mailer Closure for the message. * - * @param mixed $notifiable * @param \Illuminate\Notifications\Notification $notification * @param \Illuminate\Notifications\Messages\MailMessage $message * @return \Closure @@ -166,7 +160,6 @@ class_implements($notification) * Build the mail message. * * @param \Illuminate\Mail\Message $mailMessage - * @param mixed $notifiable * @param \Illuminate\Notifications\Notification $notification * @param \Illuminate\Notifications\Messages\MailMessage $message * @return void @@ -204,7 +197,6 @@ protected function buildMessage($mailMessage, $notifiable, $notification, $messa * Address the mail message. * * @param \Illuminate\Mail\Message $mailMessage - * @param mixed $notifiable * @param \Illuminate\Notifications\Notification $notification * @param \Illuminate\Notifications\Messages\MailMessage $message * @return void @@ -251,10 +243,8 @@ protected function addSender($mailMessage, $message) /** * Get the recipients of the given message. * - * @param mixed $notifiable * @param \Illuminate\Notifications\Notification $notification * @param \Illuminate\Notifications\Messages\MailMessage $message - * @return mixed */ protected function getRecipients($notifiable, $notification, $message) { diff --git a/src/Illuminate/Notifications/Messages/BroadcastMessage.php b/src/Illuminate/Notifications/Messages/BroadcastMessage.php index 810984296273..21cc8e88ad91 100644 --- a/src/Illuminate/Notifications/Messages/BroadcastMessage.php +++ b/src/Illuminate/Notifications/Messages/BroadcastMessage.php @@ -17,8 +17,6 @@ class BroadcastMessage /** * Create a new message instance. - * - * @param array $data */ public function __construct(array $data) { diff --git a/src/Illuminate/Notifications/Messages/DatabaseMessage.php b/src/Illuminate/Notifications/Messages/DatabaseMessage.php index d0ef936d6c1c..e2ac5da752f7 100644 --- a/src/Illuminate/Notifications/Messages/DatabaseMessage.php +++ b/src/Illuminate/Notifications/Messages/DatabaseMessage.php @@ -13,8 +13,6 @@ class DatabaseMessage /** * Create a new database message. - * - * @param array $data */ public function __construct(array $data = []) { diff --git a/src/Illuminate/Notifications/Messages/MailMessage.php b/src/Illuminate/Notifications/Messages/MailMessage.php index f65622863d76..5fb1c126e3d9 100644 --- a/src/Illuminate/Notifications/Messages/MailMessage.php +++ b/src/Illuminate/Notifications/Messages/MailMessage.php @@ -117,7 +117,6 @@ class MailMessage extends SimpleMessage implements Renderable * Set the view for the mail message. * * @param array|string $view - * @param array $data * @return $this */ public function view($view, array $data = []) @@ -134,7 +133,6 @@ public function view($view, array $data = []) * Set the plain text view for the mail message. * * @param string $textView - * @param array $data * @return $this */ public function text($textView, array $data = []) @@ -149,7 +147,6 @@ public function text($textView, array $data = []) * Set the Markdown template for the notification. * * @param string $view - * @param array $data * @return $this */ public function markdown($view, array $data = []) @@ -260,7 +257,6 @@ public function bcc($address, $name = null) * Attach a file to the message. * * @param string|\Illuminate\Contracts\Mail\Attachable|\Illuminate\Mail\Attachment $file - * @param array $options * @return $this */ public function attach($file, array $options = []) @@ -302,7 +298,6 @@ public function attachMany($files) * * @param string $data * @param string $name - * @param array $options * @return $this */ public function attachData($data, $name, array $options = []) @@ -381,7 +376,6 @@ protected function parseAddresses($value) /** * Determine if the given "address" is actually an array of addresses. * - * @param mixed $address * @return bool */ protected function arrayOfAddresses($address) diff --git a/src/Illuminate/Notifications/Messages/SimpleMessage.php b/src/Illuminate/Notifications/Messages/SimpleMessage.php index 82985aab0ecb..f8d5d673ddd5 100644 --- a/src/Illuminate/Notifications/Messages/SimpleMessage.php +++ b/src/Illuminate/Notifications/Messages/SimpleMessage.php @@ -149,7 +149,6 @@ public function salutation($salutation) /** * Add a line of text to the notification. * - * @param mixed $line * @return $this */ public function line($line) @@ -161,7 +160,6 @@ public function line($line) * Add a line of text to the notification if the given condition is true. * * @param bool $boolean - * @param mixed $line * @return $this */ public function lineIf($boolean, $line) @@ -207,7 +205,6 @@ public function linesIf($boolean, $lines) /** * Add a line of text to the notification. * - * @param mixed $line * @return $this */ public function with($line) diff --git a/src/Illuminate/Notifications/NotificationSender.php b/src/Illuminate/Notifications/NotificationSender.php index 1bb61e6b8a75..3e5e3df91763 100644 --- a/src/Illuminate/Notifications/NotificationSender.php +++ b/src/Illuminate/Notifications/NotificationSender.php @@ -77,7 +77,6 @@ public function __construct($manager, $bus, $events, $locale = null) * Send the given notification to the given notifiable entities. * * @param \Illuminate\Support\Collection|mixed $notifiables - * @param mixed $notification * @return void */ public function send($notifiables, $notification) @@ -95,8 +94,6 @@ public function send($notifiables, $notification) * Send the given notification immediately. * * @param \Illuminate\Support\Collection|mixed $notifiables - * @param mixed $notification - * @param array|null $channels * @return void */ public function sendNow($notifiables, $notification, ?array $channels = null) @@ -125,8 +122,6 @@ public function sendNow($notifiables, $notification, ?array $channels = null) /** * Get the notifiable's preferred locale for the notification. * - * @param mixed $notifiable - * @param mixed $notification * @return string|null */ protected function preferredLocale($notifiable, $notification) @@ -141,9 +136,7 @@ protected function preferredLocale($notifiable, $notification) /** * Send the given notification to the given notifiable via a channel. * - * @param mixed $notifiable * @param string $id - * @param mixed $notification * @param string $channel * @return void * @@ -185,8 +178,6 @@ protected function sendToNotifiable($notifiable, $id, $notification, $channel) /** * Determines if the notification can be sent. * - * @param mixed $notifiable - * @param mixed $notification * @param string $channel * @return bool */ @@ -205,7 +196,6 @@ protected function shouldSendNotification($notifiable, $notification, $channel) /** * Queue the given notification instances. * - * @param mixed $notifiables * @param \Illuminate\Notifications\Notification $notification * @return void */ @@ -274,7 +264,6 @@ protected function queueNotification($notifiables, $notification) /** * Format the notifiables into a Collection / array if necessary. * - * @param mixed $notifiables * @return \Illuminate\Database\Eloquent\Collection|array */ protected function formatNotifiables($notifiables) diff --git a/src/Illuminate/Notifications/RoutesNotifications.php b/src/Illuminate/Notifications/RoutesNotifications.php index 2744f3161127..950fbc0e34d8 100644 --- a/src/Illuminate/Notifications/RoutesNotifications.php +++ b/src/Illuminate/Notifications/RoutesNotifications.php @@ -10,7 +10,6 @@ trait RoutesNotifications /** * Send the given notification. * - * @param mixed $instance * @return void */ public function notify($instance) @@ -21,8 +20,6 @@ public function notify($instance) /** * Send the given notification immediately. * - * @param mixed $instance - * @param array|null $channels * @return void */ public function notifyNow($instance, ?array $channels = null) @@ -35,7 +32,6 @@ public function notifyNow($instance, ?array $channels = null) * * @param string $driver * @param \Illuminate\Notifications\Notification|null $notification - * @return mixed */ public function routeNotificationFor($driver, $notification = null) { diff --git a/src/Illuminate/Notifications/SendQueuedNotifications.php b/src/Illuminate/Notifications/SendQueuedNotifications.php index bdd6fc8b4729..bd0f2c1a9110 100644 --- a/src/Illuminate/Notifications/SendQueuedNotifications.php +++ b/src/Illuminate/Notifications/SendQueuedNotifications.php @@ -70,7 +70,6 @@ class SendQueuedNotifications implements ShouldQueue * * @param \Illuminate\Notifications\Notifiable|\Illuminate\Support\Collection $notifiables * @param \Illuminate\Notifications\Notification $notification - * @param array|null $channels */ public function __construct($notifiables, $notification, ?array $channels = null) { @@ -110,7 +109,6 @@ protected function wrapNotifiables($notifiables) /** * Send the notifications. * - * @param \Illuminate\Notifications\ChannelManager $manager * @return void */ public function handle(ChannelManager $manager) @@ -143,8 +141,6 @@ public function failed($e) /** * Get the number of seconds before a released notification will be available. - * - * @return mixed */ public function backoff() { diff --git a/src/Illuminate/Pagination/AbstractCursorPaginator.php b/src/Illuminate/Pagination/AbstractCursorPaginator.php index fea9fdc22574..fb24416554d3 100644 --- a/src/Illuminate/Pagination/AbstractCursorPaginator.php +++ b/src/Illuminate/Pagination/AbstractCursorPaginator.php @@ -259,9 +259,6 @@ protected function getPivotParameterForItem($item, $parameterName) * Ensure the parameter is a primitive type. * * This can resolve issues that arise the developer uses a value object for an attribute. - * - * @param mixed $parameter - * @return mixed */ protected function ensureParameterIsPrimitive($parameter) { @@ -310,7 +307,6 @@ public function appends($key, $value = null) /** * Add an array of query string values. * - * @param array $keys * @return $this */ protected function appendArray(array $keys) @@ -512,7 +508,6 @@ public static function resolveCurrentCursor($cursorName = 'cursor', $default = n /** * Set the current cursor resolver callback. * - * @param \Closure $resolver * @return void */ public static function currentCursorResolver(Closure $resolver) @@ -562,8 +557,6 @@ public function isNotEmpty() /** * Get the number of items for the current page. - * - * @return int */ public function count(): int { @@ -612,7 +605,6 @@ public function getOptions() * Determine if the given item exists. * * @param TKey $key - * @return bool */ public function offsetExists($key): bool { @@ -635,7 +627,6 @@ public function offsetGet($key): mixed * * @param TKey|null $key * @param TValue $value - * @return void */ public function offsetSet($key, $value): void { @@ -646,7 +637,6 @@ public function offsetSet($key, $value): void * Unset the item at the given key. * * @param TKey $key - * @return void */ public function offsetUnset($key): void { @@ -668,7 +658,6 @@ public function toHtml() * * @param string $method * @param array $parameters - * @return mixed */ public function __call($method, $parameters) { diff --git a/src/Illuminate/Pagination/AbstractPaginator.php b/src/Illuminate/Pagination/AbstractPaginator.php index bce700f71975..91a9665dfbc9 100644 --- a/src/Illuminate/Pagination/AbstractPaginator.php +++ b/src/Illuminate/Pagination/AbstractPaginator.php @@ -240,7 +240,6 @@ public function appends($key, $value = null) /** * Add an array of query string values. * - * @param array $keys * @return $this */ protected function appendArray(array $keys) @@ -505,7 +504,6 @@ public static function resolveCurrentPath($default = '/') /** * Set the current request path resolver callback. * - * @param \Closure $resolver * @return void */ public static function currentPathResolver(Closure $resolver) @@ -532,7 +530,6 @@ public static function resolveCurrentPage($pageName = 'page', $default = 1) /** * Set the current page resolver callback. * - * @param \Closure $resolver * @return void */ public static function currentPageResolver(Closure $resolver) @@ -558,7 +555,6 @@ public static function resolveQueryString($default = null) /** * Set with query string resolver callback. * - * @param \Closure $resolver * @return void */ public static function queryStringResolver(Closure $resolver) @@ -579,7 +575,6 @@ public static function viewFactory() /** * Set the view factory resolver callback. * - * @param \Closure $resolver * @return void */ public static function viewFactoryResolver(Closure $resolver) @@ -695,8 +690,6 @@ public function isNotEmpty() /** * Get the number of items for the current page. - * - * @return int */ public function count(): int { @@ -740,7 +733,6 @@ public function getOptions() * Determine if the given item exists. * * @param TKey $key - * @return bool */ public function offsetExists($key): bool { @@ -763,7 +755,6 @@ public function offsetGet($key): mixed * * @param TKey|null $key * @param TValue $value - * @return void */ public function offsetSet($key, $value): void { @@ -774,7 +765,6 @@ public function offsetSet($key, $value): void * Unset the item at the given key. * * @param TKey $key - * @return void */ public function offsetUnset($key): void { @@ -796,7 +786,6 @@ public function toHtml() * * @param string $method * @param array $parameters - * @return mixed */ public function __call($method, $parameters) { diff --git a/src/Illuminate/Pagination/Cursor.php b/src/Illuminate/Pagination/Cursor.php index 433e33e0ae1c..37e8d589a4a1 100644 --- a/src/Illuminate/Pagination/Cursor.php +++ b/src/Illuminate/Pagination/Cursor.php @@ -26,7 +26,6 @@ class Cursor implements Arrayable /** * Create a new cursor instance. * - * @param array $parameters * @param bool $pointsToNextItems */ public function __construct(array $parameters, $pointsToNextItems = true) @@ -38,7 +37,6 @@ public function __construct(array $parameters, $pointsToNextItems = true) /** * Get the given parameter from the cursor. * - * @param string $parameterName * @return string|null * * @throws \UnexpectedValueException @@ -55,7 +53,6 @@ public function parameter(string $parameterName) /** * Get the given parameters from the cursor. * - * @param array $parameterNames * @return array */ public function parameters(array $parameterNames) diff --git a/src/Illuminate/Pagination/CursorPaginator.php b/src/Illuminate/Pagination/CursorPaginator.php index ef02b8f7b3d3..3f6251a89191 100644 --- a/src/Illuminate/Pagination/CursorPaginator.php +++ b/src/Illuminate/Pagination/CursorPaginator.php @@ -162,8 +162,6 @@ public function toArray() /** * Convert the object into something JSON serializable. - * - * @return array */ public function jsonSerialize(): array { diff --git a/src/Illuminate/Pagination/LengthAwarePaginator.php b/src/Illuminate/Pagination/LengthAwarePaginator.php index 08976a012d68..59c7053be14c 100644 --- a/src/Illuminate/Pagination/LengthAwarePaginator.php +++ b/src/Illuminate/Pagination/LengthAwarePaginator.php @@ -224,8 +224,6 @@ public function toArray() /** * Convert the object into something JSON serializable. - * - * @return array */ public function jsonSerialize(): array { diff --git a/src/Illuminate/Pagination/Paginator.php b/src/Illuminate/Pagination/Paginator.php index 60e4d7331765..4bab18e93986 100644 --- a/src/Illuminate/Pagination/Paginator.php +++ b/src/Illuminate/Pagination/Paginator.php @@ -167,8 +167,6 @@ public function toArray() /** * Convert the object into something JSON serializable. - * - * @return array */ public function jsonSerialize(): array { diff --git a/src/Illuminate/Pagination/UrlWindow.php b/src/Illuminate/Pagination/UrlWindow.php index 863d4c598c48..267853df2a4a 100644 --- a/src/Illuminate/Pagination/UrlWindow.php +++ b/src/Illuminate/Pagination/UrlWindow.php @@ -15,8 +15,6 @@ class UrlWindow /** * Create a new URL window instance. - * - * @param \Illuminate\Contracts\Pagination\LengthAwarePaginator $paginator */ public function __construct(PaginatorContract $paginator) { @@ -26,7 +24,6 @@ public function __construct(PaginatorContract $paginator) /** * Create a new URL window instance. * - * @param \Illuminate\Contracts\Pagination\LengthAwarePaginator $paginator * @return array */ public static function make(PaginatorContract $paginator) diff --git a/src/Illuminate/Pipeline/Hub.php b/src/Illuminate/Pipeline/Hub.php index 0f738a62ae4a..06b67f449711 100644 --- a/src/Illuminate/Pipeline/Hub.php +++ b/src/Illuminate/Pipeline/Hub.php @@ -24,8 +24,6 @@ class Hub implements HubContract /** * Create a new Hub instance. - * - * @param \Illuminate\Contracts\Container\Container|null $container */ public function __construct(?Container $container = null) { @@ -35,7 +33,6 @@ public function __construct(?Container $container = null) /** * Define the default named pipeline. * - * @param \Closure $callback * @return void */ public function defaults(Closure $callback) @@ -47,7 +44,6 @@ public function defaults(Closure $callback) * Define a new named pipeline. * * @param string $name - * @param \Closure $callback * @return void */ public function pipeline($name, Closure $callback) @@ -58,9 +54,7 @@ public function pipeline($name, Closure $callback) /** * Send an object through one of the available pipelines. * - * @param mixed $object * @param string|null $pipeline - * @return mixed */ public function pipe($object, $pipeline = null) { @@ -84,7 +78,6 @@ public function getContainer() /** * Set the container instance used by the hub. * - * @param \Illuminate\Contracts\Container\Container $container * @return $this */ public function setContainer(Container $container) diff --git a/src/Illuminate/Pipeline/Pipeline.php b/src/Illuminate/Pipeline/Pipeline.php index dd29236a96d6..2b4a4aa3f4eb 100644 --- a/src/Illuminate/Pipeline/Pipeline.php +++ b/src/Illuminate/Pipeline/Pipeline.php @@ -24,8 +24,6 @@ class Pipeline implements PipelineContract /** * The object being passed through the pipeline. - * - * @var mixed */ protected $passable; @@ -59,8 +57,6 @@ class Pipeline implements PipelineContract /** * Create a new class instance. - * - * @param \Illuminate\Contracts\Container\Container|null $container */ public function __construct(?Container $container = null) { @@ -70,7 +66,6 @@ public function __construct(?Container $container = null) /** * Set the object being sent through the pipeline. * - * @param mixed $passable * @return $this */ public function send($passable) @@ -83,7 +78,6 @@ public function send($passable) /** * Set the array of pipes. * - * @param mixed $pipes * @return $this */ public function through($pipes) @@ -96,7 +90,6 @@ public function through($pipes) /** * Push additional pipes onto the pipeline. * - * @param mixed $pipes * @return $this */ public function pipe($pipes) @@ -121,9 +114,6 @@ public function via($method) /** * Run the pipeline with a final destination callback. - * - * @param \Closure $destination - * @return mixed */ public function then(Closure $destination) { @@ -144,8 +134,6 @@ public function then(Closure $destination) /** * Run the pipeline and return the result. - * - * @return mixed */ public function thenReturn() { @@ -157,7 +145,6 @@ public function thenReturn() /** * Set a final callback to be executed after the pipeline ends regardless of the outcome. * - * @param \Closure $callback * @return $this */ public function finally(Closure $callback) @@ -170,7 +157,6 @@ public function finally(Closure $callback) /** * Get the final piece of the Closure onion. * - * @param \Closure $destination * @return \Closure */ protected function prepareDestination(Closure $destination) @@ -288,7 +274,6 @@ protected function getContainer() /** * Set the container instance. * - * @param \Illuminate\Contracts\Container\Container $container * @return $this */ public function setContainer(Container $container) @@ -300,9 +285,6 @@ public function setContainer(Container $container) /** * Handle the value returned from each pipe before passing it to the next. - * - * @param mixed $carry - * @return mixed */ protected function handleCarry($carry) { @@ -312,9 +294,6 @@ protected function handleCarry($carry) /** * Handle the given exception. * - * @param mixed $passable - * @param \Throwable $e - * @return mixed * * @throws \Throwable */ diff --git a/src/Illuminate/Process/Exceptions/ProcessFailedException.php b/src/Illuminate/Process/Exceptions/ProcessFailedException.php index c4a311864976..c625e3d377d6 100644 --- a/src/Illuminate/Process/Exceptions/ProcessFailedException.php +++ b/src/Illuminate/Process/Exceptions/ProcessFailedException.php @@ -16,8 +16,6 @@ class ProcessFailedException extends RuntimeException /** * Create a new exception instance. - * - * @param \Illuminate\Contracts\Process\ProcessResult $result */ public function __construct(ProcessResult $result) { diff --git a/src/Illuminate/Process/Exceptions/ProcessTimedOutException.php b/src/Illuminate/Process/Exceptions/ProcessTimedOutException.php index 9c3c8988a7cb..75b87529a476 100644 --- a/src/Illuminate/Process/Exceptions/ProcessTimedOutException.php +++ b/src/Illuminate/Process/Exceptions/ProcessTimedOutException.php @@ -17,9 +17,6 @@ class ProcessTimedOutException extends RuntimeException /** * Create a new exception instance. - * - * @param \Symfony\Component\Process\Exception\ProcessTimedOutException $original - * @param \Illuminate\Contracts\Process\ProcessResult $result */ public function __construct(SymfonyTimeoutException $original, ProcessResult $result) { diff --git a/src/Illuminate/Process/Factory.php b/src/Illuminate/Process/Factory.php index ac1d5f3150f0..5f1c20e269c9 100644 --- a/src/Illuminate/Process/Factory.php +++ b/src/Illuminate/Process/Factory.php @@ -45,9 +45,6 @@ class Factory /** * Create a new fake process response for testing purposes. * - * @param array|string $output - * @param array|string $errorOutput - * @param int $exitCode * @return \Illuminate\Process\FakeProcessResult */ public function result(array|string $output = '', array|string $errorOutput = '', int $exitCode = 0) @@ -72,7 +69,6 @@ public function describe() /** * Begin describing a fake process sequence. * - * @param array $processes * @return \Illuminate\Process\FakeProcessSequence */ public function sequence(array $processes = []) @@ -83,7 +79,6 @@ public function sequence(array $processes = []) /** * Indicate that the process factory should fake processes. * - * @param \Closure|array|null $callback * @return $this */ public function fake(Closure|array|null $callback = null) @@ -124,8 +119,6 @@ public function isRecording() /** * Record the given process if processes should be recorded. * - * @param \Illuminate\Process\PendingProcess $process - * @param \Illuminate\Contracts\Process\ProcessResult $result * @return $this */ public function recordIfRecording(PendingProcess $process, ProcessResultContract $result) @@ -140,8 +133,6 @@ public function recordIfRecording(PendingProcess $process, ProcessResultContract /** * Record the given process. * - * @param \Illuminate\Process\PendingProcess $process - * @param \Illuminate\Contracts\Process\ProcessResult $result * @return $this */ public function record(PendingProcess $process, ProcessResultContract $result) @@ -154,7 +145,6 @@ public function record(PendingProcess $process, ProcessResultContract $result) /** * Indicate that an exception should be thrown if any process is not faked. * - * @param bool $prevent * @return $this */ public function preventStrayProcesses(bool $prevent = true) @@ -177,7 +167,6 @@ public function preventingStrayProcesses() /** * Assert that a process was recorded matching a given truth test. * - * @param \Closure|string $callback * @return $this */ public function assertRan(Closure|string $callback) @@ -197,8 +186,6 @@ public function assertRan(Closure|string $callback) /** * Assert that a process was recorded a given number of times matching a given truth test. * - * @param \Closure|string $callback - * @param int $times * @return $this */ public function assertRanTimes(Closure|string $callback, int $times = 1) @@ -220,7 +207,6 @@ public function assertRanTimes(Closure|string $callback, int $times = 1) /** * Assert that a process was not recorded matching a given truth test. * - * @param \Closure|string $callback * @return $this */ public function assertNotRan(Closure|string $callback) @@ -240,7 +226,6 @@ public function assertNotRan(Closure|string $callback) /** * Assert that a process was not recorded matching a given truth test. * - * @param \Closure|string $callback * @return $this */ public function assertDidntRun(Closure|string $callback) @@ -266,7 +251,6 @@ public function assertNothingRan() /** * Start defining a pool of processes. * - * @param callable $callback * @return \Illuminate\Process\Pool */ public function pool(callable $callback) @@ -277,7 +261,6 @@ public function pool(callable $callback) /** * Start defining a series of piped processes. * - * @param callable|array $callback * @return \Illuminate\Contracts\Process\ProcessResult */ public function pipe(callable|array $callback, ?callable $output = null) @@ -292,8 +275,6 @@ public function pipe(callable|array $callback, ?callable $output = null) /** * Run a pool of processes and wait for them to finish executing. * - * @param callable $callback - * @param callable|null $output * @return \Illuminate\Process\ProcessPoolResults */ public function concurrently(callable $callback, ?callable $output = null) @@ -316,7 +297,6 @@ public function newPendingProcess() * * @param string $method * @param array $parameters - * @return mixed */ public function __call($method, $parameters) { diff --git a/src/Illuminate/Process/FakeInvokedProcess.php b/src/Illuminate/Process/FakeInvokedProcess.php index 461511e433b2..6b5ca9f89534 100644 --- a/src/Illuminate/Process/FakeInvokedProcess.php +++ b/src/Illuminate/Process/FakeInvokedProcess.php @@ -57,9 +57,6 @@ class FakeInvokedProcess implements InvokedProcessContract /** * Create a new invoked process instance. - * - * @param string $command - * @param \Illuminate\Process\FakeProcessDescription $process */ public function __construct(string $command, FakeProcessDescription $process) { @@ -82,7 +79,6 @@ public function id() /** * Send a signal to the process. * - * @param int $signal * @return $this */ public function signal(int $signal) @@ -97,7 +93,6 @@ public function signal(int $signal) /** * Determine if the process has received the given signal. * - * @param int $signal * @return bool */ public function hasReceivedSignal(int $signal) @@ -254,7 +249,6 @@ public function latestErrorOutput() /** * Wait for the process to finish. * - * @param callable|null $output * @return \Illuminate\Contracts\Process\ProcessResult */ public function wait(?callable $output = null) @@ -289,7 +283,6 @@ public function predictProcessResult() /** * Set the general output handler for the fake invoked process. * - * @param callable|null $outputHandler * @return $this */ public function withOutputHandler(?callable $outputHandler) diff --git a/src/Illuminate/Process/FakeProcessDescription.php b/src/Illuminate/Process/FakeProcessDescription.php index 1c397176eafb..4e00b0fcd066 100644 --- a/src/Illuminate/Process/FakeProcessDescription.php +++ b/src/Illuminate/Process/FakeProcessDescription.php @@ -38,7 +38,6 @@ class FakeProcessDescription /** * Specify the process ID that should be assigned to the process. * - * @param int $processId * @return $this */ public function id(int $processId) @@ -51,7 +50,6 @@ public function id(int $processId) /** * Describe a line of standard output. * - * @param array|string $output * @return $this */ public function output(array|string $output) @@ -70,7 +68,6 @@ public function output(array|string $output) /** * Describe a line of error output. * - * @param array|string $output * @return $this */ public function errorOutput(array|string $output) @@ -89,7 +86,6 @@ public function errorOutput(array|string $output) /** * Replace the entire output buffer with the given string. * - * @param string $output * @return $this */ public function replaceOutput(string $output) @@ -112,7 +108,6 @@ public function replaceOutput(string $output) /** * Replace the entire error output buffer with the given string. * - * @param string $output * @return $this */ public function replaceErrorOutput(string $output) @@ -135,7 +130,6 @@ public function replaceErrorOutput(string $output) /** * Specify the process exit code. * - * @param int $exitCode * @return $this */ public function exitCode(int $exitCode) @@ -148,7 +142,6 @@ public function exitCode(int $exitCode) /** * Specify how many times the "isRunning" method should return "true". * - * @param int $iterations * @return $this */ public function iterations(int $iterations) @@ -159,7 +152,6 @@ public function iterations(int $iterations) /** * Specify how many times the "isRunning" method should return "true". * - * @param int $iterations * @return $this */ public function runsFor(int $iterations) @@ -172,7 +164,6 @@ public function runsFor(int $iterations) /** * Turn the fake process description into an actual process. * - * @param string $command * @return \Symfony\Component\Process\Process */ public function toSymfonyProcess(string $command) @@ -183,7 +174,6 @@ public function toSymfonyProcess(string $command) /** * Convert the process description into a process result. * - * @param string $command * @return \Illuminate\Contracts\Process\ProcessResult */ public function toProcessResult(string $command) diff --git a/src/Illuminate/Process/FakeProcessResult.php b/src/Illuminate/Process/FakeProcessResult.php index abb6a34755fa..9fe8774fd845 100644 --- a/src/Illuminate/Process/FakeProcessResult.php +++ b/src/Illuminate/Process/FakeProcessResult.php @@ -38,11 +38,6 @@ class FakeProcessResult implements ProcessResultContract /** * Create a new process result instance. - * - * @param string $command - * @param int $exitCode - * @param array|string $output - * @param array|string $errorOutput */ public function __construct(string $command = '', int $exitCode = 0, array|string $output = '', array|string $errorOutput = '') { @@ -55,7 +50,6 @@ public function __construct(string $command = '', int $exitCode = 0, array|strin /** * Normalize the given output into a string with newlines. * - * @param array|string $output * @return string */ protected function normalizeOutput(array|string $output) @@ -87,7 +81,6 @@ public function command() /** * Create a new fake process result with the given command. * - * @param string $command * @return self */ public function withCommand(string $command) @@ -138,7 +131,6 @@ public function output() /** * Determine if the output contains the given string. * - * @param string $output * @return bool */ public function seeInOutput(string $output) @@ -159,7 +151,6 @@ public function errorOutput() /** * Determine if the error output contains the given string. * - * @param string $output * @return bool */ public function seeInErrorOutput(string $output) @@ -170,7 +161,6 @@ public function seeInErrorOutput(string $output) /** * Throw an exception if the process failed. * - * @param callable|null $callback * @return $this * * @throws \Illuminate\Process\Exceptions\ProcessFailedException @@ -193,8 +183,6 @@ public function throw(?callable $callback = null) /** * Throw an exception if the process failed and the given condition is true. * - * @param bool $condition - * @param callable|null $callback * @return $this * * @throws \Throwable diff --git a/src/Illuminate/Process/FakeProcessSequence.php b/src/Illuminate/Process/FakeProcessSequence.php index 6015309aa733..bf85dd01a9be 100644 --- a/src/Illuminate/Process/FakeProcessSequence.php +++ b/src/Illuminate/Process/FakeProcessSequence.php @@ -30,8 +30,6 @@ class FakeProcessSequence /** * Create a new fake process sequence instance. - * - * @param array $processes */ public function __construct(array $processes = []) { @@ -41,7 +39,6 @@ public function __construct(array $processes = []) /** * Push a new process result or description onto the sequence. * - * @param \Illuminate\Contracts\Process\ProcessResult|\Illuminate\Process\FakeProcessDescription|array|string $process * @return $this */ public function push(ProcessResultContract|FakeProcessDescription|array|string $process) @@ -54,7 +51,6 @@ public function push(ProcessResultContract|FakeProcessDescription|array|string $ /** * Make the sequence return a default result when it is empty. * - * @param \Illuminate\Contracts\Process\ProcessResult|\Illuminate\Process\FakeProcessDescription|array|string $process * @return $this */ public function whenEmpty(ProcessResultContract|FakeProcessDescription|array|string $process) @@ -68,7 +64,6 @@ public function whenEmpty(ProcessResultContract|FakeProcessDescription|array|str /** * Convert the given result into an actual process result or description. * - * @param \Illuminate\Contracts\Process\ProcessResult|\Illuminate\Process\FakeProcessDescription|array|string $process * @return \Illuminate\Contracts\Process\ProcessResult|\Illuminate\Process\FakeProcessDescription */ protected function toProcessResult(ProcessResultContract|FakeProcessDescription|array|string $process) diff --git a/src/Illuminate/Process/InvokedProcess.php b/src/Illuminate/Process/InvokedProcess.php index 6e2e9a84612b..ad73b8006cfa 100644 --- a/src/Illuminate/Process/InvokedProcess.php +++ b/src/Illuminate/Process/InvokedProcess.php @@ -18,8 +18,6 @@ class InvokedProcess implements InvokedProcessContract /** * Create a new invoked process instance. - * - * @param \Symfony\Component\Process\Process $process */ public function __construct(Process $process) { @@ -39,7 +37,6 @@ public function id() /** * Send a signal to the process. * - * @param int $signal * @return $this */ public function signal(int $signal) @@ -52,8 +49,6 @@ public function signal(int $signal) /** * Stop the process if it is still running. * - * @param float $timeout - * @param int|null $signal * @return int|null */ public function stop(float $timeout = 10, ?int $signal = null) @@ -130,7 +125,6 @@ public function ensureNotTimedOut() /** * Wait for the process to finish. * - * @param callable|null $output * @return \Illuminate\Process\ProcessResult * * @throws \Illuminate\Process\Exceptions\ProcessTimedOutException @@ -149,7 +143,6 @@ public function wait(?callable $output = null) /** * Wait until the given callback returns true. * - * @param callable|null $output * @return \Illuminate\Process\ProcessResult * * @throws \Illuminate\Process\Exceptions\ProcessTimedOutException diff --git a/src/Illuminate/Process/InvokedProcessPool.php b/src/Illuminate/Process/InvokedProcessPool.php index 67b0d3d90277..8cc953800e81 100644 --- a/src/Illuminate/Process/InvokedProcessPool.php +++ b/src/Illuminate/Process/InvokedProcessPool.php @@ -16,8 +16,6 @@ class InvokedProcessPool implements Countable /** * Create a new invoked process pool. - * - * @param array $invokedProcesses */ public function __construct(array $invokedProcesses) { @@ -27,7 +25,6 @@ public function __construct(array $invokedProcesses) /** * Send a signal to each running process in the pool, returning the processes that were signalled. * - * @param int $signal * @return \Illuminate\Support\Collection */ public function signal(int $signal) @@ -38,8 +35,6 @@ public function signal(int $signal) /** * Stop all processes that are still running. * - * @param float $timeout - * @param int|null $signal * @return \Illuminate\Support\Collection */ public function stop(float $timeout = 10, ?int $signal = null) @@ -69,8 +64,6 @@ public function wait() /** * Get the total number of processes. - * - * @return int */ public function count(): int { diff --git a/src/Illuminate/Process/PendingProcess.php b/src/Illuminate/Process/PendingProcess.php index f48899f69a5f..cdef6ce9c76a 100644 --- a/src/Illuminate/Process/PendingProcess.php +++ b/src/Illuminate/Process/PendingProcess.php @@ -95,8 +95,6 @@ class PendingProcess /** * Create a new pending process instance. - * - * @param \Illuminate\Process\Factory $factory */ public function __construct(Factory $factory) { @@ -119,7 +117,6 @@ public function command(array|string $command) /** * Specify the working directory of the process. * - * @param string $path * @return $this */ public function path(string $path) @@ -132,7 +129,6 @@ public function path(string $path) /** * Specify the maximum number of seconds the process may run. * - * @param int $timeout * @return $this */ public function timeout(int $timeout) @@ -145,7 +141,6 @@ public function timeout(int $timeout) /** * Specify the maximum number of seconds a process may go without returning output. * - * @param int $timeout * @return $this */ public function idleTimeout(int $timeout) @@ -170,7 +165,6 @@ public function forever() /** * Set the additional environment variables for the process. * - * @param array $environment * @return $this */ public function env(array $environment) @@ -208,7 +202,6 @@ public function quietly() /** * Enable TTY mode for the process. * - * @param bool $tty * @return $this */ public function tty(bool $tty = true) @@ -221,7 +214,6 @@ public function tty(bool $tty = true) /** * Set the "proc_open" options that should be used when invoking the process. * - * @param array $options * @return $this */ public function options(array $options) @@ -235,7 +227,6 @@ public function options(array $options) * Run the process. * * @param array|string|null $command - * @param callable|null $output * @return \Illuminate\Contracts\Process\ProcessResult * * @throws \Illuminate\Process\Exceptions\ProcessTimedOutException @@ -265,7 +256,6 @@ public function run(array|string|null $command = null, ?callable $output = null) * Start the process in the background. * * @param array|string|null $command - * @param callable|null $output * @return \Illuminate\Process\InvokedProcess * * @throws \RuntimeException @@ -340,7 +330,6 @@ public function supportsTty() /** * Specify the fake process result handlers for the pending process. * - * @param array $fakeHandlers * @return $this */ public function withFakeHandlers(array $fakeHandlers) @@ -353,7 +342,6 @@ public function withFakeHandlers(array $fakeHandlers) /** * Get the fake handler for the given command, if applicable. * - * @param string $command * @return \Closure|null */ protected function fakeFor(string $command) @@ -364,10 +352,6 @@ protected function fakeFor(string $command) /** * Resolve the given fake handler for a synchronous process. - * - * @param string $command - * @param \Closure $fake - * @return mixed */ protected function resolveSynchronousFake(string $command, Closure $fake) { @@ -394,9 +378,6 @@ protected function resolveSynchronousFake(string $command, Closure $fake) /** * Resolve the given fake handler for an asynchronous process. * - * @param string $command - * @param callable|null $output - * @param \Closure $fake * @return \Illuminate\Process\FakeInvokedProcess * * @throws \LogicException diff --git a/src/Illuminate/Process/Pipe.php b/src/Illuminate/Process/Pipe.php index 043ddb77e776..0e6fb531f7b8 100644 --- a/src/Illuminate/Process/Pipe.php +++ b/src/Illuminate/Process/Pipe.php @@ -34,9 +34,6 @@ class Pipe /** * Create a new series of piped processes. - * - * @param \Illuminate\Process\Factory $factory - * @param callable $callback */ public function __construct(Factory $factory, callable $callback) { @@ -47,7 +44,6 @@ public function __construct(Factory $factory, callable $callback) /** * Add a process to the pipe with a key. * - * @param string $key * @return \Illuminate\Process\PendingProcess */ public function as(string $key) @@ -60,7 +56,6 @@ public function as(string $key) /** * Runs the processes in the pipe. * - * @param callable|null $output * @return \Illuminate\Contracts\Process\ProcessResult */ public function run(?callable $output = null) diff --git a/src/Illuminate/Process/Pool.php b/src/Illuminate/Process/Pool.php index 77d4b249ef01..ee6179d6cd87 100644 --- a/src/Illuminate/Process/Pool.php +++ b/src/Illuminate/Process/Pool.php @@ -34,9 +34,6 @@ class Pool /** * Create a new process pool. - * - * @param \Illuminate\Process\Factory $factory - * @param callable $callback */ public function __construct(Factory $factory, callable $callback) { @@ -47,7 +44,6 @@ public function __construct(Factory $factory, callable $callback) /** * Add a process to the pool with a key. * - * @param string $key * @return \Illuminate\Process\PendingProcess */ public function as(string $key) @@ -60,7 +56,6 @@ public function as(string $key) /** * Start all of the processes in the pool. * - * @param callable|null $output * @return \Illuminate\Process\InvokedProcessPool */ public function start(?callable $output = null) diff --git a/src/Illuminate/Process/ProcessPoolResults.php b/src/Illuminate/Process/ProcessPoolResults.php index 106aa94d54fc..63bcab1f4abe 100644 --- a/src/Illuminate/Process/ProcessPoolResults.php +++ b/src/Illuminate/Process/ProcessPoolResults.php @@ -16,8 +16,6 @@ class ProcessPoolResults implements ArrayAccess /** * Create a new process pool result set. - * - * @param array $results */ public function __construct(array $results) { @@ -58,7 +56,6 @@ public function collect() * Determine if the given array offset exists. * * @param int $offset - * @return bool */ public function offsetExists($offset): bool { @@ -69,7 +66,6 @@ public function offsetExists($offset): bool * Get the result at the given offset. * * @param int $offset - * @return mixed */ public function offsetGet($offset): mixed { @@ -80,8 +76,6 @@ public function offsetGet($offset): mixed * Set the result at the given offset. * * @param int $offset - * @param mixed $value - * @return void */ public function offsetSet($offset, $value): void { @@ -92,7 +86,6 @@ public function offsetSet($offset, $value): void * Unset the result at the given offset. * * @param int $offset - * @return void */ public function offsetUnset($offset): void { diff --git a/src/Illuminate/Process/ProcessResult.php b/src/Illuminate/Process/ProcessResult.php index 49900f537fab..e15f689fa8dd 100644 --- a/src/Illuminate/Process/ProcessResult.php +++ b/src/Illuminate/Process/ProcessResult.php @@ -17,8 +17,6 @@ class ProcessResult implements ProcessResultContract /** * Create a new process result instance. - * - * @param \Symfony\Component\Process\Process $process */ public function __construct(Process $process) { @@ -78,7 +76,6 @@ public function output() /** * Determine if the output contains the given string. * - * @param string $output * @return bool */ public function seeInOutput(string $output) @@ -99,7 +96,6 @@ public function errorOutput() /** * Determine if the error output contains the given string. * - * @param string $output * @return bool */ public function seeInErrorOutput(string $output) @@ -110,7 +106,6 @@ public function seeInErrorOutput(string $output) /** * Throw an exception if the process failed. * - * @param callable|null $callback * @return $this * * @throws \Illuminate\Process\Exceptions\ProcessFailedException @@ -133,8 +128,6 @@ public function throw(?callable $callback = null) /** * Throw an exception if the process failed and the given condition is true. * - * @param bool $condition - * @param callable|null $callback * @return $this * * @throws \Throwable diff --git a/src/Illuminate/Queue/BeanstalkdQueue.php b/src/Illuminate/Queue/BeanstalkdQueue.php index 9c0c3e0e7988..491e36a3f84a 100755 --- a/src/Illuminate/Queue/BeanstalkdQueue.php +++ b/src/Illuminate/Queue/BeanstalkdQueue.php @@ -127,9 +127,7 @@ public function creationTimeOfOldestPendingJob($queue = null) * Push a new job onto the queue. * * @param string $job - * @param mixed $data * @param string|null $queue - * @return mixed */ public function push($job, $data = '', $queue = null) { @@ -149,8 +147,6 @@ function ($payload, $queue) { * * @param string $payload * @param string|null $queue - * @param array $options - * @return mixed */ public function pushRaw($payload, $queue = null, array $options = []) { @@ -166,9 +162,7 @@ public function pushRaw($payload, $queue = null, array $options = []) * * @param \DateTimeInterface|\DateInterval|int $delay * @param string $job - * @param mixed $data * @param string|null $queue - * @return mixed */ public function later($delay, $job, $data = '', $queue = null) { @@ -194,7 +188,6 @@ function ($payload, $queue, $delay) { * Push an array of jobs onto the queue. * * @param array $jobs - * @param mixed $data * @param string|null $queue * @return void */ diff --git a/src/Illuminate/Queue/CallQueuedClosure.php b/src/Illuminate/Queue/CallQueuedClosure.php index 34bdf3b85796..c8f547a99a1b 100644 --- a/src/Illuminate/Queue/CallQueuedClosure.php +++ b/src/Illuminate/Queue/CallQueuedClosure.php @@ -56,7 +56,6 @@ public function __construct($closure) /** * Create a new job instance. * - * @param \Closure $job * @return self */ public static function create(Closure $job) @@ -67,7 +66,6 @@ public static function create(Closure $job) /** * Execute the job. * - * @param \Illuminate\Contracts\Container\Container $container * @return void */ public function handle(Container $container) diff --git a/src/Illuminate/Queue/CallQueuedHandler.php b/src/Illuminate/Queue/CallQueuedHandler.php index 17c77c820327..47a8beae16cc 100644 --- a/src/Illuminate/Queue/CallQueuedHandler.php +++ b/src/Illuminate/Queue/CallQueuedHandler.php @@ -38,9 +38,6 @@ class CallQueuedHandler /** * Create a new handler instance. - * - * @param \Illuminate\Contracts\Bus\Dispatcher $dispatcher - * @param \Illuminate\Contracts\Container\Container $container */ public function __construct(Dispatcher $dispatcher, Container $container) { @@ -51,8 +48,6 @@ public function __construct(Dispatcher $dispatcher, Container $container) /** * Handle the queued job. * - * @param \Illuminate\Contracts\Queue\Job $job - * @param array $data * @return void */ public function call(Job $job, array $data) @@ -84,8 +79,6 @@ public function call(Job $job, array $data) /** * Get the command from the given payload. * - * @param array $data - * @return mixed * * @throws \RuntimeException */ @@ -104,10 +97,6 @@ protected function getCommand(array $data) /** * Dispatch the given job / command through its specified middleware. - * - * @param \Illuminate\Contracts\Queue\Job $job - * @param mixed $command - * @return mixed */ protected function dispatchThroughMiddleware(Job $job, $command) { @@ -141,8 +130,6 @@ protected function dispatchThroughMiddleware(Job $job, $command) * Resolve the handler for the given command. * * @param \Illuminate\Contracts\Queue\Job $job - * @param mixed $command - * @return mixed */ protected function resolveHandler($job, $command) { @@ -157,10 +144,6 @@ protected function resolveHandler($job, $command) /** * Set the job instance of the given class if necessary. - * - * @param \Illuminate\Contracts\Queue\Job $job - * @param mixed $instance - * @return mixed */ protected function setJobInstanceIfNecessary(Job $job, $instance) { @@ -174,7 +157,6 @@ protected function setJobInstanceIfNecessary(Job $job, $instance) /** * Ensure the next job in the chain is dispatched if applicable. * - * @param mixed $command * @return void */ protected function ensureNextJobInChainIsDispatched($command) @@ -187,7 +169,6 @@ protected function ensureNextJobInChainIsDispatched($command) /** * Ensure the batch is notified of the successful job completion. * - * @param mixed $command * @return void */ protected function ensureSuccessfulBatchJobIsRecorded($command) @@ -207,7 +188,6 @@ protected function ensureSuccessfulBatchJobIsRecorded($command) /** * Ensure the lock for a unique job is released. * - * @param mixed $command * @return void */ protected function ensureUniqueJobLockIsReleased($command) @@ -220,7 +200,6 @@ protected function ensureUniqueJobLockIsReleased($command) /** * Handle a model not found exception. * - * @param \Illuminate\Contracts\Queue\Job $job * @param \Throwable $e * @return void */ @@ -280,10 +259,7 @@ protected function ensureUniqueJobLockIsReleasedViaContext() * * The exception that caused the failure will be passed. * - * @param array $data * @param \Throwable|null $e - * @param string $uuid - * @param \Illuminate\Contracts\Queue\Job|null $job * @return void */ public function failed(array $data, $e, string $uuid, ?Job $job = null) @@ -313,8 +289,6 @@ public function failed(array $data, $e, string $uuid, ?Job $job = null) /** * Ensure the batch is notified of the failed job. * - * @param string $uuid - * @param mixed $command * @param \Throwable $e * @return void */ @@ -332,8 +306,6 @@ protected function ensureFailedBatchJobIsRecorded(string $uuid, $command, $e) /** * Ensure the chained job catch callbacks are invoked. * - * @param string $uuid - * @param mixed $command * @param \Throwable $e * @return void */ diff --git a/src/Illuminate/Queue/Capsule/Manager.php b/src/Illuminate/Queue/Capsule/Manager.php index d8927032b861..51b1f1eedd56 100644 --- a/src/Illuminate/Queue/Capsule/Manager.php +++ b/src/Illuminate/Queue/Capsule/Manager.php @@ -24,8 +24,6 @@ class Manager /** * Create a new queue capsule manager. - * - * @param \Illuminate\Container\Container|null $container */ public function __construct(?Container $container = null) { @@ -88,10 +86,8 @@ public static function connection($connection = null) * Push a new job onto the queue. * * @param string $job - * @param mixed $data * @param string|null $queue * @param string|null $connection - * @return mixed */ public static function push($job, $data = '', $queue = null, $connection = null) { @@ -102,10 +98,8 @@ public static function push($job, $data = '', $queue = null, $connection = null) * Push a new an array of jobs onto the queue. * * @param array $jobs - * @param mixed $data * @param string|null $queue * @param string|null $connection - * @return mixed */ public static function bulk($jobs, $data = '', $queue = null, $connection = null) { @@ -117,10 +111,8 @@ public static function bulk($jobs, $data = '', $queue = null, $connection = null * * @param \DateTimeInterface|\DateInterval|int $delay * @param string $job - * @param mixed $data * @param string|null $queue * @param string|null $connection - * @return mixed */ public static function later($delay, $job, $data = '', $queue = null, $connection = null) { @@ -141,7 +133,6 @@ public function getConnection($name = null) /** * Register a connection with the manager. * - * @param array $config * @param string $name * @return void */ @@ -165,7 +156,6 @@ public function getQueueManager() * * @param string $method * @param array $parameters - * @return mixed */ public function __call($method, $parameters) { @@ -177,7 +167,6 @@ public function __call($method, $parameters) * * @param string $method * @param array $parameters - * @return mixed */ public static function __callStatic($method, $parameters) { diff --git a/src/Illuminate/Queue/Connectors/BeanstalkdConnector.php b/src/Illuminate/Queue/Connectors/BeanstalkdConnector.php index 6286bed7c1cc..fc1ddc026c3a 100755 --- a/src/Illuminate/Queue/Connectors/BeanstalkdConnector.php +++ b/src/Illuminate/Queue/Connectors/BeanstalkdConnector.php @@ -12,7 +12,6 @@ class BeanstalkdConnector implements ConnectorInterface /** * Establish a queue connection. * - * @param array $config * @return \Illuminate\Contracts\Queue\Queue */ public function connect(array $config) @@ -29,7 +28,6 @@ public function connect(array $config) /** * Create a Pheanstalk instance. * - * @param array $config * @return \Pheanstalk\Pheanstalk */ protected function pheanstalk(array $config) diff --git a/src/Illuminate/Queue/Connectors/ConnectorInterface.php b/src/Illuminate/Queue/Connectors/ConnectorInterface.php index 617bf09d6552..32bff89e65f1 100755 --- a/src/Illuminate/Queue/Connectors/ConnectorInterface.php +++ b/src/Illuminate/Queue/Connectors/ConnectorInterface.php @@ -7,7 +7,6 @@ interface ConnectorInterface /** * Establish a queue connection. * - * @param array $config * @return \Illuminate\Contracts\Queue\Queue */ public function connect(array $config); diff --git a/src/Illuminate/Queue/Connectors/DatabaseConnector.php b/src/Illuminate/Queue/Connectors/DatabaseConnector.php index 9dc970b02bef..f604c67d416c 100644 --- a/src/Illuminate/Queue/Connectors/DatabaseConnector.php +++ b/src/Illuminate/Queue/Connectors/DatabaseConnector.php @@ -16,8 +16,6 @@ class DatabaseConnector implements ConnectorInterface /** * Create a new connector instance. - * - * @param \Illuminate\Database\ConnectionResolverInterface $connections */ public function __construct(ConnectionResolverInterface $connections) { @@ -27,7 +25,6 @@ public function __construct(ConnectionResolverInterface $connections) /** * Establish a queue connection. * - * @param array $config * @return \Illuminate\Contracts\Queue\Queue */ public function connect(array $config) diff --git a/src/Illuminate/Queue/Connectors/NullConnector.php b/src/Illuminate/Queue/Connectors/NullConnector.php index 39de4800c6cb..250aab3c6b85 100644 --- a/src/Illuminate/Queue/Connectors/NullConnector.php +++ b/src/Illuminate/Queue/Connectors/NullConnector.php @@ -9,7 +9,6 @@ class NullConnector implements ConnectorInterface /** * Establish a queue connection. * - * @param array $config * @return \Illuminate\Contracts\Queue\Queue */ public function connect(array $config) diff --git a/src/Illuminate/Queue/Connectors/RedisConnector.php b/src/Illuminate/Queue/Connectors/RedisConnector.php index ed5235fa3047..dc35a41ea8ed 100644 --- a/src/Illuminate/Queue/Connectors/RedisConnector.php +++ b/src/Illuminate/Queue/Connectors/RedisConnector.php @@ -24,7 +24,6 @@ class RedisConnector implements ConnectorInterface /** * Create a new Redis queue connector instance. * - * @param \Illuminate\Contracts\Redis\Factory $redis * @param string|null $connection */ public function __construct(Redis $redis, $connection = null) @@ -36,7 +35,6 @@ public function __construct(Redis $redis, $connection = null) /** * Establish a queue connection. * - * @param array $config * @return \Illuminate\Contracts\Queue\Queue */ public function connect(array $config) diff --git a/src/Illuminate/Queue/Connectors/SqsConnector.php b/src/Illuminate/Queue/Connectors/SqsConnector.php index 950b2888dbd0..e4f000b56f4d 100755 --- a/src/Illuminate/Queue/Connectors/SqsConnector.php +++ b/src/Illuminate/Queue/Connectors/SqsConnector.php @@ -11,7 +11,6 @@ class SqsConnector implements ConnectorInterface /** * Establish a queue connection. * - * @param array $config * @return \Illuminate\Contracts\Queue\Queue */ public function connect(array $config) @@ -39,7 +38,6 @@ public function connect(array $config) /** * Get the default configuration for SQS. * - * @param array $config * @return array */ protected function getDefaultConfiguration(array $config) diff --git a/src/Illuminate/Queue/Connectors/SyncConnector.php b/src/Illuminate/Queue/Connectors/SyncConnector.php index 5427d3afae5d..909945c760cd 100755 --- a/src/Illuminate/Queue/Connectors/SyncConnector.php +++ b/src/Illuminate/Queue/Connectors/SyncConnector.php @@ -9,7 +9,6 @@ class SyncConnector implements ConnectorInterface /** * Establish a queue connection. * - * @param array $config * @return \Illuminate\Contracts\Queue\Queue */ public function connect(array $config) diff --git a/src/Illuminate/Queue/Console/ListFailedCommand.php b/src/Illuminate/Queue/Console/ListFailedCommand.php index 8aaa2e60d0e4..87e39bf702bd 100644 --- a/src/Illuminate/Queue/Console/ListFailedCommand.php +++ b/src/Illuminate/Queue/Console/ListFailedCommand.php @@ -65,7 +65,6 @@ protected function getFailedJobs() /** * Parse the failed job row. * - * @param array $failed * @return array */ protected function parseFailedJob(array $failed) @@ -110,7 +109,6 @@ protected function matchJobName($payload) /** * Display the failed jobs in the console. * - * @param array $jobs * @return void */ protected function displayFailedJobs(array $jobs) diff --git a/src/Illuminate/Queue/Console/ListenCommand.php b/src/Illuminate/Queue/Console/ListenCommand.php index eb545a1d7234..fe2605b91952 100755 --- a/src/Illuminate/Queue/Console/ListenCommand.php +++ b/src/Illuminate/Queue/Console/ListenCommand.php @@ -45,8 +45,6 @@ class ListenCommand extends Command /** * Create a new queue listen command. - * - * @param \Illuminate\Queue\Listener $listener */ public function __construct(Listener $listener) { @@ -118,7 +116,6 @@ protected function gatherOptions() /** * Set the options on the queue listener. * - * @param \Illuminate\Queue\Listener $listener * @return void */ protected function setOutputHandler(Listener $listener) diff --git a/src/Illuminate/Queue/Console/MonitorCommand.php b/src/Illuminate/Queue/Console/MonitorCommand.php index a15e08e61116..af5f51732434 100644 --- a/src/Illuminate/Queue/Console/MonitorCommand.php +++ b/src/Illuminate/Queue/Console/MonitorCommand.php @@ -45,9 +45,6 @@ class MonitorCommand extends Command /** * Create a new queue monitor command. - * - * @param \Illuminate\Contracts\Queue\Factory $manager - * @param \Illuminate\Contracts\Events\Dispatcher $events */ public function __construct(Factory $manager, Dispatcher $events) { @@ -119,7 +116,6 @@ protected function parseQueues($queues) /** * Display the queue sizes in the console. * - * @param \Illuminate\Support\Collection $queues * @return void */ protected function displaySizes(Collection $queues) @@ -145,7 +141,6 @@ protected function displaySizes(Collection $queues) /** * Fire the monitoring events. * - * @param \Illuminate\Support\Collection $queues * @return void */ protected function dispatchEvents(Collection $queues) diff --git a/src/Illuminate/Queue/Console/RestartCommand.php b/src/Illuminate/Queue/Console/RestartCommand.php index 892380682528..1f583c32db20 100644 --- a/src/Illuminate/Queue/Console/RestartCommand.php +++ b/src/Illuminate/Queue/Console/RestartCommand.php @@ -35,8 +35,6 @@ class RestartCommand extends Command /** * Create a new queue restart command. - * - * @param \Illuminate\Contracts\Cache\Repository $cache */ public function __construct(Cache $cache) { diff --git a/src/Illuminate/Queue/Console/RetryCommand.php b/src/Illuminate/Queue/Console/RetryCommand.php index d67553803704..cd6c0b00da29 100644 --- a/src/Illuminate/Queue/Console/RetryCommand.php +++ b/src/Illuminate/Queue/Console/RetryCommand.php @@ -116,7 +116,6 @@ protected function getJobIdsByQueue($queue) /** * Get the job IDs ranges, if applicable. * - * @param array $ranges * @return array */ protected function getJobIdsByRanges(array $ranges) diff --git a/src/Illuminate/Queue/Console/WorkCommand.php b/src/Illuminate/Queue/Console/WorkCommand.php index 81d2fabe4615..5c94115ae8d7 100644 --- a/src/Illuminate/Queue/Console/WorkCommand.php +++ b/src/Illuminate/Queue/Console/WorkCommand.php @@ -86,9 +86,6 @@ class WorkCommand extends Command /** * Create a new queue work command. - * - * @param \Illuminate\Queue\Worker $worker - * @param \Illuminate\Contracts\Cache\Repository $cache */ public function __construct(Worker $worker, Cache $cache) { @@ -207,9 +204,7 @@ protected function listenForEvents() /** * Write the status output for the queue worker for JSON or TTY. * - * @param Job $job * @param string $status - * @param Throwable|null $exception * @return void */ protected function writeOutput(Job $job, $status, ?Throwable $exception = null) @@ -222,7 +217,6 @@ protected function writeOutput(Job $job, $status, ?Throwable $exception = null) /** * Write the status output for the queue worker. * - * @param \Illuminate\Contracts\Queue\Job $job * @param string $status * @return void */ @@ -270,9 +264,7 @@ protected function writeOutputForCli(Job $job, $status) /** * Write the status output for the queue worker in JSON format. * - * @param \Illuminate\Contracts\Queue\Job $job * @param string $status - * @param Throwable|null $exception * @return void */ protected function writeOutputAsJson(Job $job, $status, ?Throwable $exception = null) @@ -326,7 +318,6 @@ protected function now() /** * Store a failed job event. * - * @param \Illuminate\Queue\Events\JobFailed $event * @return void */ protected function logFailedJob(JobFailed $event) diff --git a/src/Illuminate/Queue/DatabaseQueue.php b/src/Illuminate/Queue/DatabaseQueue.php index 2b76419a8fcf..eb5d9b8a96df 100644 --- a/src/Illuminate/Queue/DatabaseQueue.php +++ b/src/Illuminate/Queue/DatabaseQueue.php @@ -46,7 +46,6 @@ class DatabaseQueue extends Queue implements QueueContract, ClearableQueue /** * Create a new database queue instance. * - * @param \Illuminate\Database\Connection $database * @param string $table * @param string $default * @param int $retryAfter @@ -143,9 +142,7 @@ public function creationTimeOfOldestPendingJob($queue = null) * Push a new job onto the queue. * * @param string $job - * @param mixed $data * @param string|null $queue - * @return mixed */ public function push($job, $data = '', $queue = null) { @@ -165,8 +162,6 @@ function ($payload, $queue) { * * @param string $payload * @param string|null $queue - * @param array $options - * @return mixed */ public function pushRaw($payload, $queue = null, array $options = []) { @@ -178,9 +173,7 @@ public function pushRaw($payload, $queue = null, array $options = []) * * @param \DateTimeInterface|\DateInterval|int $delay * @param string $job - * @param mixed $data * @param string|null $queue - * @return mixed */ public function later($delay, $job, $data = '', $queue = null) { @@ -199,9 +192,7 @@ function ($payload, $queue, $delay) { * Push an array of jobs onto the queue. * * @param array $jobs - * @param mixed $data * @param string|null $queue - * @return mixed */ public function bulk($jobs, $data = '', $queue = null) { @@ -226,7 +217,6 @@ function ($job) use ($queue, $data, $now) { * @param string $queue * @param \Illuminate\Queue\Jobs\DatabaseJobRecord $job * @param int $delay - * @return mixed */ public function release($queue, $job, $delay) { @@ -240,7 +230,6 @@ public function release($queue, $job, $delay) * @param string $payload * @param \DateTimeInterface|\DateInterval|int $delay * @param int $attempts - * @return mixed */ protected function pushToDatabase($queue, $payload, $delay = 0, $attempts = 0) { diff --git a/src/Illuminate/Queue/Events/JobAttempted.php b/src/Illuminate/Queue/Events/JobAttempted.php index b10c62903e77..0e1ae7a37223 100644 --- a/src/Illuminate/Queue/Events/JobAttempted.php +++ b/src/Illuminate/Queue/Events/JobAttempted.php @@ -20,8 +20,6 @@ public function __construct( /** * Determine if the job completed with failing or an unhandled exception occurring. - * - * @return bool */ public function successful(): bool { diff --git a/src/Illuminate/Queue/Events/WorkerStarting.php b/src/Illuminate/Queue/Events/WorkerStarting.php index 89ada14873c0..a9720b32f450 100644 --- a/src/Illuminate/Queue/Events/WorkerStarting.php +++ b/src/Illuminate/Queue/Events/WorkerStarting.php @@ -9,7 +9,7 @@ class WorkerStarting * * @param string $connectionName * @param string $queue - * @param \Illuminate\Queue\WorkerOptions $options + * @param \Illuminate\Queue\WorkerOptions $workerOptions */ public function __construct( public $connectionName, diff --git a/src/Illuminate/Queue/Failed/DatabaseFailedJobProvider.php b/src/Illuminate/Queue/Failed/DatabaseFailedJobProvider.php index d7f3f6b35c98..64acae7afca4 100644 --- a/src/Illuminate/Queue/Failed/DatabaseFailedJobProvider.php +++ b/src/Illuminate/Queue/Failed/DatabaseFailedJobProvider.php @@ -32,7 +32,6 @@ class DatabaseFailedJobProvider implements CountableFailedJobProvider, FailedJob /** * Create a new database failed job provider. * - * @param \Illuminate\Database\ConnectionResolverInterface $resolver * @param string $database * @param string $table */ @@ -91,7 +90,6 @@ public function all() /** * Get a single failed job. * - * @param mixed $id * @return object|null */ public function find($id) @@ -102,7 +100,6 @@ public function find($id) /** * Delete a single failed job from storage. * - * @param mixed $id * @return bool */ public function forget($id) @@ -126,7 +123,6 @@ public function flush($hours = null) /** * Prune all of the entries older than the given date. * - * @param \DateTimeInterface $before * @return int */ public function prune(DateTimeInterface $before) diff --git a/src/Illuminate/Queue/Failed/DatabaseUuidFailedJobProvider.php b/src/Illuminate/Queue/Failed/DatabaseUuidFailedJobProvider.php index 27a75f731994..459bcb2886e8 100644 --- a/src/Illuminate/Queue/Failed/DatabaseUuidFailedJobProvider.php +++ b/src/Illuminate/Queue/Failed/DatabaseUuidFailedJobProvider.php @@ -32,7 +32,6 @@ class DatabaseUuidFailedJobProvider implements CountableFailedJobProvider, Faile /** * Create a new database failed job provider. * - * @param \Illuminate\Database\ConnectionResolverInterface $resolver * @param string $database * @param string $table */ @@ -99,7 +98,6 @@ public function all() /** * Get a single failed job. * - * @param mixed $id * @return object|null */ public function find($id) @@ -115,7 +113,6 @@ public function find($id) /** * Delete a single failed job from storage. * - * @param mixed $id * @return bool */ public function forget($id) @@ -139,7 +136,6 @@ public function flush($hours = null) /** * Prune all of the entries older than the given date. * - * @param \DateTimeInterface $before * @return int */ public function prune(DateTimeInterface $before) diff --git a/src/Illuminate/Queue/Failed/DynamoDbFailedJobProvider.php b/src/Illuminate/Queue/Failed/DynamoDbFailedJobProvider.php index a7450c3969a8..618c1dcc8307 100644 --- a/src/Illuminate/Queue/Failed/DynamoDbFailedJobProvider.php +++ b/src/Illuminate/Queue/Failed/DynamoDbFailedJobProvider.php @@ -35,7 +35,6 @@ class DynamoDbFailedJobProvider implements FailedJobProviderInterface /** * Create a new DynamoDb failed job provider. * - * @param \Aws\DynamoDb\DynamoDbClient $dynamo * @param string $applicationName * @param string $table */ @@ -129,7 +128,6 @@ public function all() /** * Get a single failed job. * - * @param mixed $id * @return object|null */ public function find($id) @@ -161,7 +159,6 @@ public function find($id) /** * Delete a single failed job from storage. * - * @param mixed $id * @return bool */ public function forget($id) diff --git a/src/Illuminate/Queue/Failed/FailedJobProviderInterface.php b/src/Illuminate/Queue/Failed/FailedJobProviderInterface.php index b7ce69fca8b4..ae1b1c1a1cb1 100644 --- a/src/Illuminate/Queue/Failed/FailedJobProviderInterface.php +++ b/src/Illuminate/Queue/Failed/FailedJobProviderInterface.php @@ -33,7 +33,6 @@ public function all(); /** * Get a single failed job. * - * @param mixed $id * @return object|null */ public function find($id); @@ -41,7 +40,6 @@ public function find($id); /** * Delete a single failed job from storage. * - * @param mixed $id * @return bool */ public function forget($id); diff --git a/src/Illuminate/Queue/Failed/FileFailedJobProvider.php b/src/Illuminate/Queue/Failed/FileFailedJobProvider.php index 20faf2f90530..7429bffd71bb 100644 --- a/src/Illuminate/Queue/Failed/FileFailedJobProvider.php +++ b/src/Illuminate/Queue/Failed/FileFailedJobProvider.php @@ -35,7 +35,6 @@ class FileFailedJobProvider implements CountableFailedJobProvider, FailedJobProv * * @param string $path * @param int $limit - * @param \Closure|null $lockProviderResolver */ public function __construct($path, $limit = 100, ?Closure $lockProviderResolver = null) { @@ -105,7 +104,6 @@ public function all() /** * Get a single failed job. * - * @param mixed $id * @return object|null */ public function find($id) @@ -117,7 +115,6 @@ public function find($id) /** * Delete a single failed job from storage. * - * @param mixed $id * @return bool */ public function forget($id) @@ -146,7 +143,6 @@ public function flush($hours = null) /** * Prune all of the entries older than the given date. * - * @param \DateTimeInterface $before * @return int */ public function prune(DateTimeInterface $before) @@ -166,9 +162,6 @@ public function prune(DateTimeInterface $before) /** * Execute the given callback while holding a lock. - * - * @param \Closure $callback - * @return mixed */ protected function lock(Closure $callback) { @@ -208,7 +201,6 @@ protected function read() /** * Write the given array of jobs to the failed jobs file. * - * @param array $jobs * @return void */ protected function write(array $jobs) diff --git a/src/Illuminate/Queue/Failed/NullFailedJobProvider.php b/src/Illuminate/Queue/Failed/NullFailedJobProvider.php index f92c59eba658..bff2416a508d 100644 --- a/src/Illuminate/Queue/Failed/NullFailedJobProvider.php +++ b/src/Illuminate/Queue/Failed/NullFailedJobProvider.php @@ -42,7 +42,6 @@ public function all() /** * Get a single failed job. * - * @param mixed $id * @return object|null */ public function find($id) @@ -53,7 +52,6 @@ public function find($id) /** * Delete a single failed job from storage. * - * @param mixed $id * @return bool */ public function forget($id) diff --git a/src/Illuminate/Queue/Failed/PrunableFailedJobProvider.php b/src/Illuminate/Queue/Failed/PrunableFailedJobProvider.php index ea505b0cdfa4..fdda2d9cf37c 100644 --- a/src/Illuminate/Queue/Failed/PrunableFailedJobProvider.php +++ b/src/Illuminate/Queue/Failed/PrunableFailedJobProvider.php @@ -9,7 +9,6 @@ interface PrunableFailedJobProvider /** * Prune all of the entries older than the given date. * - * @param \DateTimeInterface $before * @return int */ public function prune(DateTimeInterface $before); diff --git a/src/Illuminate/Queue/InteractsWithQueue.php b/src/Illuminate/Queue/InteractsWithQueue.php index 850c7c1c54bc..f9f084210b4b 100644 --- a/src/Illuminate/Queue/InteractsWithQueue.php +++ b/src/Illuminate/Queue/InteractsWithQueue.php @@ -270,7 +270,6 @@ private function ensureQueueInteractionsHaveBeenFaked() /** * Set the base queue job instance. * - * @param \Illuminate\Contracts\Queue\Job $job * @return $this */ public function setJob(JobContract $job) diff --git a/src/Illuminate/Queue/InvalidPayloadException.php b/src/Illuminate/Queue/InvalidPayloadException.php index 52cc4a2b9dfd..d08faf6a568a 100644 --- a/src/Illuminate/Queue/InvalidPayloadException.php +++ b/src/Illuminate/Queue/InvalidPayloadException.php @@ -8,8 +8,6 @@ class InvalidPayloadException extends InvalidArgumentException { /** * The value that failed to decode. - * - * @var mixed */ public $value; @@ -17,7 +15,6 @@ class InvalidPayloadException extends InvalidArgumentException * Create a new exception instance. * * @param string|null $message - * @param mixed $value */ public function __construct($message = null, $value = null) { diff --git a/src/Illuminate/Queue/Jobs/BeanstalkdJob.php b/src/Illuminate/Queue/Jobs/BeanstalkdJob.php index 52da72b41bca..88b3ee79fb39 100755 --- a/src/Illuminate/Queue/Jobs/BeanstalkdJob.php +++ b/src/Illuminate/Queue/Jobs/BeanstalkdJob.php @@ -26,9 +26,7 @@ class BeanstalkdJob extends Job implements JobContract /** * Create a new job instance. * - * @param \Illuminate\Container\Container $container * @param \Pheanstalk\Contract\PheanstalkManagerInterface&\Pheanstalk\Contract\PheanstalkPublisherInterface&\Pheanstalk\Contract\PheanstalkSubscriberInterface $pheanstalk - * @param \Pheanstalk\Contract\JobIdInterface $job * @param string $connectionName * @param string $queue */ diff --git a/src/Illuminate/Queue/Jobs/DatabaseJob.php b/src/Illuminate/Queue/Jobs/DatabaseJob.php index 5a5644c499e7..525dd8ab6706 100644 --- a/src/Illuminate/Queue/Jobs/DatabaseJob.php +++ b/src/Illuminate/Queue/Jobs/DatabaseJob.php @@ -25,8 +25,6 @@ class DatabaseJob extends Job implements JobContract /** * Create a new job instance. * - * @param \Illuminate\Container\Container $container - * @param \Illuminate\Queue\DatabaseQueue $database * @param \stdClass $job * @param string $connectionName * @param string $queue diff --git a/src/Illuminate/Queue/Jobs/DatabaseJobRecord.php b/src/Illuminate/Queue/Jobs/DatabaseJobRecord.php index 207f2b529c82..bd1074d03776 100644 --- a/src/Illuminate/Queue/Jobs/DatabaseJobRecord.php +++ b/src/Illuminate/Queue/Jobs/DatabaseJobRecord.php @@ -53,7 +53,6 @@ public function touch() * Dynamically access the underlying job information. * * @param string $key - * @return mixed */ public function __get($key) { diff --git a/src/Illuminate/Queue/Jobs/Job.php b/src/Illuminate/Queue/Jobs/Job.php index 112501b26580..9755977c5291 100755 --- a/src/Illuminate/Queue/Jobs/Job.php +++ b/src/Illuminate/Queue/Jobs/Job.php @@ -17,8 +17,6 @@ abstract class Job /** * The job handler instance. - * - * @var mixed */ protected $instance; @@ -259,7 +257,6 @@ protected function failed($e) * Resolve the given class. * * @param string $class - * @return mixed */ protected function resolve($class) { @@ -268,8 +265,6 @@ protected function resolve($class) /** * Get the resolved job handler instance. - * - * @return mixed */ public function getResolvedJob() { diff --git a/src/Illuminate/Queue/Jobs/RedisJob.php b/src/Illuminate/Queue/Jobs/RedisJob.php index 8fe55b03dbd4..9df0b43592fc 100644 --- a/src/Illuminate/Queue/Jobs/RedisJob.php +++ b/src/Illuminate/Queue/Jobs/RedisJob.php @@ -39,8 +39,6 @@ class RedisJob extends Job implements JobContract /** * Create a new job instance. * - * @param \Illuminate\Container\Container $container - * @param \Illuminate\Queue\RedisQueue $redis * @param string $job * @param string $reserved * @param string $connectionName diff --git a/src/Illuminate/Queue/Jobs/SqsJob.php b/src/Illuminate/Queue/Jobs/SqsJob.php index 227c1b7b0ac1..fa4272ac1828 100755 --- a/src/Illuminate/Queue/Jobs/SqsJob.php +++ b/src/Illuminate/Queue/Jobs/SqsJob.php @@ -25,9 +25,6 @@ class SqsJob extends Job implements JobContract /** * Create a new job instance. * - * @param \Illuminate\Container\Container $container - * @param \Aws\Sqs\SqsClient $sqs - * @param array $job * @param string $connectionName * @param string $queue */ diff --git a/src/Illuminate/Queue/Jobs/SyncJob.php b/src/Illuminate/Queue/Jobs/SyncJob.php index a682fc962ae2..53799292b1f5 100755 --- a/src/Illuminate/Queue/Jobs/SyncJob.php +++ b/src/Illuminate/Queue/Jobs/SyncJob.php @@ -24,7 +24,6 @@ class SyncJob extends Job implements JobContract /** * Create a new job instance. * - * @param \Illuminate\Container\Container $container * @param string $payload * @param string $connectionName * @param string $queue diff --git a/src/Illuminate/Queue/Listener.php b/src/Illuminate/Queue/Listener.php index fc56a569ebaa..15bf027e3c7f 100755 --- a/src/Illuminate/Queue/Listener.php +++ b/src/Illuminate/Queue/Listener.php @@ -80,7 +80,6 @@ protected function artisanBinary() * * @param string $connection * @param string $queue - * @param \Illuminate\Queue\ListenerOptions $options * @return void */ public function listen($connection, $queue, ListenerOptions $options) @@ -101,7 +100,6 @@ public function listen($connection, $queue, ListenerOptions $options) * * @param string $connection * @param string $queue - * @param \Illuminate\Queue\ListenerOptions $options * @return \Symfony\Component\Process\Process */ public function makeProcess($connection, $queue, ListenerOptions $options) @@ -132,7 +130,6 @@ public function makeProcess($connection, $queue, ListenerOptions $options) * Add the environment option to the given command. * * @param array $command - * @param \Illuminate\Queue\ListenerOptions $options * @return array */ protected function addEnvironment($command, ListenerOptions $options) @@ -145,7 +142,6 @@ protected function addEnvironment($command, ListenerOptions $options) * * @param string $connection * @param string $queue - * @param \Illuminate\Queue\ListenerOptions $options * @return array */ protected function createCommand($connection, $queue, ListenerOptions $options) @@ -171,7 +167,6 @@ protected function createCommand($connection, $queue, ListenerOptions $options) /** * Run the given process. * - * @param \Symfony\Component\Process\Process $process * @param int $memory * @return void */ @@ -227,7 +222,6 @@ public function stop() /** * Set the output handler callback. * - * @param \Closure $outputHandler * @return void */ public function setOutputHandler(Closure $outputHandler) diff --git a/src/Illuminate/Queue/Middleware/FailOnException.php b/src/Illuminate/Queue/Middleware/FailOnException.php index e8091fab221e..55dc3adf8390 100644 --- a/src/Illuminate/Queue/Middleware/FailOnException.php +++ b/src/Illuminate/Queue/Middleware/FailOnException.php @@ -50,9 +50,6 @@ protected function failForExceptions(array $exceptions) /** * Mark the job as failed if an exception is thrown that passes a truth-test callback. * - * @param mixed $job - * @param callable $next - * @return mixed * * @throws Throwable */ diff --git a/src/Illuminate/Queue/Middleware/RateLimited.php b/src/Illuminate/Queue/Middleware/RateLimited.php index a2b5343e59db..0826f7190187 100644 --- a/src/Illuminate/Queue/Middleware/RateLimited.php +++ b/src/Illuminate/Queue/Middleware/RateLimited.php @@ -54,9 +54,7 @@ public function __construct($limiterName) /** * Process the job. * - * @param mixed $job * @param callable $next - * @return mixed */ public function handle($job, $next) { @@ -86,10 +84,7 @@ public function handle($job, $next) /** * Handle a rate limited job. * - * @param mixed $job * @param callable $next - * @param array $limits - * @return mixed */ protected function handleJob($job, $next, array $limits) { diff --git a/src/Illuminate/Queue/Middleware/RateLimitedWithRedis.php b/src/Illuminate/Queue/Middleware/RateLimitedWithRedis.php index 25870e08f034..3f7309f638f7 100644 --- a/src/Illuminate/Queue/Middleware/RateLimitedWithRedis.php +++ b/src/Illuminate/Queue/Middleware/RateLimitedWithRedis.php @@ -40,10 +40,7 @@ public function __construct($limiterName) /** * Handle a rate limited job. * - * @param mixed $job * @param callable $next - * @param array $limits - * @return mixed */ protected function handleJob($job, $next, array $limits) { diff --git a/src/Illuminate/Queue/Middleware/SkipIfBatchCancelled.php b/src/Illuminate/Queue/Middleware/SkipIfBatchCancelled.php index 75a33871795d..58aebf4503bf 100644 --- a/src/Illuminate/Queue/Middleware/SkipIfBatchCancelled.php +++ b/src/Illuminate/Queue/Middleware/SkipIfBatchCancelled.php @@ -7,9 +7,7 @@ class SkipIfBatchCancelled /** * Process the job. * - * @param mixed $job * @param callable $next - * @return mixed */ public function handle($job, $next) { diff --git a/src/Illuminate/Queue/Middleware/ThrottlesExceptions.php b/src/Illuminate/Queue/Middleware/ThrottlesExceptions.php index 307842d2e6de..533da47d08b4 100644 --- a/src/Illuminate/Queue/Middleware/ThrottlesExceptions.php +++ b/src/Illuminate/Queue/Middleware/ThrottlesExceptions.php @@ -100,9 +100,7 @@ public function __construct($maxAttempts = 10, $decaySeconds = 600) /** * Process the job. * - * @param mixed $job * @param callable $next - * @return mixed */ public function handle($job, $next) { @@ -142,7 +140,6 @@ public function handle($job, $next) /** * Specify a callback that should determine if rate limiting behavior should apply. * - * @param callable $callback * @return $this */ public function when(callable $callback) @@ -155,7 +152,6 @@ public function when(callable $callback) /** * Add a callback that should determine if the job should be deleted. * - * @param callable|string $callback * @return $this */ public function deleteWhen(callable|string $callback) @@ -170,7 +166,6 @@ public function deleteWhen(callable|string $callback) /** * Add a callback that should determine if the job should be failed. * - * @param callable|string $callback * @return $this */ public function failWhen(callable|string $callback) @@ -184,9 +179,6 @@ public function failWhen(callable|string $callback) /** * Run the skip / delete callbacks to determine if the job should be deleted for the given exception. - * - * @param Throwable $throwable - * @return bool */ protected function shouldDelete(Throwable $throwable): bool { @@ -201,9 +193,6 @@ protected function shouldDelete(Throwable $throwable): bool /** * Run the skip / fail callbacks to determine if the job should be failed for the given exception. - * - * @param Throwable $throwable - * @return bool */ protected function shouldFail(Throwable $throwable): bool { @@ -219,7 +208,6 @@ protected function shouldFail(Throwable $throwable): bool /** * Set the prefix of the rate limiter key. * - * @param string $prefix * @return $this */ public function withPrefix(string $prefix) @@ -245,7 +233,6 @@ public function backoff($backoff) /** * Get the cache key associated for the rate limiter. * - * @param mixed $job * @return string */ protected function getKey($job) @@ -287,7 +274,6 @@ public function byJob() /** * Report exceptions and optionally specify a callback that determines if the exception should be reported. * - * @param callable|null $callback * @return $this */ public function report(?callable $callback = null) diff --git a/src/Illuminate/Queue/Middleware/ThrottlesExceptionsWithRedis.php b/src/Illuminate/Queue/Middleware/ThrottlesExceptionsWithRedis.php index cf00a7ce0921..991533d0d89a 100644 --- a/src/Illuminate/Queue/Middleware/ThrottlesExceptionsWithRedis.php +++ b/src/Illuminate/Queue/Middleware/ThrottlesExceptionsWithRedis.php @@ -29,9 +29,7 @@ class ThrottlesExceptionsWithRedis extends ThrottlesExceptions /** * Process the job. * - * @param mixed $job * @param callable $next - * @return mixed */ public function handle($job, $next) { diff --git a/src/Illuminate/Queue/Middleware/WithoutOverlapping.php b/src/Illuminate/Queue/Middleware/WithoutOverlapping.php index 42fabdaa3303..3ae41745fbe5 100644 --- a/src/Illuminate/Queue/Middleware/WithoutOverlapping.php +++ b/src/Illuminate/Queue/Middleware/WithoutOverlapping.php @@ -62,9 +62,7 @@ public function __construct($key = '', $releaseAfter = 0, $expiresAfter = 0) /** * Process the job. * - * @param mixed $job * @param callable $next - * @return mixed */ public function handle($job, $next) { @@ -124,7 +122,6 @@ public function expireAfter($expiresAfter) /** * Set the prefix of the lock key. * - * @param string $prefix * @return $this */ public function withPrefix(string $prefix) @@ -149,7 +146,6 @@ public function shared() /** * Get the lock key for the given job. * - * @param mixed $job * @return string */ public function getLockKey($job) diff --git a/src/Illuminate/Queue/NullQueue.php b/src/Illuminate/Queue/NullQueue.php index 5c3c3c5798bf..8999a06a1a0a 100644 --- a/src/Illuminate/Queue/NullQueue.php +++ b/src/Illuminate/Queue/NullQueue.php @@ -65,9 +65,7 @@ public function creationTimeOfOldestPendingJob($queue = null) * Push a new job onto the queue. * * @param string $job - * @param mixed $data * @param string|null $queue - * @return mixed */ public function push($job, $data = '', $queue = null) { @@ -79,8 +77,6 @@ public function push($job, $data = '', $queue = null) * * @param string $payload * @param string|null $queue - * @param array $options - * @return mixed */ public function pushRaw($payload, $queue = null, array $options = []) { @@ -92,9 +88,7 @@ public function pushRaw($payload, $queue = null, array $options = []) * * @param \DateTimeInterface|\DateInterval|int $delay * @param string $job - * @param mixed $data * @param string|null $queue - * @return mixed */ public function later($delay, $job, $data = '', $queue = null) { diff --git a/src/Illuminate/Queue/Queue.php b/src/Illuminate/Queue/Queue.php index 15a1edd587a6..33976a812dd1 100755 --- a/src/Illuminate/Queue/Queue.php +++ b/src/Illuminate/Queue/Queue.php @@ -57,8 +57,6 @@ abstract class Queue * * @param string $queue * @param string $job - * @param mixed $data - * @return mixed */ public function pushOn($queue, $job, $data = '') { @@ -71,8 +69,6 @@ public function pushOn($queue, $job, $data = '') * @param string $queue * @param \DateTimeInterface|\DateInterval|int $delay * @param string $job - * @param mixed $data - * @return mixed */ public function laterOn($queue, $delay, $job, $data = '') { @@ -83,7 +79,6 @@ public function laterOn($queue, $delay, $job, $data = '') * Push an array of jobs onto the queue. * * @param array $jobs - * @param mixed $data * @param string|null $queue * @return void */ @@ -99,7 +94,6 @@ public function bulk($jobs, $data = '', $queue = null) * * @param \Closure|string|object $job * @param string $queue - * @param mixed $data * @param \DateTimeInterface|\DateInterval|int|null $delay * @return string * @@ -133,7 +127,6 @@ protected function createPayload($job, $queue, $data = '', $delay = null) * * @param string|object $job * @param string $queue - * @param mixed $data * @return array */ protected function createPayloadArray($job, $queue, $data = '') @@ -204,9 +197,6 @@ protected function getDisplayName($job) /** * Get the maximum number of attempts for an object-based queue handler. - * - * @param mixed $job - * @return mixed */ public function getJobTries($job) { @@ -223,9 +213,6 @@ public function getJobTries($job) /** * Get the backoff for an object-based queue handler. - * - * @param mixed $job - * @return mixed */ public function getJobBackoff($job) { @@ -244,9 +231,6 @@ public function getJobBackoff($job) /** * Get the expiration timestamp for an object-based queue handler. - * - * @param mixed $job - * @return mixed */ public function getJobExpiration($job) { @@ -281,7 +265,6 @@ protected function jobShouldBeEncrypted($job) * * @param string $job * @param string $queue - * @param mixed $data * @return array */ protected function createStringPayload($job, $queue, $data) @@ -319,7 +302,6 @@ public static function createPayloadUsing($callback) * Create the given payload using any registered payload hooks. * * @param string $queue - * @param array $payload * @return array */ protected function withCreatePayloadHooks($queue, array $payload) @@ -341,7 +323,6 @@ protected function withCreatePayloadHooks($queue, array $payload) * @param string|null $queue * @param \DateTimeInterface|\DateInterval|int|null $delay * @param callable $callback - * @return mixed */ protected function enqueueUsing($job, $payload, $queue, $delay, $callback) { @@ -465,7 +446,6 @@ public function getContainer() /** * Set the IoC container instance. * - * @param \Illuminate\Container\Container $container * @return void */ public function setContainer(Container $container) diff --git a/src/Illuminate/Queue/QueueManager.php b/src/Illuminate/Queue/QueueManager.php index 9b57be09bbd4..16a8d55e1591 100755 --- a/src/Illuminate/Queue/QueueManager.php +++ b/src/Illuminate/Queue/QueueManager.php @@ -46,7 +46,6 @@ public function __construct($app) /** * Register an event listener for the before job event. * - * @param mixed $callback * @return void */ public function before($callback) @@ -57,7 +56,6 @@ public function before($callback) /** * Register an event listener for the after job event. * - * @param mixed $callback * @return void */ public function after($callback) @@ -68,7 +66,6 @@ public function after($callback) /** * Register an event listener for the exception occurred job event. * - * @param mixed $callback * @return void */ public function exceptionOccurred($callback) @@ -79,7 +76,6 @@ public function exceptionOccurred($callback) /** * Register an event listener for the daemon queue loop. * - * @param mixed $callback * @return void */ public function looping($callback) @@ -90,7 +86,6 @@ public function looping($callback) /** * Register an event listener for the failed job event. * - * @param mixed $callback * @return void */ public function failing($callback) @@ -101,7 +96,6 @@ public function failing($callback) /** * Register an event listener for the daemon queue starting. * - * @param mixed $callback * @return void */ public function starting($callback) @@ -112,7 +106,6 @@ public function starting($callback) /** * Register an event listener for the daemon queue stopping. * - * @param mixed $callback * @return void */ public function stopping($callback) @@ -195,7 +188,6 @@ protected function getConnector($driver) * Add a queue connection resolver. * * @param string $driver - * @param \Closure $resolver * @return void */ public function extend($driver, Closure $resolver) @@ -207,7 +199,6 @@ public function extend($driver, Closure $resolver) * Add a queue connection resolver. * * @param string $driver - * @param \Closure $resolver * @return void */ public function addConnector($driver, Closure $resolver) @@ -294,7 +285,6 @@ public function setApplication($app) * * @param string $method * @param array $parameters - * @return mixed */ public function __call($method, $parameters) { diff --git a/src/Illuminate/Queue/RedisQueue.php b/src/Illuminate/Queue/RedisQueue.php index ab2179a77f3d..a86a3a809b61 100644 --- a/src/Illuminate/Queue/RedisQueue.php +++ b/src/Illuminate/Queue/RedisQueue.php @@ -68,7 +68,6 @@ class RedisQueue extends Queue implements QueueContract, ClearableQueue /** * Create a new Redis queue instance. * - * @param \Illuminate\Contracts\Redis\Factory $redis * @param string $default * @param string|null $connection * @param int $retryAfter @@ -165,7 +164,6 @@ public function creationTimeOfOldestPendingJob($queue = null) * Push an array of jobs onto the queue. * * @param array $jobs - * @param mixed $data * @param string|null $queue * @return void */ @@ -196,9 +194,7 @@ public function bulk($jobs, $data = '', $queue = null) * Push a new job onto the queue. * * @param object|string $job - * @param mixed $data * @param string|null $queue - * @return mixed */ public function push($job, $data = '', $queue = null) { @@ -218,8 +214,6 @@ function ($payload, $queue) { * * @param string $payload * @param string|null $queue - * @param array $options - * @return mixed */ public function pushRaw($payload, $queue = null, array $options = []) { @@ -236,9 +230,7 @@ public function pushRaw($payload, $queue = null, array $options = []) * * @param \DateTimeInterface|\DateInterval|int $delay * @param object|string $job - * @param mixed $data * @param string|null $queue - * @return mixed */ public function later($delay, $job, $data = '', $queue = null) { @@ -259,7 +251,6 @@ function ($payload, $queue, $delay) { * @param \DateTimeInterface|\DateInterval|int $delay * @param string $payload * @param string|null $queue - * @return mixed */ protected function laterRaw($delay, $payload, $queue = null) { @@ -275,7 +266,6 @@ protected function laterRaw($delay, $payload, $queue = null) * * @param string $job * @param string $queue - * @param mixed $data * @return array */ protected function createPayloadArray($job, $queue, $data = '') diff --git a/src/Illuminate/Queue/SerializesAndRestoresModelIdentifiers.php b/src/Illuminate/Queue/SerializesAndRestoresModelIdentifiers.php index 25549425b7c0..ade6656c3934 100644 --- a/src/Illuminate/Queue/SerializesAndRestoresModelIdentifiers.php +++ b/src/Illuminate/Queue/SerializesAndRestoresModelIdentifiers.php @@ -15,9 +15,7 @@ trait SerializesAndRestoresModelIdentifiers /** * Get the property value prepared for serialization. * - * @param mixed $value * @param bool $withRelations - * @return mixed */ protected function getSerializedPropertyValue($value, $withRelations = true) { @@ -48,9 +46,6 @@ protected function getSerializedPropertyValue($value, $withRelations = true) /** * Get the restored property value after deserialization. - * - * @param mixed $value - * @return mixed */ protected function getRestoredPropertyValue($value) { diff --git a/src/Illuminate/Queue/SerializesModels.php b/src/Illuminate/Queue/SerializesModels.php index 388c1d745561..17e4bb051490 100644 --- a/src/Illuminate/Queue/SerializesModels.php +++ b/src/Illuminate/Queue/SerializesModels.php @@ -67,7 +67,6 @@ public function __serialize() /** * Restore the model after serialization. * - * @param array $values * @return void */ public function __unserialize(array $values) @@ -101,9 +100,6 @@ public function __unserialize(array $values) /** * Get the property value for the given property. - * - * @param \ReflectionProperty $property - * @return mixed */ protected function getPropertyValue(ReflectionProperty $property) { diff --git a/src/Illuminate/Queue/SqsQueue.php b/src/Illuminate/Queue/SqsQueue.php index 14c828d4bd3f..e4ac1da1ba38 100755 --- a/src/Illuminate/Queue/SqsQueue.php +++ b/src/Illuminate/Queue/SqsQueue.php @@ -41,7 +41,6 @@ class SqsQueue extends Queue implements QueueContract, ClearableQueue /** * Create a new Amazon SQS queue instance. * - * @param \Aws\Sqs\SqsClient $sqs * @param string $default * @param string $prefix * @param string $suffix @@ -151,9 +150,7 @@ public function creationTimeOfOldestPendingJob($queue = null) * Push a new job onto the queue. * * @param string $job - * @param mixed $data * @param string|null $queue - * @return mixed */ public function push($job, $data = '', $queue = null) { @@ -173,8 +170,6 @@ function ($payload, $queue) { * * @param string $payload * @param string|null $queue - * @param array $options - * @return mixed */ public function pushRaw($payload, $queue = null, array $options = []) { @@ -188,9 +183,7 @@ public function pushRaw($payload, $queue = null, array $options = []) * * @param \DateTimeInterface|\DateInterval|int $delay * @param string $job - * @param mixed $data * @param string|null $queue - * @return mixed */ public function later($delay, $job, $data = '', $queue = null) { @@ -213,7 +206,6 @@ function ($payload, $queue, $delay) { * Push an array of jobs onto the queue. * * @param array $jobs - * @param mixed $data * @param string|null $queue * @return void */ diff --git a/src/Illuminate/Queue/SyncQueue.php b/src/Illuminate/Queue/SyncQueue.php index b7e20873b342..b75c1534d151 100755 --- a/src/Illuminate/Queue/SyncQueue.php +++ b/src/Illuminate/Queue/SyncQueue.php @@ -84,9 +84,7 @@ public function creationTimeOfOldestPendingJob($queue = null) * Push a new job onto the queue. * * @param string $job - * @param mixed $data * @param string|null $queue - * @return mixed * * @throws \Throwable */ @@ -114,7 +112,6 @@ function () use ($job) { * Execute a given job synchronously. * * @param string $job - * @param mixed $data * @param string|null $queue * @return int * @@ -152,7 +149,6 @@ protected function resolveJob($payload, $queue) /** * Raise the before queue job event. * - * @param \Illuminate\Contracts\Queue\Job $job * @return void */ protected function raiseBeforeJobEvent(Job $job) @@ -165,7 +161,6 @@ protected function raiseBeforeJobEvent(Job $job) /** * Raise the after queue job event. * - * @param \Illuminate\Contracts\Queue\Job $job * @return void */ protected function raiseAfterJobEvent(Job $job) @@ -178,8 +173,6 @@ protected function raiseAfterJobEvent(Job $job) /** * Raise the exception occurred queue job event. * - * @param \Illuminate\Contracts\Queue\Job $job - * @param \Throwable $e * @return void */ protected function raiseExceptionOccurredJobEvent(Job $job, Throwable $e) @@ -192,8 +185,6 @@ protected function raiseExceptionOccurredJobEvent(Job $job, Throwable $e) /** * Handle an exception that occurred while processing a job. * - * @param \Illuminate\Contracts\Queue\Job $queueJob - * @param \Throwable $e * @return void * * @throws \Throwable @@ -212,8 +203,6 @@ protected function handleException(Job $queueJob, Throwable $e) * * @param string $payload * @param string|null $queue - * @param array $options - * @return mixed */ public function pushRaw($payload, $queue = null, array $options = []) { @@ -225,9 +214,7 @@ public function pushRaw($payload, $queue = null, array $options = []) * * @param \DateTimeInterface|\DateInterval|int $delay * @param string $job - * @param mixed $data * @param string|null $queue - * @return mixed */ public function later($delay, $job, $data = '', $queue = null) { diff --git a/src/Illuminate/Queue/Worker.php b/src/Illuminate/Queue/Worker.php index d3a11b86233e..4fe427d76395 100644 --- a/src/Illuminate/Queue/Worker.php +++ b/src/Illuminate/Queue/Worker.php @@ -101,12 +101,6 @@ class Worker /** * Create a new queue worker. - * - * @param \Illuminate\Contracts\Queue\Factory $manager - * @param \Illuminate\Contracts\Events\Dispatcher $events - * @param \Illuminate\Contracts\Debug\ExceptionHandler $exceptions - * @param callable $isDownForMaintenance - * @param callable|null $resetScope */ public function __construct( QueueManager $manager, @@ -127,7 +121,6 @@ public function __construct( * * @param string $connectionName * @param string $queue - * @param \Illuminate\Queue\WorkerOptions $options * @return int */ public function daemon($connectionName, $queue, WorkerOptions $options) @@ -207,7 +200,6 @@ public function daemon($connectionName, $queue, WorkerOptions $options) * Register the worker timeout handler. * * @param \Illuminate\Contracts\Queue\Job|null $job - * @param \Illuminate\Queue\WorkerOptions $options * @return void */ protected function registerTimeoutHandler($job, WorkerOptions $options) @@ -256,7 +248,6 @@ protected function resetTimeoutHandler() * Get the appropriate timeout for the given job. * * @param \Illuminate\Contracts\Queue\Job|null $job - * @param \Illuminate\Queue\WorkerOptions $options * @return int */ protected function timeoutForJob($job, WorkerOptions $options) @@ -267,7 +258,6 @@ protected function timeoutForJob($job, WorkerOptions $options) /** * Determine if the daemon should process on this iteration. * - * @param \Illuminate\Queue\WorkerOptions $options * @param string $connectionName * @param string $queue * @return bool @@ -282,7 +272,6 @@ protected function daemonShouldRun(WorkerOptions $options, $connectionName, $que /** * Pause the worker for the current loop. * - * @param \Illuminate\Queue\WorkerOptions $options * @param int $lastRestart * @return int|null */ @@ -296,11 +285,9 @@ protected function pauseWorker(WorkerOptions $options, $lastRestart) /** * Determine the exit code to stop the process if necessary. * - * @param \Illuminate\Queue\WorkerOptions $options * @param int $lastRestart * @param int $startTime * @param int $jobsProcessed - * @param mixed $job * @return int|null */ protected function stopIfNecessary(WorkerOptions $options, $lastRestart, $startTime = 0, $jobsProcessed = 0, $job = null) @@ -321,7 +308,6 @@ protected function stopIfNecessary(WorkerOptions $options, $lastRestart, $startT * * @param string $connectionName * @param string $queue - * @param \Illuminate\Queue\WorkerOptions $options * @return void */ public function runNextJob($connectionName, $queue, WorkerOptions $options) @@ -385,7 +371,6 @@ protected function getNextJob($connection, $queue) * * @param \Illuminate\Contracts\Queue\Job $job * @param string $connectionName - * @param \Illuminate\Queue\WorkerOptions $options * @return void */ protected function runJob($job, $connectionName, WorkerOptions $options) @@ -417,7 +402,6 @@ protected function stopWorkerIfLostConnection($e) * * @param string $connectionName * @param \Illuminate\Contracts\Queue\Job $job - * @param \Illuminate\Queue\WorkerOptions $options * @return void * * @throws \Throwable @@ -460,8 +444,6 @@ public function process($connectionName, $job, WorkerOptions $options) * * @param string $connectionName * @param \Illuminate\Contracts\Queue\Job $job - * @param \Illuminate\Queue\WorkerOptions $options - * @param \Throwable $e * @return void * * @throws \Throwable @@ -538,7 +520,6 @@ protected function markJobAsFailedIfAlreadyExceedsMaxAttempts($connectionName, $ * @param string $connectionName * @param \Illuminate\Contracts\Queue\Job $job * @param int $maxTries - * @param \Throwable $e * @return void */ protected function markJobAsFailedIfWillExceedMaxAttempts($connectionName, $job, $maxTries, Throwable $e) @@ -559,7 +540,6 @@ protected function markJobAsFailedIfWillExceedMaxAttempts($connectionName, $job, * * @param string $connectionName * @param \Illuminate\Contracts\Queue\Job $job - * @param \Throwable $e * @return void */ protected function markJobAsFailedIfWillExceedMaxExceptions($connectionName, $job, Throwable $e) @@ -585,7 +565,6 @@ protected function markJobAsFailedIfWillExceedMaxExceptions($connectionName, $jo * * @param string $connectionName * @param \Illuminate\Contracts\Queue\Job $job - * @param \Throwable $e * @return void */ protected function markJobAsFailedIfItShouldFailOnTimeout($connectionName, $job, Throwable $e) @@ -599,7 +578,6 @@ protected function markJobAsFailedIfItShouldFailOnTimeout($connectionName, $job, * Mark the given job as failed and raise the relevant event. * * @param \Illuminate\Contracts\Queue\Job $job - * @param \Throwable $e * @return void */ protected function failJob($job, Throwable $e) @@ -611,7 +589,6 @@ protected function failJob($job, Throwable $e) * Calculate the backoff for the given job. * * @param \Illuminate\Contracts\Queue\Job $job - * @param \Illuminate\Queue\WorkerOptions $options * @return int */ protected function calculateBackoff($job, WorkerOptions $options) @@ -697,7 +674,6 @@ protected function raiseAfterJobEvent($connectionName, $job) * * @param string $connectionName * @param \Illuminate\Contracts\Queue\Job $job - * @param \Throwable $e * @return void */ protected function raiseExceptionOccurredJobEvent($connectionName, $job, Throwable $e) @@ -839,7 +815,6 @@ public function sleep($seconds) /** * Set the cache repository implementation. * - * @param \Illuminate\Contracts\Cache\Repository $cache * @return $this */ public function setCache(CacheContract $cache) @@ -891,7 +866,6 @@ public function getManager() /** * Set the queue manager instance. * - * @param \Illuminate\Contracts\Queue\Factory $manager * @return void */ public function setManager(QueueManager $manager) diff --git a/src/Illuminate/Redis/Connections/Connection.php b/src/Illuminate/Redis/Connections/Connection.php index 3e5338ee49a7..88bba3623d2e 100644 --- a/src/Illuminate/Redis/Connections/Connection.php +++ b/src/Illuminate/Redis/Connections/Connection.php @@ -40,7 +40,6 @@ abstract class Connection * Subscribe to a set of given channels for messages. * * @param array|string $channels - * @param \Closure $callback * @param string $method * @return void */ @@ -70,8 +69,6 @@ public function throttle($name) /** * Get the underlying Redis client. - * - * @return mixed */ public function client() { @@ -82,7 +79,6 @@ public function client() * Subscribe to a set of given channels for messages. * * @param array|string $channels - * @param \Closure $callback * @return void */ public function subscribe($channels, Closure $callback) @@ -94,7 +90,6 @@ public function subscribe($channels, Closure $callback) * Subscribe to a set of given channels with wildcards. * * @param array|string $channels - * @param \Closure $callback * @return void */ public function psubscribe($channels, Closure $callback) @@ -106,8 +101,6 @@ public function psubscribe($channels, Closure $callback) * Run a command against the Redis database. * * @param string $method - * @param array $parameters - * @return mixed */ public function command($method, array $parameters = []) { @@ -127,7 +120,6 @@ public function command($method, array $parameters = []) /** * Parse the command's parameters for event dispatching. * - * @param array $parameters * @return array */ protected function parseParametersForEvent(array $parameters) @@ -138,7 +130,6 @@ protected function parseParametersForEvent(array $parameters) /** * Fire the given event if possible. * - * @param mixed $event * @return void * * @deprecated since Laravel 11.x @@ -151,7 +142,6 @@ protected function event($event) /** * Register a Redis command listener with the connection. * - * @param \Closure $callback * @return void */ public function listen(Closure $callback) @@ -195,7 +185,6 @@ public function getEventDispatcher() /** * Set the event dispatcher instance on the connection. * - * @param \Illuminate\Contracts\Events\Dispatcher $events * @return void */ public function setEventDispatcher(Dispatcher $events) @@ -218,7 +207,6 @@ public function unsetEventDispatcher() * * @param string $method * @param array $parameters - * @return mixed */ public function __call($method, $parameters) { diff --git a/src/Illuminate/Redis/Connections/PacksPhpRedisValues.php b/src/Illuminate/Redis/Connections/PacksPhpRedisValues.php index a64c4f4ce3dc..d849b9b637a8 100644 --- a/src/Illuminate/Redis/Connections/PacksPhpRedisValues.php +++ b/src/Illuminate/Redis/Connections/PacksPhpRedisValues.php @@ -84,9 +84,6 @@ public function pack(array $values): array /** * Execute the given callback without serialization or compression when applicable. - * - * @param callable $callback - * @return mixed */ public function withoutSerializationOrCompression(callable $callback) { @@ -121,8 +118,6 @@ public function withoutSerializationOrCompression(callable $callback) /** * Determine if serialization is enabled. - * - * @return bool */ public function serialized(): bool { @@ -132,8 +127,6 @@ public function serialized(): bool /** * Determine if compression is enabled. - * - * @return bool */ public function compressed(): bool { @@ -143,8 +136,6 @@ public function compressed(): bool /** * Determine if LZF compression is enabled. - * - * @return bool */ public function lzfCompressed(): bool { @@ -154,8 +145,6 @@ public function lzfCompressed(): bool /** * Determine if ZSTD compression is enabled. - * - * @return bool */ public function zstdCompressed(): bool { @@ -165,8 +154,6 @@ public function zstdCompressed(): bool /** * Determine if LZ4 compression is enabled. - * - * @return bool */ public function lz4Compressed(): bool { @@ -176,8 +163,6 @@ public function lz4Compressed(): bool /** * Determine if the current PhpRedis extension version supports packing. - * - * @return bool */ protected function supportsPacking(): bool { @@ -190,8 +175,6 @@ protected function supportsPacking(): bool /** * Determine if the current PhpRedis extension version supports LZF compression. - * - * @return bool */ protected function supportsLzf(): bool { @@ -204,8 +187,6 @@ protected function supportsLzf(): bool /** * Determine if the current PhpRedis extension version supports Zstd compression. - * - * @return bool */ protected function supportsZstd(): bool { @@ -218,9 +199,6 @@ protected function supportsZstd(): bool /** * Determine if the PhpRedis extension version is at least the given version. - * - * @param string $version - * @return bool */ protected function phpRedisVersionAtLeast(string $version): bool { diff --git a/src/Illuminate/Redis/Connections/PhpRedisClusterConnection.php b/src/Illuminate/Redis/Connections/PhpRedisClusterConnection.php index b49229ac8bc2..08da3dd342bf 100644 --- a/src/Illuminate/Redis/Connections/PhpRedisClusterConnection.php +++ b/src/Illuminate/Redis/Connections/PhpRedisClusterConnection.php @@ -23,9 +23,7 @@ class PhpRedisClusterConnection extends PhpRedisConnection /** * Scan all keys based on the given options. * - * @param mixed $cursor * @param array $options - * @return mixed * * @throws \InvalidArgumentException */ diff --git a/src/Illuminate/Redis/Connections/PhpRedisConnection.php b/src/Illuminate/Redis/Connections/PhpRedisConnection.php index a0448f2e270b..1fa2a305e2de 100644 --- a/src/Illuminate/Redis/Connections/PhpRedisConnection.php +++ b/src/Illuminate/Redis/Connections/PhpRedisConnection.php @@ -33,8 +33,6 @@ class PhpRedisConnection extends Connection implements ConnectionContract * Create a new PhpRedis connection. * * @param \Redis $client - * @param callable|null $connector - * @param array $config */ public function __construct($client, ?callable $connector = null, array $config = []) { @@ -59,7 +57,6 @@ public function get($key) /** * Get the values of all the given keys. * - * @param array $keys * @return array */ public function mget(array $keys) @@ -73,7 +70,6 @@ public function mget(array $keys) * Set the string value in the argument as the value of the key. * * @param string $key - * @param mixed $value * @param string|null $expireResolution * @param int|null $expireTTL * @param string|null $flag @@ -104,7 +100,6 @@ public function setnx($key, $value) * Get the value of the given hash fields. * * @param string $key - * @param mixed ...$dictionary * @return array */ public function hmget($key, ...$dictionary) @@ -120,7 +115,6 @@ public function hmget($key, ...$dictionary) * Set the given hash fields to their respective values. * * @param string $key - * @param mixed ...$dictionary * @return int */ public function hmset($key, ...$dictionary) @@ -154,7 +148,6 @@ public function hsetnx($hash, $key, $value) * * @param string $key * @param int $count - * @param mixed $value * @return int|false */ public function lrem($key, $count, $value) @@ -165,7 +158,6 @@ public function lrem($key, $count, $value) /** * Removes and returns the first element of the list stored at key. * - * @param mixed ...$arguments * @return array|null */ public function blpop(...$arguments) @@ -178,7 +170,6 @@ public function blpop(...$arguments) /** * Removes and returns the last element of the list stored at key. * - * @param mixed ...$arguments * @return array|null */ public function brpop(...$arguments) @@ -204,7 +195,6 @@ public function spop($key, $count = 1) * Add one or more members to a sorted set or update its score if it already exists. * * @param string $key - * @param mixed ...$dictionary * @return int */ public function zadd($key, ...$dictionary) @@ -233,8 +223,6 @@ public function zadd($key, ...$dictionary) * Return elements with score between $min and $max. * * @param string $key - * @param mixed $min - * @param mixed $max * @param array $options * @return array */ @@ -254,8 +242,6 @@ public function zrangebyscore($key, $min, $max, $options = []) * Return elements with score between $min and $max. * * @param string $key - * @param mixed $min - * @param mixed $max * @param array $options * @return array */ @@ -306,9 +292,7 @@ public function zunionstore($output, $keys, $options = []) /** * Scans all keys based on options. * - * @param mixed $cursor * @param array $options - * @return mixed */ public function scan($cursor, $options = []) { @@ -328,9 +312,7 @@ public function scan($cursor, $options = []) * Scans the given set for all values based on options. * * @param string $key - * @param mixed $cursor * @param array $options - * @return mixed */ public function zscan($key, $cursor, $options = []) { @@ -350,9 +332,7 @@ public function zscan($key, $cursor, $options = []) * Scans the given hash for all values based on options. * * @param string $key - * @param mixed $cursor * @param array $options - * @return mixed */ public function hscan($key, $cursor, $options = []) { @@ -372,9 +352,7 @@ public function hscan($key, $cursor, $options = []) * Scans the given set for all values based on options. * * @param string $key - * @param mixed $cursor * @param array $options - * @return mixed */ public function sscan($key, $cursor, $options = []) { @@ -393,7 +371,6 @@ public function sscan($key, $cursor, $options = []) /** * Execute commands in a pipeline. * - * @param callable|null $callback * @return \Redis|array */ public function pipeline(?callable $callback = null) @@ -408,7 +385,6 @@ public function pipeline(?callable $callback = null) /** * Execute commands in a transaction. * - * @param callable|null $callback * @return \Redis|array */ public function transaction(?callable $callback = null) @@ -425,8 +401,6 @@ public function transaction(?callable $callback = null) * * @param string $script * @param int $numkeys - * @param mixed ...$arguments - * @return mixed */ public function evalsha($script, $numkeys, ...$arguments) { @@ -440,8 +414,6 @@ public function evalsha($script, $numkeys, ...$arguments) * * @param string $script * @param int $numberOfKeys - * @param mixed ...$arguments - * @return mixed */ public function eval($script, $numberOfKeys, ...$arguments) { @@ -452,7 +424,6 @@ public function eval($script, $numberOfKeys, ...$arguments) * Subscribe to a set of given channels for messages. * * @param array|string $channels - * @param \Closure $callback * @return void */ public function subscribe($channels, Closure $callback) @@ -466,7 +437,6 @@ public function subscribe($channels, Closure $callback) * Subscribe to a set of given channels with wildcards. * * @param array|string $channels - * @param \Closure $callback * @return void */ public function psubscribe($channels, Closure $callback) @@ -480,7 +450,6 @@ public function psubscribe($channels, Closure $callback) * Subscribe to a set of given channels for messages. * * @param array|string $channels - * @param \Closure $callback * @param string $method * @return void */ @@ -491,8 +460,6 @@ public function createSubscription($channels, Closure $callback, $method = 'subs /** * Flush the selected Redis database. - * - * @return mixed */ public function flushdb() { @@ -507,9 +474,6 @@ public function flushdb() /** * Execute a raw command. - * - * @param array $parameters - * @return mixed */ public function executeRaw(array $parameters) { @@ -520,8 +484,6 @@ public function executeRaw(array $parameters) * Run a command against the Redis database. * * @param string $method - * @param array $parameters - * @return mixed * * @throws \RedisException */ @@ -553,7 +515,6 @@ public function disconnect() * * @param string $method * @param array $parameters - * @return mixed */ public function __call($method, $parameters) { diff --git a/src/Illuminate/Redis/Connections/PredisConnection.php b/src/Illuminate/Redis/Connections/PredisConnection.php index 1f6ec698627f..687251d698dc 100644 --- a/src/Illuminate/Redis/Connections/PredisConnection.php +++ b/src/Illuminate/Redis/Connections/PredisConnection.php @@ -33,7 +33,6 @@ public function __construct($client) * Subscribe to a set of given channels for messages. * * @param array|string $channels - * @param \Closure $callback * @param string $method * @return void */ @@ -55,7 +54,6 @@ public function createSubscription($channels, Closure $callback, $method = 'subs /** * Parse the command's parameters for event dispatching. * - * @param array $parameters * @return array */ protected function parseParametersForEvent(array $parameters) diff --git a/src/Illuminate/Redis/Connectors/PhpRedisConnector.php b/src/Illuminate/Redis/Connectors/PhpRedisConnector.php index df5512c9b986..b9d623f19565 100644 --- a/src/Illuminate/Redis/Connectors/PhpRedisConnector.php +++ b/src/Illuminate/Redis/Connectors/PhpRedisConnector.php @@ -17,8 +17,6 @@ class PhpRedisConnector implements Connector /** * Create a new connection. * - * @param array $config - * @param array $options * @return \Illuminate\Redis\Connections\PhpRedisConnection */ public function connect(array $config, array $options) @@ -41,9 +39,6 @@ public function connect(array $config, array $options) /** * Create a new clustered PhpRedis connection. * - * @param array $config - * @param array $clusterOptions - * @param array $options * @return \Illuminate\Redis\Connections\PhpRedisClusterConnection */ public function connectToCluster(array $config, array $clusterOptions, array $options) @@ -58,7 +53,6 @@ public function connectToCluster(array $config, array $clusterOptions, array $op /** * Build a single cluster seed string from an array. * - * @param array $server * @return string */ protected function buildClusterConnectionString(array $server) @@ -69,7 +63,6 @@ protected function buildClusterConnectionString(array $server) /** * Create the Redis client instance. * - * @param array $config * @return \Redis * * @throws \LogicException @@ -149,7 +142,6 @@ protected function createClient(array $config) * Establish a connection with the Redis host. * * @param \Redis $client - * @param array $config * @return void */ protected function establishConnection($client, array $config) @@ -178,8 +170,6 @@ protected function establishConnection($client, array $config) /** * Create a new redis cluster instance. * - * @param array $servers - * @param array $options * @return \RedisCluster */ protected function createRedisClusterInstance(array $servers, array $options) @@ -230,7 +220,6 @@ protected function createRedisClusterInstance(array $servers, array $options) /** * Format the host using the scheme if available. * - * @param array $options * @return string */ protected function formatHost(array $options) diff --git a/src/Illuminate/Redis/Connectors/PredisConnector.php b/src/Illuminate/Redis/Connectors/PredisConnector.php index 50fc39462ce0..d3e021ce4cf7 100644 --- a/src/Illuminate/Redis/Connectors/PredisConnector.php +++ b/src/Illuminate/Redis/Connectors/PredisConnector.php @@ -14,8 +14,6 @@ class PredisConnector implements Connector /** * Create a new connection. * - * @param array $config - * @param array $options * @return \Illuminate\Redis\Connections\PredisConnection */ public function connect(array $config, array $options) @@ -39,9 +37,6 @@ public function connect(array $config, array $options) /** * Create a new clustered Predis connection. * - * @param array $config - * @param array $clusterOptions - * @param array $options * @return \Illuminate\Redis\Connections\PredisClusterConnection */ public function connectToCluster(array $config, array $clusterOptions, array $options) diff --git a/src/Illuminate/Redis/Limiters/ConcurrencyLimiter.php b/src/Illuminate/Redis/Limiters/ConcurrencyLimiter.php index 02c17870862a..b982c5808dda 100644 --- a/src/Illuminate/Redis/Limiters/ConcurrencyLimiter.php +++ b/src/Illuminate/Redis/Limiters/ConcurrencyLimiter.php @@ -59,7 +59,6 @@ public function __construct($redis, $name, $maxLocks, $releaseAfter) * @param int $timeout * @param callable|null $callback * @param int $sleep - * @return mixed * * @throws \Illuminate\Contracts\Redis\LimiterTimeoutException * @throws \Throwable @@ -97,7 +96,6 @@ public function block($timeout, $callback = null, $sleep = 250) * Attempt to acquire the lock. * * @param string $id A unique identifier for this lock - * @return mixed */ protected function acquire($id) { diff --git a/src/Illuminate/Redis/Limiters/ConcurrencyLimiterBuilder.php b/src/Illuminate/Redis/Limiters/ConcurrencyLimiterBuilder.php index aee3df80f281..4f969596a71a 100644 --- a/src/Illuminate/Redis/Limiters/ConcurrencyLimiterBuilder.php +++ b/src/Illuminate/Redis/Limiters/ConcurrencyLimiterBuilder.php @@ -118,9 +118,6 @@ public function sleep($sleep) /** * Execute the given callback if a lock is obtained, otherwise call the failure callback. * - * @param callable $callback - * @param callable|null $failure - * @return mixed * * @throws \Illuminate\Contracts\Redis\LimiterTimeoutException */ diff --git a/src/Illuminate/Redis/Limiters/DurationLimiter.php b/src/Illuminate/Redis/Limiters/DurationLimiter.php index e6c66c30957c..bfac7842c34c 100644 --- a/src/Illuminate/Redis/Limiters/DurationLimiter.php +++ b/src/Illuminate/Redis/Limiters/DurationLimiter.php @@ -71,7 +71,6 @@ public function __construct($redis, $name, $maxLocks, $decay) * @param int $timeout * @param callable|null $callback * @param int $sleep - * @return mixed * * @throws \Illuminate\Contracts\Redis\LimiterTimeoutException */ diff --git a/src/Illuminate/Redis/Limiters/DurationLimiterBuilder.php b/src/Illuminate/Redis/Limiters/DurationLimiterBuilder.php index 013469079b44..09446b89a920 100644 --- a/src/Illuminate/Redis/Limiters/DurationLimiterBuilder.php +++ b/src/Illuminate/Redis/Limiters/DurationLimiterBuilder.php @@ -118,9 +118,6 @@ public function sleep($sleep) /** * Execute the given callback if a lock is obtained, otherwise call the failure callback. * - * @param callable $callback - * @param callable|null $failure - * @return mixed * * @throws \Illuminate\Contracts\Redis\LimiterTimeoutException */ diff --git a/src/Illuminate/Redis/RedisManager.php b/src/Illuminate/Redis/RedisManager.php index ce3817f357ab..053fa60ca66a 100644 --- a/src/Illuminate/Redis/RedisManager.php +++ b/src/Illuminate/Redis/RedisManager.php @@ -48,8 +48,6 @@ class RedisManager implements Factory /** * The Redis connections. - * - * @var mixed */ protected $connections; @@ -65,7 +63,6 @@ class RedisManager implements Factory * * @param \Illuminate\Contracts\Foundation\Application $app * @param string $driver - * @param array $config */ public function __construct($app, $driver, array $config) { @@ -141,7 +138,6 @@ protected function resolveCluster($name) /** * Configure the given connection to prepare it for commands. * - * @param \Illuminate\Redis\Connections\Connection $connection * @param string $name * @return \Illuminate\Redis\Connections\Connection */ @@ -179,7 +175,6 @@ protected function connector() /** * Parse the Redis connection configuration. * - * @param mixed $config * @return array */ protected function parseConnectionConfiguration($config) @@ -255,7 +250,6 @@ public function purge($name = null) * Register a custom driver creator Closure. * * @param string $driver - * @param \Closure $callback * * @param-closure-this $this $callback * @@ -273,7 +267,6 @@ public function extend($driver, Closure $callback) * * @param string $method * @param array $parameters - * @return mixed */ public function __call($method, $parameters) { diff --git a/src/Illuminate/Routing/AbstractRouteCollection.php b/src/Illuminate/Routing/AbstractRouteCollection.php index 0c59a555009e..cba3f335acb6 100644 --- a/src/Illuminate/Routing/AbstractRouteCollection.php +++ b/src/Illuminate/Routing/AbstractRouteCollection.php @@ -21,7 +21,6 @@ abstract class AbstractRouteCollection implements Countable, IteratorAggregate, /** * Handle the matched route. * - * @param \Illuminate\Http\Request $request * @param \Illuminate\Routing\Route|null $route * @return \Illuminate\Routing\Route * @@ -112,7 +111,6 @@ protected function getRouteForMethods($request, array $methods) * Throw a method not allowed HTTP exception. * * @param \Illuminate\Http\Request $request - * @param array $others * @param string $method * @return never * @@ -134,7 +132,6 @@ protected function requestMethodNotAllowed($request, array $others, $method) /** * Throw a method not allowed HTTP exception. * - * @param array $others * @param string $method * @return void * @@ -222,8 +219,6 @@ public function toSymfonyRouteCollection() /** * Add a route to the SymfonyRouteCollection instance. * - * @param \Symfony\Component\Routing\RouteCollection $symfonyRoutes - * @param \Illuminate\Routing\Route $route * @return \Symfony\Component\Routing\RouteCollection * * @throws \LogicException @@ -275,8 +270,6 @@ public function getIterator(): Traversable /** * Count the number of items in the collection. - * - * @return int */ public function count(): int { diff --git a/src/Illuminate/Routing/CallableDispatcher.php b/src/Illuminate/Routing/CallableDispatcher.php index 7e63e54dd9f4..367eb424cba4 100644 --- a/src/Illuminate/Routing/CallableDispatcher.php +++ b/src/Illuminate/Routing/CallableDispatcher.php @@ -19,8 +19,6 @@ class CallableDispatcher implements CallableDispatcherContract /** * Create a new callable dispatcher instance. - * - * @param \Illuminate\Container\Container $container */ public function __construct(Container $container) { @@ -30,9 +28,7 @@ public function __construct(Container $container) /** * Dispatch a request to a given callable. * - * @param \Illuminate\Routing\Route $route * @param callable $callable - * @return mixed */ public function dispatch(Route $route, $callable) { @@ -42,7 +38,6 @@ public function dispatch(Route $route, $callable) /** * Resolve the parameters for the callable. * - * @param \Illuminate\Routing\Route $route * @param callable $callable * @return array */ diff --git a/src/Illuminate/Routing/CompiledRouteCollection.php b/src/Illuminate/Routing/CompiledRouteCollection.php index a20979bf4e41..41359844c126 100644 --- a/src/Illuminate/Routing/CompiledRouteCollection.php +++ b/src/Illuminate/Routing/CompiledRouteCollection.php @@ -51,9 +51,6 @@ class CompiledRouteCollection extends AbstractRouteCollection /** * Create a new CompiledRouteCollection instance. - * - * @param array $compiled - * @param array $attributes */ public function __construct(array $compiled, array $attributes) { @@ -65,7 +62,6 @@ public function __construct(array $compiled, array $attributes) /** * Add a Route instance to the collection. * - * @param \Illuminate\Routing\Route $route * @return \Illuminate\Routing\Route */ public function add(Route $route) @@ -100,7 +96,6 @@ public function refreshActionLookups() /** * Find the first route matching a given request. * - * @param \Illuminate\Http\Request $request * @return \Illuminate\Routing\Route * * @throws \Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException @@ -146,7 +141,6 @@ public function match(Request $request) /** * Get a cloned instance of the given request without any trailing slash on the URI. * - * @param \Illuminate\Http\Request $request * @return \Illuminate\Http\Request */ protected function requestWithoutTrailingSlash(Request $request) @@ -274,7 +268,6 @@ public function getRoutesByName() /** * Resolve an array of attributes to a Route instance. * - * @param array $attributes * @return \Illuminate\Routing\Route */ protected function newRoute(array $attributes) @@ -304,7 +297,6 @@ protected function newRoute(array $attributes) /** * Set the router instance on the route. * - * @param \Illuminate\Routing\Router $router * @return $this */ public function setRouter(Router $router) @@ -317,7 +309,6 @@ public function setRouter(Router $router) /** * Set the container instance on the route. * - * @param \Illuminate\Container\Container $container * @return $this */ public function setContainer(Container $container) diff --git a/src/Illuminate/Routing/Console/ControllerMakeCommand.php b/src/Illuminate/Routing/Console/ControllerMakeCommand.php index dcf855c3f806..158f1335f7c1 100755 --- a/src/Illuminate/Routing/Console/ControllerMakeCommand.php +++ b/src/Illuminate/Routing/Console/ControllerMakeCommand.php @@ -171,7 +171,6 @@ protected function buildParentReplacements() /** * Build the model replacement values. * - * @param array $replace * @return array */ protected function buildModelReplacements(array $replace) @@ -217,7 +216,6 @@ protected function parseModel($model) /** * Build the model replacement values. * - * @param array $replace * @param string $modelClass * @return array */ @@ -304,8 +302,6 @@ protected function getOptions() /** * Interact further with the user if they were prompted for missing arguments. * - * @param \Symfony\Component\Console\Input\InputInterface $input - * @param \Symfony\Component\Console\Output\OutputInterface $output * @return void */ protected function afterPromptingForMissingArguments(InputInterface $input, OutputInterface $output) diff --git a/src/Illuminate/Routing/Contracts/CallableDispatcher.php b/src/Illuminate/Routing/Contracts/CallableDispatcher.php index 637c8f4d568f..73ca3c3f6113 100644 --- a/src/Illuminate/Routing/Contracts/CallableDispatcher.php +++ b/src/Illuminate/Routing/Contracts/CallableDispatcher.php @@ -9,9 +9,7 @@ interface CallableDispatcher /** * Dispatch a request to a given callable. * - * @param \Illuminate\Routing\Route $route * @param callable $callable - * @return mixed */ public function dispatch(Route $route, $callable); } diff --git a/src/Illuminate/Routing/Contracts/ControllerDispatcher.php b/src/Illuminate/Routing/Contracts/ControllerDispatcher.php index bcbef21778c9..12a5c6ecd4fd 100644 --- a/src/Illuminate/Routing/Contracts/ControllerDispatcher.php +++ b/src/Illuminate/Routing/Contracts/ControllerDispatcher.php @@ -9,10 +9,7 @@ interface ControllerDispatcher /** * Dispatch a request to a given controller and method. * - * @param \Illuminate\Routing\Route $route - * @param mixed $controller * @param string $method - * @return mixed */ public function dispatch(Route $route, $controller, $method); diff --git a/src/Illuminate/Routing/Controller.php b/src/Illuminate/Routing/Controller.php index a26a5ee7effa..3b285bb4fd72 100644 --- a/src/Illuminate/Routing/Controller.php +++ b/src/Illuminate/Routing/Controller.php @@ -17,7 +17,6 @@ abstract class Controller * Register middleware on the controller. * * @param \Closure|array|string $middleware - * @param array $options * @return \Illuminate\Routing\ControllerMiddlewareOptions */ public function middleware($middleware, array $options = []) @@ -59,7 +58,6 @@ public function callAction($method, $parameters) * * @param string $method * @param array $parameters - * @return mixed * * @throws \BadMethodCallException */ diff --git a/src/Illuminate/Routing/ControllerDispatcher.php b/src/Illuminate/Routing/ControllerDispatcher.php index edf039630663..54e73421ea5c 100644 --- a/src/Illuminate/Routing/ControllerDispatcher.php +++ b/src/Illuminate/Routing/ControllerDispatcher.php @@ -19,8 +19,6 @@ class ControllerDispatcher implements ControllerDispatcherContract /** * Create a new controller dispatcher instance. - * - * @param \Illuminate\Container\Container $container */ public function __construct(Container $container) { @@ -30,10 +28,7 @@ public function __construct(Container $container) /** * Dispatch a request to a given controller and method. * - * @param \Illuminate\Routing\Route $route - * @param mixed $controller * @param string $method - * @return mixed */ public function dispatch(Route $route, $controller, $method) { @@ -49,8 +44,6 @@ public function dispatch(Route $route, $controller, $method) /** * Resolve the parameters for the controller. * - * @param \Illuminate\Routing\Route $route - * @param mixed $controller * @param string $method * @return array */ diff --git a/src/Illuminate/Routing/ControllerMiddlewareOptions.php b/src/Illuminate/Routing/ControllerMiddlewareOptions.php index d8c03e7b6cd8..6024ee00e9d7 100644 --- a/src/Illuminate/Routing/ControllerMiddlewareOptions.php +++ b/src/Illuminate/Routing/ControllerMiddlewareOptions.php @@ -13,8 +13,6 @@ class ControllerMiddlewareOptions /** * Create a new middleware option instance. - * - * @param array $options */ public function __construct(array &$options) { @@ -24,7 +22,6 @@ public function __construct(array &$options) /** * Set the controller methods the middleware should apply to. * - * @param mixed $methods * @return $this */ public function only($methods) @@ -37,7 +34,6 @@ public function only($methods) /** * Set the controller methods the middleware should exclude. * - * @param mixed $methods * @return $this */ public function except($methods) diff --git a/src/Illuminate/Routing/Controllers/Middleware.php b/src/Illuminate/Routing/Controllers/Middleware.php index ac56fea6068a..50a9e9d51474 100644 --- a/src/Illuminate/Routing/Controllers/Middleware.php +++ b/src/Illuminate/Routing/Controllers/Middleware.php @@ -10,7 +10,6 @@ class Middleware /** * Create a new controller middleware definition. * - * @param \Closure|string|array $middleware * @param array|null $only * @param array|null $except */ @@ -21,7 +20,6 @@ public function __construct(public Closure|string|array $middleware, public ?arr /** * Specify the only controller methods the middleware should apply to. * - * @param array|string $only * @return $this */ public function only(array|string $only) @@ -34,7 +32,6 @@ public function only(array|string $only) /** * Specify the controller methods the middleware should not apply to. * - * @param array|string $except * @return $this */ public function except(array|string $except) diff --git a/src/Illuminate/Routing/CreatesRegularExpressionRouteConstraints.php b/src/Illuminate/Routing/CreatesRegularExpressionRouteConstraints.php index c17374cef7c6..f0968f50ec57 100644 --- a/src/Illuminate/Routing/CreatesRegularExpressionRouteConstraints.php +++ b/src/Illuminate/Routing/CreatesRegularExpressionRouteConstraints.php @@ -67,7 +67,6 @@ public function whereUuid($parameters) * Specify that the given route parameters must be one of the given values. * * @param array|string $parameters - * @param array $values * @return $this */ public function whereIn($parameters, array $values) diff --git a/src/Illuminate/Routing/Exceptions/MissingRateLimiterException.php b/src/Illuminate/Routing/Exceptions/MissingRateLimiterException.php index 3b71c444b837..72406a491d57 100644 --- a/src/Illuminate/Routing/Exceptions/MissingRateLimiterException.php +++ b/src/Illuminate/Routing/Exceptions/MissingRateLimiterException.php @@ -9,7 +9,6 @@ class MissingRateLimiterException extends Exception /** * Create a new exception for invalid named rate limiter. * - * @param string $limiter * @return static */ public static function forLimiter(string $limiter) @@ -20,7 +19,6 @@ public static function forLimiter(string $limiter) /** * Create a new exception for an invalid rate limiter based on a model property. * - * @param string $limiter * @param class-string $model * @return static */ diff --git a/src/Illuminate/Routing/Exceptions/StreamedResponseException.php b/src/Illuminate/Routing/Exceptions/StreamedResponseException.php index 6173aed01421..6cb5e5383b97 100644 --- a/src/Illuminate/Routing/Exceptions/StreamedResponseException.php +++ b/src/Illuminate/Routing/Exceptions/StreamedResponseException.php @@ -17,8 +17,6 @@ class StreamedResponseException extends RuntimeException /** * Create a new exception instance. - * - * @param \Throwable $originalException */ public function __construct(Throwable $originalException) { diff --git a/src/Illuminate/Routing/Exceptions/UrlGenerationException.php b/src/Illuminate/Routing/Exceptions/UrlGenerationException.php index eadda8010c0f..7080e64a2c92 100644 --- a/src/Illuminate/Routing/Exceptions/UrlGenerationException.php +++ b/src/Illuminate/Routing/Exceptions/UrlGenerationException.php @@ -11,8 +11,6 @@ class UrlGenerationException extends Exception /** * Create a new exception for missing route parameters. * - * @param \Illuminate\Routing\Route $route - * @param array $parameters * @return static */ public static function forMissingParameters(Route $route, array $parameters = []) diff --git a/src/Illuminate/Routing/FiltersControllerMiddleware.php b/src/Illuminate/Routing/FiltersControllerMiddleware.php index ba14d653e60f..c516fdb0c3b0 100644 --- a/src/Illuminate/Routing/FiltersControllerMiddleware.php +++ b/src/Illuminate/Routing/FiltersControllerMiddleware.php @@ -8,7 +8,6 @@ trait FiltersControllerMiddleware * Determine if the given options exclude a particular method. * * @param string $method - * @param array $options * @return bool */ public static function methodExcludedByOptions($method, array $options) diff --git a/src/Illuminate/Routing/Matching/HostValidator.php b/src/Illuminate/Routing/Matching/HostValidator.php index a0ea7210cb54..a49743689887 100644 --- a/src/Illuminate/Routing/Matching/HostValidator.php +++ b/src/Illuminate/Routing/Matching/HostValidator.php @@ -10,8 +10,6 @@ class HostValidator implements ValidatorInterface /** * Validate a given rule against a route and request. * - * @param \Illuminate\Routing\Route $route - * @param \Illuminate\Http\Request $request * @return bool */ public function matches(Route $route, Request $request) diff --git a/src/Illuminate/Routing/Matching/MethodValidator.php b/src/Illuminate/Routing/Matching/MethodValidator.php index f9cf155d89d8..b0cd562e4569 100644 --- a/src/Illuminate/Routing/Matching/MethodValidator.php +++ b/src/Illuminate/Routing/Matching/MethodValidator.php @@ -10,8 +10,6 @@ class MethodValidator implements ValidatorInterface /** * Validate a given rule against a route and request. * - * @param \Illuminate\Routing\Route $route - * @param \Illuminate\Http\Request $request * @return bool */ public function matches(Route $route, Request $request) diff --git a/src/Illuminate/Routing/Matching/SchemeValidator.php b/src/Illuminate/Routing/Matching/SchemeValidator.php index fd5d5af8fa6b..50ee2cdfb346 100644 --- a/src/Illuminate/Routing/Matching/SchemeValidator.php +++ b/src/Illuminate/Routing/Matching/SchemeValidator.php @@ -10,8 +10,6 @@ class SchemeValidator implements ValidatorInterface /** * Validate a given rule against a route and request. * - * @param \Illuminate\Routing\Route $route - * @param \Illuminate\Http\Request $request * @return bool */ public function matches(Route $route, Request $request) diff --git a/src/Illuminate/Routing/Matching/UriValidator.php b/src/Illuminate/Routing/Matching/UriValidator.php index 4dcc2cf34d69..bf902596ce52 100644 --- a/src/Illuminate/Routing/Matching/UriValidator.php +++ b/src/Illuminate/Routing/Matching/UriValidator.php @@ -10,8 +10,6 @@ class UriValidator implements ValidatorInterface /** * Validate a given rule against a route and request. * - * @param \Illuminate\Routing\Route $route - * @param \Illuminate\Http\Request $request * @return bool */ public function matches(Route $route, Request $request) diff --git a/src/Illuminate/Routing/Matching/ValidatorInterface.php b/src/Illuminate/Routing/Matching/ValidatorInterface.php index 0f178f1358c4..8558e137d61e 100644 --- a/src/Illuminate/Routing/Matching/ValidatorInterface.php +++ b/src/Illuminate/Routing/Matching/ValidatorInterface.php @@ -10,8 +10,6 @@ interface ValidatorInterface /** * Validate a given rule against a route and request. * - * @param \Illuminate\Routing\Route $route - * @param \Illuminate\Http\Request $request * @return bool */ public function matches(Route $route, Request $request); diff --git a/src/Illuminate/Routing/Middleware/SubstituteBindings.php b/src/Illuminate/Routing/Middleware/SubstituteBindings.php index 68fe621e4dd7..55941bd41079 100644 --- a/src/Illuminate/Routing/Middleware/SubstituteBindings.php +++ b/src/Illuminate/Routing/Middleware/SubstituteBindings.php @@ -17,8 +17,6 @@ class SubstituteBindings /** * Create a new bindings substitutor. - * - * @param \Illuminate\Contracts\Routing\Registrar $router */ public function __construct(Registrar $router) { @@ -29,8 +27,6 @@ public function __construct(Registrar $router) * Handle an incoming request. * * @param \Illuminate\Http\Request $request - * @param \Closure $next - * @return mixed */ public function handle($request, Closure $next) { diff --git a/src/Illuminate/Routing/Middleware/ThrottleRequests.php b/src/Illuminate/Routing/Middleware/ThrottleRequests.php index f6a21dd4098b..ab5e49e0472f 100644 --- a/src/Illuminate/Routing/Middleware/ThrottleRequests.php +++ b/src/Illuminate/Routing/Middleware/ThrottleRequests.php @@ -33,8 +33,6 @@ class ThrottleRequests /** * Create a new request throttler. - * - * @param \Illuminate\Cache\RateLimiter $limiter */ public function __construct(RateLimiter $limiter) { @@ -71,7 +69,6 @@ public static function with($maxAttempts = 60, $decayMinutes = 1, $prefix = '') * Handle an incoming request. * * @param \Illuminate\Http\Request $request - * @param \Closure $next * @param int|string $maxAttempts * @param float|int $decayMinutes * @param string $prefix @@ -106,9 +103,7 @@ public function handle($request, Closure $next, $maxAttempts = 60, $decayMinutes * Handle an incoming request. * * @param \Illuminate\Http\Request $request - * @param \Closure $next * @param string $limiterName - * @param \Closure $limiter * @return \Symfony\Component\HttpFoundation\Response * * @throws \Illuminate\Http\Exceptions\ThrottleRequestsException @@ -141,8 +136,6 @@ protected function handleRequestUsingNamedLimiter($request, Closure $next, $limi * Handle an incoming request. * * @param \Illuminate\Http\Request $request - * @param \Closure $next - * @param array $limits * @return \Symfony\Component\HttpFoundation\Response * * @throws \Illuminate\Http\Exceptions\ThrottleRequestsException @@ -258,7 +251,6 @@ protected function getTimeUntilNextRetry($key) /** * Add the limit header information to the given response. * - * @param \Symfony\Component\HttpFoundation\Response $response * @param int $maxAttempts * @param int $remainingAttempts * @param int|null $retryAfter @@ -279,7 +271,6 @@ protected function addHeaders(Response $response, $maxAttempts, $remainingAttemp * @param int $maxAttempts * @param int $remainingAttempts * @param int|null $retryAfter - * @param \Symfony\Component\HttpFoundation\Response|null $response * @return array */ protected function getHeaders($maxAttempts, @@ -333,7 +324,6 @@ private function formatIdentifier($value) /** * Specify whether rate limiter keys should be hashed. * - * @param bool $shouldHashKeys * @return void */ public static function shouldHashKeys(bool $shouldHashKeys = true) diff --git a/src/Illuminate/Routing/Middleware/ThrottleRequestsWithRedis.php b/src/Illuminate/Routing/Middleware/ThrottleRequestsWithRedis.php index 547f082c0f91..01708609ce62 100644 --- a/src/Illuminate/Routing/Middleware/ThrottleRequestsWithRedis.php +++ b/src/Illuminate/Routing/Middleware/ThrottleRequestsWithRedis.php @@ -32,9 +32,6 @@ class ThrottleRequestsWithRedis extends ThrottleRequests /** * Create a new request throttler. - * - * @param \Illuminate\Cache\RateLimiter $limiter - * @param \Illuminate\Contracts\Redis\Factory $redis */ public function __construct(RateLimiter $limiter, Redis $redis) { @@ -47,8 +44,6 @@ public function __construct(RateLimiter $limiter, Redis $redis) * Handle an incoming request. * * @param \Illuminate\Http\Request $request - * @param \Closure $next - * @param array $limits * @return \Symfony\Component\HttpFoundation\Response * * @throws \Illuminate\Http\Exceptions\ThrottleRequestsException @@ -80,7 +75,6 @@ protected function handleRequest($request, Closure $next, array $limits) * @param string $key * @param int $maxAttempts * @param int $decaySeconds - * @return mixed */ protected function tooManyAttempts($key, $maxAttempts, $decaySeconds) { diff --git a/src/Illuminate/Routing/Middleware/ValidateSignature.php b/src/Illuminate/Routing/Middleware/ValidateSignature.php index 2ce5ae154ccb..5a83b4fd9069 100644 --- a/src/Illuminate/Routing/Middleware/ValidateSignature.php +++ b/src/Illuminate/Routing/Middleware/ValidateSignature.php @@ -56,7 +56,6 @@ public static function absolute($ignore = []) * Handle an incoming request. * * @param \Illuminate\Http\Request $request - * @param \Closure $next * @param array|null $args * @return \Illuminate\Http\Response * @@ -76,7 +75,6 @@ public function handle($request, Closure $next, ...$args) /** * Parse the additional arguments given to the middleware. * - * @param array $args * @return array */ protected function parseArguments(array $args) diff --git a/src/Illuminate/Routing/PendingResourceRegistration.php b/src/Illuminate/Routing/PendingResourceRegistration.php index 7e16f7e87ee9..5ec3fec685cc 100644 --- a/src/Illuminate/Routing/PendingResourceRegistration.php +++ b/src/Illuminate/Routing/PendingResourceRegistration.php @@ -47,10 +47,8 @@ class PendingResourceRegistration /** * Create a new pending resource registration instance. * - * @param \Illuminate\Routing\ResourceRegistrar $registrar * @param string $name * @param string $controller - * @param array $options */ public function __construct(ResourceRegistrar $registrar, $name, $controller, array $options) { @@ -63,7 +61,6 @@ public function __construct(ResourceRegistrar $registrar, $name, $controller, ar /** * Set the methods the controller should apply to. * - * @param mixed $methods * @return \Illuminate\Routing\PendingResourceRegistration */ public function only($methods) @@ -76,7 +73,6 @@ public function only($methods) /** * Set the methods the controller should exclude. * - * @param mixed $methods * @return \Illuminate\Routing\PendingResourceRegistration */ public function except($methods) @@ -143,7 +139,6 @@ public function parameter($previous, $new) /** * Add middleware to the resource routes. * - * @param mixed $middleware * @return \Illuminate\Routing\PendingResourceRegistration */ public function middleware($middleware) @@ -231,7 +226,6 @@ public function withoutMiddlewareFor($methods, $middleware) /** * Add "where" constraints to the resource routes. * - * @param mixed $wheres * @return \Illuminate\Routing\PendingResourceRegistration */ public function where($wheres) @@ -270,7 +264,6 @@ public function missing($callback) /** * Indicate that the resource routes should be scoped using the given binding fields. * - * @param array $fields * @return \Illuminate\Routing\PendingResourceRegistration */ public function scoped(array $fields = []) @@ -283,7 +276,6 @@ public function scoped(array $fields = []) /** * Define which routes should allow "trashed" models to be retrieved when resolving implicit model bindings. * - * @param array $methods * @return \Illuminate\Routing\PendingResourceRegistration */ public function withTrashed(array $methods = []) diff --git a/src/Illuminate/Routing/PendingSingletonResourceRegistration.php b/src/Illuminate/Routing/PendingSingletonResourceRegistration.php index 2d845d300d2e..689f49c9814f 100644 --- a/src/Illuminate/Routing/PendingSingletonResourceRegistration.php +++ b/src/Illuminate/Routing/PendingSingletonResourceRegistration.php @@ -47,10 +47,8 @@ class PendingSingletonResourceRegistration /** * Create a new pending singleton resource registration instance. * - * @param \Illuminate\Routing\ResourceRegistrar $registrar * @param string $name * @param string $controller - * @param array $options */ public function __construct(ResourceRegistrar $registrar, $name, $controller, array $options) { @@ -63,7 +61,6 @@ public function __construct(ResourceRegistrar $registrar, $name, $controller, ar /** * Set the methods the controller should apply to. * - * @param mixed $methods * @return \Illuminate\Routing\PendingSingletonResourceRegistration */ public function only($methods) @@ -76,7 +73,6 @@ public function only($methods) /** * Set the methods the controller should exclude. * - * @param mixed $methods * @return \Illuminate\Routing\PendingSingletonResourceRegistration */ public function except($methods) @@ -167,7 +163,6 @@ public function parameter($previous, $new) /** * Add middleware to the resource routes. * - * @param mixed $middleware * @return \Illuminate\Routing\PendingSingletonResourceRegistration */ public function middleware($middleware) @@ -255,7 +250,6 @@ public function withoutMiddlewareFor($methods, $middleware) /** * Add "where" constraints to the resource routes. * - * @param mixed $wheres * @return \Illuminate\Routing\PendingSingletonResourceRegistration */ public function where($wheres) diff --git a/src/Illuminate/Routing/Pipeline.php b/src/Illuminate/Routing/Pipeline.php index 8ffa2a8bd638..b65bcc069d40 100644 --- a/src/Illuminate/Routing/Pipeline.php +++ b/src/Illuminate/Routing/Pipeline.php @@ -17,9 +17,6 @@ class Pipeline extends BasePipeline { /** * Handles the value returned from each pipe before passing it to the next. - * - * @param mixed $carry - * @return mixed */ protected function handleCarry($carry) { @@ -31,9 +28,6 @@ protected function handleCarry($carry) /** * Handle the given exception. * - * @param mixed $passable - * @param \Throwable $e - * @return mixed * * @throws \Throwable */ diff --git a/src/Illuminate/Routing/RedirectController.php b/src/Illuminate/Routing/RedirectController.php index 1073658fc977..cadbd2191157 100644 --- a/src/Illuminate/Routing/RedirectController.php +++ b/src/Illuminate/Routing/RedirectController.php @@ -12,8 +12,6 @@ class RedirectController extends Controller /** * Invoke the controller method. * - * @param \Illuminate\Http\Request $request - * @param \Illuminate\Routing\UrlGenerator $url * @return \Illuminate\Http\RedirectResponse */ public function __invoke(Request $request, UrlGenerator $url) diff --git a/src/Illuminate/Routing/Redirector.php b/src/Illuminate/Routing/Redirector.php index 1b9a62a57aa9..4039f2d97936 100755 --- a/src/Illuminate/Routing/Redirector.php +++ b/src/Illuminate/Routing/Redirector.php @@ -26,8 +26,6 @@ class Redirector /** * Create a new Redirector instance. - * - * @param \Illuminate\Routing\UrlGenerator $generator */ public function __construct(UrlGenerator $generator) { @@ -39,7 +37,6 @@ public function __construct(UrlGenerator $generator) * * @param int $status * @param array $headers - * @param mixed $fallback * @return \Illuminate\Http\RedirectResponse */ public function back($status = 302, $headers = [], $fallback = false) @@ -86,7 +83,6 @@ public function guest($path, $status = 302, $headers = [], $secure = null) /** * Create a new redirect response to the previously intended location. * - * @param mixed $default * @param int $status * @param array $headers * @param bool|null $secure @@ -143,7 +139,6 @@ public function secure($path, $status = 302, $headers = []) * Create a new redirect response to a named route. * * @param \BackedEnum|string $route - * @param mixed $parameters * @param int $status * @param array $headers * @return \Illuminate\Http\RedirectResponse @@ -157,7 +152,6 @@ public function route($route, $parameters = [], $status = 302, $headers = []) * Create a new redirect response to a signed named route. * * @param \BackedEnum|string $route - * @param mixed $parameters * @param \DateTimeInterface|\DateInterval|int|null $expiration * @param int $status * @param array $headers @@ -173,7 +167,6 @@ public function signedRoute($route, $parameters = [], $expiration = null, $statu * * @param \BackedEnum|string $route * @param \DateTimeInterface|\DateInterval|int|null $expiration - * @param mixed $parameters * @param int $status * @param array $headers * @return \Illuminate\Http\RedirectResponse @@ -187,7 +180,6 @@ public function temporarySignedRoute($route, $expiration, $parameters = [], $sta * Create a new redirect response to a controller action. * * @param string|array $action - * @param mixed $parameters * @param int $status * @param array $headers * @return \Illuminate\Http\RedirectResponse @@ -229,7 +221,6 @@ public function getUrlGenerator() /** * Set the active session store. * - * @param \Illuminate\Session\Store $session * @return void */ public function setSession(SessionStore $session) diff --git a/src/Illuminate/Routing/ResolvesRouteDependencies.php b/src/Illuminate/Routing/ResolvesRouteDependencies.php index bd3139fc7691..54f3e3879264 100644 --- a/src/Illuminate/Routing/ResolvesRouteDependencies.php +++ b/src/Illuminate/Routing/ResolvesRouteDependencies.php @@ -16,7 +16,6 @@ trait ResolvesRouteDependencies /** * Resolve the object method's type-hinted dependencies. * - * @param array $parameters * @param object $instance * @param string $method * @return array @@ -35,8 +34,6 @@ protected function resolveClassMethodDependencies(array $parameters, $instance, /** * Resolve the given method's type-hinted dependencies. * - * @param array $parameters - * @param \ReflectionFunctionAbstract $reflector * @return array */ public function resolveMethodDependencies(array $parameters, ReflectionFunctionAbstract $reflector) @@ -68,10 +65,8 @@ public function resolveMethodDependencies(array $parameters, ReflectionFunctionA /** * Attempt to transform the given parameter into a class instance. * - * @param \ReflectionParameter $parameter * @param array $parameters * @param object $skippableValue - * @return mixed */ protected function transformDependency(ReflectionParameter $parameter, $parameters, $skippableValue) { @@ -99,7 +94,6 @@ protected function transformDependency(ReflectionParameter $parameter, $paramete * Determine if an object of the given class is in a list of parameters. * * @param string $class - * @param array $parameters * @return bool */ protected function alreadyInParameters($class, array $parameters) @@ -110,9 +104,7 @@ protected function alreadyInParameters($class, array $parameters) /** * Splice the given value into the parameter list. * - * @param array $parameters * @param string $offset - * @param mixed $value * @return void */ protected function spliceIntoParameters(array &$parameters, $offset, $value) diff --git a/src/Illuminate/Routing/ResourceRegistrar.php b/src/Illuminate/Routing/ResourceRegistrar.php index 82ccc1620b83..00f55cbbba7f 100644 --- a/src/Illuminate/Routing/ResourceRegistrar.php +++ b/src/Illuminate/Routing/ResourceRegistrar.php @@ -60,8 +60,6 @@ class ResourceRegistrar /** * Create a new resource registrar instance. - * - * @param \Illuminate\Routing\Router $router */ public function __construct(Router $router) { @@ -73,7 +71,6 @@ public function __construct(Router $router) * * @param string $name * @param string $controller - * @param array $options * @return \Illuminate\Routing\RouteCollection */ public function register($name, $controller, array $options = []) @@ -140,7 +137,6 @@ public function register($name, $controller, array $options = []) * * @param string $name * @param string $controller - * @param array $options * @return \Illuminate\Routing\RouteCollection */ public function singleton($name, $controller, array $options = []) @@ -203,7 +199,6 @@ public function singleton($name, $controller, array $options = []) * * @param string $name * @param string $controller - * @param array $options * @return \Illuminate\Routing\Router */ protected function prefixedResource($name, $controller, array $options) @@ -225,7 +220,6 @@ protected function prefixedResource($name, $controller, array $options) * * @param string $name * @param string $controller - * @param array $options * @return \Illuminate\Routing\Router */ protected function prefixedSingleton($name, $controller, array $options) @@ -593,7 +587,6 @@ public function getResourceUri($resource) /** * Get the URI for a nested resource segment array. * - * @param array $segments * @return string */ protected function getNestedResourceUri(array $segments) @@ -714,7 +707,6 @@ public static function getParameters() /** * Set the global parameter mapping. * - * @param array $parameters * @return void */ public static function setParameters(array $parameters = []) @@ -725,7 +717,6 @@ public static function setParameters(array $parameters = []) /** * Get or set the action verbs used in the resource URIs. * - * @param array $verbs * @return array */ public static function verbs(array $verbs = []) diff --git a/src/Illuminate/Routing/ResponseFactory.php b/src/Illuminate/Routing/ResponseFactory.php index a78459c47197..63dd7cfdd1f9 100644 --- a/src/Illuminate/Routing/ResponseFactory.php +++ b/src/Illuminate/Routing/ResponseFactory.php @@ -38,9 +38,6 @@ class ResponseFactory implements FactoryContract /** * Create a new response factory instance. - * - * @param \Illuminate\Contracts\View\Factory $view - * @param \Illuminate\Routing\Redirector $redirector */ public function __construct(ViewFactory $view, Redirector $redirector) { @@ -51,9 +48,7 @@ public function __construct(ViewFactory $view, Redirector $redirector) /** * Create a new response instance. * - * @param mixed $content * @param int $status - * @param array $headers * @return \Illuminate\Http\Response */ public function make($content = '', $status = 200, array $headers = []) @@ -65,7 +60,6 @@ public function make($content = '', $status = 200, array $headers = []) * Create a new "no content" response. * * @param int $status - * @param array $headers * @return \Illuminate\Http\Response */ public function noContent($status = 204, array $headers = []) @@ -79,7 +73,6 @@ public function noContent($status = 204, array $headers = []) * @param string|array $view * @param array $data * @param int $status - * @param array $headers * @return \Illuminate\Http\Response */ public function view($view, $data = [], $status = 200, array $headers = []) @@ -94,9 +87,7 @@ public function view($view, $data = [], $status = 200, array $headers = []) /** * Create a new JSON response instance. * - * @param mixed $data * @param int $status - * @param array $headers * @param int $options * @return \Illuminate\Http\JsonResponse */ @@ -109,9 +100,7 @@ public function json($data = [], $status = 200, array $headers = [], $options = * Create a new JSONP response instance. * * @param string $callback - * @param mixed $data * @param int $status - * @param array $headers * @param int $options * @return \Illuminate\Http\JsonResponse */ @@ -123,9 +112,6 @@ public function jsonp($callback, $data = [], $status = 200, array $headers = [], /** * Create a new event stream response. * - * @param \Closure $callback - * @param array $headers - * @param \Illuminate\Http\StreamedEvent|string|null $endStreamWith * @return \Symfony\Component\HttpFoundation\StreamedResponse */ public function eventStream(Closure $callback, array $headers = [], StreamedEvent|string|null $endStreamWith = '') @@ -188,7 +174,6 @@ public function eventStream(Closure $callback, array $headers = [], StreamedEven * * @param callable|null $callback * @param int $status - * @param array $headers * @return \Symfony\Component\HttpFoundation\StreamedResponse */ public function stream($callback, $status = 200, array $headers = []) @@ -231,7 +216,6 @@ public function streamJson($data, $status = 200, $headers = [], $encodingOptions * * @param callable $callback * @param string|null $name - * @param array $headers * @param string|null $disposition * @return \Symfony\Component\HttpFoundation\StreamedResponse * @@ -265,7 +249,6 @@ public function streamDownload($callback, $name = null, array $headers = [], $di * * @param \SplFileInfo|string $file * @param string|null $name - * @param array $headers * @param string|null $disposition * @return \Symfony\Component\HttpFoundation\BinaryFileResponse */ @@ -295,7 +278,6 @@ protected function fallbackName($name) * Return the raw contents of a binary file. * * @param \SplFileInfo|string $file - * @param array $headers * @return \Symfony\Component\HttpFoundation\BinaryFileResponse */ public function file($file, array $headers = []) @@ -321,7 +303,6 @@ public function redirectTo($path, $status = 302, $headers = [], $secure = null) * Create a new redirect response to a named route. * * @param \BackedEnum|string $route - * @param mixed $parameters * @param int $status * @param array $headers * @return \Illuminate\Http\RedirectResponse @@ -335,7 +316,6 @@ public function redirectToRoute($route, $parameters = [], $status = 302, $header * Create a new redirect response to a controller action. * * @param array|string $action - * @param mixed $parameters * @param int $status * @param array $headers * @return \Illuminate\Http\RedirectResponse diff --git a/src/Illuminate/Routing/Route.php b/src/Illuminate/Routing/Route.php index 355d18b0e058..cde1f145e671 100755 --- a/src/Illuminate/Routing/Route.php +++ b/src/Illuminate/Routing/Route.php @@ -61,8 +61,6 @@ class Route /** * The controller instance. - * - * @var mixed */ public $controller; @@ -199,8 +197,6 @@ protected function parseAction($action) /** * Run the route action and return the response. - * - * @return mixed */ public function run() { @@ -229,8 +225,6 @@ protected function isControllerAction() /** * Run the route action and return the response. - * - * @return mixed */ protected function runCallable() { @@ -256,7 +250,6 @@ protected function isSerializedClosure() /** * Run the route action and return the response. * - * @return mixed * * @throws \Symfony\Component\HttpKernel\Exception\NotFoundHttpException */ @@ -270,7 +263,6 @@ protected function runController() /** * Get the controller instance for the route. * - * @return mixed * * @throws \Illuminate\Contracts\Container\BindingResolutionException */ @@ -333,7 +325,6 @@ public function flushController() /** * Determine if the route matches a given request. * - * @param \Illuminate\Http\Request $request * @param bool $includingMethod * @return bool */ @@ -371,7 +362,6 @@ protected function compileRoute() /** * Bind the route to a given request for execution. * - * @param \Illuminate\Http\Request $request * @return $this */ public function bind(Request $request) @@ -571,7 +561,6 @@ public function bindingFields() /** * Set the binding fields for the route. * - * @param array $bindingFields * @return $this */ public function setBindingFields(array $bindingFields) @@ -625,7 +614,6 @@ public function allowsTrashedBindings() * Set a default value for the route. * * @param string $key - * @param mixed $value * @return $this */ public function defaults($key, $value) @@ -638,7 +626,6 @@ public function defaults($key, $value) /** * Set the default values for the route. * - * @param array $defaults * @return $this */ public function setDefaults(array $defaults) @@ -679,7 +666,6 @@ protected function parseWhere($name, $expression) /** * Set a list of regular expression requirements on the route. * - * @param array $wheres * @return $this */ public function setWheres(array $wheres) @@ -907,7 +893,6 @@ public function name($name) /** * Determine whether the route's name matches the given patterns. * - * @param mixed ...$patterns * @return bool */ public function named(...$patterns) @@ -986,7 +971,6 @@ public function getActionMethod() * Get the action array or one of its properties for the route. * * @param string|null $key - * @return mixed */ public function getAction($key = null) { @@ -996,7 +980,6 @@ public function getAction($key = null) /** * Set the action array for the route. * - * @param array $action * @return $this */ public function setAction(array $action) @@ -1134,8 +1117,6 @@ public function controllerMiddleware() /** * Get the statically provided controller middleware for the given class and method. * - * @param string $class - * @param string $method * @return array */ protected function staticallyProvidedControllerMiddleware(string $class, string $method) @@ -1347,7 +1328,6 @@ public function getCompiled() /** * Set the router instance on the route. * - * @param \Illuminate\Routing\Router $router * @return $this */ public function setRouter(Router $router) @@ -1360,7 +1340,6 @@ public function setRouter(Router $router) /** * Set the container instance on the route. * - * @param \Illuminate\Container\Container $container * @return $this */ public function setContainer(Container $container) @@ -1400,7 +1379,6 @@ public function prepareForSerialization() * Dynamically access route parameters. * * @param string $key - * @return mixed */ public function __get($key) { diff --git a/src/Illuminate/Routing/RouteAction.php b/src/Illuminate/Routing/RouteAction.php index 0fcf285d1c85..7fea1a9ef473 100644 --- a/src/Illuminate/Routing/RouteAction.php +++ b/src/Illuminate/Routing/RouteAction.php @@ -14,7 +14,6 @@ class RouteAction * Parse the given action into an array. * * @param string $uri - * @param mixed $action * @return array */ public static function parse($uri, $action) @@ -68,7 +67,6 @@ protected static function missingAction($uri) /** * Find the callable in an action array. * - * @param array $action * @return callable */ protected static function findCallable(array $action) @@ -98,7 +96,6 @@ protected static function makeInvokable($action) /** * Determine if the given array actions contain a serialized Closure. * - * @param array $action * @return bool */ public static function containsSerializedClosure(array $action) diff --git a/src/Illuminate/Routing/RouteCollection.php b/src/Illuminate/Routing/RouteCollection.php index 9d6a087204c4..7ad50faecc0e 100644 --- a/src/Illuminate/Routing/RouteCollection.php +++ b/src/Illuminate/Routing/RouteCollection.php @@ -38,7 +38,6 @@ class RouteCollection extends AbstractRouteCollection /** * Add a Route instance to the collection. * - * @param \Illuminate\Routing\Route $route * @return \Illuminate\Routing\Route */ public function add(Route $route) @@ -144,7 +143,6 @@ public function refreshActionLookups() /** * Find the first route matching a given request. * - * @param \Illuminate\Http\Request $request * @return \Illuminate\Routing\Route * * @throws \Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException @@ -253,8 +251,6 @@ public function toSymfonyRouteCollection() /** * Convert the collection to a CompiledRouteCollection instance. * - * @param \Illuminate\Routing\Router $router - * @param \Illuminate\Container\Container $container * @return \Illuminate\Routing\CompiledRouteCollection */ public function toCompiledRouteCollection(Router $router, Container $container) diff --git a/src/Illuminate/Routing/RouteCollectionInterface.php b/src/Illuminate/Routing/RouteCollectionInterface.php index 8e25d0fa1056..b4696c4efd96 100644 --- a/src/Illuminate/Routing/RouteCollectionInterface.php +++ b/src/Illuminate/Routing/RouteCollectionInterface.php @@ -9,7 +9,6 @@ interface RouteCollectionInterface /** * Add a Route instance to the collection. * - * @param \Illuminate\Routing\Route $route * @return \Illuminate\Routing\Route */ public function add(Route $route); @@ -35,7 +34,6 @@ public function refreshActionLookups(); /** * Find the first route matching a given request. * - * @param \Illuminate\Http\Request $request * @return \Illuminate\Routing\Route * * @throws \Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException diff --git a/src/Illuminate/Routing/RouteFileRegistrar.php b/src/Illuminate/Routing/RouteFileRegistrar.php index f94e31d8d57e..ba9640c99b05 100644 --- a/src/Illuminate/Routing/RouteFileRegistrar.php +++ b/src/Illuminate/Routing/RouteFileRegistrar.php @@ -13,8 +13,6 @@ class RouteFileRegistrar /** * Create a new route file registrar instance. - * - * @param \Illuminate\Routing\Router $router */ public function __construct(Router $router) { diff --git a/src/Illuminate/Routing/RouteParameterBinder.php b/src/Illuminate/Routing/RouteParameterBinder.php index 5c53e5c786e3..d8ddd5e0b754 100644 --- a/src/Illuminate/Routing/RouteParameterBinder.php +++ b/src/Illuminate/Routing/RouteParameterBinder.php @@ -77,7 +77,6 @@ protected function bindHostParameters($request, $parameters) /** * Combine a set of parameter matches with the route's keys. * - * @param array $matches * @return array */ protected function matchToKeys(array $matches) @@ -96,7 +95,6 @@ protected function matchToKeys(array $matches) /** * Replace null parameters with their defaults. * - * @param array $parameters * @return array */ protected function replaceDefaults(array $parameters) diff --git a/src/Illuminate/Routing/RouteRegistrar.php b/src/Illuminate/Routing/RouteRegistrar.php index b3e543b777b1..12b038c117a0 100644 --- a/src/Illuminate/Routing/RouteRegistrar.php +++ b/src/Illuminate/Routing/RouteRegistrar.php @@ -93,8 +93,6 @@ class RouteRegistrar /** * Create a new route registrar instance. - * - * @param \Illuminate\Routing\Router $router */ public function __construct(Router $router) { @@ -105,7 +103,6 @@ public function __construct(Router $router) * Set the value for a given attribute. * * @param string $key - * @param mixed $value * @return $this * * @throws \InvalidArgumentException @@ -148,7 +145,6 @@ public function attribute($key, $value) * * @param string $name * @param string $controller - * @param array $options * @return \Illuminate\Routing\PendingResourceRegistration */ public function resource($name, $controller, array $options = []) @@ -161,7 +157,6 @@ public function resource($name, $controller, array $options = []) * * @param string $name * @param string $controller - * @param array $options * @return \Illuminate\Routing\PendingResourceRegistration */ public function apiResource($name, $controller, array $options = []) @@ -174,7 +169,6 @@ public function apiResource($name, $controller, array $options = []) * * @param string $name * @param string $controller - * @param array $options * @return \Illuminate\Routing\PendingSingletonResourceRegistration */ public function singleton($name, $controller, array $options = []) @@ -187,7 +181,6 @@ public function singleton($name, $controller, array $options = []) * * @param string $name * @param string $controller - * @param array $options * @return \Illuminate\Routing\PendingSingletonResourceRegistration */ public function apiSingleton($name, $controller, array $options = []) diff --git a/src/Illuminate/Routing/RouteSignatureParameters.php b/src/Illuminate/Routing/RouteSignatureParameters.php index 872709758314..4f1f0f3c3d31 100644 --- a/src/Illuminate/Routing/RouteSignatureParameters.php +++ b/src/Illuminate/Routing/RouteSignatureParameters.php @@ -12,7 +12,6 @@ class RouteSignatureParameters /** * Extract the route action's signature parameters. * - * @param array $action * @param array $conditions * @return array */ diff --git a/src/Illuminate/Routing/RouteUri.php b/src/Illuminate/Routing/RouteUri.php index 77003fac9a92..0cbfc8f4c79b 100644 --- a/src/Illuminate/Routing/RouteUri.php +++ b/src/Illuminate/Routing/RouteUri.php @@ -20,9 +20,6 @@ class RouteUri /** * Create a new route URI instance. - * - * @param string $uri - * @param array $bindingFields */ public function __construct(string $uri, array $bindingFields = []) { diff --git a/src/Illuminate/Routing/RouteUrlGenerator.php b/src/Illuminate/Routing/RouteUrlGenerator.php index 7798bdc2841f..9c2bda83ff19 100644 --- a/src/Illuminate/Routing/RouteUrlGenerator.php +++ b/src/Illuminate/Routing/RouteUrlGenerator.php @@ -175,8 +175,6 @@ protected function addPortToDomain($domain) /** * Format the array of route parameters. * - * @param \Illuminate\Routing\Route $route - * @param mixed $parameters * @return array */ protected function formatParameters(Route $route, $parameters) @@ -328,7 +326,6 @@ protected function replaceRootParameters($route, $domain, &$parameters) * Replace all of the wildcard parameters for a route path. * * @param string $path - * @param array $parameters * @return string */ protected function replaceRouteParameters($path, array &$parameters) @@ -373,8 +370,6 @@ protected function replaceNamedParameters($path, &$parameters) * Add a query string to the URI. * * @param string $uri - * @param array $parameters - * @return mixed */ protected function addQueryString($uri, array $parameters) { @@ -393,7 +388,6 @@ protected function addQueryString($uri, array $parameters) /** * Get the query string for a given route. * - * @param array $parameters * @return string */ protected function getRouteQueryString(array $parameters) @@ -426,7 +420,6 @@ protected function getRouteQueryString(array $parameters) /** * Get the string parameters from a given list. * - * @param array $parameters * @return array */ protected function getStringParameters(array $parameters) @@ -437,7 +430,6 @@ protected function getStringParameters(array $parameters) /** * Get the numeric parameters from a given list. * - * @param array $parameters * @return array */ protected function getNumericParameters(array $parameters) @@ -448,7 +440,6 @@ protected function getNumericParameters(array $parameters) /** * Set the default named parameters used by the URL generator. * - * @param array $defaults * @return void */ public function defaults(array $defaults) diff --git a/src/Illuminate/Routing/Router.php b/src/Illuminate/Routing/Router.php index 29722dee62ed..8ff12d33fce2 100644 --- a/src/Illuminate/Routing/Router.php +++ b/src/Illuminate/Routing/Router.php @@ -137,9 +137,6 @@ class Router implements BindingRegistrar, RegistrarContract /** * Create a new Router instance. - * - * @param \Illuminate\Contracts\Events\Dispatcher $events - * @param \Illuminate\Container\Container|null $container */ public function __construct(Dispatcher $events, ?Container $container = null) { @@ -281,7 +278,6 @@ public function permanentRedirect($uri, $destination) * @param string $view * @param array $data * @param int|array $status - * @param array $headers * @return \Illuminate\Routing\Route */ public function view($uri, $view, $data = [], $status = 200, array $headers = []) @@ -311,8 +307,6 @@ public function match($methods, $uri, $action = null) /** * Register an array of resource controllers. * - * @param array $resources - * @param array $options * @return void */ public function resources(array $resources, array $options = []) @@ -325,8 +319,6 @@ public function resources(array $resources, array $options = []) /** * Register an array of resource controllers that can be soft deleted. * - * @param array $resources - * @param array $options * @return void */ public function softDeletableResources(array $resources, array $options = []) @@ -341,7 +333,6 @@ public function softDeletableResources(array $resources, array $options = []) * * @param string $name * @param string $controller - * @param array $options * @return \Illuminate\Routing\PendingResourceRegistration */ public function resource($name, $controller, array $options = []) @@ -360,8 +351,6 @@ public function resource($name, $controller, array $options = []) /** * Register an array of API resource controllers. * - * @param array $resources - * @param array $options * @return void */ public function apiResources(array $resources, array $options = []) @@ -376,7 +365,6 @@ public function apiResources(array $resources, array $options = []) * * @param string $name * @param string $controller - * @param array $options * @return \Illuminate\Routing\PendingResourceRegistration */ public function apiResource($name, $controller, array $options = []) @@ -395,8 +383,6 @@ public function apiResource($name, $controller, array $options = []) /** * Register an array of singleton resource controllers. * - * @param array $singletons - * @param array $options * @return void */ public function singletons(array $singletons, array $options = []) @@ -411,7 +397,6 @@ public function singletons(array $singletons, array $options = []) * * @param string $name * @param string $controller - * @param array $options * @return \Illuminate\Routing\PendingSingletonResourceRegistration */ public function singleton($name, $controller, array $options = []) @@ -430,8 +415,6 @@ public function singleton($name, $controller, array $options = []) /** * Register an array of API singleton resource controllers. * - * @param array $singletons - * @param array $options * @return void */ public function apiSingletons(array $singletons, array $options = []) @@ -446,7 +429,6 @@ public function apiSingletons(array $singletons, array $options = []) * * @param string $name * @param string $controller - * @param array $options * @return \Illuminate\Routing\PendingSingletonResourceRegistration */ public function apiSingleton($name, $controller, array $options = []) @@ -465,7 +447,6 @@ public function apiSingleton($name, $controller, array $options = []) /** * Create a route group with shared attributes. * - * @param array $attributes * @param \Closure|array|string $routes * @return $this */ @@ -488,7 +469,6 @@ public function group(array $attributes, $routes) /** * Update the group stack with the given attributes. * - * @param array $attributes * @return void */ protected function updateGroupStack(array $attributes) @@ -561,7 +541,6 @@ public function addRoute($methods, $uri, $action) * * @param array|string $methods * @param string $uri - * @param mixed $action * @return \Illuminate\Routing\Route */ protected function createRoute($methods, $uri, $action) @@ -592,7 +571,6 @@ protected function createRoute($methods, $uri, $action) /** * Determine if the action is routing to a controller. * - * @param mixed $action * @return bool */ protected function actionReferencesController($action) @@ -677,7 +655,6 @@ protected function prependGroupController($class) * * @param array|string $methods * @param string $uri - * @param mixed $action * @return \Illuminate\Routing\Route */ public function newRoute($methods, $uri, $action) @@ -743,7 +720,6 @@ public function respondWithRoute($name) /** * Dispatch the request to the application. * - * @param \Illuminate\Http\Request $request * @return \Symfony\Component\HttpFoundation\Response */ public function dispatch(Request $request) @@ -756,7 +732,6 @@ public function dispatch(Request $request) /** * Dispatch the request to a route and return the response. * - * @param \Illuminate\Http\Request $request * @return \Symfony\Component\HttpFoundation\Response */ public function dispatchToRoute(Request $request) @@ -786,8 +761,6 @@ protected function findRoute($request) /** * Return the response for the given route. * - * @param \Illuminate\Http\Request $request - * @param \Illuminate\Routing\Route $route * @return \Symfony\Component\HttpFoundation\Response */ protected function runRoute(Request $request, Route $route) @@ -803,10 +776,6 @@ protected function runRoute(Request $request, Route $route) /** * Run the given route within a Stack "onion" instance. - * - * @param \Illuminate\Routing\Route $route - * @param \Illuminate\Http\Request $request - * @return mixed */ protected function runRouteWithinStack(Route $route, Request $request) { @@ -826,7 +795,6 @@ protected function runRouteWithinStack(Route $route, Request $request) /** * Gather the middleware for the given route with resolved class names. * - * @param \Illuminate\Routing\Route $route * @return array */ public function gatherRouteMiddleware(Route $route) @@ -837,8 +805,6 @@ public function gatherRouteMiddleware(Route $route) /** * Resolve a flat array of middleware classes from the provided array. * - * @param array $middleware - * @param array $excluded * @return array */ public function resolveMiddleware(array $middleware, array $excluded = []) @@ -884,7 +850,6 @@ public function resolveMiddleware(array $middleware, array $excluded = []) /** * Sort the given middleware by priority. * - * @param \Illuminate\Support\Collection $middlewares * @return array */ protected function sortMiddleware(Collection $middlewares) @@ -896,7 +861,6 @@ protected function sortMiddleware(Collection $middlewares) * Create a response instance from the given value. * * @param \Symfony\Component\HttpFoundation\Request $request - * @param mixed $response * @return \Symfony\Component\HttpFoundation\Response */ public function prepareResponse($request, $response) @@ -912,7 +876,6 @@ public function prepareResponse($request, $response) * Static version of prepareResponse. * * @param \Symfony\Component\HttpFoundation\Request $request - * @param mixed $response * @return \Symfony\Component\HttpFoundation\Response */ public static function toResponse($request, $response) @@ -1003,7 +966,6 @@ public function substituteImplicitBindingsUsing($callback) * @param string $key * @param string $value * @param \Illuminate\Routing\Route $route - * @return mixed * * @throws \Illuminate\Database\Eloquent\ModelNotFoundException<\Illuminate\Database\Eloquent\Model> */ @@ -1072,7 +1034,6 @@ public function getMiddlewareGroups() * Register a group of middleware. * * @param string $name - * @param array $middleware * @return $this */ public function middlewareGroup($name, array $middleware) @@ -1179,7 +1140,6 @@ public function bind($key, $binder) * * @param string $key * @param string $class - * @param \Closure|null $callback * @return void */ public function model($key, $class, ?Closure $callback = null) @@ -1260,7 +1220,6 @@ public function getGroupStack() * * @param string $key * @param string|null $default - * @return mixed */ public function input($key, $default = null) { @@ -1329,7 +1288,6 @@ public function currentRouteName() /** * Alias for the "currentRouteNamed" method. * - * @param mixed ...$patterns * @return bool */ public function is(...$patterns) @@ -1340,7 +1298,6 @@ public function is(...$patterns) /** * Determine if the current route matches a pattern. * - * @param mixed ...$patterns * @return bool */ public function currentRouteNamed(...$patterns) @@ -1402,7 +1359,6 @@ public function singularResourceParameters($singular = true) /** * Set the global resource parameter mapping. * - * @param array $parameters * @return void */ public function resourceParameters(array $parameters = []) @@ -1413,7 +1369,6 @@ public function resourceParameters(array $parameters = []) /** * Get or set the verbs used in the resource URIs. * - * @param array $verbs * @return array|null */ public function resourceVerbs(array $verbs = []) @@ -1434,7 +1389,6 @@ public function getRoutes() /** * Set the route collection instance. * - * @param \Illuminate\Routing\RouteCollection $routes * @return void */ public function setRoutes(RouteCollection $routes) @@ -1451,7 +1405,6 @@ public function setRoutes(RouteCollection $routes) /** * Set the compiled route collection instance. * - * @param array $routes * @return void */ public function setCompiledRoutes(array $routes) @@ -1466,7 +1419,6 @@ public function setCompiledRoutes(array $routes) /** * Remove any duplicate middleware from the given array. * - * @param array $middleware * @return array */ public static function uniqueMiddleware(array $middleware) @@ -1489,7 +1441,6 @@ public static function uniqueMiddleware(array $middleware) /** * Set the container instance used by the router. * - * @param \Illuminate\Container\Container $container * @return $this */ public function setContainer(Container $container) @@ -1504,7 +1455,6 @@ public function setContainer(Container $container) * * @param string $method * @param array $parameters - * @return mixed */ public function __call($method, $parameters) { diff --git a/src/Illuminate/Routing/SortedMiddleware.php b/src/Illuminate/Routing/SortedMiddleware.php index 2fa2e3c5f06f..053d2865abe8 100644 --- a/src/Illuminate/Routing/SortedMiddleware.php +++ b/src/Illuminate/Routing/SortedMiddleware.php @@ -9,7 +9,6 @@ class SortedMiddleware extends Collection /** * Create a new Sorted Middleware container. * - * @param array $priorityMap * @param \Illuminate\Support\Collection|array $middlewares */ public function __construct(array $priorityMap, $middlewares) diff --git a/src/Illuminate/Routing/UrlGenerator.php b/src/Illuminate/Routing/UrlGenerator.php index 4808c1c0a89e..14fa1b8b6373 100755 --- a/src/Illuminate/Routing/UrlGenerator.php +++ b/src/Illuminate/Routing/UrlGenerator.php @@ -121,8 +121,6 @@ class UrlGenerator implements UrlGeneratorContract /** * Create a new URL Generator instance. * - * @param \Illuminate\Routing\RouteCollectionInterface $routes - * @param \Illuminate\Http\Request $request * @param string|null $assetRoot */ public function __construct(RouteCollectionInterface $routes, Request $request, $assetRoot = null) @@ -156,7 +154,6 @@ public function current() /** * Get the URL for the previous request. * - * @param mixed $fallback * @return string */ public function previous($fallback = false) @@ -177,7 +174,6 @@ public function previous($fallback = false) /** * Get the previous path info for the request. * - * @param mixed $fallback * @return string */ public function previousPath($fallback = false) @@ -201,7 +197,6 @@ protected function getPreviousUrlFromSession() * Generate an absolute URL to the given path. * * @param string $path - * @param mixed $extra * @param bool|null $secure * @return string */ @@ -235,7 +230,6 @@ public function to($path, $extra = [], $secure = null) * * @param string $path * @param array $query - * @param mixed $extra * @param bool|null $secure * @return string */ @@ -348,7 +342,6 @@ public function formatScheme($secure = null) * Create a signed route URL for a named route. * * @param \BackedEnum|string $name - * @param mixed $parameters * @param \DateTimeInterface|\DateInterval|int|null $expiration * @param bool $absolute * @return string @@ -381,7 +374,6 @@ public function signedRoute($name, $parameters = [], $expiration = null, $absolu /** * Ensure the given signed route parameters are not reserved. * - * @param mixed $parameters * @return void */ protected function ensureSignedRouteParametersAreNotReserved($parameters) @@ -416,9 +408,7 @@ public function temporarySignedRoute($name, $expiration, $parameters = [], $abso /** * Determine if the given request has a valid signature. * - * @param \Illuminate\Http\Request $request * @param bool $absolute - * @param \Closure|array $ignoreQuery * @return bool */ public function hasValidSignature(Request $request, $absolute = true, Closure|array $ignoreQuery = []) @@ -430,8 +420,6 @@ public function hasValidSignature(Request $request, $absolute = true, Closure|ar /** * Determine if the given request has a valid signature for a relative URL. * - * @param \Illuminate\Http\Request $request - * @param \Closure|array $ignoreQuery * @return bool */ public function hasValidRelativeSignature(Request $request, Closure|array $ignoreQuery = []) @@ -442,9 +430,7 @@ public function hasValidRelativeSignature(Request $request, Closure|array $ignor /** * Determine if the signature from the given request matches the URL. * - * @param \Illuminate\Http\Request $request * @param bool $absolute - * @param \Closure|array $ignoreQuery * @return bool */ public function hasCorrectSignature(Request $request, $absolute = true, Closure|array $ignoreQuery = []) @@ -488,7 +474,6 @@ public function hasCorrectSignature(Request $request, $absolute = true, Closure| /** * Determine if the expires timestamp from the given request is not from the past. * - * @param \Illuminate\Http\Request $request * @return bool */ public function signatureHasNotExpired(Request $request) @@ -502,7 +487,6 @@ public function signatureHasNotExpired(Request $request) * Get the URL to a named route. * * @param \BackedEnum|string $name - * @param mixed $parameters * @param bool $absolute * @return string * @@ -530,7 +514,6 @@ public function route($name, $parameters = [], $absolute = true) * Get the URL for a given route instance. * * @param \Illuminate\Routing\Route $route - * @param mixed $parameters * @param bool $absolute * @return string * @@ -547,7 +530,6 @@ public function toRoute($route, $parameters, $absolute) * Get the URL to a controller action. * * @param string|array $action - * @param mixed $parameters * @param bool $absolute * @return string * @@ -584,7 +566,6 @@ protected function formatAction($action) /** * Format the array of URL parameters. * - * @param mixed $parameters * @return array */ public function formatParameters($parameters) @@ -695,7 +676,6 @@ protected function routeUrl() /** * Set the default named parameters used by the URL generator. * - * @param array $defaults * @return void */ public function defaults(array $defaults) @@ -742,7 +722,6 @@ public function forceHttps($force = true) /** * Set the URL origin for all generated URLs. * - * @param string|null $root * @return void */ public function useOrigin(?string $root) @@ -768,7 +747,6 @@ public function forceRootUrl($root) /** * Set the URL origin for all generated asset URLs. * - * @param string|null $root * @return void */ public function useAssetOrigin(?string $root) @@ -779,7 +757,6 @@ public function useAssetOrigin(?string $root) /** * Set a callback to be used to format the host of generated URLs. * - * @param \Closure $callback * @return $this */ public function formatHostUsing(Closure $callback) @@ -792,7 +769,6 @@ public function formatHostUsing(Closure $callback) /** * Set a callback to be used to format the path of generated URLs. * - * @param \Closure $callback * @return $this */ public function formatPathUsing(Closure $callback) @@ -827,7 +803,6 @@ public function getRequest() /** * Set the current request instance. * - * @param \Illuminate\Http\Request $request * @return void */ public function setRequest(Request $request) @@ -849,7 +824,6 @@ public function setRequest(Request $request) /** * Set the route collection. * - * @param \Illuminate\Routing\RouteCollectionInterface $routes * @return $this */ public function setRoutes(RouteCollectionInterface $routes) @@ -874,7 +848,6 @@ protected function getSession() /** * Set the session resolver for the generator. * - * @param callable $sessionResolver * @return $this */ public function setSessionResolver(callable $sessionResolver) @@ -887,7 +860,6 @@ public function setSessionResolver(callable $sessionResolver) /** * Set the encryption key resolver. * - * @param callable $keyResolver * @return $this */ public function setKeyResolver(callable $keyResolver) @@ -900,7 +872,6 @@ public function setKeyResolver(callable $keyResolver) /** * Clone a new instance of the URL generator with a different encryption key resolver. * - * @param callable $keyResolver * @return \Illuminate\Routing\UrlGenerator */ public function withKeyResolver(callable $keyResolver) @@ -911,7 +882,6 @@ public function withKeyResolver(callable $keyResolver) /** * Set the callback that should be used to attempt to resolve missing named routes. * - * @param callable $missingNamedRouteResolver * @return $this */ public function resolveMissingNamedRoutesUsing(callable $missingNamedRouteResolver) diff --git a/src/Illuminate/Routing/ViewController.php b/src/Illuminate/Routing/ViewController.php index e99d7ff871b3..7e968660a68b 100644 --- a/src/Illuminate/Routing/ViewController.php +++ b/src/Illuminate/Routing/ViewController.php @@ -15,8 +15,6 @@ class ViewController extends Controller /** * Create a new controller instance. - * - * @param \Illuminate\Contracts\Routing\ResponseFactory $response */ public function __construct(ResponseFactory $response) { @@ -26,7 +24,6 @@ public function __construct(ResponseFactory $response) /** * Invoke the controller method. * - * @param mixed ...$args * @return \Illuminate\Http\Response */ public function __invoke(...$args) diff --git a/src/Illuminate/Session/ArraySessionHandler.php b/src/Illuminate/Session/ArraySessionHandler.php index 7820ab1aeee4..26544c5ae77a 100644 --- a/src/Illuminate/Session/ArraySessionHandler.php +++ b/src/Illuminate/Session/ArraySessionHandler.php @@ -35,8 +35,6 @@ public function __construct($minutes) /** * {@inheritdoc} - * - * @return bool */ public function open($savePath, $sessionName): bool { @@ -45,8 +43,6 @@ public function open($savePath, $sessionName): bool /** * {@inheritdoc} - * - * @return bool */ public function close(): bool { @@ -55,8 +51,6 @@ public function close(): bool /** * {@inheritdoc} - * - * @return string|false */ public function read($sessionId): string|false { @@ -77,8 +71,6 @@ public function read($sessionId): string|false /** * {@inheritdoc} - * - * @return bool */ public function write($sessionId, $data): bool { @@ -92,8 +84,6 @@ public function write($sessionId, $data): bool /** * {@inheritdoc} - * - * @return bool */ public function destroy($sessionId): bool { @@ -106,8 +96,6 @@ public function destroy($sessionId): bool /** * {@inheritdoc} - * - * @return int */ public function gc($lifetime): int { diff --git a/src/Illuminate/Session/CacheBasedSessionHandler.php b/src/Illuminate/Session/CacheBasedSessionHandler.php index bac3e18619f1..c2144d6527d3 100755 --- a/src/Illuminate/Session/CacheBasedSessionHandler.php +++ b/src/Illuminate/Session/CacheBasedSessionHandler.php @@ -24,7 +24,6 @@ class CacheBasedSessionHandler implements SessionHandlerInterface /** * Create a new cache driven handler instance. * - * @param \Illuminate\Contracts\Cache\Repository $cache * @param int $minutes */ public function __construct(CacheContract $cache, $minutes) @@ -35,8 +34,6 @@ public function __construct(CacheContract $cache, $minutes) /** * {@inheritdoc} - * - * @return bool */ public function open($savePath, $sessionName): bool { @@ -45,8 +42,6 @@ public function open($savePath, $sessionName): bool /** * {@inheritdoc} - * - * @return bool */ public function close(): bool { @@ -55,8 +50,6 @@ public function close(): bool /** * {@inheritdoc} - * - * @return string */ public function read($sessionId): string { @@ -65,8 +58,6 @@ public function read($sessionId): string /** * {@inheritdoc} - * - * @return bool */ public function write($sessionId, $data): bool { @@ -75,8 +66,6 @@ public function write($sessionId, $data): bool /** * {@inheritdoc} - * - * @return bool */ public function destroy($sessionId): bool { @@ -85,8 +74,6 @@ public function destroy($sessionId): bool /** * {@inheritdoc} - * - * @return int */ public function gc($lifetime): int { diff --git a/src/Illuminate/Session/CookieSessionHandler.php b/src/Illuminate/Session/CookieSessionHandler.php index 09376afee045..f9dc69836fcf 100755 --- a/src/Illuminate/Session/CookieSessionHandler.php +++ b/src/Illuminate/Session/CookieSessionHandler.php @@ -42,7 +42,6 @@ class CookieSessionHandler implements SessionHandlerInterface /** * Create a new cookie driven handler instance. * - * @param \Illuminate\Contracts\Cookie\QueueingFactory $cookie * @param int $minutes * @param bool $expireOnClose */ @@ -55,8 +54,6 @@ public function __construct(CookieJar $cookie, $minutes, $expireOnClose = false) /** * {@inheritdoc} - * - * @return bool */ public function open($savePath, $sessionName): bool { @@ -65,8 +62,6 @@ public function open($savePath, $sessionName): bool /** * {@inheritdoc} - * - * @return bool */ public function close(): bool { @@ -75,8 +70,6 @@ public function close(): bool /** * {@inheritdoc} - * - * @return string|false */ public function read($sessionId): string|false { @@ -92,8 +85,6 @@ public function read($sessionId): string|false /** * {@inheritdoc} - * - * @return bool */ public function write($sessionId, $data): bool { @@ -107,8 +98,6 @@ public function write($sessionId, $data): bool /** * {@inheritdoc} - * - * @return bool */ public function destroy($sessionId): bool { @@ -119,8 +108,6 @@ public function destroy($sessionId): bool /** * {@inheritdoc} - * - * @return int */ public function gc($lifetime): int { @@ -130,7 +117,6 @@ public function gc($lifetime): int /** * Set the request instance. * - * @param \Symfony\Component\HttpFoundation\Request $request * @return void */ public function setRequest(Request $request) diff --git a/src/Illuminate/Session/DatabaseSessionHandler.php b/src/Illuminate/Session/DatabaseSessionHandler.php index 5023808bafa2..713f0d6347e1 100644 --- a/src/Illuminate/Session/DatabaseSessionHandler.php +++ b/src/Illuminate/Session/DatabaseSessionHandler.php @@ -53,10 +53,8 @@ class DatabaseSessionHandler implements ExistenceAwareInterface, SessionHandlerI /** * Create a new database session handler instance. * - * @param \Illuminate\Database\ConnectionInterface $connection * @param string $table * @param int $minutes - * @param \Illuminate\Contracts\Container\Container|null $container */ public function __construct(ConnectionInterface $connection, $table, $minutes, ?Container $container = null) { @@ -68,8 +66,6 @@ public function __construct(ConnectionInterface $connection, $table, $minutes, ? /** * {@inheritdoc} - * - * @return bool */ public function open($savePath, $sessionName): bool { @@ -78,8 +74,6 @@ public function open($savePath, $sessionName): bool /** * {@inheritdoc} - * - * @return bool */ public function close(): bool { @@ -88,8 +82,6 @@ public function close(): bool /** * {@inheritdoc} - * - * @return string|false */ public function read($sessionId): string|false { @@ -124,8 +116,6 @@ protected function expired($session) /** * {@inheritdoc} - * - * @return bool */ public function write($sessionId, $data): bool { @@ -212,8 +202,6 @@ protected function addUserInformation(&$payload) /** * Get the currently authenticated user's ID. - * - * @return mixed */ protected function userId() { @@ -260,8 +248,6 @@ protected function userAgent() /** * {@inheritdoc} - * - * @return bool */ public function destroy($sessionId): bool { @@ -272,8 +258,6 @@ public function destroy($sessionId): bool /** * {@inheritdoc} - * - * @return int */ public function gc($lifetime): int { diff --git a/src/Illuminate/Session/EncryptedStore.php b/src/Illuminate/Session/EncryptedStore.php index a3a3e9abd897..14563b96b7c3 100644 --- a/src/Illuminate/Session/EncryptedStore.php +++ b/src/Illuminate/Session/EncryptedStore.php @@ -19,8 +19,6 @@ class EncryptedStore extends Store * Create a new session instance. * * @param string $name - * @param \SessionHandlerInterface $handler - * @param \Illuminate\Contracts\Encryption\Encrypter $encrypter * @param string|null $id * @param string $serialization */ diff --git a/src/Illuminate/Session/FileSessionHandler.php b/src/Illuminate/Session/FileSessionHandler.php index 64d930e5f378..91bd748602cb 100644 --- a/src/Illuminate/Session/FileSessionHandler.php +++ b/src/Illuminate/Session/FileSessionHandler.php @@ -33,7 +33,6 @@ class FileSessionHandler implements SessionHandlerInterface /** * Create a new file driven handler instance. * - * @param \Illuminate\Filesystem\Filesystem $files * @param string $path * @param int $minutes */ @@ -46,8 +45,6 @@ public function __construct(Filesystem $files, $path, $minutes) /** * {@inheritdoc} - * - * @return bool */ public function open($savePath, $sessionName): bool { @@ -56,8 +53,6 @@ public function open($savePath, $sessionName): bool /** * {@inheritdoc} - * - * @return bool */ public function close(): bool { @@ -66,8 +61,6 @@ public function close(): bool /** * {@inheritdoc} - * - * @return string|false */ public function read($sessionId): string|false { @@ -81,8 +74,6 @@ public function read($sessionId): string|false /** * {@inheritdoc} - * - * @return bool */ public function write($sessionId, $data): bool { @@ -93,8 +84,6 @@ public function write($sessionId, $data): bool /** * {@inheritdoc} - * - * @return bool */ public function destroy($sessionId): bool { @@ -105,8 +94,6 @@ public function destroy($sessionId): bool /** * {@inheritdoc} - * - * @return int */ public function gc($lifetime): int { diff --git a/src/Illuminate/Session/Middleware/AuthenticateSession.php b/src/Illuminate/Session/Middleware/AuthenticateSession.php index 89c36e8a1d41..9bde1636d56f 100644 --- a/src/Illuminate/Session/Middleware/AuthenticateSession.php +++ b/src/Illuminate/Session/Middleware/AuthenticateSession.php @@ -26,8 +26,6 @@ class AuthenticateSession implements AuthenticatesSessions /** * Create a new middleware instance. - * - * @param \Illuminate\Contracts\Auth\Factory $auth */ public function __construct(AuthFactory $auth) { @@ -38,8 +36,6 @@ public function __construct(AuthFactory $auth) * Handle an incoming request. * * @param \Illuminate\Http\Request $request - * @param \Closure $next - * @return mixed */ public function handle($request, Closure $next) { @@ -119,7 +115,6 @@ protected function guard() /** * Get the path the user should be redirected to when their session is not authenticated. * - * @param \Illuminate\Http\Request $request * @return string|null */ protected function redirectTo(Request $request) @@ -132,7 +127,6 @@ protected function redirectTo(Request $request) /** * Specify the callback that should be used to generate the redirect path. * - * @param callable $redirectToCallback * @return void */ public static function redirectUsing(callable $redirectToCallback) diff --git a/src/Illuminate/Session/Middleware/StartSession.php b/src/Illuminate/Session/Middleware/StartSession.php index ec5b00b63ba9..c9c4c05bf108 100644 --- a/src/Illuminate/Session/Middleware/StartSession.php +++ b/src/Illuminate/Session/Middleware/StartSession.php @@ -30,9 +30,6 @@ class StartSession /** * Create a new session middleware. - * - * @param \Illuminate\Session\SessionManager $manager - * @param callable|null $cacheFactoryResolver */ public function __construct(SessionManager $manager, ?callable $cacheFactoryResolver = null) { @@ -44,8 +41,6 @@ public function __construct(SessionManager $manager, ?callable $cacheFactoryReso * Handle an incoming request. * * @param \Illuminate\Http\Request $request - * @param \Closure $next - * @return mixed */ public function handle($request, Closure $next) { @@ -66,10 +61,7 @@ public function handle($request, Closure $next) /** * Handle the given request within session state. * - * @param \Illuminate\Http\Request $request * @param \Illuminate\Contracts\Session\Session $session - * @param \Closure $next - * @return mixed */ protected function handleRequestWhileBlocking(Request $request, $session, Closure $next) { @@ -101,10 +93,7 @@ protected function handleRequestWhileBlocking(Request $request, $session, Closur /** * Handle the given request within session state. * - * @param \Illuminate\Http\Request $request * @param \Illuminate\Contracts\Session\Session $session - * @param \Closure $next - * @return mixed */ protected function handleStatefulRequest(Request $request, $session, Closure $next) { @@ -134,7 +123,6 @@ protected function handleStatefulRequest(Request $request, $session, Closure $ne /** * Start the session for the given request. * - * @param \Illuminate\Http\Request $request * @param \Illuminate\Contracts\Session\Session $session * @return \Illuminate\Contracts\Session\Session */ @@ -150,7 +138,6 @@ protected function startSession(Request $request, $session) /** * Get the session implementation from the manager. * - * @param \Illuminate\Http\Request $request * @return \Illuminate\Contracts\Session\Session */ public function getSession(Request $request) @@ -163,7 +150,6 @@ public function getSession(Request $request) /** * Remove the garbage from the session if necessary. * - * @param \Illuminate\Contracts\Session\Session $session * @return void */ protected function collectGarbage(Session $session) @@ -181,7 +167,6 @@ protected function collectGarbage(Session $session) /** * Determine if the configuration odds hit the lottery. * - * @param array $config * @return bool */ protected function configHitsLottery(array $config) @@ -192,7 +177,6 @@ protected function configHitsLottery(array $config) /** * Store the current URL for the request if necessary. * - * @param \Illuminate\Http\Request $request * @param \Illuminate\Contracts\Session\Session $session * @return void */ @@ -210,8 +194,6 @@ protected function storeCurrentUrl(Request $request, $session) /** * Add the session cookie to the application response. * - * @param \Symfony\Component\HttpFoundation\Response $response - * @param \Illuminate\Contracts\Session\Session $session * @return void */ protected function addCookieToResponse(Response $response, Session $session) @@ -282,7 +264,6 @@ protected function sessionConfigured() /** * Determine if the configured session driver is persistent. * - * @param array|null $config * @return bool */ protected function sessionIsPersistent(?array $config = null) diff --git a/src/Illuminate/Session/NullSessionHandler.php b/src/Illuminate/Session/NullSessionHandler.php index fbebd5d74be4..417d29e2bcd8 100644 --- a/src/Illuminate/Session/NullSessionHandler.php +++ b/src/Illuminate/Session/NullSessionHandler.php @@ -8,8 +8,6 @@ class NullSessionHandler implements SessionHandlerInterface { /** * {@inheritdoc} - * - * @return bool */ public function open($savePath, $sessionName): bool { @@ -18,8 +16,6 @@ public function open($savePath, $sessionName): bool /** * {@inheritdoc} - * - * @return bool */ public function close(): bool { @@ -28,8 +24,6 @@ public function close(): bool /** * {@inheritdoc} - * - * @return string */ public function read($sessionId): string { @@ -38,8 +32,6 @@ public function read($sessionId): string /** * {@inheritdoc} - * - * @return bool */ public function write($sessionId, $data): bool { @@ -48,8 +40,6 @@ public function write($sessionId, $data): bool /** * {@inheritdoc} - * - * @return bool */ public function destroy($sessionId): bool { @@ -58,8 +48,6 @@ public function destroy($sessionId): bool /** * {@inheritdoc} - * - * @return int */ public function gc($lifetime): int { diff --git a/src/Illuminate/Session/Store.php b/src/Illuminate/Session/Store.php index 6e76072fc6e6..a37af46d5c26 100755 --- a/src/Illuminate/Session/Store.php +++ b/src/Illuminate/Session/Store.php @@ -66,7 +66,6 @@ class Store implements Session * Create a new session instance. * * @param string $name - * @param \SessionHandlerInterface $handler * @param string|null $id * @param string $serialization */ @@ -240,7 +239,6 @@ public function all() /** * Get a subset of the session data. * - * @param array $keys * @return array */ public function only(array $keys) @@ -251,7 +249,6 @@ public function only(array $keys) /** * Get all the session data except for a specified array of items. * - * @param array $keys * @return array */ public function except(array $keys) @@ -315,8 +312,6 @@ public function hasAny($key) * Get an item from the session. * * @param string $key - * @param mixed $default - * @return mixed */ public function get($key, $default = null) { @@ -327,8 +322,6 @@ public function get($key, $default = null) * Get the value of a given key and then forget it. * * @param string $key - * @param mixed $default - * @return mixed */ public function pull($key, $default = null) { @@ -352,8 +345,6 @@ public function hasOldInput($key = null) * Get the requested item from the flashed input array. * * @param string|null $key - * @param mixed $default - * @return mixed */ public function getOldInput($key = null, $default = null) { @@ -363,7 +354,6 @@ public function getOldInput($key = null, $default = null) /** * Replace the given session attributes entirely. * - * @param array $attributes * @return void */ public function replace(array $attributes) @@ -375,7 +365,6 @@ public function replace(array $attributes) * Put a key / value pair or array of key / value pairs in the session. * * @param string|array $key - * @param mixed $value * @return void */ public function put($key, $value = null) @@ -393,8 +382,6 @@ public function put($key, $value = null) * Get an item from the session, or store the default value. * * @param string $key - * @param \Closure $callback - * @return mixed */ public function remember($key, Closure $callback) { @@ -411,7 +398,6 @@ public function remember($key, Closure $callback) * Push a value onto a session array. * * @param string $key - * @param mixed $value * @return void */ public function push($key, $value) @@ -428,7 +414,6 @@ public function push($key, $value) * * @param string $key * @param int $amount - * @return mixed */ public function increment($key, $amount = 1) { @@ -452,8 +437,6 @@ public function decrement($key, $amount = 1) /** * Flash a key / value pair to the session. * - * @param string $key - * @param mixed $value * @return void */ public function flash(string $key, $value = true) @@ -469,7 +452,6 @@ public function flash(string $key, $value = true) * Flash a key / value pair to the session for immediate use. * * @param string $key - * @param mixed $value * @return void */ public function now($key, $value) @@ -494,7 +476,6 @@ public function reflash() /** * Reflash a subset of the current flash data. * - * @param mixed $keys * @return void */ public function keep($keys = null) @@ -507,7 +488,6 @@ public function keep($keys = null) /** * Merge new flash keys into the new flash array. * - * @param array $keys * @return void */ protected function mergeNewFlashes(array $keys) @@ -520,7 +500,6 @@ protected function mergeNewFlashes(array $keys) /** * Remove the given keys from the old flash data. * - * @param array $keys * @return void */ protected function removeFromOldFlashData(array $keys) @@ -531,7 +510,6 @@ protected function removeFromOldFlashData(array $keys) /** * Flash an input array to the session. * - * @param array $value * @return void */ public function flashInput(array $value) @@ -543,7 +521,6 @@ public function flashInput(array $value) * Remove an item from the session, returning its value. * * @param string $key - * @return mixed */ public function remove($key) { @@ -801,7 +778,6 @@ public function getHandler() /** * Set the underlying session handler implementation. * - * @param \SessionHandlerInterface $handler * @return \SessionHandlerInterface */ public function setHandler(SessionHandlerInterface $handler) diff --git a/src/Illuminate/Session/SymfonySessionDecorator.php b/src/Illuminate/Session/SymfonySessionDecorator.php index 365aca670333..95194114324b 100644 --- a/src/Illuminate/Session/SymfonySessionDecorator.php +++ b/src/Illuminate/Session/SymfonySessionDecorator.php @@ -12,15 +12,11 @@ class SymfonySessionDecorator implements SessionInterface { /** * The underlying Laravel session store. - * - * @var \Illuminate\Contracts\Session\Session */ public readonly Session $store; /** * Create a new session decorator. - * - * @param \Illuminate\Contracts\Session\Session $store */ public function __construct(Session $store) { diff --git a/src/Illuminate/Support/Benchmark.php b/src/Illuminate/Support/Benchmark.php index 1bb000fe09cb..4ef4baef867d 100644 --- a/src/Illuminate/Support/Benchmark.php +++ b/src/Illuminate/Support/Benchmark.php @@ -8,10 +8,6 @@ class Benchmark { /** * Measure a callable or array of callables over the given number of iterations. - * - * @param \Closure|array $benchmarkables - * @param int $iterations - * @return array|float */ public static function measure(Closure|array $benchmarkables, int $iterations = 1): array|float { @@ -53,10 +49,6 @@ public static function value(callable $callback): array /** * Measure a callable or array of callables over the given number of iterations, then dump and die. - * - * @param \Closure|array $benchmarkables - * @param int $iterations - * @return never */ public static function dd(Closure|array $benchmarkables, int $iterations = 1): never { diff --git a/src/Illuminate/Support/Composer.php b/src/Illuminate/Support/Composer.php index 4f9ddaa6a053..01baa2778c68 100644 --- a/src/Illuminate/Support/Composer.php +++ b/src/Illuminate/Support/Composer.php @@ -27,7 +27,6 @@ class Composer /** * Create a new Composer manager instance. * - * @param \Illuminate\Filesystem\Filesystem $files * @param string|null $workingPath */ public function __construct(Filesystem $files, $workingPath = null) @@ -56,8 +55,6 @@ public function hasPackage($package) * Install the given Composer packages into the application. * * @param array $packages - * @param bool $dev - * @param \Closure|\Symfony\Component\Console\Output\OutputInterface|null $output * @param string|null $composerBinary * @return bool */ @@ -85,8 +82,6 @@ public function requirePackages(array $packages, bool $dev = false, Closure|Outp * Remove the given Composer packages from the application. * * @param array $packages - * @param bool $dev - * @param \Closure|\Symfony\Component\Console\Output\OutputInterface|null $output * @param string|null $composerBinary * @return bool */ @@ -208,8 +203,6 @@ protected function phpBinary() /** * Get a new Symfony process instance. * - * @param array $command - * @param array $env * @return \Symfony\Component\Process\Process */ protected function getProcess(array $command, array $env = []) diff --git a/src/Illuminate/Support/ConfigurationUrlParser.php b/src/Illuminate/Support/ConfigurationUrlParser.php index b841b65e41c6..8fe4d28e6e30 100644 --- a/src/Illuminate/Support/ConfigurationUrlParser.php +++ b/src/Illuminate/Support/ConfigurationUrlParser.php @@ -144,9 +144,6 @@ protected function parseUrl($url) /** * Convert string casted values to their native types. - * - * @param mixed $value - * @return mixed */ protected function parseStringsToNativeTypes($value) { diff --git a/src/Illuminate/Support/DateFactory.php b/src/Illuminate/Support/DateFactory.php index 5a2feb599f9f..fc2a32f83212 100644 --- a/src/Illuminate/Support/DateFactory.php +++ b/src/Illuminate/Support/DateFactory.php @@ -133,8 +133,6 @@ class DateFactory /** * Use the given handler when generating dates (class name, callable, or factory). * - * @param mixed $handler - * @return mixed * * @throws \InvalidArgumentException */ @@ -166,7 +164,6 @@ public static function useDefault() /** * Execute the given callable on each date creation. * - * @param callable $callable * @return void */ public static function useCallable(callable $callable) @@ -210,7 +207,6 @@ public static function useFactory($factory) * * @param string $method * @param array $parameters - * @return mixed * * @throws \RuntimeException */ diff --git a/src/Illuminate/Support/DefaultProviders.php b/src/Illuminate/Support/DefaultProviders.php index 6430e8439f54..fa2b4e9e77d5 100644 --- a/src/Illuminate/Support/DefaultProviders.php +++ b/src/Illuminate/Support/DefaultProviders.php @@ -46,7 +46,6 @@ public function __construct(?array $providers = null) /** * Merge the given providers into the provider collection. * - * @param array $providers * @return static */ public function merge(array $providers) @@ -59,7 +58,6 @@ public function merge(array $providers) /** * Replace the given providers with other providers. * - * @param array $replacements * @return static */ public function replace(array $replacements) @@ -78,7 +76,6 @@ public function replace(array $replacements) /** * Disable the given providers. * - * @param array $providers * @return static */ public function except(array $providers) diff --git a/src/Illuminate/Support/Defer/DeferredCallback.php b/src/Illuminate/Support/Defer/DeferredCallback.php index 6840b4958bff..3782eb5a55a9 100644 --- a/src/Illuminate/Support/Defer/DeferredCallback.php +++ b/src/Illuminate/Support/Defer/DeferredCallback.php @@ -19,7 +19,6 @@ public function __construct(public $callback, public ?string $name = null, publi /** * Specify the name of the deferred callback so it can be cancelled later. * - * @param string $name * @return $this */ public function name(string $name): static @@ -32,7 +31,6 @@ public function name(string $name): static /** * Indicate that the deferred callback should run even on unsuccessful requests and jobs. * - * @param bool $always * @return $this */ public function always(bool $always = true): static @@ -44,8 +42,6 @@ public function always(bool $always = true): static /** * Invoke the deferred callback. - * - * @return void */ public function __invoke(): void { diff --git a/src/Illuminate/Support/Defer/DeferredCallbackCollection.php b/src/Illuminate/Support/Defer/DeferredCallbackCollection.php index 93116ef95af1..2bfb9c0e80c8 100644 --- a/src/Illuminate/Support/Defer/DeferredCallbackCollection.php +++ b/src/Illuminate/Support/Defer/DeferredCallbackCollection.php @@ -11,8 +11,6 @@ class DeferredCallbackCollection implements ArrayAccess, Countable { /** * All of the deferred callbacks. - * - * @var array */ protected array $callbacks = []; @@ -28,8 +26,6 @@ public function first() /** * Invoke the deferred callbacks. - * - * @return void */ public function invoke(): void { @@ -38,9 +34,6 @@ public function invoke(): void /** * Invoke the deferred callbacks if the given truth test evaluates to true. - * - * @param \Closure|null $when - * @return void */ public function invokeWhen(?Closure $when = null): void { @@ -59,9 +52,6 @@ public function invokeWhen(?Closure $when = null): void /** * Remove any deferred callbacks with the given name. - * - * @param string $name - * @return void */ public function forget(string $name): void { @@ -90,9 +80,6 @@ protected function forgetDuplicates(): static /** * Determine if the collection has a callback with the given key. - * - * @param mixed $offset - * @return bool */ public function offsetExists(mixed $offset): bool { @@ -103,9 +90,6 @@ public function offsetExists(mixed $offset): bool /** * Get the callback with the given key. - * - * @param mixed $offset - * @return mixed */ public function offsetGet(mixed $offset): mixed { @@ -116,10 +100,6 @@ public function offsetGet(mixed $offset): mixed /** * Set the callback with the given key. - * - * @param mixed $offset - * @param mixed $value - * @return void */ public function offsetSet(mixed $offset, mixed $value): void { @@ -132,9 +112,6 @@ public function offsetSet(mixed $offset, mixed $value): void /** * Remove the callback with the given key from the collection. - * - * @param mixed $offset - * @return void */ public function offsetUnset(mixed $offset): void { @@ -145,8 +122,6 @@ public function offsetUnset(mixed $offset): void /** * Determine how many callbacks are in the collection. - * - * @return int */ public function count(): int { diff --git a/src/Illuminate/Support/EncodedHtmlString.php b/src/Illuminate/Support/EncodedHtmlString.php index 36b29cc33ecf..8ff6cedbffb2 100644 --- a/src/Illuminate/Support/EncodedHtmlString.php +++ b/src/Illuminate/Support/EncodedHtmlString.php @@ -26,7 +26,6 @@ class EncodedHtmlString extends HtmlString * Create a new encoded HTML string instance. * * @param \Illuminate\Contracts\Support\DeferringDisplayableValue|\Illuminate\Contracts\Support\Htmlable|\BackedEnum|string|int|float|null $html - * @param bool $doubleEncode */ public function __construct($html = '', protected bool $doubleEncode = true) { @@ -40,7 +39,6 @@ public function __construct($html = '', protected bool $doubleEncode = true) * * @param string|null $value * @param int $withQuote - * @param bool $doubleEncode * @return string */ public static function convert($value, bool $withQuote = true, bool $doubleEncode = true) @@ -80,7 +78,6 @@ public function toHtml() /** * Set the callable that will be used to encode the HTML strings. * - * @param callable|null $factory * @return void */ public static function encodeUsing(?callable $factory = null) diff --git a/src/Illuminate/Support/Env.php b/src/Illuminate/Support/Env.php index 01747846ffa5..d051e82bdd30 100644 --- a/src/Illuminate/Support/Env.php +++ b/src/Illuminate/Support/Env.php @@ -97,8 +97,6 @@ public static function getRepository() * Get the value of an environment variable. * * @param string $key - * @param mixed $default - * @return mixed */ public static function get($key, $default = null) { @@ -109,7 +107,6 @@ public static function get($key, $default = null) * Get the value of a required environment variable. * * @param string $key - * @return mixed * * @throws \RuntimeException */ @@ -121,10 +118,6 @@ public static function getOrFail($key) /** * Write an array of key-value pairs to the environment file. * - * @param array $variables - * @param string $pathToFile - * @param bool $overwrite - * @return void * * @throws RuntimeException * @throws FileNotFoundException @@ -149,11 +142,6 @@ public static function writeVariables(array $variables, string $pathToFile, bool /** * Write a single key-value pair to the environment file. * - * @param string $key - * @param mixed $value - * @param string $pathToFile - * @param bool $overwrite - * @return void * * @throws RuntimeException * @throws FileNotFoundException @@ -176,12 +164,6 @@ public static function writeVariable(string $key, mixed $value, string $pathToFi /** * Add a variable to the environment file contents. - * - * @param string $key - * @param mixed $value - * @param array $envLines - * @param bool $overwrite - * @return array */ protected static function addVariableToEnvContents(string $key, mixed $value, array $envLines, bool $overwrite): array { @@ -280,7 +262,6 @@ protected static function getOption($key) /** * Wrap a string in quotes, choosing double or single quotes. * - * @param string $input * @return string */ protected static function prepareQuotedValue(string $input) @@ -293,8 +274,6 @@ protected static function prepareQuotedValue(string $input) /** * Escape a string using addslashes, excluding the specified characters from being escaped. * - * @param string $value - * @param array $except * @return string */ protected static function addSlashesExceptFor(string $value, array $except = []) diff --git a/src/Illuminate/Support/Facades/Auth.php b/src/Illuminate/Support/Facades/Auth.php index 32b2eb64aa95..1f3380250c10 100755 --- a/src/Illuminate/Support/Facades/Auth.php +++ b/src/Illuminate/Support/Facades/Auth.php @@ -82,7 +82,6 @@ protected static function getFacadeAccessor() /** * Register the typical authentication routes for an application. * - * @param array $options * @return void * * @throws \RuntimeException diff --git a/src/Illuminate/Support/Facades/Bus.php b/src/Illuminate/Support/Facades/Bus.php index e6c8bf847023..bc4c012e9d73 100644 --- a/src/Illuminate/Support/Facades/Bus.php +++ b/src/Illuminate/Support/Facades/Bus.php @@ -63,7 +63,6 @@ class Bus extends Facade * Replace the bound instance with a fake. * * @param array|string $jobsToFake - * @param \Illuminate\Bus\BatchRepository|null $batchRepository * @return \Illuminate\Support\Testing\Fakes\BusFake */ public static function fake($jobsToFake = [], ?BatchRepository $batchRepository = null) @@ -80,7 +79,6 @@ public static function fake($jobsToFake = [], ?BatchRepository $batchRepository /** * Dispatch the given chain of jobs. * - * @param mixed $jobs * @return \Illuminate\Foundation\Bus\PendingDispatch */ public static function dispatchChain($jobs) diff --git a/src/Illuminate/Support/Facades/Cookie.php b/src/Illuminate/Support/Facades/Cookie.php index 3592f5839e74..70934817126e 100755 --- a/src/Illuminate/Support/Facades/Cookie.php +++ b/src/Illuminate/Support/Facades/Cookie.php @@ -38,7 +38,6 @@ public static function has($key) * Retrieve a cookie from the request. * * @param string|null $key - * @param mixed $default * @return string|array|null */ public static function get($key = null, $default = null) diff --git a/src/Illuminate/Support/Facades/DB.php b/src/Illuminate/Support/Facades/DB.php index b2f86ddb4f2f..118eb9cac73f 100644 --- a/src/Illuminate/Support/Facades/DB.php +++ b/src/Illuminate/Support/Facades/DB.php @@ -124,7 +124,6 @@ class DB extends Facade * * Prohibits: db:wipe, migrate:fresh, migrate:refresh, migrate:reset, and migrate:rollback * - * @param bool $prohibit * @return void */ public static function prohibitDestructiveCommands(bool $prohibit = true) diff --git a/src/Illuminate/Support/Facades/Date.php b/src/Illuminate/Support/Facades/Date.php index 4f62930ac285..0a2961fe74ee 100644 --- a/src/Illuminate/Support/Facades/Date.php +++ b/src/Illuminate/Support/Facades/Date.php @@ -126,7 +126,6 @@ protected static function getFacadeAccessor() * Resolve the facade root instance from the container. * * @param string $name - * @return mixed */ protected static function resolveFacadeInstance($name) { diff --git a/src/Illuminate/Support/Facades/Event.php b/src/Illuminate/Support/Facades/Event.php index 2d06f39190a9..d1d7700c7863 100755 --- a/src/Illuminate/Support/Facades/Event.php +++ b/src/Illuminate/Support/Facades/Event.php @@ -80,10 +80,6 @@ function ($eventName) use ($eventsToAllow) { /** * Replace the bound instance with a fake during the given callable's execution. - * - * @param callable $callable - * @param array $eventsToFake - * @return mixed */ public static function fakeFor(callable $callable, array $eventsToFake = []) { @@ -103,10 +99,6 @@ public static function fakeFor(callable $callable, array $eventsToFake = []) /** * Replace the bound instance with a fake during the given callable's execution. - * - * @param callable $callable - * @param array $eventsToAllow - * @return mixed */ public static function fakeExceptFor(callable $callable, array $eventsToAllow = []) { diff --git a/src/Illuminate/Support/Facades/Facade.php b/src/Illuminate/Support/Facades/Facade.php index f5ce6aab2fe5..cab6a1bae73d 100755 --- a/src/Illuminate/Support/Facades/Facade.php +++ b/src/Illuminate/Support/Facades/Facade.php @@ -42,7 +42,6 @@ abstract class Facade /** * Run a Closure when the facade has been resolved. * - * @param \Closure $callback * @return void */ public static function resolved(Closure $callback) @@ -176,7 +175,6 @@ protected static function getMockableClass() /** * Hotswap the underlying instance behind the facade. * - * @param mixed $instance * @return void */ public static function swap($instance) @@ -203,8 +201,6 @@ public static function isFake() /** * Get the root object behind the facade. - * - * @return mixed */ public static function getFacadeRoot() { @@ -227,7 +223,6 @@ protected static function getFacadeAccessor() * Resolve the facade root instance from the container. * * @param string $name - * @return mixed */ protected static function resolveFacadeInstance($name) { @@ -348,7 +343,6 @@ public static function setFacadeApplication($app) * * @param string $method * @param array $args - * @return mixed * * @throws \RuntimeException */ diff --git a/src/Illuminate/Support/Facades/Http.php b/src/Illuminate/Support/Facades/Http.php index f4c423c74f60..827b323146a2 100644 --- a/src/Illuminate/Support/Facades/Http.php +++ b/src/Illuminate/Support/Facades/Http.php @@ -130,7 +130,6 @@ public static function fake($callback = null) /** * Register a response sequence for the given URL pattern. * - * @param string $urlPattern * @return \Illuminate\Http\Client\ResponseSequence */ public static function fakeSequence(string $urlPattern = '*') diff --git a/src/Illuminate/Support/Facades/Notification.php b/src/Illuminate/Support/Facades/Notification.php index a7b3595a2bc3..e846037bef8b 100644 --- a/src/Illuminate/Support/Facades/Notification.php +++ b/src/Illuminate/Support/Facades/Notification.php @@ -58,7 +58,6 @@ public static function fake() /** * Begin sending a notification to an anonymous notifiable on the given channels. * - * @param array $channels * @return \Illuminate\Notifications\AnonymousNotifiable */ public static function routes(array $channels) @@ -76,7 +75,6 @@ public static function routes(array $channels) * Begin sending a notification to an anonymous notifiable. * * @param string $channel - * @param mixed $route * @return \Illuminate\Notifications\AnonymousNotifiable */ public static function route($channel, $route) diff --git a/src/Illuminate/Support/Facades/Process.php b/src/Illuminate/Support/Facades/Process.php index 35dfdca79345..f8072b7b9a0d 100644 --- a/src/Illuminate/Support/Facades/Process.php +++ b/src/Illuminate/Support/Facades/Process.php @@ -63,7 +63,6 @@ protected static function getFacadeAccessor() /** * Indicate that the process factory should fake processes. * - * @param \Closure|array|null $callback * @return \Illuminate\Process\Factory */ public static function fake(Closure|array|null $callback = null) diff --git a/src/Illuminate/Support/Facades/Queue.php b/src/Illuminate/Support/Facades/Queue.php index a22eca21a6b9..62e5cce86c48 100755 --- a/src/Illuminate/Support/Facades/Queue.php +++ b/src/Illuminate/Support/Facades/Queue.php @@ -109,10 +109,6 @@ public static function fakeExcept($jobsToAllow) /** * Replace the bound instance with a fake during the given callable's execution. - * - * @param callable $callable - * @param array $jobsToFake - * @return mixed */ public static function fakeFor(callable $callable, array $jobsToFake = []) { @@ -129,10 +125,6 @@ public static function fakeFor(callable $callable, array $jobsToFake = []) /** * Replace the bound instance with a fake during the given callable's execution. - * - * @param callable $callable - * @param array $jobsToAllow - * @return mixed */ public static function fakeExceptFor(callable $callable, array $jobsToAllow = []) { diff --git a/src/Illuminate/Support/Facades/Storage.php b/src/Illuminate/Support/Facades/Storage.php index 4b7418ac7ddc..70c4141f99cf 100644 --- a/src/Illuminate/Support/Facades/Storage.php +++ b/src/Illuminate/Support/Facades/Storage.php @@ -91,7 +91,6 @@ class Storage extends Facade * Replace the given disk with a local testing disk. * * @param string|null $disk - * @param array $config * @return \Illuminate\Contracts\Filesystem\Filesystem */ public static function fake($disk = null, array $config = []) @@ -117,7 +116,6 @@ public static function fake($disk = null, array $config = []) * Replace the given disk with a persistent local testing disk. * * @param string|null $disk - * @param array $config * @return \Illuminate\Contracts\Filesystem\Filesystem */ public static function persistentFake($disk = null, array $config = []) @@ -133,9 +131,6 @@ public static function persistentFake($disk = null, array $config = []) /** * Get the root path of the given disk. - * - * @param string $disk - * @return string */ protected static function getRootPath(string $disk): string { @@ -144,11 +139,6 @@ protected static function getRootPath(string $disk): string /** * Assemble the configuration of the given disk. - * - * @param string $disk - * @param array $config - * @param string $root - * @return array */ protected static function buildDiskConfiguration(string $disk, array $config, string $root): array { diff --git a/src/Illuminate/Support/Fluent.php b/src/Illuminate/Support/Fluent.php index 2915f2e9d4ec..2590c14364ff 100755 --- a/src/Illuminate/Support/Fluent.php +++ b/src/Illuminate/Support/Fluent.php @@ -101,8 +101,6 @@ public function fill($attributes) * Get an attribute from the fluent instance. * * @param string $key - * @param mixed $default - * @return mixed */ public function value($key, $default = null) { @@ -117,7 +115,6 @@ public function value($key, $default = null) * Get the value of the given key as a new Fluent instance. * * @param string $key - * @param mixed $default * @return static */ public function scope($key, $default = null) @@ -130,7 +127,6 @@ public function scope($key, $default = null) /** * Get all of the attributes from the fluent instance. * - * @param mixed $keys * @return array */ public function all($keys = null) @@ -154,8 +150,6 @@ public function all($keys = null) * Get data from the fluent instance. * * @param string $key - * @param mixed $default - * @return mixed */ protected function data($key = null, $default = null) { @@ -215,8 +209,6 @@ public function toPrettyJson() /** * Determine if the fluent instance is empty. - * - * @return bool */ public function isEmpty(): bool { @@ -225,8 +217,6 @@ public function isEmpty(): bool /** * Determine if the fluent instance is not empty. - * - * @return bool */ public function isNotEmpty(): bool { @@ -237,7 +227,6 @@ public function isNotEmpty(): bool * Determine if the given offset exists. * * @param TKey $offset - * @return bool */ public function offsetExists($offset): bool { @@ -260,7 +249,6 @@ public function offsetGet($offset): mixed * * @param TKey $offset * @param TValue $value - * @return void */ public function offsetSet($offset, $value): void { @@ -271,7 +259,6 @@ public function offsetSet($offset, $value): void * Unset the value at the given offset. * * @param TKey $offset - * @return void */ public function offsetUnset($offset): void { diff --git a/src/Illuminate/Support/HigherOrderTapProxy.php b/src/Illuminate/Support/HigherOrderTapProxy.php index 85201f0814c1..cb7ac4ec7dde 100644 --- a/src/Illuminate/Support/HigherOrderTapProxy.php +++ b/src/Illuminate/Support/HigherOrderTapProxy.php @@ -6,15 +6,11 @@ class HigherOrderTapProxy { /** * The target being tapped. - * - * @var mixed */ public $target; /** * Create a new tap proxy instance. - * - * @param mixed $target */ public function __construct($target) { @@ -26,7 +22,6 @@ public function __construct($target) * * @param string $method * @param array $parameters - * @return mixed */ public function __call($method, $parameters) { diff --git a/src/Illuminate/Support/Js.php b/src/Illuminate/Support/Js.php index ff9d663ba69e..d66fafe1cd51 100644 --- a/src/Illuminate/Support/Js.php +++ b/src/Illuminate/Support/Js.php @@ -28,7 +28,6 @@ class Js implements Htmlable, Stringable /** * Create a new class instance. * - * @param mixed $data * @param int|null $flags * @param int $depth * @@ -42,7 +41,6 @@ public function __construct($data, $flags = 0, $depth = 512) /** * Create a new JavaScript string from the given data. * - * @param mixed $data * @param int $flags * @param int $depth * @return static @@ -57,7 +55,6 @@ public static function from($data, $flags = 0, $depth = 512) /** * Convert the given data to a JavaScript expression. * - * @param mixed $data * @param int $flags * @param int $depth * @return string @@ -93,7 +90,6 @@ protected function convertDataToJavaScriptExpression($data, $flags = 0, $depth = /** * Encode the given data as JSON. * - * @param mixed $data * @param int $flags * @param int $depth * @return string diff --git a/src/Illuminate/Support/Lottery.php b/src/Illuminate/Support/Lottery.php index 183cf957c578..f1b01c92f2e8 100644 --- a/src/Illuminate/Support/Lottery.php +++ b/src/Illuminate/Support/Lottery.php @@ -102,9 +102,6 @@ public function loser($callback) /** * Run the lottery. - * - * @param mixed ...$args - * @return mixed */ public function __invoke(...$args) { @@ -115,7 +112,6 @@ public function __invoke(...$args) * Run the lottery. * * @param null|int $times - * @return mixed */ public function choose($times = null) { @@ -135,7 +131,6 @@ public function choose($times = null) /** * Run the winner or loser callback, randomly. * - * @param mixed ...$args * @return callable */ protected function runCallback(...$args) diff --git a/src/Illuminate/Support/Manager.php b/src/Illuminate/Support/Manager.php index ebd95c85a03c..67cb90c16c9c 100755 --- a/src/Illuminate/Support/Manager.php +++ b/src/Illuminate/Support/Manager.php @@ -38,8 +38,6 @@ abstract class Manager /** * Create a new manager instance. - * - * @param \Illuminate\Contracts\Container\Container $container */ public function __construct(Container $container) { @@ -58,7 +56,6 @@ abstract public function getDefaultDriver(); * Get a driver instance. * * @param string|null $driver - * @return mixed * * @throws \InvalidArgumentException */ @@ -82,7 +79,6 @@ public function driver($driver = null) * Create a new driver instance. * * @param string $driver - * @return mixed * * @throws \InvalidArgumentException */ @@ -108,7 +104,6 @@ protected function createDriver($driver) * Call a custom driver creator. * * @param string $driver - * @return mixed */ protected function callCustomCreator($driver) { @@ -119,7 +114,6 @@ protected function callCustomCreator($driver) * Register a custom driver creator Closure. * * @param string $driver - * @param \Closure $callback * @return $this */ public function extend($driver, Closure $callback) @@ -152,7 +146,6 @@ public function getContainer() /** * Set the container instance used by the manager. * - * @param \Illuminate\Contracts\Container\Container $container * @return $this */ public function setContainer(Container $container) @@ -179,7 +172,6 @@ public function forgetDrivers() * * @param string $method * @param array $parameters - * @return mixed */ public function __call($method, $parameters) { diff --git a/src/Illuminate/Support/MessageBag.php b/src/Illuminate/Support/MessageBag.php index bbe5a088e84e..54aa86b4cd18 100755 --- a/src/Illuminate/Support/MessageBag.php +++ b/src/Illuminate/Support/MessageBag.php @@ -392,8 +392,6 @@ public function any() /** * Get the number of messages in the message bag. - * - * @return int */ public function count(): int { @@ -412,8 +410,6 @@ public function toArray() /** * Convert the object into something JSON serializable. - * - * @return array */ public function jsonSerialize(): array { diff --git a/src/Illuminate/Support/MultipleInstanceManager.php b/src/Illuminate/Support/MultipleInstanceManager.php index 66fff08e3c9a..35b79abeb602 100644 --- a/src/Illuminate/Support/MultipleInstanceManager.php +++ b/src/Illuminate/Support/MultipleInstanceManager.php @@ -81,7 +81,6 @@ abstract public function getInstanceConfig($name); * Get an instance by name. * * @param string|null $name - * @return mixed */ public function instance($name = null) { @@ -94,7 +93,6 @@ public function instance($name = null) * Attempt to get an instance from the local cache. * * @param string $name - * @return mixed */ protected function get($name) { @@ -105,7 +103,6 @@ protected function get($name) * Resolve the given instance. * * @param string $name - * @return mixed * * @throws \InvalidArgumentException * @throws \RuntimeException @@ -145,9 +142,6 @@ protected function resolve($name) /** * Call a custom instance creator. - * - * @param array $config - * @return mixed */ protected function callCustomCreator(array $config) { @@ -190,7 +184,6 @@ public function purge($name = null) * Register a custom instance creator Closure. * * @param string $name - * @param \Closure $callback * * @param-closure-this $this $callback * @@ -221,7 +214,6 @@ public function setApplication($app) * * @param string $method * @param array $parameters - * @return mixed */ public function __call($method, $parameters) { diff --git a/src/Illuminate/Support/NamespacedItemResolver.php b/src/Illuminate/Support/NamespacedItemResolver.php index 10007be9e30e..c1f5ba0b991d 100755 --- a/src/Illuminate/Support/NamespacedItemResolver.php +++ b/src/Illuminate/Support/NamespacedItemResolver.php @@ -46,7 +46,6 @@ public function parseKey($key) /** * Parse an array of basic segments. * - * @param array $segments * @return array */ protected function parseBasicSegments(array $segments) diff --git a/src/Illuminate/Support/Number.php b/src/Illuminate/Support/Number.php index 71d0d51cf85c..7d5173602fca 100644 --- a/src/Illuminate/Support/Number.php +++ b/src/Illuminate/Support/Number.php @@ -27,10 +27,6 @@ class Number /** * Format the given number according to the current locale. * - * @param int|float $number - * @param int|null $precision - * @param int|null $maxPrecision - * @param string|null $locale * @return string|false */ public static function format(int|float $number, ?int $precision = null, ?int $maxPrecision = null, ?string $locale = null) @@ -51,9 +47,6 @@ public static function format(int|float $number, ?int $precision = null, ?int $m /** * Parse the given string according to the specified format type. * - * @param string $string - * @param int|null $type - * @param string|null $locale * @return int|float|false */ public static function parse(string $string, ?int $type = NumberFormatter::TYPE_DOUBLE, ?string $locale = null): int|float @@ -68,8 +61,6 @@ public static function parse(string $string, ?int $type = NumberFormatter::TYPE_ /** * Parse a string into an integer according to the specified locale. * - * @param string $string - * @param string|null $locale * @return int|false */ public static function parseInt(string $string, ?string $locale = null): int @@ -80,8 +71,6 @@ public static function parseInt(string $string, ?string $locale = null): int /** * Parse a string into a float according to the specified locale. * - * @param string $string - * @param string|null $locale * @return float|false */ public static function parseFloat(string $string, ?string $locale = null): float @@ -92,10 +81,6 @@ public static function parseFloat(string $string, ?string $locale = null): float /** * Spell out the given number in the given locale. * - * @param int|float $number - * @param string|null $locale - * @param int|null $after - * @param int|null $until * @return string */ public static function spell(int|float $number, ?string $locale = null, ?int $after = null, ?int $until = null) @@ -118,8 +103,6 @@ public static function spell(int|float $number, ?string $locale = null, ?int $af /** * Convert the given number to ordinal form. * - * @param int|float $number - * @param string|null $locale * @return string */ public static function ordinal(int|float $number, ?string $locale = null) @@ -134,8 +117,6 @@ public static function ordinal(int|float $number, ?string $locale = null) /** * Spell out the given number in the given locale in ordinal form. * - * @param int|float $number - * @param string|null $locale * @return string */ public static function spellOrdinal(int|float $number, ?string $locale = null) @@ -152,10 +133,6 @@ public static function spellOrdinal(int|float $number, ?string $locale = null) /** * Convert the given number to its percentage equivalent. * - * @param int|float $number - * @param int $precision - * @param int|null $maxPrecision - * @param string|null $locale * @return string|false */ public static function percentage(int|float $number, int $precision = 0, ?int $maxPrecision = null, ?string $locale = null) @@ -176,10 +153,6 @@ public static function percentage(int|float $number, int $precision = 0, ?int $m /** * Convert the given number to its currency equivalent. * - * @param int|float $number - * @param string $in - * @param string|null $locale - * @param int|null $precision * @return string|false */ public static function currency(int|float $number, string $in = '', ?string $locale = null, ?int $precision = null) @@ -198,9 +171,6 @@ public static function currency(int|float $number, string $in = '', ?string $loc /** * Convert the given number to its file size equivalent. * - * @param int|float $bytes - * @param int $precision - * @param int|null $maxPrecision * @return string */ public static function fileSize(int|float $bytes, int $precision = 0, ?int $maxPrecision = null) @@ -217,9 +187,6 @@ public static function fileSize(int|float $bytes, int $precision = 0, ?int $maxP /** * Convert the number to its human-readable equivalent. * - * @param int|float $number - * @param int $precision - * @param int|null $maxPrecision * @return bool|string */ public static function abbreviate(int|float $number, int $precision = 0, ?int $maxPrecision = null) @@ -230,10 +197,6 @@ public static function abbreviate(int|float $number, int $precision = 0, ?int $m /** * Convert the number to its human-readable equivalent. * - * @param int|float $number - * @param int $precision - * @param int|null $maxPrecision - * @param bool $abbreviate * @return string|false */ public static function forHumans(int|float $number, int $precision = 0, ?int $maxPrecision = null, bool $abbreviate = false) @@ -256,10 +219,6 @@ public static function forHumans(int|float $number, int $precision = 0, ?int $ma /** * Convert the number to its human-readable equivalent. * - * @param int|float $number - * @param int $precision - * @param int|null $maxPrecision - * @param array $units * @return string|false */ protected static function summarize(int|float $number, int $precision = 0, ?int $maxPrecision = null, array $units = []) @@ -293,9 +252,6 @@ protected static function summarize(int|float $number, int $precision = 0, ?int /** * Clamp the given number between the given minimum and maximum. * - * @param int|float $number - * @param int|float $min - * @param int|float $max * @return int|float */ public static function clamp(int|float $number, int|float $min, int|float $max) @@ -306,10 +262,6 @@ public static function clamp(int|float $number, int|float $min, int|float $max) /** * Split the given number into pairs of min/max values. * - * @param int|float $to - * @param int|float $by - * @param int|float $start - * @param int|float $offset * @return array */ public static function pairs(int|float $to, int|float $by, int|float $start = 0, int|float $offset = 1) @@ -332,7 +284,6 @@ public static function pairs(int|float $to, int|float $by, int|float $start = 0, /** * Remove any trailing zero digits after the decimal point of the given number. * - * @param int|float $number * @return int|float */ public static function trim(int|float $number) @@ -342,10 +293,6 @@ public static function trim(int|float $number) /** * Execute the given callback using the given locale. - * - * @param string $locale - * @param callable $callback - * @return mixed */ public static function withLocale(string $locale, callable $callback) { @@ -362,10 +309,6 @@ public static function withLocale(string $locale, callable $callback) /** * Execute the given callback using the given currency. - * - * @param string $currency - * @param callable $callback - * @return mixed */ public static function withCurrency(string $currency, callable $callback) { @@ -383,7 +326,6 @@ public static function withCurrency(string $currency, callable $callback) /** * Set the default locale. * - * @param string $locale * @return void */ public static function useLocale(string $locale) @@ -394,7 +336,6 @@ public static function useLocale(string $locale) /** * Set the default currency. * - * @param string $currency * @return void */ public static function useCurrency(string $currency) diff --git a/src/Illuminate/Support/Once.php b/src/Illuminate/Support/Once.php index 4d860b298f02..6e8a13bbd593 100644 --- a/src/Illuminate/Support/Once.php +++ b/src/Illuminate/Support/Once.php @@ -15,8 +15,6 @@ class Once /** * Indicates if the once instance is enabled. - * - * @var bool */ protected static bool $enabled = true; @@ -42,9 +40,6 @@ public static function instance() /** * Get the value of the given onceable. - * - * @param Onceable $onceable - * @return mixed */ public function value(Onceable $onceable) { diff --git a/src/Illuminate/Support/Onceable.php b/src/Illuminate/Support/Onceable.php index 3621e393e39c..1eec182b60c5 100644 --- a/src/Illuminate/Support/Onceable.php +++ b/src/Illuminate/Support/Onceable.php @@ -11,8 +11,6 @@ class Onceable /** * Create a new onceable instance. * - * @param string $hash - * @param object|null $object * @param callable $callable */ public function __construct( diff --git a/src/Illuminate/Support/Optional.php b/src/Illuminate/Support/Optional.php index fcf71ed0c4a4..d5bcf6d2d284 100644 --- a/src/Illuminate/Support/Optional.php +++ b/src/Illuminate/Support/Optional.php @@ -14,15 +14,11 @@ class Optional implements ArrayAccess /** * The underlying object. - * - * @var mixed */ protected $value; /** * Create a new optional instance. - * - * @param mixed $value */ public function __construct($value) { @@ -33,7 +29,6 @@ public function __construct($value) * Dynamically access a property on the underlying object. * * @param string $key - * @return mixed */ public function __get($key) { @@ -45,7 +40,6 @@ public function __get($key) /** * Dynamically check a property exists on the underlying object. * - * @param mixed $name * @return bool */ public function __isset($name) @@ -63,9 +57,6 @@ public function __isset($name) /** * Determine if an item exists at an offset. - * - * @param mixed $key - * @return bool */ public function offsetExists($key): bool { @@ -74,9 +65,6 @@ public function offsetExists($key): bool /** * Get an item at a given offset. - * - * @param mixed $key - * @return mixed */ public function offsetGet($key): mixed { @@ -85,10 +73,6 @@ public function offsetGet($key): mixed /** * Set the item at a given offset. - * - * @param mixed $key - * @param mixed $value - * @return void */ public function offsetSet($key, $value): void { @@ -101,7 +85,6 @@ public function offsetSet($key, $value): void * Unset the item at a given offset. * * @param string $key - * @return void */ public function offsetUnset($key): void { @@ -115,7 +98,6 @@ public function offsetUnset($key): void * * @param string $method * @param array $parameters - * @return mixed */ public function __call($method, $parameters) { diff --git a/src/Illuminate/Support/Pluralizer.php b/src/Illuminate/Support/Pluralizer.php index 0d909de1e22d..399e133e42a5 100755 --- a/src/Illuminate/Support/Pluralizer.php +++ b/src/Illuminate/Support/Pluralizer.php @@ -115,7 +115,6 @@ public static function inflector() /** * Specify the language that should be used by the inflector. * - * @param string $language * @return void */ public static function useLanguage(string $language) diff --git a/src/Illuminate/Support/Reflector.php b/src/Illuminate/Support/Reflector.php index 2ee9c5fee550..499ec1590b1c 100644 --- a/src/Illuminate/Support/Reflector.php +++ b/src/Illuminate/Support/Reflector.php @@ -14,7 +14,6 @@ class Reflector /** * This is a PHP 7.4 compatible implementation of is_callable. * - * @param mixed $var * @param bool $syntaxOnly * @return bool */ diff --git a/src/Illuminate/Support/ServiceProvider.php b/src/Illuminate/Support/ServiceProvider.php index 85b0ee116791..42d861066b78 100755 --- a/src/Illuminate/Support/ServiceProvider.php +++ b/src/Illuminate/Support/ServiceProvider.php @@ -95,7 +95,6 @@ public function register() /** * Register a booting callback to be run before the "boot" method is called. * - * @param \Closure $callback * @return void */ public function booting(Closure $callback) @@ -106,7 +105,6 @@ public function booting(Closure $callback) /** * Register a booted callback to be run after the "boot" method is called. * - * @param \Closure $callback * @return void */ public function booted(Closure $callback) @@ -222,7 +220,6 @@ protected function loadViewsFrom($path, $namespace) * Register the given view components with a custom prefix. * * @param string $prefix - * @param array $components * @return void */ protected function loadViewComponentsAs($prefix, array $components) @@ -312,8 +309,6 @@ protected function callAfterResolving($name, $callback) /** * Register migration paths to be published by the publish command. * - * @param array $paths - * @param mixed $groups * @return void */ protected function publishesMigrations(array $paths, $groups = null) @@ -328,8 +323,6 @@ protected function publishesMigrations(array $paths, $groups = null) /** * Register paths to be published by the publish command. * - * @param array $paths - * @param mixed $groups * @return void */ protected function publishes(array $paths, $groups = null) @@ -461,7 +454,6 @@ public static function publishableGroups() /** * Register the package's custom Artisan commands. * - * @param mixed $commands * @return void */ public function commands($commands) @@ -476,9 +468,6 @@ public function commands($commands) /** * Register commands that should run on "optimize" or "optimize:clear". * - * @param string|null $optimize - * @param string|null $clear - * @param string|null $key * @return void */ protected function optimizes(?string $optimize = null, ?string $clear = null, ?string $key = null) @@ -546,8 +535,6 @@ public static function defaultProviders() /** * Add the given provider to the application's provider bootstrap file. * - * @param string $provider - * @param string $path * @return bool */ public static function addProviderToBootstrapFile(string $provider, ?string $path = null) diff --git a/src/Illuminate/Support/Sleep.php b/src/Illuminate/Support/Sleep.php index b6b6ab32bca2..fc2ffa497d09 100644 --- a/src/Illuminate/Support/Sleep.php +++ b/src/Illuminate/Support/Sleep.php @@ -264,7 +264,6 @@ public function and($duration) /** * Sleep while a given callback returns "true". * - * @param \Closure $callback * @return $this */ public function while(Closure $callback) @@ -276,9 +275,6 @@ public function while(Closure $callback) /** * Specify a callback that should be executed after sleeping. - * - * @param callable $then - * @return mixed */ public function then(callable $then) { diff --git a/src/Illuminate/Support/Str.php b/src/Illuminate/Support/Str.php index e182be45f7f6..11dac556b39b 100644 --- a/src/Illuminate/Support/Str.php +++ b/src/Illuminate/Support/Str.php @@ -356,9 +356,6 @@ public static function doesntContain($haystack, $needles, $ignoreCase = false) /** * Convert the case of a string. * - * @param string $string - * @param int $mode - * @param string|null $encoding * @return string */ public static function convertCase(string $string, int $mode = MB_CASE_FOLD, ?string $encoding = 'UTF-8') @@ -369,7 +366,6 @@ public static function convertCase(string $string, int $mode = MB_CASE_FOLD, ?st /** * Replace consecutive instances of a given character with a single character in the given string. * - * @param string $string * @param array|string $characters * @return string */ @@ -567,7 +563,6 @@ public static function isAscii($value) /** * Determine if a given value is valid JSON. * - * @param mixed $value * @return bool */ public static function isJson($value) @@ -582,8 +577,6 @@ public static function isJson($value) /** * Determine if a given value is a valid URL. * - * @param mixed $value - * @param array $protocols * @return bool */ public static function isUrl($value, array $protocols = []) @@ -625,7 +618,6 @@ public static function isUrl($value, array $protocols = []) /** * Determine if a given value is a valid UUID. * - * @param mixed $value * @param int<0, 8>|'nil'|'max'|null $version * @return bool */ @@ -667,7 +659,6 @@ public static function isUuid($value, $version = null) /** * Determine if a given value is a valid ULID. * - * @param mixed $value * @return bool */ public static function isUlid($value) @@ -766,8 +757,6 @@ public static function words($value, $words = 100, $end = '...') * Converts GitHub flavored Markdown into HTML. * * @param string $string - * @param array $options - * @param array $extensions * @return string */ public static function markdown($string, array $options = [], array $extensions = []) @@ -787,8 +776,6 @@ public static function markdown($string, array $options = [], array $extensions * Converts inline Markdown into HTML. * * @param string $string - * @param array $options - * @param array $extensions * @return string */ public static function inlineMarkdown($string, array $options = [], array $extensions = []) @@ -1103,7 +1090,6 @@ public static function random($length = 16) /** * Set the callable that will be used to generate random strings. * - * @param callable|null $factory * @return void */ public static function createRandomStringsUsing(?callable $factory = null) @@ -1114,7 +1100,6 @@ public static function createRandomStringsUsing(?callable $factory = null) /** * Set the sequence that will be used to generate random strings. * - * @param array $sequence * @param callable|null $whenMissing * @return void */ @@ -1158,8 +1143,6 @@ public static function createRandomStringsNormally() /** * Repeat the given string. * - * @param string $string - * @param int $times * @return string */ public static function repeat(string $string, int $times) @@ -1195,7 +1178,6 @@ public static function replaceArray($search, $replace, $subject) /** * Convert the given value to a string or return the given fallback on failure. * - * @param mixed $value * @param string $fallback * @return string */ @@ -1372,7 +1354,6 @@ public static function remove($search, $subject, $caseSensitive = true) /** * Reverse the given string. * - * @param string $value * @return string */ public static function reverse(string $value) @@ -1743,7 +1724,6 @@ public static function substrReplace($string, $replace, $offset = 0, $length = n /** * Swap multiple keywords in a string with other keywords. * - * @param array $map * @param string $subject * @return string */ @@ -1756,8 +1736,6 @@ public static function swap(array $map, $subject) * Take the first or last {$limit} characters of a string. * * @param string $string - * @param int $limit - * @return string */ public static function take($string, int $limit): string { @@ -1772,7 +1750,6 @@ public static function take($string, int $limit): string * Convert the given string to Base64 encoding. * * @param string $string - * @return string */ public static function toBase64($string): string { @@ -1903,7 +1880,6 @@ public static function orderedUuid() /** * Set the callable that will be used to generate UUIDs. * - * @param callable|null $factory * @return void */ public static function createUuidsUsing(?callable $factory = null) @@ -1914,7 +1890,6 @@ public static function createUuidsUsing(?callable $factory = null) /** * Set the sequence that will be used to generate UUIDs. * - * @param array $sequence * @param callable|null $whenMissing * @return void */ @@ -1948,7 +1923,6 @@ public static function createUuidsUsingSequence(array $sequence, $whenMissing = /** * Always return the same UUID when generating new UUIDs. * - * @param \Closure|null $callback * @return \Ramsey\Uuid\UuidInterface */ public static function freezeUuids(?Closure $callback = null) @@ -2010,7 +1984,6 @@ public static function createUlidsNormally() /** * Set the callable that will be used to generate ULIDs. * - * @param callable|null $factory * @return void */ public static function createUlidsUsing(?callable $factory = null) @@ -2021,7 +1994,6 @@ public static function createUlidsUsing(?callable $factory = null) /** * Set the sequence that will be used to generate ULIDs. * - * @param array $sequence * @param callable|null $whenMissing * @return void */ @@ -2055,7 +2027,6 @@ public static function createUlidsUsingSequence(array $sequence, $whenMissing = /** * Always return the same ULID when generating new ULIDs. * - * @param Closure|null $callback * @return Ulid */ public static function freezeUlids(?Closure $callback = null) diff --git a/src/Illuminate/Support/Stringable.php b/src/Illuminate/Support/Stringable.php index 3f5b07d2bb74..a7d2ed7feaee 100644 --- a/src/Illuminate/Support/Stringable.php +++ b/src/Illuminate/Support/Stringable.php @@ -225,8 +225,6 @@ public function containsAll($needles, $ignoreCase = false) /** * Convert the case of a string. * - * @param int $mode - * @param string|null $encoding * @return static */ public function convertCase(int $mode = MB_CASE_FOLD, ?string $encoding = 'UTF-8') @@ -237,7 +235,6 @@ public function convertCase(int $mode = MB_CASE_FOLD, ?string $encoding = 'UTF-8 /** * Replace consecutive instances of a given character with a single character. * - * @param string $character * @return static */ public function deduplicate(string $character = ' ') @@ -382,7 +379,6 @@ public function isJson() /** * Determine if a given value is a valid URL. * - * @param array $protocols * @return bool */ public function isUrl(array $protocols = []) @@ -478,8 +474,6 @@ public function lower() /** * Convert GitHub flavored Markdown into HTML. * - * @param array $options - * @param array $extensions * @return static */ public function markdown(array $options = [], array $extensions = []) @@ -490,8 +484,6 @@ public function markdown(array $options = [], array $extensions = []) /** * Convert inline Markdown into HTML. * - * @param array $options - * @param array $extensions * @return static */ public function inlineMarkdown(array $options = [], array $extensions = []) @@ -617,7 +609,6 @@ public function parseCallback($default = null) /** * Call the given callback and return a new string. * - * @param callable $callback * @return static */ public function pipe(callable $callback) @@ -707,7 +698,6 @@ public function reverse() /** * Repeat the string. * - * @param int $times * @return static */ public function repeat(int $times) @@ -1018,7 +1008,6 @@ public function substrReplace($replace, $offset = 0, $length = null) /** * Swap multiple keywords in a string with other keywords. * - * @param array $map * @return static */ public function swap(array $map) @@ -1029,7 +1018,6 @@ public function swap(array $map) /** * Take the first or last {$limit} characters. * - * @param int $limit * @return static */ public function take(int $limit) @@ -1388,7 +1376,6 @@ public function fromBase64($strict = false) /** * Hash the string using the given algorithm. * - * @param string $algorithm * @return static */ public function hash(string $algorithm) @@ -1399,7 +1386,6 @@ public function hash(string $algorithm) /** * Encrypt the string. * - * @param bool $serialize * @return static */ public function encrypt(bool $serialize = false) @@ -1410,7 +1396,6 @@ public function encrypt(bool $serialize = false) /** * Decrypt the string. * - * @param bool $serialize * @return static */ public function decrypt(bool $serialize = false) @@ -1421,7 +1406,6 @@ public function decrypt(bool $serialize = false) /** * Dump the string. * - * @param mixed ...$args * @return $this */ public function dump(...$args) @@ -1514,8 +1498,6 @@ public function toUri() /** * Convert the object to a string when JSON encoded. - * - * @return string */ public function jsonSerialize(): string { @@ -1524,9 +1506,6 @@ public function jsonSerialize(): string /** * Determine if the given offset exists. - * - * @param mixed $offset - * @return bool */ public function offsetExists(mixed $offset): bool { @@ -1535,9 +1514,6 @@ public function offsetExists(mixed $offset): bool /** * Get the value at the given offset. - * - * @param mixed $offset - * @return string */ public function offsetGet(mixed $offset): string { @@ -1546,9 +1522,6 @@ public function offsetGet(mixed $offset): string /** * Set the value at the given offset. - * - * @param mixed $offset - * @return void */ public function offsetSet(mixed $offset, mixed $value): void { @@ -1557,9 +1530,6 @@ public function offsetSet(mixed $offset, mixed $value): void /** * Unset the value at the given offset. - * - * @param mixed $offset - * @return void */ public function offsetUnset(mixed $offset): void { @@ -1570,7 +1540,6 @@ public function offsetUnset(mixed $offset): void * Proxy dynamic properties onto methods. * * @param string $key - * @return mixed */ public function __get($key) { diff --git a/src/Illuminate/Support/Testing/Fakes/BatchFake.php b/src/Illuminate/Support/Testing/Fakes/BatchFake.php index 0d1176c2b3ec..d61e47ddcfe3 100644 --- a/src/Illuminate/Support/Testing/Fakes/BatchFake.php +++ b/src/Illuminate/Support/Testing/Fakes/BatchFake.php @@ -26,17 +26,6 @@ class BatchFake extends Batch /** * Create a new batch instance. - * - * @param string $id - * @param string $name - * @param int $totalJobs - * @param int $pendingJobs - * @param int $failedJobs - * @param array $failedJobIds - * @param array $options - * @param \Carbon\CarbonImmutable $createdAt - * @param \Carbon\CarbonImmutable|null $cancelledAt - * @param \Carbon\CarbonImmutable|null $finishedAt */ public function __construct( string $id, @@ -94,7 +83,6 @@ public function add($jobs) /** * Record that a job within the batch finished successfully, executing any callbacks if necessary. * - * @param string $jobId * @return void */ public function recordSuccessfulJob(string $jobId) @@ -105,7 +93,6 @@ public function recordSuccessfulJob(string $jobId) /** * Decrement the pending jobs for the batch. * - * @param string $jobId * @return void */ public function decrementPendingJobs(string $jobId) @@ -116,7 +103,6 @@ public function decrementPendingJobs(string $jobId) /** * Record that a job within the batch failed to finish successfully, executing any callbacks if necessary. * - * @param string $jobId * @param \Throwable $e * @return void */ @@ -128,7 +114,6 @@ public function recordFailedJob(string $jobId, $e) /** * Increment the failed jobs for the batch. * - * @param string $jobId * @return \Illuminate\Bus\UpdatedBatchJobCounts */ public function incrementFailedJobs(string $jobId) diff --git a/src/Illuminate/Support/Testing/Fakes/BatchRepositoryFake.php b/src/Illuminate/Support/Testing/Fakes/BatchRepositoryFake.php index 2afa4ab94e2c..b16b9c812259 100644 --- a/src/Illuminate/Support/Testing/Fakes/BatchRepositoryFake.php +++ b/src/Illuminate/Support/Testing/Fakes/BatchRepositoryFake.php @@ -22,7 +22,6 @@ class BatchRepositoryFake implements BatchRepository * Retrieve a list of batches. * * @param int $limit - * @param mixed $before * @return \Illuminate\Bus\Batch[] */ public function get($limit, $before) @@ -33,7 +32,6 @@ public function get($limit, $before) /** * Retrieve information about an existing batch. * - * @param string $batchId * @return \Illuminate\Bus\Batch|null */ public function find(string $batchId) @@ -44,7 +42,6 @@ public function find(string $batchId) /** * Store a new pending batch. * - * @param \Illuminate\Bus\PendingBatch $batch * @return \Illuminate\Bus\Batch */ public function store(PendingBatch $batch) @@ -70,8 +67,6 @@ public function store(PendingBatch $batch) /** * Increment the total number of jobs within the batch. * - * @param string $batchId - * @param int $amount * @return void */ public function incrementTotalJobs(string $batchId, int $amount) @@ -82,8 +77,6 @@ public function incrementTotalJobs(string $batchId, int $amount) /** * Decrement the total number of pending jobs for the batch. * - * @param string $batchId - * @param string $jobId * @return \Illuminate\Bus\UpdatedBatchJobCounts */ public function decrementPendingJobs(string $batchId, string $jobId) @@ -94,8 +87,6 @@ public function decrementPendingJobs(string $batchId, string $jobId) /** * Increment the total number of failed jobs for the batch. * - * @param string $batchId - * @param string $jobId * @return \Illuminate\Bus\UpdatedBatchJobCounts */ public function incrementFailedJobs(string $batchId, string $jobId) @@ -106,7 +97,6 @@ public function incrementFailedJobs(string $batchId, string $jobId) /** * Mark the batch that has the given ID as finished. * - * @param string $batchId * @return void */ public function markAsFinished(string $batchId) @@ -119,7 +109,6 @@ public function markAsFinished(string $batchId) /** * Cancel the batch that has the given ID. * - * @param string $batchId * @return void */ public function cancel(string $batchId) @@ -132,7 +121,6 @@ public function cancel(string $batchId) /** * Delete the batch that has the given ID. * - * @param string $batchId * @return void */ public function delete(string $batchId) @@ -142,9 +130,6 @@ public function delete(string $batchId) /** * Execute the given Closure within a storage specific transaction. - * - * @param \Closure $callback - * @return mixed */ public function transaction(Closure $callback) { diff --git a/src/Illuminate/Support/Testing/Fakes/BusFake.php b/src/Illuminate/Support/Testing/Fakes/BusFake.php index ac464e986c06..48cf0518b7bb 100644 --- a/src/Illuminate/Support/Testing/Fakes/BusFake.php +++ b/src/Illuminate/Support/Testing/Fakes/BusFake.php @@ -76,17 +76,13 @@ class BusFake implements Fake, QueueingDispatcher /** * Indicates if commands should be serialized and restored when pushed to the Bus. - * - * @var bool */ protected bool $serializeAndRestore = false; /** * Create a new bus fake instance. * - * @param \Illuminate\Contracts\Bus\QueueingDispatcher $dispatcher * @param array|string $jobsToFake - * @param \Illuminate\Bus\BatchRepository|null $batchRepository */ public function __construct(QueueingDispatcher $dispatcher, $jobsToFake = [], ?BatchRepository $batchRepository = null) { @@ -137,7 +133,6 @@ public function assertDispatched($command, $callback = null) * Assert if a job was pushed exactly once. * * @param string|\Closure $command - * @param int $times * @return void */ public function assertDispatchedOnce($command) @@ -348,7 +343,6 @@ public function assertNotDispatchedAfterResponse($command, $callback = null) /** * Assert if a chain of jobs was dispatched. * - * @param array $expectedChain * @return void */ public function assertChained(array $expectedChain) @@ -397,9 +391,6 @@ public function assertNothingChained() /** * Reset the chain properties to their default values on the job. - * - * @param mixed $job - * @return mixed */ protected function resetChainPropertiesToDefaults($job) { @@ -488,7 +479,6 @@ protected function assertDispatchedWithChainOfObjects($command, $expectedChain, /** * Create a new assertion about a chained batch. * - * @param \Closure $callback * @return \Illuminate\Support\Testing\Fakes\ChainedBatchTruthTest */ public function chainedBatch(Closure $callback) @@ -499,7 +489,6 @@ public function chainedBatch(Closure $callback) /** * Assert if a batch was dispatched based on a truth-test callback. * - * @param callable $callback * @return void */ public function assertBatched(callable $callback) @@ -570,7 +559,6 @@ public function dispatched($command, $callback = null) /** * Get all of the jobs dispatched synchronously matching a truth-test callback. * - * @param string $command * @param callable|null $callback * @return \Illuminate\Support\Collection */ @@ -588,7 +576,6 @@ public function dispatchedSync(string $command, $callback = null) /** * Get all of the jobs dispatched after the response was sent matching a truth-test callback. * - * @param string $command * @param callable|null $callback * @return \Illuminate\Support\Collection */ @@ -606,7 +593,6 @@ public function dispatchedAfterResponse(string $command, $callback = null) /** * Get all of the pending batches matching a truth-test callback. * - * @param callable $callback * @return \Illuminate\Support\Collection */ public function batched(callable $callback) @@ -653,9 +639,6 @@ public function hasDispatchedAfterResponse($command) /** * Dispatch a command to its appropriate handler. - * - * @param mixed $command - * @return mixed */ public function dispatch($command) { @@ -670,10 +653,6 @@ public function dispatch($command) * Dispatch a command to its appropriate handler in the current process. * * Queueable jobs will be dispatched to the "sync" queue. - * - * @param mixed $command - * @param mixed $handler - * @return mixed */ public function dispatchSync($command, $handler = null) { @@ -686,10 +665,6 @@ public function dispatchSync($command, $handler = null) /** * Dispatch a command to its appropriate handler in the current process. - * - * @param mixed $command - * @param mixed $handler - * @return mixed */ public function dispatchNow($command, $handler = null) { @@ -702,9 +677,6 @@ public function dispatchNow($command, $handler = null) /** * Dispatch a command to its appropriate handler behind a queue. - * - * @param mixed $command - * @return mixed */ public function dispatchToQueue($command) { @@ -717,9 +689,6 @@ public function dispatchToQueue($command) /** * Dispatch a command to its appropriate handler. - * - * @param mixed $command - * @return mixed */ public function dispatchAfterResponse($command) { @@ -747,7 +716,6 @@ public function chain($jobs = null) /** * Attempt to find the batch with the given ID. * - * @param string $batchId * @return \Illuminate\Bus\Batch|null */ public function findBatch(string $batchId) @@ -780,7 +748,6 @@ public function dispatchFakeBatch($name = '') /** * Record the fake pending batch dispatch. * - * @param \Illuminate\Bus\PendingBatch $pendingBatch * @return \Illuminate\Bus\Batch */ public function recordPendingBatch(PendingBatch $pendingBatch) @@ -793,7 +760,6 @@ public function recordPendingBatch(PendingBatch $pendingBatch) /** * Determine if a command should be faked or actually dispatched. * - * @param mixed $command * @return bool */ protected function shouldFakeJob($command) @@ -817,7 +783,6 @@ protected function shouldFakeJob($command) /** * Determine if a command should be dispatched or not. * - * @param mixed $command * @return bool */ protected function shouldDispatchCommand($command) @@ -833,7 +798,6 @@ protected function shouldDispatchCommand($command) /** * Specify if commands should be serialized and restored when being batched. * - * @param bool $serializeAndRestore * @return $this */ public function serializeAndRestore(bool $serializeAndRestore = true) @@ -845,9 +809,6 @@ public function serializeAndRestore(bool $serializeAndRestore = true) /** * Serialize and unserialize the command to simulate the queueing process. - * - * @param mixed $command - * @return mixed */ protected function serializeAndRestoreCommand($command) { @@ -856,9 +817,6 @@ protected function serializeAndRestoreCommand($command) /** * Return the command representation that should be stored. - * - * @param mixed $command - * @return mixed */ protected function getCommandRepresentation($command) { @@ -868,7 +826,6 @@ protected function getCommandRepresentation($command) /** * Set the pipes commands should be piped through before dispatching. * - * @param array $pipes * @return $this */ public function pipeThrough(array $pipes) @@ -881,7 +838,6 @@ public function pipeThrough(array $pipes) /** * Determine if the given command has a handler. * - * @param mixed $command * @return bool */ public function hasCommandHandler($command) @@ -891,9 +847,6 @@ public function hasCommandHandler($command) /** * Retrieve the handler for a command. - * - * @param mixed $command - * @return mixed */ public function getCommandHandler($command) { @@ -903,7 +856,6 @@ public function getCommandHandler($command) /** * Map a command to a handler. * - * @param array $map * @return $this */ public function map(array $map) diff --git a/src/Illuminate/Support/Testing/Fakes/ChainedBatchTruthTest.php b/src/Illuminate/Support/Testing/Fakes/ChainedBatchTruthTest.php index 63a44e75e52a..1c810218e09f 100644 --- a/src/Illuminate/Support/Testing/Fakes/ChainedBatchTruthTest.php +++ b/src/Illuminate/Support/Testing/Fakes/ChainedBatchTruthTest.php @@ -15,8 +15,6 @@ class ChainedBatchTruthTest /** * Create a new truth test instance. - * - * @param \Closure $callback */ public function __construct(Closure $callback) { diff --git a/src/Illuminate/Support/Testing/Fakes/EventFake.php b/src/Illuminate/Support/Testing/Fakes/EventFake.php index ead0c86288d1..3de9d17e9add 100644 --- a/src/Illuminate/Support/Testing/Fakes/EventFake.php +++ b/src/Illuminate/Support/Testing/Fakes/EventFake.php @@ -49,7 +49,6 @@ class EventFake implements Dispatcher, Fake /** * Create a new event fake instance. * - * @param \Illuminate\Contracts\Events\Dispatcher $dispatcher * @param array|string $eventsToFake */ public function __construct(Dispatcher $dispatcher, $eventsToFake = []) @@ -151,7 +150,6 @@ public function assertDispatched($event, $callback = null) * Assert if an event was dispatched exactly once. * * @param string $event - * @param int $times * @return void */ public function assertDispatchedOnce($event) @@ -258,7 +256,6 @@ public function hasDispatched($event) * Register an event listener with the dispatcher. * * @param \Closure|string|array $events - * @param mixed $listener * @return void */ public function listen($events, $listener = null) @@ -315,7 +312,6 @@ public function flush($event) * Fire an event and call the listeners. * * @param string|object $event - * @param mixed $payload * @param bool $halt * @return array|null */ @@ -334,7 +330,6 @@ public function dispatch($event, $payload = [], $halt = false) * Determine if an event should be faked or actually dispatched. * * @param string $eventName - * @param mixed $payload * @return bool */ protected function shouldFakeEvent($eventName, $payload) @@ -378,7 +373,6 @@ protected function fakeEvent($event, $name, $arguments) * Determine whether an event should be dispatched or not. * * @param string $eventName - * @param mixed $payload * @return bool */ protected function shouldDispatchEvent($eventName, $payload) @@ -421,8 +415,6 @@ public function forgetPushed() * Dispatch an event and call the listeners. * * @param string|object $event - * @param mixed $payload - * @return mixed */ public function until($event, $payload = []) { @@ -444,7 +436,6 @@ public function dispatchedEvents() * * @param string $method * @param array $parameters - * @return mixed */ public function __call($method, $parameters) { diff --git a/src/Illuminate/Support/Testing/Fakes/ExceptionHandlerFake.php b/src/Illuminate/Support/Testing/Fakes/ExceptionHandlerFake.php index 4b94b5c59814..978e0f80ae19 100644 --- a/src/Illuminate/Support/Testing/Fakes/ExceptionHandlerFake.php +++ b/src/Illuminate/Support/Testing/Fakes/ExceptionHandlerFake.php @@ -37,7 +37,6 @@ class ExceptionHandlerFake implements ExceptionHandler, Fake /** * Create a new exception handler fake. * - * @param \Illuminate\Contracts\Debug\ExceptionHandler $handler * @param list> $exceptions */ public function __construct( @@ -90,7 +89,6 @@ public function assertReported(Closure|string $exception) /** * Assert the number of exceptions that have been reported. * - * @param int $count * @return void */ public function assertReportedCount(int $count) @@ -167,7 +165,6 @@ public function report($e) /** * Determine if the given exception is faked. * - * @param \Throwable $e * @return bool */ protected function isFakedException(Throwable $e) @@ -212,7 +209,6 @@ public function render($request, $e) * Render an exception to the console. * * @param \Symfony\Component\Console\Output\OutputInterface $output - * @param \Throwable $e * @return void */ public function renderForConsole($output, Throwable $e) @@ -261,7 +257,6 @@ public function reported() /** * Set the "original" handler that should be used by the fake. * - * @param \Illuminate\Contracts\Debug\ExceptionHandler $handler * @return $this */ public function setHandler(ExceptionHandler $handler) @@ -274,9 +269,7 @@ public function setHandler(ExceptionHandler $handler) /** * Handle dynamic method calls to the handler. * - * @param string $method * @param array $parameters - * @return mixed */ public function __call(string $method, array $parameters) { diff --git a/src/Illuminate/Support/Testing/Fakes/MailFake.php b/src/Illuminate/Support/Testing/Fakes/MailFake.php index ae9e58c2861d..8bfe41bb2302 100644 --- a/src/Illuminate/Support/Testing/Fakes/MailFake.php +++ b/src/Illuminate/Support/Testing/Fakes/MailFake.php @@ -50,8 +50,6 @@ class MailFake implements Factory, Fake, Mailer, MailQueue /** * Create a new mail fake. - * - * @param MailManager $manager */ public function __construct(MailManager $manager) { @@ -433,7 +431,6 @@ public function mailer($name = null) /** * Begin the process of mailing a mailable class instance. * - * @param mixed $users * @return \Illuminate\Mail\PendingMail */ public function to($users) @@ -444,7 +441,6 @@ public function to($users) /** * Begin the process of mailing a mailable class instance. * - * @param mixed $users * @return \Illuminate\Mail\PendingMail */ public function cc($users) @@ -455,7 +451,6 @@ public function cc($users) /** * Begin the process of mailing a mailable class instance. * - * @param mixed $users * @return \Illuminate\Mail\PendingMail */ public function bcc($users) @@ -479,7 +474,6 @@ public function raw($text, $callback) * Send a new message using a view. * * @param \Illuminate\Contracts\Mail\Mailable|string|array $view - * @param array $data * @param \Closure|string|null $callback * @return mixed|void */ @@ -492,7 +486,6 @@ public function send($view, array $data = [], $callback = null) * Send a new message synchronously using a view. * * @param \Illuminate\Contracts\Mail\Mailable|string|array $mailable - * @param array $data * @param \Closure|string|null $callback * @return void */ @@ -530,7 +523,6 @@ protected function sendMail($view, $shouldQueue = false) * * @param \Illuminate\Contracts\Mail\Mailable|string|array $view * @param string|null $queue - * @return mixed */ public function queue($view, $queue = null) { @@ -551,7 +543,6 @@ public function queue($view, $queue = null) * @param \DateTimeInterface|\DateInterval|int $delay * @param \Illuminate\Contracts\Mail\Mailable|string|array $view * @param string|null $queue - * @return mixed */ public function later($delay, $view, $queue = null) { @@ -591,7 +582,6 @@ public function forgetMailers() * * @param string $method * @param array $parameters - * @return mixed */ public function __call($method, $parameters) { diff --git a/src/Illuminate/Support/Testing/Fakes/NotificationFake.php b/src/Illuminate/Support/Testing/Fakes/NotificationFake.php index 9403e31b0e2e..abe282f2f560 100644 --- a/src/Illuminate/Support/Testing/Fakes/NotificationFake.php +++ b/src/Illuminate/Support/Testing/Fakes/NotificationFake.php @@ -57,7 +57,6 @@ public function assertSentOnDemand($notification, $callback = null) /** * Assert if a notification was sent based on a truth-test callback. * - * @param mixed $notifiable * @param string|\Closure $notification * @param callable|null $callback * @return void @@ -107,7 +106,6 @@ public function assertSentOnDemandTimes($notification, $times = 1) /** * Assert if a notification was sent a number of times. * - * @param mixed $notifiable * @param string $notification * @param int $times * @return void @@ -125,7 +123,6 @@ public function assertSentToTimes($notifiable, $notification, $times = 1) /** * Determine if a notification was sent based on a truth-test callback. * - * @param mixed $notifiable * @param string|\Closure $notification * @param callable|null $callback * @return void @@ -175,7 +172,6 @@ public function assertNothingSent() /** * Assert that no notifications were sent to the given notifiable. * - * @param mixed $notifiable * @return void * * @throws \Exception @@ -242,7 +238,6 @@ public function assertCount($expectedCount) /** * Get all of the notifications matching a truth-test callback. * - * @param mixed $notifiable * @param string $notification * @param callable|null $callback * @return \Illuminate\Support\Collection @@ -265,7 +260,6 @@ public function sent($notifiable, $notification, $callback = null) /** * Determine if there are more notifications left to inspect. * - * @param mixed $notifiable * @param string $notification * @return bool */ @@ -277,7 +271,6 @@ public function hasSent($notifiable, $notification) /** * Get all of the notifications for a notifiable entity by type. * - * @param mixed $notifiable * @param string $notification * @return array */ @@ -290,7 +283,6 @@ protected function notificationsFor($notifiable, $notification) * Send the given notification to the given notifiable entities. * * @param \Illuminate\Support\Collection|mixed $notifiables - * @param mixed $notification * @return void */ public function send($notifiables, $notification) @@ -302,8 +294,6 @@ public function send($notifiables, $notification) * Send the given notification immediately. * * @param \Illuminate\Support\Collection|mixed $notifiables - * @param mixed $notification - * @param array|null $channels * @return void */ public function sendNow($notifiables, $notification, ?array $channels = null) @@ -349,7 +339,6 @@ public function sendNow($notifiables, $notification, ?array $channels = null) * Get a channel instance by name. * * @param string|null $name - * @return mixed */ public function channel($name = null) { @@ -372,7 +361,6 @@ public function locale($locale) /** * Specify if notification should be serialized and restored when being "pushed" to the queue. * - * @param bool $serializeAndRestore * @return $this */ public function serializeAndRestore(bool $serializeAndRestore = true) @@ -384,9 +372,6 @@ public function serializeAndRestore(bool $serializeAndRestore = true) /** * Serialize and unserialize the notification to simulate the queueing process. - * - * @param mixed $notification - * @return mixed */ protected function serializeAndRestoreNotification($notification) { diff --git a/src/Illuminate/Support/Testing/Fakes/PendingBatchFake.php b/src/Illuminate/Support/Testing/Fakes/PendingBatchFake.php index 6c06cf06d7bc..eb0dfe833192 100644 --- a/src/Illuminate/Support/Testing/Fakes/PendingBatchFake.php +++ b/src/Illuminate/Support/Testing/Fakes/PendingBatchFake.php @@ -16,9 +16,6 @@ class PendingBatchFake extends PendingBatch /** * Create a new pending batch instance. - * - * @param \Illuminate\Support\Testing\Fakes\BusFake $bus - * @param \Illuminate\Support\Collection $jobs */ public function __construct(BusFake $bus, Collection $jobs) { diff --git a/src/Illuminate/Support/Testing/Fakes/PendingChainFake.php b/src/Illuminate/Support/Testing/Fakes/PendingChainFake.php index 42d98c172ad3..d4f55ace1141 100644 --- a/src/Illuminate/Support/Testing/Fakes/PendingChainFake.php +++ b/src/Illuminate/Support/Testing/Fakes/PendingChainFake.php @@ -18,8 +18,6 @@ class PendingChainFake extends PendingChain /** * Create a new pending chain instance. * - * @param \Illuminate\Support\Testing\Fakes\BusFake $bus - * @param mixed $job * @param array $chain */ public function __construct(BusFake $bus, $job, $chain) diff --git a/src/Illuminate/Support/Testing/Fakes/PendingMailFake.php b/src/Illuminate/Support/Testing/Fakes/PendingMailFake.php index a3d64e73e14f..0e044ed1ab76 100644 --- a/src/Illuminate/Support/Testing/Fakes/PendingMailFake.php +++ b/src/Illuminate/Support/Testing/Fakes/PendingMailFake.php @@ -20,7 +20,6 @@ public function __construct($mailer) /** * Send a new mailable message instance. * - * @param \Illuminate\Contracts\Mail\Mailable $mailable * @return void */ public function send(Mailable $mailable) @@ -31,7 +30,6 @@ public function send(Mailable $mailable) /** * Send a new mailable message instance synchronously. * - * @param \Illuminate\Contracts\Mail\Mailable $mailable * @return void */ public function sendNow(Mailable $mailable) @@ -41,9 +39,6 @@ public function sendNow(Mailable $mailable) /** * Push the given mailable onto the queue. - * - * @param \Illuminate\Contracts\Mail\Mailable $mailable - * @return mixed */ public function queue(Mailable $mailable) { diff --git a/src/Illuminate/Support/Testing/Fakes/QueueFake.php b/src/Illuminate/Support/Testing/Fakes/QueueFake.php index b379a9ac1be4..0655f6521d66 100644 --- a/src/Illuminate/Support/Testing/Fakes/QueueFake.php +++ b/src/Illuminate/Support/Testing/Fakes/QueueFake.php @@ -57,8 +57,6 @@ class QueueFake extends QueueManager implements Fake, Queue /** * Indicates if items should be serialized and restored when pushed to the queue. - * - * @var bool */ protected bool $serializeAndRestore = false; @@ -391,7 +389,6 @@ public function hasPushed($job) /** * Resolve a queue connection instance. * - * @param mixed $value * @return \Illuminate\Contracts\Queue\Queue */ public function connection($value = null) @@ -461,9 +458,7 @@ public function creationTimeOfOldestPendingJob($queue = null) * Push a new job onto the queue. * * @param string|object $job - * @param mixed $data * @param string|null $queue - * @return mixed */ public function push($job, $data = '', $queue = null) { @@ -527,8 +522,6 @@ protected function shouldDispatchJob($job) * * @param string $payload * @param string|null $queue - * @param array $options - * @return mixed */ public function pushRaw($payload, $queue = null, array $options = []) { @@ -544,9 +537,7 @@ public function pushRaw($payload, $queue = null, array $options = []) * * @param \DateTimeInterface|\DateInterval|int $delay * @param string|object $job - * @param mixed $data * @param string|null $queue - * @return mixed */ public function later($delay, $job, $data = '', $queue = null) { @@ -558,8 +549,6 @@ public function later($delay, $job, $data = '', $queue = null) * * @param string $queue * @param string|object $job - * @param mixed $data - * @return mixed */ public function pushOn($queue, $job, $data = '') { @@ -572,8 +561,6 @@ public function pushOn($queue, $job, $data = '') * @param string $queue * @param \DateTimeInterface|\DateInterval|int $delay * @param string|object $job - * @param mixed $data - * @return mixed */ public function laterOn($queue, $delay, $job, $data = '') { @@ -595,9 +582,7 @@ public function pop($queue = null) * Push an array of jobs onto the queue. * * @param array $jobs - * @param mixed $data * @param string|null $queue - * @return mixed */ public function bulk($jobs, $data = '', $queue = null) { @@ -629,7 +614,6 @@ public function rawPushes() /** * Specify if jobs should be serialized and restored when being "pushed" to the queue. * - * @param bool $serializeAndRestore * @return $this */ public function serializeAndRestore(bool $serializeAndRestore = true) @@ -641,9 +625,6 @@ public function serializeAndRestore(bool $serializeAndRestore = true) /** * Serialize and unserialize the job to simulate the queueing process. - * - * @param mixed $job - * @return mixed */ protected function serializeAndRestoreJob($job) { @@ -676,7 +657,6 @@ public function setConnectionName($name) * * @param string $method * @param array $parameters - * @return mixed * * @throws \BadMethodCallException */ diff --git a/src/Illuminate/Support/Timebox.php b/src/Illuminate/Support/Timebox.php index 586a5754c05f..4d8b662f46cb 100644 --- a/src/Illuminate/Support/Timebox.php +++ b/src/Illuminate/Support/Timebox.php @@ -19,7 +19,6 @@ class Timebox * @template TCallReturnType * * @param (callable($this): TCallReturnType) $callback - * @param int $microseconds * @return TCallReturnType * * @throws \Throwable @@ -76,7 +75,6 @@ public function dontReturnEarly() /** * Sleep for the specified number of microseconds. * - * @param int $microseconds * @return void */ protected function usleep(int $microseconds) diff --git a/src/Illuminate/Support/Traits/CapsuleManagerTrait.php b/src/Illuminate/Support/Traits/CapsuleManagerTrait.php index 0532755228b0..70de44b13a6c 100644 --- a/src/Illuminate/Support/Traits/CapsuleManagerTrait.php +++ b/src/Illuminate/Support/Traits/CapsuleManagerTrait.php @@ -24,7 +24,6 @@ trait CapsuleManagerTrait /** * Setup the IoC container instance. * - * @param \Illuminate\Contracts\Container\Container $container * @return void */ protected function setupContainer(Container $container) @@ -59,7 +58,6 @@ public function getContainer() /** * Set the IoC container instance. * - * @param \Illuminate\Contracts\Container\Container $container * @return void */ public function setContainer(Container $container) diff --git a/src/Illuminate/Support/Traits/Dumpable.php b/src/Illuminate/Support/Traits/Dumpable.php index 44ad14dfc393..16c355bcaadc 100644 --- a/src/Illuminate/Support/Traits/Dumpable.php +++ b/src/Illuminate/Support/Traits/Dumpable.php @@ -7,7 +7,6 @@ trait Dumpable /** * Dump the given arguments and terminate execution. * - * @param mixed ...$args * @return never */ public function dd(...$args) @@ -18,7 +17,6 @@ public function dd(...$args) /** * Dump the given arguments. * - * @param mixed ...$args * @return $this */ public function dump(...$args) diff --git a/src/Illuminate/Support/Traits/ForwardsCalls.php b/src/Illuminate/Support/Traits/ForwardsCalls.php index da7c54d3f63f..dddb06184eab 100644 --- a/src/Illuminate/Support/Traits/ForwardsCalls.php +++ b/src/Illuminate/Support/Traits/ForwardsCalls.php @@ -10,10 +10,8 @@ trait ForwardsCalls /** * Forward a method call to the given object. * - * @param mixed $object * @param string $method * @param array $parameters - * @return mixed * * @throws \BadMethodCallException */ @@ -40,10 +38,8 @@ protected function forwardCallTo($object, $method, $parameters) /** * Forward a method call to the given object, returning $this if the forwarded call returned itself. * - * @param mixed $object * @param string $method * @param array $parameters - * @return mixed * * @throws \BadMethodCallException */ diff --git a/src/Illuminate/Support/Traits/InteractsWithData.php b/src/Illuminate/Support/Traits/InteractsWithData.php index 43174746ab8b..f4c12c4af2ce 100644 --- a/src/Illuminate/Support/Traits/InteractsWithData.php +++ b/src/Illuminate/Support/Traits/InteractsWithData.php @@ -15,7 +15,6 @@ trait InteractsWithData /** * Retrieve all data from the instance. * - * @param mixed $keys * @return array */ abstract public function all($keys = null); @@ -24,8 +23,6 @@ abstract public function all($keys = null); * Retrieve data from the instance. * * @param string|null $key - * @param mixed $default - * @return mixed */ abstract protected function data($key = null, $default = null); @@ -80,8 +77,6 @@ public function hasAny($keys) * Apply the callback if the instance contains the given key. * * @param string $key - * @param callable $callback - * @param callable|null $default * @return $this|mixed */ public function whenHas($key, callable $callback, ?callable $default = null) @@ -158,8 +153,6 @@ public function anyFilled($keys) * Apply the callback if the instance contains a non-empty value for the given key. * * @param string $key - * @param callable $callback - * @param callable|null $default * @return $this|mixed */ public function whenFilled($key, callable $callback, ?callable $default = null) @@ -192,8 +185,6 @@ public function missing($key) * Apply the callback if the instance is missing the given key. * * @param string $key - * @param callable $callback - * @param callable|null $default * @return $this|mixed */ public function whenMissing($key, callable $callback, ?callable $default = null) @@ -226,7 +217,6 @@ protected function isEmptyString($key) * Retrieve data from the instance as a Stringable instance. * * @param string $key - * @param mixed $default * @return \Illuminate\Support\Stringable */ public function str($key, $default = null) @@ -238,7 +228,6 @@ public function str($key, $default = null) * Retrieve data from the instance as a Stringable instance. * * @param string $key - * @param mixed $default * @return \Illuminate\Support\Stringable */ public function string($key, $default = null) @@ -385,7 +374,6 @@ public function collect($key = null) /** * Get a subset containing the provided keys with values from the instance data. * - * @param mixed $keys * @return array */ public function only($keys) @@ -410,7 +398,6 @@ public function only($keys) /** * Get all of the data except for a specified array of items. * - * @param mixed $keys * @return array */ public function except($keys) diff --git a/src/Illuminate/Support/Traits/Localizable.php b/src/Illuminate/Support/Traits/Localizable.php index 1e9fa58c90bf..376a3525b418 100644 --- a/src/Illuminate/Support/Traits/Localizable.php +++ b/src/Illuminate/Support/Traits/Localizable.php @@ -11,7 +11,6 @@ trait Localizable * * @param string $locale * @param \Closure $callback - * @return mixed */ public function withLocale($locale, $callback) { diff --git a/src/Illuminate/Support/Traits/ReflectsClosures.php b/src/Illuminate/Support/Traits/ReflectsClosures.php index 9e12285a30a7..932f5fb0c775 100644 --- a/src/Illuminate/Support/Traits/ReflectsClosures.php +++ b/src/Illuminate/Support/Traits/ReflectsClosures.php @@ -13,7 +13,6 @@ trait ReflectsClosures /** * Get the class name of the first parameter of the given Closure. * - * @param \Closure $closure * @return string * * @throws \ReflectionException @@ -37,7 +36,6 @@ protected function firstClosureParameterType(Closure $closure) /** * Get the class names of the first parameter of the given Closure, including union types. * - * @param \Closure $closure * @return array * * @throws \ReflectionException @@ -73,7 +71,6 @@ protected function firstClosureParameterTypes(Closure $closure) /** * Get the class names / types of the parameters of the given Closure. * - * @param \Closure $closure * @return array * * @throws \ReflectionException diff --git a/src/Illuminate/Support/Uri.php b/src/Illuminate/Support/Uri.php index ac91120a5c6c..b528910da34c 100644 --- a/src/Illuminate/Support/Uri.php +++ b/src/Illuminate/Support/Uri.php @@ -59,9 +59,7 @@ public static function to(string $path): static * Get a URI instance for a named route. * * @param \BackedEnum|string $name - * @param mixed $parameters * @param bool $absolute - * @return static * * @throws \Symfony\Component\Routing\Exception\RouteNotFoundException|\InvalidArgumentException */ @@ -74,10 +72,8 @@ public static function route($name, $parameters = [], $absolute = true): static * Create a signed route URI instance for a named route. * * @param \BackedEnum|string $name - * @param mixed $parameters * @param \DateTimeInterface|\DateInterval|int|null $expiration * @param bool $absolute - * @return static * * @throws \InvalidArgumentException */ @@ -93,7 +89,6 @@ public static function signedRoute($name, $parameters = [], $expiration = null, * @param \DateTimeInterface|\DateInterval|int $expiration * @param array $parameters * @param bool $absolute - * @return static */ public static function temporarySignedRoute($name, $expiration, $parameters = [], $absolute = true): static { @@ -104,9 +99,7 @@ public static function temporarySignedRoute($name, $expiration, $parameters = [] * Get a URI instance for a controller action. * * @param string|array $action - * @param mixed $parameters * @param bool $absolute - * @return static * * @throws \InvalidArgumentException */ @@ -394,7 +387,6 @@ public function isEmpty(): bool /** * Dump the string representation of the URI. * - * @param mixed ...$args * @return $this */ public function dump(...$args) @@ -422,8 +414,6 @@ public function getUri(): UriInterface /** * Convert the object into a value that is JSON serializable. - * - * @return string */ public function jsonSerialize(): string { diff --git a/src/Illuminate/Support/UriQueryString.php b/src/Illuminate/Support/UriQueryString.php index ccfb66fe8cf8..581f20843d27 100644 --- a/src/Illuminate/Support/UriQueryString.php +++ b/src/Illuminate/Support/UriQueryString.php @@ -22,7 +22,6 @@ public function __construct(protected Uri $uri) /** * Retrieve all data from the instance. * - * @param mixed $keys * @return array */ public function all($keys = null) @@ -46,8 +45,6 @@ public function all($keys = null) * Retrieve data from the instance. * * @param string|null $key - * @param mixed $default - * @return mixed */ protected function data($key = null, $default = null) { diff --git a/src/Illuminate/Support/ValidatedInput.php b/src/Illuminate/Support/ValidatedInput.php index f6bde4a820f4..9084b357862b 100644 --- a/src/Illuminate/Support/ValidatedInput.php +++ b/src/Illuminate/Support/ValidatedInput.php @@ -21,8 +21,6 @@ class ValidatedInput implements ValidatedData /** * Create a new validated input container. - * - * @param array $input */ public function __construct(array $input) { @@ -32,7 +30,6 @@ public function __construct(array $input) /** * Merge the validated input with the given array of additional data. * - * @param array $items * @return static */ public function merge(array $items) @@ -43,7 +40,6 @@ public function merge(array $items) /** * Get the raw, underlying input array. * - * @param mixed $keys * @return array */ public function all($keys = null) @@ -65,8 +61,6 @@ public function all($keys = null) * Retrieve data from the instance. * * @param string|null $key - * @param mixed $default - * @return mixed */ protected function data($key = null, $default = null) { @@ -87,8 +81,6 @@ public function keys() * Retrieve an input item from the validated inputs. * * @param string|null $key - * @param mixed $default - * @return mixed */ public function input($key = null, $default = null) { @@ -100,7 +92,6 @@ public function input($key = null, $default = null) /** * Dump the validated inputs items and end the script. * - * @param mixed ...$keys * @return never */ public function dd(...$keys) @@ -113,7 +104,6 @@ public function dd(...$keys) /** * Dump the items. * - * @param mixed $keys * @return $this */ public function dump($keys = []) @@ -139,7 +129,6 @@ public function toArray() * Dynamically access input data. * * @param string $name - * @return mixed */ public function __get($name) { @@ -150,8 +139,6 @@ public function __get($name) * Dynamically set input data. * * @param string $name - * @param mixed $value - * @return mixed */ public function __set($name, $value) { @@ -181,9 +168,6 @@ public function __unset($name) /** * Determine if an item exists at an offset. - * - * @param mixed $key - * @return bool */ public function offsetExists($key): bool { @@ -192,9 +176,6 @@ public function offsetExists($key): bool /** * Get an item at a given offset. - * - * @param mixed $key - * @return mixed */ public function offsetGet($key): mixed { @@ -203,10 +184,6 @@ public function offsetGet($key): mixed /** * Set the item at a given offset. - * - * @param mixed $key - * @param mixed $value - * @return void */ public function offsetSet($key, $value): void { @@ -221,7 +198,6 @@ public function offsetSet($key, $value): void * Unset the item at a given offset. * * @param string $key - * @return void */ public function offsetUnset($key): void { diff --git a/src/Illuminate/Support/ViewErrorBag.php b/src/Illuminate/Support/ViewErrorBag.php index 3d95bded960b..54751265d341 100644 --- a/src/Illuminate/Support/ViewErrorBag.php +++ b/src/Illuminate/Support/ViewErrorBag.php @@ -54,7 +54,6 @@ public function getBags() * Add a new MessageBag instance to the bags. * * @param string $key - * @param \Illuminate\Contracts\Support\MessageBag $bag * @return $this */ public function put($key, MessageBagContract $bag) @@ -76,8 +75,6 @@ public function any() /** * Get the number of messages in the default bag. - * - * @return int */ public function count(): int { @@ -89,7 +86,6 @@ public function count(): int * * @param string $method * @param array $parameters - * @return mixed */ public function __call($method, $parameters) { diff --git a/src/Illuminate/Support/functions.php b/src/Illuminate/Support/functions.php index bb596c6539b9..32d4f1891e9c 100644 --- a/src/Illuminate/Support/functions.php +++ b/src/Illuminate/Support/functions.php @@ -10,9 +10,6 @@ /** * Defer execution of the given callback. * - * @param callable|null $callback - * @param string|null $name - * @param bool $always * @return ($callback is null ? \Illuminate\Support\Defer\DeferredCallbackCollection : \Illuminate\Support\Defer\DeferredCallback) */ function defer(?callable $callback = null, ?string $name = null, bool $always = false): DeferredCallback|DeferredCallbackCollection diff --git a/src/Illuminate/Support/helpers.php b/src/Illuminate/Support/helpers.php index 3a66fad9a803..eaa5ed2bd30d 100644 --- a/src/Illuminate/Support/helpers.php +++ b/src/Illuminate/Support/helpers.php @@ -17,8 +17,6 @@ if (! function_exists('append_config')) { /** * Assign high numeric IDs to a config item to force appending. - * - * @param array $array */ function append_config(array $array): array { @@ -43,8 +41,6 @@ function append_config(array $array): array * @phpstan-assert-if-false !=null|'' $value * * @phpstan-assert-if-true !=numeric|bool $value - * - * @param mixed $value */ function blank($value): bool { @@ -143,8 +139,6 @@ function e($value, $doubleEncode = true): string * Gets the value of an environment variable. * * @param string $key - * @param mixed $default - * @return mixed */ function env($key, $default = null) { @@ -159,8 +153,6 @@ function env($key, $default = null) * @phpstan-assert-if-true !=null|'' $value * * @phpstan-assert-if-false !=numeric|bool $value - * - * @param mixed $value */ function filled($value): bool { @@ -183,8 +175,6 @@ function fluent($value): Fluent if (! function_exists('literal')) { /** * Return a new literal or anonymous object using named arguments. - * - * @return mixed */ function literal(...$arguments) { @@ -204,7 +194,6 @@ function literal(...$arguments) * * @param TValue $object * @param string|null $key - * @param mixed $default * @return ($key is empty ? TValue : mixed) */ function object_get($object, $key, $default = null) @@ -282,7 +271,6 @@ function optional($value = null, ?callable $callback = null) * Replace a given pattern with each value in the array in sequentially. * * @param string $pattern - * @param array $replacements * @param string $subject */ function preg_replace_array($pattern, array $replacements, $subject): string @@ -402,7 +390,6 @@ function tap($value, $callback = null) * * @param TValue $condition * @param TException|class-string|string $exception - * @param mixed ...$parameters * @return ($condition is true ? never : ($condition is non-empty-mixed ? never : TValue)) * * @throws TException @@ -430,7 +417,6 @@ function throw_if($condition, $exception = 'RuntimeException', ...$parameters) * * @param TValue $condition * @param TException|class-string|string $exception - * @param mixed ...$parameters * @return ($condition is false ? never : ($condition is non-empty-mixed ? TValue : never)) * * @throws TException diff --git a/src/Illuminate/Testing/Assert.php b/src/Illuminate/Testing/Assert.php index cc2e570ae2f4..a4f0226612f1 100644 --- a/src/Illuminate/Testing/Assert.php +++ b/src/Illuminate/Testing/Assert.php @@ -17,9 +17,6 @@ abstract class Assert extends PHPUnit * * @param \ArrayAccess|array $subset * @param \ArrayAccess|array $array - * @param bool $checkForIdentity - * @param string $msg - * @return void */ public static function assertArraySubset($subset, $array, bool $checkForIdentity = false, string $msg = ''): void { diff --git a/src/Illuminate/Testing/AssertableJsonString.php b/src/Illuminate/Testing/AssertableJsonString.php index d089ab071dc3..8d0684c5bdd1 100644 --- a/src/Illuminate/Testing/AssertableJsonString.php +++ b/src/Illuminate/Testing/AssertableJsonString.php @@ -54,7 +54,6 @@ public function __construct($jsonable) * Validate and return the decoded response JSON. * * @param string|null $key - * @return mixed */ public function json($key = null) { @@ -64,7 +63,6 @@ public function json($key = null) /** * Assert that the response JSON has the expected count of items at the given key. * - * @param int $count * @param string|null $key * @return $this */ @@ -90,7 +88,6 @@ public function assertCount(int $count, $key = null) /** * Assert that the response has the exact given JSON. * - * @param array $data * @return $this */ public function assertExact(array $data) @@ -110,7 +107,6 @@ public function assertExact(array $data) /** * Assert that the response has the similar JSON as given. * - * @param array $data * @return $this */ public function assertSimilar(array $data) @@ -128,7 +124,6 @@ public function assertSimilar(array $data) /** * Assert that the response contains the given JSON fragment. * - * @param array $data * @return $this */ public function assertFragment(array $data) @@ -156,7 +151,6 @@ public function assertFragment(array $data) /** * Assert that the response does not contain the given JSON fragment. * - * @param array $data * @param bool $exact * @return $this */ @@ -189,7 +183,6 @@ public function assertMissing(array $data, $exact = false) /** * Assert that the response does not contain the exact JSON fragment. * - * @param array $data * @return $this */ public function assertMissingExact(array $data) @@ -232,7 +225,6 @@ public function assertMissingPath($path) * Assert that the expected value and type exists at the given path in the response. * * @param string $path - * @param mixed $expect * @return $this */ public function assertPath($path, $expect) @@ -263,9 +255,7 @@ public function assertPathCanonicalizing($path, $expect) /** * Assert that the response has a given JSON structure. * - * @param array|null $structure * @param array|null $responseData - * @param bool $exact * @return $this */ public function assertStructure(?array $structure = null, $responseData = null, bool $exact = false) @@ -310,7 +300,6 @@ public function assertStructure(?array $structure = null, $responseData = null, /** * Assert that the response is a superset of the given JSON. * - * @param array $data * @param bool $strict * @return $this */ @@ -326,7 +315,6 @@ public function assertSubset(array $data, $strict = false) /** * Reorder associative array keys to make it easy to compare arrays. * - * @param array $data * @return array */ protected function reorderAssocKeys(array $data) @@ -346,7 +334,6 @@ protected function reorderAssocKeys(array $data) /** * Get the assertion message for assertJson. * - * @param array $data * @return string */ protected function assertJsonMessage(array $data) @@ -381,8 +368,6 @@ protected function jsonSearchStrings($key, $value) /** * Get the total number of items in the underlying JSON array. - * - * @return int */ public function count(): int { @@ -391,9 +376,6 @@ public function count(): int /** * Determine whether an offset exists. - * - * @param mixed $offset - * @return bool */ public function offsetExists($offset): bool { @@ -404,7 +386,6 @@ public function offsetExists($offset): bool * Get the value at the given offset. * * @param string $offset - * @return mixed */ public function offsetGet($offset): mixed { @@ -415,8 +396,6 @@ public function offsetGet($offset): mixed * Set the value at the given offset. * * @param string $offset - * @param mixed $value - * @return void */ public function offsetSet($offset, $value): void { @@ -427,7 +406,6 @@ public function offsetSet($offset, $value): void * Unset the value at the given offset. * * @param string $offset - * @return void */ public function offsetUnset($offset): void { diff --git a/src/Illuminate/Testing/Concerns/RunsInParallel.php b/src/Illuminate/Testing/Concerns/RunsInParallel.php index 468bba8e0c48..cec4b4899700 100644 --- a/src/Illuminate/Testing/Concerns/RunsInParallel.php +++ b/src/Illuminate/Testing/Concerns/RunsInParallel.php @@ -53,7 +53,6 @@ trait RunsInParallel * Creates a new test runner instance. * * @param \ParaTest\Runners\PHPUnit\Options|\ParaTest\Options $options - * @param \Symfony\Component\Console\Output\OutputInterface $output */ public function __construct($options, OutputInterface $output) { @@ -98,8 +97,6 @@ public static function resolveRunnerUsing($resolver) /** * Runs the test suite. - * - * @return int */ public function execute(): int { @@ -126,8 +123,6 @@ public function execute(): int /** * Returns the highest exit code encountered throughout the course of test execution. - * - * @return int */ public function getExitCode(): int { diff --git a/src/Illuminate/Testing/Constraints/ArraySubset.php b/src/Illuminate/Testing/Constraints/ArraySubset.php index ccc20beb7f56..4fec20a6fb75 100644 --- a/src/Illuminate/Testing/Constraints/ArraySubset.php +++ b/src/Illuminate/Testing/Constraints/ArraySubset.php @@ -22,9 +22,6 @@ class ArraySubset extends Constraint /** * Create a new array subset constraint instance. - * - * @param iterable $subset - * @param bool $strict */ public function __construct(iterable $subset, bool $strict = false) { @@ -42,10 +39,6 @@ public function __construct(iterable $subset, bool $strict = false) * a boolean value instead: true in case of success, false in case of a * failure. * - * @param mixed $other - * @param string $description - * @param bool $returnResult - * @return bool|null * * @throws \PHPUnit\Framework\ExpectationFailedException * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException @@ -86,7 +79,6 @@ public function evaluate($other, string $description = '', bool $returnResult = /** * Returns a string representation of the constraint. * - * @return string * * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException */ @@ -101,8 +93,6 @@ public function toString(): string * The beginning of failure messages is "Failed asserting that" in most * cases. This method should return the second part of that sentence. * - * @param mixed $other - * @return string * * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException */ @@ -116,9 +106,6 @@ protected function failureDescription($other): string * * The beginning of failure messages is "Failed asserting that" in most * cases. This method should return the second part of that sentence. - * - * @param iterable $other - * @return array */ protected function toArray(iterable $other): array { diff --git a/src/Illuminate/Testing/Constraints/CountInDatabase.php b/src/Illuminate/Testing/Constraints/CountInDatabase.php index 3ba260790ffb..b5d57a6ff221 100644 --- a/src/Illuminate/Testing/Constraints/CountInDatabase.php +++ b/src/Illuminate/Testing/Constraints/CountInDatabase.php @@ -31,9 +31,6 @@ class CountInDatabase extends Constraint /** * Create a new constraint instance. - * - * @param \Illuminate\Database\Connection $database - * @param int $expectedCount */ public function __construct(Connection $database, int $expectedCount) { @@ -46,7 +43,6 @@ public function __construct(Connection $database, int $expectedCount) * Check if the expected and actual count are equal. * * @param string $table - * @return bool */ public function matches($table): bool { @@ -59,7 +55,6 @@ public function matches($table): bool * Get the description of the failure. * * @param string $table - * @return string */ public function failureDescription($table): string { @@ -73,7 +68,6 @@ public function failureDescription($table): string * Get a string representation of the object. * * @param int $options - * @return string */ public function toString($options = 0): string { diff --git a/src/Illuminate/Testing/Constraints/HasInDatabase.php b/src/Illuminate/Testing/Constraints/HasInDatabase.php index 090772aef591..fb539f7a4616 100644 --- a/src/Illuminate/Testing/Constraints/HasInDatabase.php +++ b/src/Illuminate/Testing/Constraints/HasInDatabase.php @@ -32,7 +32,6 @@ class HasInDatabase extends Constraint /** * Create a new constraint instance. * - * @param \Illuminate\Database\Connection $database * @param array $data * @return void */ @@ -47,7 +46,6 @@ public function __construct(Connection $database, array $data) * Check if the data is found in the given table. * * @param string $table - * @return bool */ public function matches($table): bool { @@ -60,7 +58,6 @@ public function matches($table): bool * Get the description of the failure. * * @param string $table - * @return string */ public function failureDescription($table): string { @@ -110,7 +107,6 @@ protected function getAdditionalInfo($table) * Get a string representation of the object. * * @param int $options - * @return string */ public function toString($options = 0): string { diff --git a/src/Illuminate/Testing/Constraints/NotSoftDeletedInDatabase.php b/src/Illuminate/Testing/Constraints/NotSoftDeletedInDatabase.php index 3eebc12f1a85..d50d9dfa46da 100644 --- a/src/Illuminate/Testing/Constraints/NotSoftDeletedInDatabase.php +++ b/src/Illuminate/Testing/Constraints/NotSoftDeletedInDatabase.php @@ -37,10 +37,6 @@ class NotSoftDeletedInDatabase extends Constraint /** * Create a new constraint instance. - * - * @param \Illuminate\Database\Connection $database - * @param array $data - * @param string $deletedAtColumn */ public function __construct(Connection $database, array $data, string $deletedAtColumn) { @@ -53,7 +49,6 @@ public function __construct(Connection $database, array $data, string $deletedAt * Check if the data is found in the given table. * * @param string $table - * @return bool */ public function matches($table): bool { @@ -67,7 +62,6 @@ public function matches($table): bool * Get the description of the failure. * * @param string $table - * @return string */ public function failureDescription($table): string { @@ -104,8 +98,6 @@ protected function getAdditionalInfo($table) /** * Get a string representation of the object. - * - * @return string */ public function toString(): string { diff --git a/src/Illuminate/Testing/Constraints/SeeInOrder.php b/src/Illuminate/Testing/Constraints/SeeInOrder.php index 08d30ab82fe6..6eddddd5c91d 100644 --- a/src/Illuminate/Testing/Constraints/SeeInOrder.php +++ b/src/Illuminate/Testing/Constraints/SeeInOrder.php @@ -35,7 +35,6 @@ public function __construct($content) * Determine if the rule passes validation. * * @param array $values - * @return bool */ public function matches($values): bool { @@ -68,7 +67,6 @@ public function matches($values): bool * Get the description of the failure. * * @param array $values - * @return string */ public function failureDescription($values): string { @@ -81,8 +79,6 @@ public function failureDescription($values): string /** * Get a string representation of the object. - * - * @return string */ public function toString(): string { diff --git a/src/Illuminate/Testing/Constraints/SoftDeletedInDatabase.php b/src/Illuminate/Testing/Constraints/SoftDeletedInDatabase.php index 0e78f34bc319..b7ae5bc84b81 100644 --- a/src/Illuminate/Testing/Constraints/SoftDeletedInDatabase.php +++ b/src/Illuminate/Testing/Constraints/SoftDeletedInDatabase.php @@ -37,10 +37,6 @@ class SoftDeletedInDatabase extends Constraint /** * Create a new constraint instance. - * - * @param \Illuminate\Database\Connection $database - * @param array $data - * @param string $deletedAtColumn */ public function __construct(Connection $database, array $data, string $deletedAtColumn) { @@ -55,7 +51,6 @@ public function __construct(Connection $database, array $data, string $deletedAt * Check if the data is found in the given table. * * @param string $table - * @return bool */ public function matches($table): bool { @@ -69,7 +64,6 @@ public function matches($table): bool * Get the description of the failure. * * @param string $table - * @return string */ public function failureDescription($table): string { @@ -106,8 +100,6 @@ protected function getAdditionalInfo($table) /** * Get a string representation of the object. - * - * @return string */ public function toString(): string { diff --git a/src/Illuminate/Testing/Exceptions/InvalidArgumentException.php b/src/Illuminate/Testing/Exceptions/InvalidArgumentException.php index 3722c41b9eb3..a4930ba77273 100644 --- a/src/Illuminate/Testing/Exceptions/InvalidArgumentException.php +++ b/src/Illuminate/Testing/Exceptions/InvalidArgumentException.php @@ -8,10 +8,6 @@ class InvalidArgumentException extends Exception { /** * Creates a new exception for an invalid argument. - * - * @param int $argument - * @param string $type - * @return static */ public static function create(int $argument, string $type): static { diff --git a/src/Illuminate/Testing/Fluent/AssertableJson.php b/src/Illuminate/Testing/Fluent/AssertableJson.php index f4e651c91d93..4a769cef474a 100644 --- a/src/Illuminate/Testing/Fluent/AssertableJson.php +++ b/src/Illuminate/Testing/Fluent/AssertableJson.php @@ -37,9 +37,6 @@ class AssertableJson implements Arrayable /** * Create a new fluent, assertable JSON data instance. - * - * @param array $props - * @param string|null $path */ protected function __construct(array $props, ?string $path = null) { @@ -49,9 +46,6 @@ protected function __construct(array $props, ?string $path = null) /** * Compose the absolute "dot" path to the given key. - * - * @param string $key - * @return string */ protected function dotPath(string $key = ''): string { @@ -64,9 +58,6 @@ protected function dotPath(string $key = ''): string /** * Retrieve a prop within the current scope using "dot" notation. - * - * @param string|null $key - * @return mixed */ protected function prop(?string $key = null) { @@ -76,8 +67,6 @@ protected function prop(?string $key = null) /** * Instantiate a new "scope" at the path of the given key. * - * @param string $key - * @param \Closure $callback * @return $this */ protected function scope(string $key, Closure $callback): static @@ -97,7 +86,6 @@ protected function scope(string $key, Closure $callback): static /** * Instantiate a new "scope" on the first child element. * - * @param \Closure $callback * @return $this */ public function first(Closure $callback): static @@ -121,7 +109,6 @@ public function first(Closure $callback): static /** * Instantiate a new "scope" on each child element. * - * @param \Closure $callback * @return $this */ public function each(Closure $callback): static @@ -146,9 +133,6 @@ public function each(Closure $callback): static /** * Create a new instance from an array. - * - * @param array $data - * @return static */ public static function fromArray(array $data): static { @@ -157,9 +141,6 @@ public static function fromArray(array $data): static /** * Create a new instance from an AssertableJsonString. - * - * @param \Illuminate\Testing\AssertableJsonString $json - * @return static */ public static function fromAssertableJsonString(AssertableJsonString $json): static { diff --git a/src/Illuminate/Testing/Fluent/Concerns/Debugging.php b/src/Illuminate/Testing/Fluent/Concerns/Debugging.php index aa9264e4b2dd..fba682239e31 100644 --- a/src/Illuminate/Testing/Fluent/Concerns/Debugging.php +++ b/src/Illuminate/Testing/Fluent/Concerns/Debugging.php @@ -11,7 +11,6 @@ trait Debugging /** * Dumps the given props. * - * @param string|null $prop * @return $this */ public function dump(?string $prop = null): static @@ -23,9 +22,6 @@ public function dump(?string $prop = null): static /** * Retrieve a prop within the current scope using "dot" notation. - * - * @param string|null $key - * @return mixed */ abstract protected function prop(?string $key = null); } diff --git a/src/Illuminate/Testing/Fluent/Concerns/Has.php b/src/Illuminate/Testing/Fluent/Concerns/Has.php index 0d50a4f3ba78..d006d17297cb 100644 --- a/src/Illuminate/Testing/Fluent/Concerns/Has.php +++ b/src/Illuminate/Testing/Fluent/Concerns/Has.php @@ -12,7 +12,6 @@ trait Has * Assert that the prop is of the expected size. * * @param string|int $key - * @param int|null $length * @return $this */ public function count($key, ?int $length = null): static @@ -43,8 +42,6 @@ public function count($key, ?int $length = null): static /** * Assert that the prop size is between a given minimum and maximum. * - * @param int|string $min - * @param int|string $max * @return $this */ public function countBetween(int|string $min, int|string $max): static @@ -77,7 +74,6 @@ public function countBetween(int|string $min, int|string $max): static * * @param string|int $key * @param int|\Closure|null $length - * @param \Closure|null $callback * @return $this */ public function has($key, $length = null, ?Closure $callback = null): static @@ -182,7 +178,6 @@ public function missingAll($key): static /** * Assert that the given prop does not exist. * - * @param string $key * @return $this */ public function missing(string $key): static @@ -197,33 +192,22 @@ public function missing(string $key): static /** * Compose the absolute "dot" path to the given key. - * - * @param string $key - * @return string */ abstract protected function dotPath(string $key = ''): string; /** * Marks the property as interacted. - * - * @param string $key - * @return void */ abstract protected function interactsWith(string $key): void; /** * Retrieve a prop within the current scope using "dot" notation. - * - * @param string|null $key - * @return mixed */ abstract protected function prop(?string $key = null); /** * Instantiate a new "scope" at the path of the given key. * - * @param string $key - * @param \Closure $callback * @return $this */ abstract protected function scope(string $key, Closure $callback); @@ -238,7 +222,6 @@ abstract public function etc(); /** * Instantiate a new "scope" on the first element. * - * @param \Closure $callback * @return $this */ abstract public function first(Closure $callback); diff --git a/src/Illuminate/Testing/Fluent/Concerns/Interaction.php b/src/Illuminate/Testing/Fluent/Concerns/Interaction.php index 4de83674dbf6..ff636cf5cb3d 100644 --- a/src/Illuminate/Testing/Fluent/Concerns/Interaction.php +++ b/src/Illuminate/Testing/Fluent/Concerns/Interaction.php @@ -16,9 +16,6 @@ trait Interaction /** * Marks the property as interacted. - * - * @param string $key - * @return void */ protected function interactsWith(string $key): void { @@ -31,8 +28,6 @@ protected function interactsWith(string $key): void /** * Asserts that all properties have been interacted with. - * - * @return void */ public function interacted(): void { @@ -59,9 +54,6 @@ public function etc(): static /** * Retrieve a prop within the current scope using "dot" notation. - * - * @param string|null $key - * @return mixed */ abstract protected function prop(?string $key = null); } diff --git a/src/Illuminate/Testing/Fluent/Concerns/Matching.php b/src/Illuminate/Testing/Fluent/Concerns/Matching.php index 48fded3570ab..232a16320759 100644 --- a/src/Illuminate/Testing/Fluent/Concerns/Matching.php +++ b/src/Illuminate/Testing/Fluent/Concerns/Matching.php @@ -14,7 +14,6 @@ trait Matching /** * Asserts that the property matches the expected value. * - * @param string $key * @param mixed|\Closure $expected * @return $this */ @@ -52,7 +51,6 @@ public function where(string $key, $expected): static /** * Asserts that the property does not match the expected value. * - * @param string $key * @param mixed|\Closure $expected * @return $this */ @@ -95,7 +93,6 @@ public function whereNot(string $key, $expected): static /** * Asserts that the property is null. * - * @param string $key * @return $this */ public function whereNull(string $key): static @@ -118,7 +115,6 @@ public function whereNull(string $key): static /** * Asserts that the property is not null. * - * @param string $key * @return $this */ public function whereNotNull(string $key): static @@ -141,7 +137,6 @@ public function whereNotNull(string $key): static /** * Asserts that all properties match their expected values. * - * @param array $bindings * @return $this */ public function whereAll(array $bindings): static @@ -156,7 +151,6 @@ public function whereAll(array $bindings): static /** * Asserts that the property is of the expected type. * - * @param string $key * @param string|array $expected * @return $this */ @@ -182,7 +176,6 @@ public function whereType(string $key, $expected): static /** * Asserts that all properties are of their expected types. * - * @param array $bindings * @return $this */ public function whereAllType(array $bindings): static @@ -197,8 +190,6 @@ public function whereAllType(array $bindings): static /** * Asserts that the property contains the expected values. * - * @param string $key - * @param mixed $expected * @return $this */ public function whereContains(string $key, $expected) @@ -241,9 +232,6 @@ public function whereContains(string $key, $expected) /** * Ensures that all properties are sorted the same way, recursively. - * - * @param mixed $value - * @return void */ protected function ensureSorted(&$value): void { @@ -260,27 +248,19 @@ protected function ensureSorted(&$value): void /** * Compose the absolute "dot" path to the given key. - * - * @param string $key - * @return string */ abstract protected function dotPath(string $key = ''): string; /** * Ensure that the given prop exists. * - * @param string $key * @param null $value - * @param \Closure|null $scope * @return $this */ abstract public function has(string $key, $value = null, ?Closure $scope = null); /** * Retrieve a prop within the current scope using "dot" notation. - * - * @param string|null $key - * @return mixed */ abstract protected function prop(?string $key = null); } diff --git a/src/Illuminate/Testing/ParallelConsoleOutput.php b/src/Illuminate/Testing/ParallelConsoleOutput.php index 1ee388a83aeb..05eafad7f924 100644 --- a/src/Illuminate/Testing/ParallelConsoleOutput.php +++ b/src/Illuminate/Testing/ParallelConsoleOutput.php @@ -45,9 +45,6 @@ public function __construct($output) * Writes a message to the output. * * @param string|iterable $messages - * @param bool $newline - * @param int $options - * @return void */ public function write($messages, bool $newline = false, int $options = 0): void { diff --git a/src/Illuminate/Testing/ParallelRunner.php b/src/Illuminate/Testing/ParallelRunner.php index ff2142bfb08b..2e57e4c8930c 100644 --- a/src/Illuminate/Testing/ParallelRunner.php +++ b/src/Illuminate/Testing/ParallelRunner.php @@ -11,8 +11,6 @@ class ParallelRunner implements \ParaTest\RunnerInterface /** * Runs the test suite. - * - * @return int */ public function run(): int { @@ -26,8 +24,6 @@ class ParallelRunner implements \ParaTest\Runners\PHPUnit\RunnerInterface /** * Runs the test suite. - * - * @return void */ public function run(): void { diff --git a/src/Illuminate/Testing/ParallelTesting.php b/src/Illuminate/Testing/ParallelTesting.php index 736aea91a880..44e93e0eff28 100644 --- a/src/Illuminate/Testing/ParallelTesting.php +++ b/src/Illuminate/Testing/ParallelTesting.php @@ -65,8 +65,6 @@ class ParallelTesting /** * Create a new parallel testing instance. - * - * @param \Illuminate\Contracts\Container\Container $container */ public function __construct(Container $container) { @@ -240,7 +238,6 @@ public function callTearDownTestCaseCallbacks($testCase) * Get a parallel testing option. * * @param string $option - * @return mixed */ public function option($option) { diff --git a/src/Illuminate/Testing/PendingCommand.php b/src/Illuminate/Testing/PendingCommand.php index 3bf3f679375c..b06437fdac50 100644 --- a/src/Illuminate/Testing/PendingCommand.php +++ b/src/Illuminate/Testing/PendingCommand.php @@ -80,8 +80,6 @@ class PendingCommand /** * Create a new pending console command run. * - * @param \PHPUnit\Framework\TestCase $test - * @param \Illuminate\Contracts\Container\Container $app * @param string $command * @param array $parameters */ @@ -224,7 +222,6 @@ public function doesntExpectOutputToContain($string) * @param array $headers * @param \Illuminate\Contracts\Support\Arrayable|array $rows * @param string $tableStyle - * @param array $columnStyles * @return $this */ public function expectsTable($headers, $rows, $tableStyle = 'default', array $columnStyles = []) diff --git a/src/Illuminate/Testing/TestComponent.php b/src/Illuminate/Testing/TestComponent.php index c0bebbc96529..dc6644f5e17b 100644 --- a/src/Illuminate/Testing/TestComponent.php +++ b/src/Illuminate/Testing/TestComponent.php @@ -59,7 +59,6 @@ public function assertSee($value, $escape = true) /** * Assert that the given strings are contained in order within the rendered component. * - * @param array $values * @param bool $escape * @return $this */ @@ -91,7 +90,6 @@ public function assertSeeText($value, $escape = true) /** * Assert that the given strings are contained in order within the rendered component text. * - * @param array $values * @param bool $escape * @return $this */ @@ -150,7 +148,6 @@ public function __toString() * Dynamically access properties on the underlying component. * * @param string $attribute - * @return mixed */ public function __get($attribute) { @@ -162,7 +159,6 @@ public function __get($attribute) * * @param string $method * @param array $parameters - * @return mixed */ public function __call($method, $parameters) { diff --git a/src/Illuminate/Testing/TestResponse.php b/src/Illuminate/Testing/TestResponse.php index f2ad50faef32..4e588bbbae4b 100644 --- a/src/Illuminate/Testing/TestResponse.php +++ b/src/Illuminate/Testing/TestResponse.php @@ -249,7 +249,6 @@ public function assertRedirectBack() * Assert whether the response is redirecting back to the previous location and the session has the given errors. * * @param string|array $keys - * @param mixed $format * @param string $errorBag * @return $this */ @@ -280,7 +279,6 @@ public function assertRedirectBackWithoutErrors() * Assert whether the response is redirecting to a given route. * * @param \BackedEnum|string $name - * @param mixed $parameters * @return $this */ public function assertRedirectToRoute($name, $parameters = []) @@ -301,7 +299,6 @@ public function assertRedirectToRoute($name, $parameters = []) * Assert whether the response is redirecting to a given signed route. * * @param \BackedEnum|string|null $name - * @param mixed $parameters * @param bool $absolute * @return $this */ @@ -361,7 +358,6 @@ public function assertRedirectToAction($name, $parameters = []) * Asserts that the response contains the given header and equals the optional value. * * @param string $headerName - * @param mixed $value * @return $this */ public function assertHeader($headerName, $value = null) @@ -464,7 +460,6 @@ public function assertDownload($filename = null) * Asserts that the response contains the given cookie and equals the optional value. * * @param string $cookieName - * @param mixed $value * @return $this */ public function assertPlainCookie($cookieName, $value = null) @@ -478,7 +473,6 @@ public function assertPlainCookie($cookieName, $value = null) * Asserts that the response contains the given cookie and equals the optional value. * * @param string $cookieName - * @param mixed $value * @param bool $encrypted * @param bool $unserialize * @return $this @@ -703,7 +697,6 @@ public function assertSeeHtml($value) /** * Assert that the given strings are contained in order within the response. * - * @param array $values * @param bool $escape * @return $this */ @@ -719,7 +712,6 @@ public function assertSeeInOrder(array $values, $escape = true) /** * Assert that the given HTML strings are contained in order within the response. * - * @param array $values * @return $this */ public function assertSeeHtmlInOrder(array $values) @@ -752,7 +744,6 @@ public function assertSeeText($value, $escape = true) /** * Assert that the given strings are contained in order within the response text. * - * @param array $values * @param bool $escape * @return $this */ @@ -848,7 +839,6 @@ public function assertJson($value, $strict = false) * Assert that the expected value and type exists at the given path in the response. * * @param string $path - * @param mixed $expect * @return $this */ public function assertJsonPath($path, $expect) @@ -862,7 +852,6 @@ public function assertJsonPath($path, $expect) * Assert that the given path in the response contains all of the expected values without looking at the order. * * @param string $path - * @param array $expect * @return $this */ public function assertJsonPathCanonicalizing($path, array $expect) @@ -875,7 +864,6 @@ public function assertJsonPathCanonicalizing($path, array $expect) /** * Assert that the response has the exact given JSON. * - * @param array $data * @return $this */ public function assertExactJson(array $data) @@ -888,7 +876,6 @@ public function assertExactJson(array $data) /** * Assert that the response has the similar JSON as given. * - * @param array $data * @return $this */ public function assertSimilarJson(array $data) @@ -901,7 +888,6 @@ public function assertSimilarJson(array $data) /** * Assert that the response contains the given JSON fragments. * - * @param array $data * @return $this */ public function assertJsonFragments(array $data) @@ -916,7 +902,6 @@ public function assertJsonFragments(array $data) /** * Assert that the response contains the given JSON fragment. * - * @param array $data * @return $this */ public function assertJsonFragment(array $data) @@ -929,7 +914,6 @@ public function assertJsonFragment(array $data) /** * Assert that the response does not contain the given JSON fragment. * - * @param array $data * @param bool $exact * @return $this */ @@ -943,7 +927,6 @@ public function assertJsonMissing(array $data, $exact = false) /** * Assert that the response does not contain the exact JSON fragment. * - * @param array $data * @return $this */ public function assertJsonMissingExact(array $data) @@ -956,7 +939,6 @@ public function assertJsonMissingExact(array $data) /** * Assert that the response does not contain the given path. * - * @param string $path * @return $this */ public function assertJsonMissingPath(string $path) @@ -969,8 +951,6 @@ public function assertJsonMissingPath(string $path) /** * Assert that the response has a given JSON structure. * - * @param array|null $structure - * @param array|null $responseData * @return $this */ public function assertJsonStructure(?array $structure = null, ?array $responseData = null) @@ -983,8 +963,6 @@ public function assertJsonStructure(?array $structure = null, ?array $responseDa /** * Assert that the response has the exact JSON structure. * - * @param array|null $structure - * @param array|null $responseData * @return $this */ public function assertExactJsonStructure(?array $structure = null, ?array $responseData = null) @@ -997,7 +975,6 @@ public function assertExactJsonStructure(?array $structure = null, ?array $respo /** * Assert that the response JSON has the expected count of items at the given key. * - * @param int $count * @param string|null $key * @return $this */ @@ -1228,7 +1205,6 @@ public function decodeResponseJson() * Return the decoded response JSON. * * @param string|null $key - * @return mixed */ public function json($key = null) { @@ -1265,7 +1241,6 @@ public function assertViewIs($value) * Assert that the response view has a given piece of bound data. * * @param string|array $key - * @param mixed $value * @return $this */ public function assertViewHas($key, $value = null) @@ -1299,7 +1274,6 @@ public function assertViewHas($key, $value = null) /** * Assert that the response view has a given list of bound data. * - * @param array $bindings * @return $this */ public function assertViewHasAll(array $bindings) @@ -1319,7 +1293,6 @@ public function assertViewHasAll(array $bindings) * Get a piece of data from the original view. * * @param string $key - * @return mixed */ public function viewData($key) { @@ -1504,7 +1477,6 @@ public function assertOnlyInvalid($errors = null, $errorBag = 'default', $respon * Assert that the session has a given value. * * @param string|array $key - * @param mixed $value * @return $this */ public function assertSessionHas($key, $value = null) @@ -1530,7 +1502,6 @@ public function assertSessionHas($key, $value = null) /** * Assert that the session has a given list of values. * - * @param array $bindings * @return $this */ public function assertSessionHasAll(array $bindings) @@ -1550,7 +1521,6 @@ public function assertSessionHasAll(array $bindings) * Assert that the session has a given value in the flashed input array. * * @param string|array $key - * @param mixed $value * @return $this */ public function assertSessionHasInput($key, $value = null) @@ -1585,7 +1555,6 @@ public function assertSessionHasInput($key, $value = null) * Assert that the session has the given errors. * * @param string|array $keys - * @param mixed $format * @param string $errorBag * @return $this */ @@ -1680,7 +1649,6 @@ public function assertSessionHasNoErrors() * * @param string $errorBag * @param string|array $keys - * @param mixed $format * @return $this */ public function assertSessionHasErrorsIn($errorBag, $keys = [], $format = null) @@ -1692,7 +1660,6 @@ public function assertSessionHasErrorsIn($errorBag, $keys = [], $format = null) * Assert that the session does not have a given key. * * @param string|array $key - * @param mixed $value * @return $this */ public function assertSessionMissing($key, $value = null) @@ -1876,7 +1843,6 @@ public function streamedContent() /** * Set the previous exceptions on the response. * - * @param \Illuminate\Support\Collection $exceptions * @return $this */ public function withExceptions(Collection $exceptions) @@ -1890,7 +1856,6 @@ public function withExceptions(Collection $exceptions) * Dynamically access base response parameters. * * @param string $key - * @return mixed */ public function __get($key) { @@ -1912,7 +1877,6 @@ public function __isset($key) * Determine if the given offset exists. * * @param string $offset - * @return bool */ public function offsetExists($offset): bool { @@ -1925,7 +1889,6 @@ public function offsetExists($offset): bool * Get the value for a given offset. * * @param string $offset - * @return mixed */ public function offsetGet($offset): mixed { @@ -1938,8 +1901,6 @@ public function offsetGet($offset): mixed * Set the value at the given offset. * * @param string $offset - * @param mixed $value - * @return void * * @throws \LogicException */ @@ -1952,7 +1913,6 @@ public function offsetSet($offset, $value): void * Unset the value at the given offset. * * @param string $offset - * @return void * * @throws \LogicException */ @@ -1966,7 +1926,6 @@ public function offsetUnset($offset): void * * @param string $method * @param array $args - * @return mixed */ public function __call($method, $args) { diff --git a/src/Illuminate/Testing/TestView.php b/src/Illuminate/Testing/TestView.php index 694d1dc7ce23..f9603d82e3b5 100644 --- a/src/Illuminate/Testing/TestView.php +++ b/src/Illuminate/Testing/TestView.php @@ -32,8 +32,6 @@ class TestView implements Stringable /** * Create a new test view instance. - * - * @param \Illuminate\View\View $view */ public function __construct(View $view) { @@ -45,7 +43,6 @@ public function __construct(View $view) * Assert that the response view has a given piece of bound data. * * @param string|array $key - * @param mixed $value * @return $this */ public function assertViewHas($key, $value = null) @@ -77,7 +74,6 @@ public function assertViewHas($key, $value = null) /** * Assert that the response view has a given list of bound data. * - * @param array $bindings * @return $this */ public function assertViewHasAll(array $bindings) @@ -137,7 +133,6 @@ public function assertSee($value, $escape = true) /** * Assert that the given strings are contained in order within the view. * - * @param array $values * @param bool $escape * @return $this */ @@ -169,7 +164,6 @@ public function assertSeeText($value, $escape = true) /** * Assert that the given strings are contained in order within the view text. * - * @param array $values * @param bool $escape * @return $this */ diff --git a/src/Illuminate/Translation/ArrayLoader.php b/src/Illuminate/Translation/ArrayLoader.php index 117e0440ee31..2672db6f241c 100644 --- a/src/Illuminate/Translation/ArrayLoader.php +++ b/src/Illuminate/Translation/ArrayLoader.php @@ -56,7 +56,6 @@ public function addJsonPath($path) * * @param string $locale * @param string $group - * @param array $messages * @param string|null $namespace * @return $this */ diff --git a/src/Illuminate/Translation/FileLoader.php b/src/Illuminate/Translation/FileLoader.php index e30fdf7c413e..c41478f07244 100755 --- a/src/Illuminate/Translation/FileLoader.php +++ b/src/Illuminate/Translation/FileLoader.php @@ -39,9 +39,6 @@ class FileLoader implements Loader /** * Create a new file loader instance. - * - * @param \Illuminate\Filesystem\Filesystem $files - * @param array|string $path */ public function __construct(Filesystem $files, array|string $path) { @@ -93,7 +90,6 @@ protected function loadNamespaced($locale, $group, $namespace) /** * Load a local namespaced translation group for overrides. * - * @param array $lines * @param string $locale * @param string $group * @param string $namespace @@ -116,7 +112,6 @@ protected function loadNamespaceOverrides(array $lines, $locale, $group, $namesp /** * Load a locale from a given path. * - * @param array $paths * @param string $locale * @param string $group * @return array diff --git a/src/Illuminate/Translation/MessageSelector.php b/src/Illuminate/Translation/MessageSelector.php index 11ff4ff08bbd..61b09b03c2c5 100755 --- a/src/Illuminate/Translation/MessageSelector.php +++ b/src/Illuminate/Translation/MessageSelector.php @@ -12,7 +12,6 @@ class MessageSelector * @param string $line * @param int $number * @param string $locale - * @return mixed */ public function choose($line, $number, $locale) { @@ -38,7 +37,6 @@ public function choose($line, $number, $locale) * * @param array $segments * @param int $number - * @return mixed */ private function extract($segments, $number) { @@ -54,7 +52,6 @@ private function extract($segments, $number) * * @param string $part * @param int $number - * @return mixed */ private function extractFromString($part, $number) { diff --git a/src/Illuminate/Translation/PotentiallyTranslatedString.php b/src/Illuminate/Translation/PotentiallyTranslatedString.php index efcccca28331..6daa910c9cc8 100644 --- a/src/Illuminate/Translation/PotentiallyTranslatedString.php +++ b/src/Illuminate/Translation/PotentiallyTranslatedString.php @@ -58,7 +58,6 @@ public function translate($replace = [], $locale = null) * Translates the string based on a count. * * @param \Countable|int|float|array $number - * @param array $replace * @param string|null $locale * @return $this */ diff --git a/src/Illuminate/Translation/Translator.php b/src/Illuminate/Translation/Translator.php index 6296bff9b84a..6ea899dd6955 100755 --- a/src/Illuminate/Translation/Translator.php +++ b/src/Illuminate/Translation/Translator.php @@ -82,7 +82,6 @@ class Translator extends NamespacedItemResolver implements TranslatorContract /** * Create a new translator instance. * - * @param \Illuminate\Contracts\Translation\Loader $loader * @param string $locale */ public function __construct(Loader $loader, $locale) @@ -141,7 +140,6 @@ public function has($key, $locale = null, $fallback = true) * Get the translation for the given key. * * @param string $key - * @param array $replace * @param string|null $locale * @param bool $fallback * @return string|array @@ -192,7 +190,6 @@ public function get($key, array $replace = [], $locale = null, $fallback = true) * * @param string $key * @param \Countable|int|float|array $number - * @param array $replace * @param string|null $locale * @return string */ @@ -239,7 +236,6 @@ protected function localeForChoice($key, $locale) * @param string $group * @param string $locale * @param string $item - * @param array $replace * @return string|array|null */ protected function getLine($namespace, $group, $locale, $item, array $replace) @@ -263,7 +259,6 @@ protected function getLine($namespace, $group, $locale, $item, array $replace) * Make the place-holder replacements on a line. * * @param string $line - * @param array $replace * @return string */ protected function makeReplacements($line, array $replace) @@ -300,7 +295,6 @@ protected function makeReplacements($line, array $replace) /** * Add translation lines to the given locale. * - * @param array $lines * @param string $locale * @param string $namespace * @return void @@ -381,7 +375,6 @@ protected function handleMissingTranslationKey($key, $replace, $locale, $fallbac /** * Register a callback that is responsible for handling missing translation keys. * - * @param callable|null $callback * @return static */ public function handleMissingKeysUsing(?callable $callback) @@ -483,7 +476,6 @@ public function getSelector() /** * Set the message selector instance. * - * @param \Illuminate\Translation\MessageSelector $selector * @return void */ public function setSelector(MessageSelector $selector) @@ -562,7 +554,6 @@ public function setFallback($fallback) /** * Set the loaded translation groups. * - * @param array $loaded * @return void */ public function setLoaded(array $loaded) diff --git a/src/Illuminate/Validation/ClosureValidationRule.php b/src/Illuminate/Validation/ClosureValidationRule.php index 29ee46884cb5..9fbb9c38c797 100644 --- a/src/Illuminate/Validation/ClosureValidationRule.php +++ b/src/Illuminate/Validation/ClosureValidationRule.php @@ -52,7 +52,6 @@ public function __construct($callback) * Determine if the validation rule passes. * * @param string $attribute - * @param mixed $value * @return bool */ public function passes($attribute, $value) diff --git a/src/Illuminate/Validation/Concerns/FilterEmailValidation.php b/src/Illuminate/Validation/Concerns/FilterEmailValidation.php index 50acbcf1311a..ba020495dc8f 100644 --- a/src/Illuminate/Validation/Concerns/FilterEmailValidation.php +++ b/src/Illuminate/Validation/Concerns/FilterEmailValidation.php @@ -37,10 +37,6 @@ public static function unicode() /** * Returns true if the given email is valid. - * - * @param string $email - * @param \Egulias\EmailValidator\EmailLexer $emailLexer - * @return bool */ public function isValid(string $email, EmailLexer $emailLexer): bool { @@ -51,8 +47,6 @@ public function isValid(string $email, EmailLexer $emailLexer): bool /** * Returns the validation error. - * - * @return \Egulias\EmailValidator\Result\InvalidEmail|null */ public function getError(): ?InvalidEmail { diff --git a/src/Illuminate/Validation/Concerns/FormatsMessages.php b/src/Illuminate/Validation/Concerns/FormatsMessages.php index 5e36ad881920..1b52530c6c35 100644 --- a/src/Illuminate/Validation/Concerns/FormatsMessages.php +++ b/src/Illuminate/Validation/Concerns/FormatsMessages.php @@ -389,7 +389,6 @@ protected function replacePositionPlaceholder($message, $attribute) * @param string $message * @param string $attribute * @param string $placeholder - * @param \Closure|null $modifier * @return string */ protected function replaceIndexOrPositionPlaceholder($message, $attribute, $placeholder, ?Closure $modifier = null) @@ -422,7 +421,6 @@ protected function replaceIndexOrPositionPlaceholder($message, $attribute, $plac /** * Get the word for a index or position segment. * - * @param int $value * @return string */ protected function numberToIndexOrPositionWord(int $value) @@ -463,7 +461,6 @@ protected function replaceInputPlaceholder($message, $attribute) * Get the displayable name of the value. * * @param string $attribute - * @param mixed $value * @return string */ public function getDisplayableValue($attribute, $value) @@ -496,7 +493,6 @@ public function getDisplayableValue($attribute, $value) /** * Transform an array of attributes to their displayable form. * - * @param array $values * @return array */ protected function getAttributeList(array $values) diff --git a/src/Illuminate/Validation/Concerns/ValidatesAttributes.php b/src/Illuminate/Validation/Concerns/ValidatesAttributes.php index 29967af83276..c8ae3577107c 100644 --- a/src/Illuminate/Validation/Concerns/ValidatesAttributes.php +++ b/src/Illuminate/Validation/Concerns/ValidatesAttributes.php @@ -38,7 +38,6 @@ trait ValidatesAttributes * This validation rule implies the attribute is "required". * * @param string $attribute - * @param mixed $value * @return bool */ public function validateAccepted($attribute, $value) @@ -52,8 +51,6 @@ public function validateAccepted($attribute, $value) * Validate that an attribute was "accepted" when another attribute has a given value. * * @param string $attribute - * @param mixed $value - * @param mixed $parameters * @return bool */ public function validateAcceptedIf($attribute, $value, $parameters) @@ -77,7 +74,6 @@ public function validateAcceptedIf($attribute, $value, $parameters) * This validation rule implies the attribute is "required". * * @param string $attribute - * @param mixed $value * @return bool */ public function validateDeclined($attribute, $value) @@ -91,8 +87,6 @@ public function validateDeclined($attribute, $value) * Validate that an attribute was "declined" when another attribute has a given value. * * @param string $attribute - * @param mixed $value - * @param mixed $parameters * @return bool */ public function validateDeclinedIf($attribute, $value, $parameters) @@ -114,7 +108,6 @@ public function validateDeclinedIf($attribute, $value, $parameters) * Validate that an attribute is an active URL. * * @param string $attribute - * @param mixed $value * @return bool */ public function validateActiveUrl($attribute, $value) @@ -154,7 +147,6 @@ protected function getDnsRecords($hostname, $type) * Validate that an attribute is 7 bit ASCII. * * @param string $attribute - * @param mixed $value * @return bool */ public function validateAscii($attribute, $value) @@ -178,7 +170,6 @@ public function validateBail() * Validate the date is before a given date. * * @param string $attribute - * @param mixed $value * @param array $parameters * @return bool */ @@ -193,7 +184,6 @@ public function validateBefore($attribute, $value, $parameters) * Validate the date is before or equal a given date. * * @param string $attribute - * @param mixed $value * @param array $parameters * @return bool */ @@ -208,7 +198,6 @@ public function validateBeforeOrEqual($attribute, $value, $parameters) * Validate the date is after a given date. * * @param string $attribute - * @param mixed $value * @param array $parameters * @return bool */ @@ -223,7 +212,6 @@ public function validateAfter($attribute, $value, $parameters) * Validate the date is equal or after a given date. * * @param string $attribute - * @param mixed $value * @param array $parameters * @return bool */ @@ -238,7 +226,6 @@ public function validateAfterOrEqual($attribute, $value, $parameters) * Compare a given date against another using an operator. * * @param string $attribute - * @param mixed $value * @param array $parameters * @param string $operator * @return bool @@ -276,7 +263,6 @@ protected function getDateFormat($attribute) /** * Get the date timestamp. * - * @param mixed $value * @return int */ protected function getDateTimestamp($value) @@ -348,7 +334,6 @@ protected function getDateTime($value) * If the 'ascii' option is passed, validate that an attribute contains only ascii alphabetic characters. * * @param string $attribute - * @param mixed $value * @return bool */ public function validateAlpha($attribute, $value, $parameters) @@ -366,7 +351,6 @@ public function validateAlpha($attribute, $value, $parameters) * dashes, and underscores. * * @param string $attribute - * @param mixed $value * @return bool */ public function validateAlphaDash($attribute, $value, $parameters) @@ -387,7 +371,6 @@ public function validateAlphaDash($attribute, $value, $parameters) * If the 'ascii' option is passed, validate that an attribute contains only ascii alpha-numeric characters. * * @param string $attribute - * @param mixed $value * @return bool */ public function validateAlphaNum($attribute, $value, $parameters) @@ -407,7 +390,6 @@ public function validateAlphaNum($attribute, $value, $parameters) * Validate that an attribute is an array. * * @param string $attribute - * @param mixed $value * @param array $parameters * @return bool */ @@ -428,7 +410,6 @@ public function validateArray($attribute, $value, $parameters = []) * Validate that an attribute is a list. * * @param string $attribute - * @param mixed $value * @return bool */ public function validateList($attribute, $value) @@ -440,7 +421,6 @@ public function validateList($attribute, $value) * Validate that an array has all of the given keys. * * @param string $attribute - * @param mixed $value * @param array $parameters * @return bool */ @@ -463,7 +443,6 @@ public function validateRequiredArrayKeys($attribute, $value, $parameters) * Validate the size of an attribute is between a set of values. * * @param string $attribute - * @param mixed $value * @param array $parameters * @return bool */ @@ -485,7 +464,6 @@ public function validateBetween($attribute, $value, $parameters) * Validate that an attribute is a boolean. * * @param string $attribute - * @param mixed $value * @param array{0: 'strict'} $parameters * @return bool */ @@ -504,7 +482,6 @@ public function validateBoolean($attribute, $value, $parameters) * Validate that an attribute has a matching confirmation. * * @param string $attribute - * @param mixed $value * @param array{0: string} $parameters * @return bool */ @@ -517,7 +494,6 @@ public function validateConfirmed($attribute, $value, $parameters) * Validate an attribute contains a list of values. * * @param string $attribute - * @param mixed $value * @param array $parameters * @return bool */ @@ -540,7 +516,6 @@ public function validateContains($attribute, $value, $parameters) * Validate an attribute does not contain a list of values. * * @param string $attribute - * @param mixed $value * @param array $parameters * @return bool */ @@ -563,7 +538,6 @@ public function validateDoesntContain($attribute, $value, $parameters) * Validate that the password of the currently authenticated user matches the given value. * * @param string $attribute - * @param mixed $value * @param array $parameters * @return bool */ @@ -585,7 +559,6 @@ protected function validateCurrentPassword($attribute, $value, $parameters) * Validate that an attribute is a valid date. * * @param string $attribute - * @param mixed $value * @return bool */ public function validateDate($attribute, $value) @@ -611,7 +584,6 @@ public function validateDate($attribute, $value) * Validate that an attribute matches a date format. * * @param string $attribute - * @param mixed $value * @param array $parameters * @return bool */ @@ -642,7 +614,6 @@ public function validateDateFormat($attribute, $value, $parameters) * Validate that an attribute is equal to another date. * * @param string $attribute - * @param mixed $value * @param array $parameters * @return bool */ @@ -657,7 +628,6 @@ public function validateDateEquals($attribute, $value, $parameters) * Validate that an attribute has a given number of decimal places. * * @param string $attribute - * @param mixed $value * @param array $parameters * @return bool */ @@ -689,7 +659,6 @@ public function validateDecimal($attribute, $value, $parameters) * Validate that an attribute is different from another attribute. * * @param string $attribute - * @param mixed $value * @param array $parameters * @return bool */ @@ -714,7 +683,6 @@ public function validateDifferent($attribute, $value, $parameters) * Validate that an attribute has a given number of digits. * * @param string $attribute - * @param mixed $value * @param array $parameters * @return bool */ @@ -730,7 +698,6 @@ public function validateDigits($attribute, $value, $parameters) * Validate that an attribute is between a given number of digits. * * @param string $attribute - * @param mixed $value * @param array $parameters * @return bool */ @@ -748,7 +715,6 @@ public function validateDigitsBetween($attribute, $value, $parameters) * Validate the dimensions of an image matches the given values. * * @param string $attribute - * @param mixed $value * @param array $parameters * @return bool */ @@ -871,7 +837,6 @@ private function failsMaxRatioCheck($parameters, $width, $height) * Validate an attribute is unique among other values. * * @param string $attribute - * @param mixed $value * @param array $parameters * @return bool */ @@ -930,7 +895,6 @@ protected function extractDistinctValues($attribute) * Validate that an attribute is a valid e-mail address. * * @param string $attribute - * @param mixed $value * @param array $parameters * @return bool */ @@ -963,7 +927,6 @@ public function validateEmail($attribute, $value, $parameters) * Validate the existence of an attribute value in a database table. * * @param string $attribute - * @param mixed $value * @param array $parameters * @return bool */ @@ -992,10 +955,8 @@ public function validateExists($attribute, $value, $parameters) /** * Get the number of records that exist in storage. * - * @param mixed $connection * @param string $table * @param string $column - * @param mixed $value * @param array $parameters * @return int */ @@ -1022,7 +983,6 @@ protected function getExistCount($connection, $table, $column, $value, $paramete * If a database column is not specified, the attribute will be used. * * @param string $attribute - * @param mixed $value * @param array $parameters * @return bool */ @@ -1080,7 +1040,6 @@ protected function getUniqueIds($idColumn, $parameters) /** * Prepare the given ID for querying. * - * @param mixed $id * @return int */ protected function prepareUniqueId($id) @@ -1174,7 +1133,6 @@ public function guessColumnForQuery($attribute) /** * Get the extra conditions for a unique / exists rule. * - * @param array $segments * @return array */ protected function getExtraConditions(array $segments) @@ -1194,7 +1152,6 @@ protected function getExtraConditions(array $segments) * Validate the extension of a file upload attribute is in a set of defined extensions. * * @param string $attribute - * @param mixed $value * @param array $parameters * @return bool */ @@ -1215,7 +1172,6 @@ public function validateExtensions($attribute, $value, $parameters) * Validate the given value is a valid file. * * @param string $attribute - * @param mixed $value * @return bool */ public function validateFile($attribute, $value) @@ -1227,7 +1183,6 @@ public function validateFile($attribute, $value) * Validate the given attribute is filled if it is present. * * @param string $attribute - * @param mixed $value * @return bool */ public function validateFilled($attribute, $value) @@ -1243,7 +1198,6 @@ public function validateFilled($attribute, $value) * Validate that an attribute is greater than another attribute. * * @param string $attribute - * @param mixed $value * @param array $parameters * @return bool */ @@ -1290,7 +1244,6 @@ public function validateGt($attribute, $value, $parameters) * Validate that an attribute is less than another attribute. * * @param string $attribute - * @param mixed $value * @param array $parameters * @return bool */ @@ -1333,7 +1286,6 @@ public function validateLt($attribute, $value, $parameters) * Validate that an attribute is greater than or equal another attribute. * * @param string $attribute - * @param mixed $value * @param array $parameters * @return bool */ @@ -1380,7 +1332,6 @@ public function validateGte($attribute, $value, $parameters) * Validate that an attribute is less than or equal another attribute. * * @param string $attribute - * @param mixed $value * @param array $parameters * @return bool */ @@ -1423,7 +1374,6 @@ public function validateLte($attribute, $value, $parameters) * Validate that an attribute is lowercase. * * @param string $attribute - * @param mixed $value * @param array $parameters * @return bool */ @@ -1436,7 +1386,6 @@ public function validateLowercase($attribute, $value, $parameters) * Validate that an attribute is uppercase. * * @param string $attribute - * @param mixed $value * @param array $parameters * @return bool */ @@ -1449,7 +1398,6 @@ public function validateUppercase($attribute, $value, $parameters) * Validate that an attribute is a valid HEX color. * * @param string $attribute - * @param mixed $value * @return bool */ public function validateHexColor($attribute, $value) @@ -1461,7 +1409,6 @@ public function validateHexColor($attribute, $value) * Validate the MIME type of a file is an image MIME type. * * @param string $attribute - * @param mixed $value * @param array $parameters * @return bool */ @@ -1480,7 +1427,6 @@ public function validateImage($attribute, $value, $parameters = []) * Validate an attribute is contained within a list of values. * * @param string $attribute - * @param mixed $value * @param array $parameters * @return bool */ @@ -1503,7 +1449,6 @@ public function validateIn($attribute, $value, $parameters) * Validate that the values of an attribute are in another attribute. * * @param string $attribute - * @param mixed $value * @param array $parameters * @return bool */ @@ -1526,7 +1471,6 @@ public function validateInArray($attribute, $value, $parameters) * Validate that an array has at least one of the given keys. * * @param string $attribute - * @param mixed $value * @param array $parameters * @return bool */ @@ -1553,7 +1497,6 @@ public function validateInArrayKeys($attribute, $value, $parameters) * Validate that an attribute is an integer. * * @param string $attribute - * @param mixed $value * @param array{0: 'strict'} $parameters * @return bool */ @@ -1570,7 +1513,6 @@ public function validateInteger($attribute, $value, array $parameters) * Validate that an attribute is a valid IP. * * @param string $attribute - * @param mixed $value * @return bool */ public function validateIp($attribute, $value) @@ -1582,7 +1524,6 @@ public function validateIp($attribute, $value) * Validate that an attribute is a valid IPv4. * * @param string $attribute - * @param mixed $value * @return bool */ public function validateIpv4($attribute, $value) @@ -1594,7 +1535,6 @@ public function validateIpv4($attribute, $value) * Validate that an attribute is a valid IPv6. * * @param string $attribute - * @param mixed $value * @return bool */ public function validateIpv6($attribute, $value) @@ -1606,7 +1546,6 @@ public function validateIpv6($attribute, $value) * Validate that an attribute is a valid MAC address. * * @param string $attribute - * @param mixed $value * @return bool */ public function validateMacAddress($attribute, $value) @@ -1618,7 +1557,6 @@ public function validateMacAddress($attribute, $value) * Validate the attribute is a valid JSON string. * * @param string $attribute - * @param mixed $value * @return bool */ public function validateJson($attribute, $value) @@ -1638,7 +1576,6 @@ public function validateJson($attribute, $value) * Validate the size of an attribute is less than or equal to a maximum value. * * @param string $attribute - * @param mixed $value * @param array $parameters * @return bool */ @@ -1661,7 +1598,6 @@ public function validateMax($attribute, $value, $parameters) * Validate that an attribute has a maximum number of digits. * * @param string $attribute - * @param mixed $value * @param array $parameters * @return bool */ @@ -1678,7 +1614,6 @@ public function validateMaxDigits($attribute, $value, $parameters) * Validate the guessed extension of a file upload is in a set of file extensions. * * @param string $attribute - * @param mixed $value * @param array $parameters * @return bool */ @@ -1703,7 +1638,6 @@ public function validateMimes($attribute, $value, $parameters) * Validate the MIME type of a file upload attribute is in a set of MIME types. * * @param string $attribute - * @param mixed $value * @param array $parameters * @return bool */ @@ -1725,7 +1659,6 @@ public function validateMimetypes($attribute, $value, $parameters) /** * Check if PHP uploads are explicitly allowed. * - * @param mixed $value * @param array $parameters * @return bool */ @@ -1748,7 +1681,6 @@ protected function shouldBlockPhpUpload($value, $parameters) * Validate the size of an attribute is greater than or equal to a minimum value. * * @param string $attribute - * @param mixed $value * @param array $parameters * @return bool */ @@ -1767,7 +1699,6 @@ public function validateMin($attribute, $value, $parameters) * Validate that an attribute has a minimum number of digits. * * @param string $attribute - * @param mixed $value * @param array $parameters * @return bool */ @@ -1784,7 +1715,6 @@ public function validateMinDigits($attribute, $value, $parameters) * Validate that an attribute is missing. * * @param string $attribute - * @param mixed $value * @param array $parameters * @return bool */ @@ -1797,7 +1727,6 @@ public function validateMissing($attribute, $value, $parameters) * Validate that an attribute is missing when another attribute has a given value. * * @param string $attribute - * @param mixed $value * @param array $parameters * @return bool */ @@ -1818,7 +1747,6 @@ public function validateMissingIf($attribute, $value, $parameters) * Validate that an attribute is missing unless another attribute has a given value. * * @param string $attribute - * @param mixed $value * @param array $parameters * @return bool */ @@ -1839,7 +1767,6 @@ public function validateMissingUnless($attribute, $value, $parameters) * Validate that an attribute is missing when any given attribute is present. * * @param string $attribute - * @param mixed $value * @param array $parameters * @return bool */ @@ -1858,7 +1785,6 @@ public function validateMissingWith($attribute, $value, $parameters) * Validate that an attribute is missing when all given attributes are present. * * @param string $attribute - * @param mixed $value * @param array $parameters * @return bool */ @@ -1877,7 +1803,6 @@ public function validateMissingWithAll($attribute, $value, $parameters) * Validate the value of an attribute is a multiple of a given value. * * @param string $attribute - * @param mixed $value * @param array $parameters * @return bool */ @@ -1927,7 +1852,6 @@ public function validateNullable() * Validate an attribute is not contained within a list of values. * * @param string $attribute - * @param mixed $value * @param array $parameters * @return bool */ @@ -1940,7 +1864,6 @@ public function validateNotIn($attribute, $value, $parameters) * Validate that an attribute is numeric. * * @param string $attribute - * @param mixed $value * @param array{0: 'strict'} $parameters * @return bool */ @@ -1957,7 +1880,6 @@ public function validateNumeric($attribute, $value, array $parameters) * Validate that an attribute exists even if not filled. * * @param string $attribute - * @param mixed $value * @return bool */ public function validatePresent($attribute, $value) @@ -1969,7 +1891,6 @@ public function validatePresent($attribute, $value) * Validate that an attribute is present when another attribute has a given value. * * @param string $attribute - * @param mixed $value * @param array $parameters * @return bool */ @@ -1990,7 +1911,6 @@ public function validatePresentIf($attribute, $value, $parameters) * Validate that an attribute is present unless another attribute has a given value. * * @param string $attribute - * @param mixed $value * @param array $parameters * @return bool */ @@ -2011,7 +1931,6 @@ public function validatePresentUnless($attribute, $value, $parameters) * Validate that an attribute is present when any given attribute is present. * * @param string $attribute - * @param mixed $value * @param array $parameters * @return bool */ @@ -2030,7 +1949,6 @@ public function validatePresentWith($attribute, $value, $parameters) * Validate that an attribute is present when all given attributes are present. * * @param string $attribute - * @param mixed $value * @param array $parameters * @return bool */ @@ -2049,7 +1967,6 @@ public function validatePresentWithAll($attribute, $value, $parameters) * Validate that an attribute passes a regular expression check. * * @param string $attribute - * @param mixed $value * @param array $parameters * @return bool */ @@ -2068,7 +1985,6 @@ public function validateRegex($attribute, $value, $parameters) * Validate that an attribute does not pass a regular expression check. * * @param string $attribute - * @param mixed $value * @param array $parameters * @return bool */ @@ -2087,7 +2003,6 @@ public function validateNotRegex($attribute, $value, $parameters) * Validate that a required attribute exists. * * @param string $attribute - * @param mixed $value * @return bool */ public function validateRequired($attribute, $value) @@ -2109,8 +2024,6 @@ public function validateRequired($attribute, $value) * Validate that an attribute exists when another attribute has a given value. * * @param string $attribute - * @param mixed $value - * @param mixed $parameters * @return bool */ public function validateRequiredIf($attribute, $value, $parameters) @@ -2134,8 +2047,6 @@ public function validateRequiredIf($attribute, $value, $parameters) * Validate that an attribute exists when another attribute was "accepted". * * @param string $attribute - * @param mixed $value - * @param mixed $parameters * @return bool */ public function validateRequiredIfAccepted($attribute, $value, $parameters) @@ -2153,8 +2064,6 @@ public function validateRequiredIfAccepted($attribute, $value, $parameters) * Validate that an attribute exists when another attribute was "declined". * * @param string $attribute - * @param mixed $value - * @param mixed $parameters * @return bool */ public function validateRequiredIfDeclined($attribute, $value, $parameters) @@ -2172,7 +2081,6 @@ public function validateRequiredIfDeclined($attribute, $value, $parameters) * Validate that an attribute does not exist or is an empty string. * * @param string $attribute - * @param mixed $value * @return bool */ public function validateProhibited($attribute, $value) @@ -2184,8 +2092,6 @@ public function validateProhibited($attribute, $value) * Validate that an attribute does not exist when another attribute has a given value. * * @param string $attribute - * @param mixed $value - * @param mixed $parameters * @return bool */ public function validateProhibitedIf($attribute, $value, $parameters) @@ -2205,8 +2111,6 @@ public function validateProhibitedIf($attribute, $value, $parameters) * Validate that an attribute does not exist when another attribute was "accepted". * * @param string $attribute - * @param mixed $value - * @param mixed $parameters * @return bool */ public function validateProhibitedIfAccepted($attribute, $value, $parameters) @@ -2224,8 +2128,6 @@ public function validateProhibitedIfAccepted($attribute, $value, $parameters) * Validate that an attribute does not exist when another attribute was "declined". * * @param string $attribute - * @param mixed $value - * @param mixed $parameters * @return bool */ public function validateProhibitedIfDeclined($attribute, $value, $parameters) @@ -2243,8 +2145,6 @@ public function validateProhibitedIfDeclined($attribute, $value, $parameters) * Validate that an attribute does not exist unless another attribute has a given value. * * @param string $attribute - * @param mixed $value - * @param mixed $parameters * @return bool */ public function validateProhibitedUnless($attribute, $value, $parameters) @@ -2264,8 +2164,6 @@ public function validateProhibitedUnless($attribute, $value, $parameters) * Validate that other attributes do not exist when this attribute exists. * * @param string $attribute - * @param mixed $value - * @param mixed $parameters * @return bool */ public function validateProhibits($attribute, $value, $parameters) @@ -2295,8 +2193,6 @@ public function validateExclude() * Indicate that an attribute should be excluded when another attribute has a given value. * * @param string $attribute - * @param mixed $value - * @param mixed $parameters * @return bool */ public function validateExcludeIf($attribute, $value, $parameters) @@ -2316,8 +2212,6 @@ public function validateExcludeIf($attribute, $value, $parameters) * Indicate that an attribute should be excluded when another attribute does not have a given value. * * @param string $attribute - * @param mixed $value - * @param mixed $parameters * @return bool */ public function validateExcludeUnless($attribute, $value, $parameters) @@ -2333,8 +2227,6 @@ public function validateExcludeUnless($attribute, $value, $parameters) * Validate that an attribute exists when another attribute does not have a given value. * * @param string $attribute - * @param mixed $value - * @param mixed $parameters * @return bool */ public function validateRequiredUnless($attribute, $value, $parameters) @@ -2354,8 +2246,6 @@ public function validateRequiredUnless($attribute, $value, $parameters) * Indicate that an attribute should be excluded when another attribute presents. * * @param string $attribute - * @param mixed $value - * @param mixed $parameters * @return bool */ public function validateExcludeWith($attribute, $value, $parameters) @@ -2373,8 +2263,6 @@ public function validateExcludeWith($attribute, $value, $parameters) * Indicate that an attribute should be excluded when another attribute is missing. * * @param string $attribute - * @param mixed $value - * @param mixed $parameters * @return bool */ public function validateExcludeWithout($attribute, $value, $parameters) @@ -2458,8 +2346,6 @@ protected function convertValuesToNull($values) * Validate that an attribute exists when any other attribute exists. * * @param string $attribute - * @param mixed $value - * @param mixed $parameters * @return bool */ public function validateRequiredWith($attribute, $value, $parameters) @@ -2475,8 +2361,6 @@ public function validateRequiredWith($attribute, $value, $parameters) * Validate that an attribute exists when all other attributes exist. * * @param string $attribute - * @param mixed $value - * @param mixed $parameters * @return bool */ public function validateRequiredWithAll($attribute, $value, $parameters) @@ -2492,8 +2376,6 @@ public function validateRequiredWithAll($attribute, $value, $parameters) * Validate that an attribute exists when another attribute does not. * * @param string $attribute - * @param mixed $value - * @param mixed $parameters * @return bool */ public function validateRequiredWithout($attribute, $value, $parameters) @@ -2509,8 +2391,6 @@ public function validateRequiredWithout($attribute, $value, $parameters) * Validate that an attribute exists when all other attributes do not. * * @param string $attribute - * @param mixed $value - * @param mixed $parameters * @return bool */ public function validateRequiredWithoutAll($attribute, $value, $parameters) @@ -2525,7 +2405,6 @@ public function validateRequiredWithoutAll($attribute, $value, $parameters) /** * Determine if any of the given attributes fail the required test. * - * @param array $attributes * @return bool */ protected function anyFailingRequired(array $attributes) @@ -2542,7 +2421,6 @@ protected function anyFailingRequired(array $attributes) /** * Determine if all of the given attributes fail the required test. * - * @param array $attributes * @return bool */ protected function allFailingRequired(array $attributes) @@ -2560,7 +2438,6 @@ protected function allFailingRequired(array $attributes) * Validate that two attributes match. * * @param string $attribute - * @param mixed $value * @param array $parameters * @return bool */ @@ -2577,7 +2454,6 @@ public function validateSame($attribute, $value, $parameters) * Validate the size of an attribute. * * @param string $attribute - * @param mixed $value * @param array $parameters * @return bool */ @@ -2608,7 +2484,6 @@ public function validateSometimes() * Validate the attribute starts with a given substring. * * @param string $attribute - * @param mixed $value * @param array $parameters * @return bool */ @@ -2621,7 +2496,6 @@ public function validateStartsWith($attribute, $value, $parameters) * Validate the attribute does not start with a given substring. * * @param string $attribute - * @param mixed $value * @param array $parameters * @return bool */ @@ -2634,7 +2508,6 @@ public function validateDoesntStartWith($attribute, $value, $parameters) * Validate the attribute ends with a given substring. * * @param string $attribute - * @param mixed $value * @param array $parameters * @return bool */ @@ -2647,7 +2520,6 @@ public function validateEndsWith($attribute, $value, $parameters) * Validate the attribute does not end with a given substring. * * @param string $attribute - * @param mixed $value * @param array $parameters * @return bool */ @@ -2660,7 +2532,6 @@ public function validateDoesntEndWith($attribute, $value, $parameters) * Validate that an attribute is a string. * * @param string $attribute - * @param mixed $value * @return bool */ public function validateString($attribute, $value) @@ -2672,7 +2543,6 @@ public function validateString($attribute, $value) * Validate that an attribute is a valid timezone. * * @param string $attribute - * @param mixed $value * @param array $parameters * @return bool */ @@ -2688,7 +2558,6 @@ public function validateTimezone($attribute, $value, $parameters = []) * Validate that an attribute is a valid URL. * * @param string $attribute - * @param mixed $value * @param array $parameters * @return bool */ @@ -2701,7 +2570,6 @@ public function validateUrl($attribute, $value, $parameters = []) * Validate that an attribute is a valid ULID. * * @param string $attribute - * @param mixed $value * @return bool */ public function validateUlid($attribute, $value) @@ -2713,7 +2581,6 @@ public function validateUlid($attribute, $value) * Validate that an attribute is a valid UUID. * * @param string $attribute - * @param mixed $value * @param array|'max'> $parameters * @return bool */ @@ -2736,7 +2603,6 @@ public function validateUuid($attribute, $value, $parameters) * Get the size of an attribute. * * @param string $attribute - * @param mixed $value * @return int|float|string */ protected function getSize($attribute, $value) @@ -2761,7 +2627,6 @@ protected function getSize($attribute, $value) /** * Check that the given value is a valid file instance. * - * @param mixed $value * @return bool */ public function isValidFileInstance($value) @@ -2776,8 +2641,6 @@ public function isValidFileInstance($value) /** * Determine if a comparison passes between the given values. * - * @param mixed $first - * @param mixed $second * @param string $operator * @return bool * @@ -2832,8 +2695,6 @@ public function requireParameterCount($count, $parameters, $rule) /** * Check if the parameters are of the same type. * - * @param mixed $first - * @param mixed $second * @return bool */ protected function isSameType($first, $second) @@ -2857,9 +2718,6 @@ protected function shouldBeNumeric($attribute, $rule) /** * Trim the value if it is a string. - * - * @param mixed $value - * @return mixed */ protected function trim($value) { @@ -2870,8 +2728,6 @@ protected function trim($value) * Ensure the exponent is within the allowed range. * * @param string $attribute - * @param mixed $value - * @return mixed * * @throws \Illuminate\Support\Exceptions\MathException */ diff --git a/src/Illuminate/Validation/ConditionalRules.php b/src/Illuminate/Validation/ConditionalRules.php index d78d3e5da1b2..a1d4a04a2733 100644 --- a/src/Illuminate/Validation/ConditionalRules.php +++ b/src/Illuminate/Validation/ConditionalRules.php @@ -44,7 +44,6 @@ public function __construct($condition, $rules, $defaultRules = []) /** * Determine if the conditional rules should be added. * - * @param array $data * @return bool */ public function passes(array $data = []) @@ -57,7 +56,6 @@ public function passes(array $data = []) /** * Get the rules. * - * @param array $data * @return array */ public function rules(array $data = []) @@ -70,7 +68,6 @@ public function rules(array $data = []) /** * Get the default rules. * - * @param array $data * @return array */ public function defaultRules(array $data = []) diff --git a/src/Illuminate/Validation/DatabasePresenceVerifier.php b/src/Illuminate/Validation/DatabasePresenceVerifier.php index 46601a35e872..0f345c0e491b 100755 --- a/src/Illuminate/Validation/DatabasePresenceVerifier.php +++ b/src/Illuminate/Validation/DatabasePresenceVerifier.php @@ -23,8 +23,6 @@ class DatabasePresenceVerifier implements DatabasePresenceVerifierInterface /** * Create a new database presence verifier. - * - * @param \Illuminate\Database\ConnectionResolverInterface $db */ public function __construct(ConnectionResolverInterface $db) { @@ -39,7 +37,6 @@ public function __construct(ConnectionResolverInterface $db) * @param string $value * @param int|null $excludeId * @param string|null $idColumn - * @param array $extra * @return int */ public function getCount($collection, $column, $value, $excludeId = null, $idColumn = null, array $extra = []) @@ -58,8 +55,6 @@ public function getCount($collection, $column, $value, $excludeId = null, $idCol * * @param string $collection * @param string $column - * @param array $values - * @param array $extra * @return int */ public function getMultiCount($collection, $column, array $values, array $extra = []) diff --git a/src/Illuminate/Validation/Factory.php b/src/Illuminate/Validation/Factory.php index 8cf5027eb26f..3e347bc04343 100755 --- a/src/Illuminate/Validation/Factory.php +++ b/src/Illuminate/Validation/Factory.php @@ -82,9 +82,6 @@ class Factory implements FactoryContract /** * Create a new Validator factory instance. - * - * @param \Illuminate\Contracts\Translation\Translator $translator - * @param \Illuminate\Contracts\Container\Container|null $container */ public function __construct(Translator $translator, ?Container $container = null) { @@ -95,10 +92,6 @@ public function __construct(Translator $translator, ?Container $container = null /** * Create a new Validator instance. * - * @param array $data - * @param array $rules - * @param array $messages - * @param array $attributes * @return \Illuminate\Validation\Validator */ public function make(array $data, array $rules, array $messages = [], array $attributes = []) @@ -131,10 +124,6 @@ public function make(array $data, array $rules, array $messages = [], array $att /** * Validate the given data against the provided rules. * - * @param array $data - * @param array $rules - * @param array $messages - * @param array $attributes * @return array * * @throws \Illuminate\Validation\ValidationException @@ -147,10 +136,6 @@ public function validate(array $data, array $rules, array $messages = [], array /** * Resolve a new Validator instance. * - * @param array $data - * @param array $rules - * @param array $messages - * @param array $attributes * @return \Illuminate\Validation\Validator */ protected function resolve(array $data, array $rules, array $messages, array $attributes) @@ -165,7 +150,6 @@ protected function resolve(array $data, array $rules, array $messages, array $at /** * Add the extensions to a validator instance. * - * @param \Illuminate\Validation\Validator $validator * @return void */ protected function addExtensions(Validator $validator) @@ -270,7 +254,6 @@ public function excludeUnvalidatedArrayKeys() /** * Set the Validator instance resolver. * - * @param \Closure $resolver * @return void */ public function resolver(Closure $resolver) @@ -301,7 +284,6 @@ public function getPresenceVerifier() /** * Set the Presence Verifier implementation. * - * @param \Illuminate\Validation\PresenceVerifierInterface $presenceVerifier * @return void */ public function setPresenceVerifier(PresenceVerifierInterface $presenceVerifier) @@ -322,7 +304,6 @@ public function getContainer() /** * Set the container instance used by the validation factory. * - * @param \Illuminate\Contracts\Container\Container $container * @return $this */ public function setContainer(Container $container) diff --git a/src/Illuminate/Validation/InvokableValidationRule.php b/src/Illuminate/Validation/InvokableValidationRule.php index dbd60a0173ad..eba4a7dd55df 100644 --- a/src/Illuminate/Validation/InvokableValidationRule.php +++ b/src/Illuminate/Validation/InvokableValidationRule.php @@ -51,8 +51,6 @@ class InvokableValidationRule implements Rule, ValidatorAwareRule /** * Create a new explicit Invokable validation rule. - * - * @param \Illuminate\Contracts\Validation\ValidationRule|\Illuminate\Contracts\Validation\InvokableRule $invokable */ protected function __construct(ValidationRule|InvokableRule $invokable) { @@ -79,7 +77,6 @@ public static function make($invokable) * Determine if the validation rule passes. * * @param string $attribute - * @param mixed $value * @return bool */ public function passes($attribute, $value) diff --git a/src/Illuminate/Validation/NestedRules.php b/src/Illuminate/Validation/NestedRules.php index c5abe6680de2..17831062eae4 100644 --- a/src/Illuminate/Validation/NestedRules.php +++ b/src/Illuminate/Validation/NestedRules.php @@ -15,8 +15,6 @@ class NestedRules implements CompilableRules /** * Create a new nested rule instance. - * - * @param callable $callback */ public function __construct(callable $callback) { @@ -27,9 +25,6 @@ public function __construct(callable $callback) * Compile the callback into an array of rules. * * @param string $attribute - * @param mixed $value - * @param mixed $data - * @param mixed $context * @return \stdClass */ public function compile($attribute, $value, $data = null, $context = null) diff --git a/src/Illuminate/Validation/PresenceVerifierInterface.php b/src/Illuminate/Validation/PresenceVerifierInterface.php index da58a1210a8a..f0dd18eba6c4 100755 --- a/src/Illuminate/Validation/PresenceVerifierInterface.php +++ b/src/Illuminate/Validation/PresenceVerifierInterface.php @@ -12,7 +12,6 @@ interface PresenceVerifierInterface * @param string $value * @param int|null $excludeId * @param string|null $idColumn - * @param array $extra * @return int */ public function getCount($collection, $column, $value, $excludeId = null, $idColumn = null, array $extra = []); @@ -22,8 +21,6 @@ public function getCount($collection, $column, $value, $excludeId = null, $idCol * * @param string $collection * @param string $column - * @param array $values - * @param array $extra * @return int */ public function getMultiCount($collection, $column, array $values, array $extra = []); diff --git a/src/Illuminate/Validation/Rule.php b/src/Illuminate/Validation/Rule.php index c98fc64e8d95..adde3fe2fbab 100644 --- a/src/Illuminate/Validation/Rule.php +++ b/src/Illuminate/Validation/Rule.php @@ -31,7 +31,6 @@ class Rule * Get a can constraint builder instance. * * @param string $ability - * @param mixed ...$arguments * @return \Illuminate\Validation\Rules\Can */ public static function can($ability, ...$arguments) @@ -229,7 +228,6 @@ public static function imageFile($allowSvg = false) /** * Get a dimensions rule builder instance. * - * @param array $constraints * @return \Illuminate\Validation\Rules\Dimensions */ public static function dimensions(array $constraints = []) diff --git a/src/Illuminate/Validation/Rules/AnyOf.php b/src/Illuminate/Validation/Rules/AnyOf.php index a27b20c98100..99a76f291096 100644 --- a/src/Illuminate/Validation/Rules/AnyOf.php +++ b/src/Illuminate/Validation/Rules/AnyOf.php @@ -12,8 +12,6 @@ class AnyOf implements Rule, ValidatorAwareRule { /** * The rules to match against. - * - * @var array */ protected array $rules = []; @@ -44,7 +42,6 @@ public function __construct($rules) * Determine if the validation rule passes. * * @param string $attribute - * @param mixed $value * @return bool */ public function passes($attribute, $value) diff --git a/src/Illuminate/Validation/Rules/Can.php b/src/Illuminate/Validation/Rules/Can.php index 8565dd6d0b78..3e025d29f4dd 100644 --- a/src/Illuminate/Validation/Rules/Can.php +++ b/src/Illuminate/Validation/Rules/Can.php @@ -33,7 +33,6 @@ class Can implements Rule, ValidatorAwareRule * Constructor. * * @param string $ability - * @param array $arguments */ public function __construct($ability, array $arguments = []) { @@ -45,7 +44,6 @@ public function __construct($ability, array $arguments = []) * Determine if the validation rule passes. * * @param string $attribute - * @param mixed $value * @return bool */ public function passes($attribute, $value) diff --git a/src/Illuminate/Validation/Rules/DatabaseRule.php b/src/Illuminate/Validation/Rules/DatabaseRule.php index bc879ee0ee18..cf7d2bd8aa38 100644 --- a/src/Illuminate/Validation/Rules/DatabaseRule.php +++ b/src/Illuminate/Validation/Rules/DatabaseRule.php @@ -204,7 +204,6 @@ public function onlyTrashed($deletedAtColumn = 'deleted_at') /** * Register a custom query callback. * - * @param \Closure $callback * @return $this */ public function using(Closure $callback) diff --git a/src/Illuminate/Validation/Rules/Dimensions.php b/src/Illuminate/Validation/Rules/Dimensions.php index 76331fbd6ff8..d05248545e9c 100644 --- a/src/Illuminate/Validation/Rules/Dimensions.php +++ b/src/Illuminate/Validation/Rules/Dimensions.php @@ -18,8 +18,6 @@ class Dimensions implements Stringable /** * Create a new dimensions rule instance. - * - * @param array $constraints */ public function __construct(array $constraints = []) { diff --git a/src/Illuminate/Validation/Rules/Email.php b/src/Illuminate/Validation/Rules/Email.php index bb803e8a15cc..e08b4bec8266 100644 --- a/src/Illuminate/Validation/Rules/Email.php +++ b/src/Illuminate/Validation/Rules/Email.php @@ -95,7 +95,6 @@ public static function default() /** * Ensure that the email is an RFC compliant email address. * - * @param bool $strict * @return $this */ public function rfcCompliant(bool $strict = false) @@ -148,7 +147,6 @@ public function preventSpoofing() /** * Ensure the email address is valid using PHP's native email validation functions. * - * @param bool $allowUnicode * @return $this */ public function withNativeValidation(bool $allowUnicode = false) @@ -179,7 +177,6 @@ public function rules($rules) * Determine if the validation rule passes. * * @param string $attribute - * @param mixed $value * @return bool */ public function passes($attribute, $value) diff --git a/src/Illuminate/Validation/Rules/Enum.php b/src/Illuminate/Validation/Rules/Enum.php index 4ffd6ec70efe..c6b3c8f6fdfd 100644 --- a/src/Illuminate/Validation/Rules/Enum.php +++ b/src/Illuminate/Validation/Rules/Enum.php @@ -55,7 +55,6 @@ public function __construct($type) * Determine if the validation rule passes. * * @param string $attribute - * @param mixed $value * @return bool */ public function passes($attribute, $value) @@ -106,7 +105,6 @@ public function except($values) /** * Determine if the given case is a valid case based on the only / except values. * - * @param mixed $value * @return bool */ protected function isDesirable($value) diff --git a/src/Illuminate/Validation/Rules/File.php b/src/Illuminate/Validation/Rules/File.php index b7589853e9d2..9d85b71ad61b 100644 --- a/src/Illuminate/Validation/Rules/File.php +++ b/src/Illuminate/Validation/Rules/File.php @@ -209,7 +209,6 @@ public function max($size) * Convert a potentially human-friendly file size to kilobytes. * * @param string|int $size - * @return mixed */ protected function toKilobytes($size) { @@ -247,7 +246,6 @@ public function rules($rules) * Determine if the validation rule passes. * * @param string $attribute - * @param mixed $value * @return bool */ public function passes($attribute, $value) diff --git a/src/Illuminate/Validation/Rules/Numeric.php b/src/Illuminate/Validation/Rules/Numeric.php index 0adde2f98e3e..b42277d78aa7 100644 --- a/src/Illuminate/Validation/Rules/Numeric.php +++ b/src/Illuminate/Validation/Rules/Numeric.php @@ -18,8 +18,6 @@ class Numeric implements Stringable /** * The field under validation must have a size between the given min and max (inclusive). * - * @param int|float $min - * @param int|float $max * @return $this */ public function between(int|float $min, int|float $max): Numeric @@ -30,8 +28,6 @@ public function between(int|float $min, int|float $max): Numeric /** * The field under validation must contain the specified number of decimal places. * - * @param int $min - * @param int|null $max * @return $this */ public function decimal(int $min, ?int $max = null): Numeric @@ -48,7 +44,6 @@ public function decimal(int $min, ?int $max = null): Numeric /** * The field under validation must have a different value than field. * - * @param string $field * @return $this */ public function different(string $field): Numeric @@ -59,7 +54,6 @@ public function different(string $field): Numeric /** * The integer under validation must have an exact number of digits. * - * @param int $length * @return $this */ public function digits(int $length): Numeric @@ -70,8 +64,6 @@ public function digits(int $length): Numeric /** * The integer under validation must between the given min and max number of digits. * - * @param int $min - * @param int $max * @return $this */ public function digitsBetween(int $min, int $max): Numeric @@ -82,7 +74,6 @@ public function digitsBetween(int $min, int $max): Numeric /** * The field under validation must be greater than the given field or value. * - * @param string $field * @return $this */ public function greaterThan(string $field): Numeric @@ -93,7 +84,6 @@ public function greaterThan(string $field): Numeric /** * The field under validation must be greater than or equal to the given field or value. * - * @param string $field * @return $this */ public function greaterThanOrEqualTo(string $field): Numeric @@ -114,7 +104,6 @@ public function integer(): Numeric /** * The field under validation must be less than the given field. * - * @param string $field * @return $this */ public function lessThan(string $field): Numeric @@ -125,7 +114,6 @@ public function lessThan(string $field): Numeric /** * The field under validation must be less than or equal to the given field. * - * @param string $field * @return $this */ public function lessThanOrEqualTo(string $field): Numeric @@ -136,7 +124,6 @@ public function lessThanOrEqualTo(string $field): Numeric /** * The field under validation must be less than or equal to a maximum value. * - * @param int|float $value * @return $this */ public function max(int|float $value): Numeric @@ -147,7 +134,6 @@ public function max(int|float $value): Numeric /** * The integer under validation must have a maximum number of digits. * - * @param int $value * @return $this */ public function maxDigits(int $value): Numeric @@ -158,7 +144,6 @@ public function maxDigits(int $value): Numeric /** * The field under validation must have a minimum value. * - * @param int|float $value * @return $this */ public function min(int|float $value): Numeric @@ -169,7 +154,6 @@ public function min(int|float $value): Numeric /** * The integer under validation must have a minimum number of digits. * - * @param int $value * @return $this */ public function minDigits(int $value): Numeric @@ -180,7 +164,6 @@ public function minDigits(int $value): Numeric /** * The field under validation must be a multiple of the given value. * - * @param int|float $value * @return $this */ public function multipleOf(int|float $value): Numeric @@ -191,7 +174,6 @@ public function multipleOf(int|float $value): Numeric /** * The given field must match the field under validation. * - * @param string $field * @return $this */ public function same(string $field): Numeric @@ -202,7 +184,6 @@ public function same(string $field): Numeric /** * The field under validation must match the given value. * - * @param int $value * @return $this */ public function exactly(int $value): Numeric diff --git a/src/Illuminate/Validation/Rules/Password.php b/src/Illuminate/Validation/Rules/Password.php index 1c131149c54a..45c6a4343e51 100644 --- a/src/Illuminate/Validation/Rules/Password.php +++ b/src/Illuminate/Validation/Rules/Password.php @@ -302,7 +302,6 @@ public function rules($rules) * Determine if the validation rule passes. * * @param string $attribute - * @param mixed $value * @return bool */ public function passes($attribute, $value) diff --git a/src/Illuminate/Validation/Rules/Unique.php b/src/Illuminate/Validation/Rules/Unique.php index 519b66c5d5aa..e475ef496266 100644 --- a/src/Illuminate/Validation/Rules/Unique.php +++ b/src/Illuminate/Validation/Rules/Unique.php @@ -12,8 +12,6 @@ class Unique implements Stringable /** * The ID that should be ignored. - * - * @var mixed */ protected $ignore; @@ -27,7 +25,6 @@ class Unique implements Stringable /** * Ignore the given ID during the unique check. * - * @param mixed $id * @param string|null $idColumn * @return $this */ diff --git a/src/Illuminate/Validation/ValidatesWhenResolvedTrait.php b/src/Illuminate/Validation/ValidatesWhenResolvedTrait.php index 596585551d22..d09d4d4a217a 100644 --- a/src/Illuminate/Validation/ValidatesWhenResolvedTrait.php +++ b/src/Illuminate/Validation/ValidatesWhenResolvedTrait.php @@ -68,7 +68,6 @@ protected function passedValidation() /** * Handle a failed validation attempt. * - * @param \Illuminate\Validation\Validator $validator * @return void * * @throws \Illuminate\Validation\ValidationException diff --git a/src/Illuminate/Validation/ValidationException.php b/src/Illuminate/Validation/ValidationException.php index aacbfe8d6571..ae72a0dbdecc 100644 --- a/src/Illuminate/Validation/ValidationException.php +++ b/src/Illuminate/Validation/ValidationException.php @@ -62,7 +62,6 @@ public function __construct($validator, $response = null, $errorBag = 'default') /** * Create a new validation exception from a plain array of messages. * - * @param array $messages * @return static */ public static function withMessages(array $messages) diff --git a/src/Illuminate/Validation/ValidationRuleParser.php b/src/Illuminate/Validation/ValidationRuleParser.php index bf63a222c0dc..14c2d8beb522 100644 --- a/src/Illuminate/Validation/ValidationRuleParser.php +++ b/src/Illuminate/Validation/ValidationRuleParser.php @@ -33,8 +33,6 @@ class ValidationRuleParser /** * Create a new validation rule parser. - * - * @param array $data */ public function __construct(array $data) { @@ -83,7 +81,6 @@ protected function explodeRules($rules) /** * Explode the explicit rule into an array if necessary. * - * @param mixed $rule * @param string $attribute * @return array */ @@ -117,9 +114,7 @@ protected function explodeExplicitRule($rule, $attribute) /** * Prepare the given rule for the Validator. * - * @param mixed $rule * @param string $attribute - * @return mixed */ protected function prepareRule($rule, $attribute) { @@ -256,7 +251,6 @@ public static function parse($rule) /** * Parse an array based rule. * - * @param array $rule * @return array */ protected static function parseArrayRule(array $rule) @@ -328,7 +322,6 @@ protected static function normalizeRule($rule) * Expand the conditional rules in the given array of rules. * * @param array $rules - * @param array $data * @return array */ public static function filterConditionalRules($rules, array $data = []) diff --git a/src/Illuminate/Validation/Validator.php b/src/Illuminate/Validation/Validator.php index 30ffb9f95485..e00ca74a915d 100755 --- a/src/Illuminate/Validation/Validator.php +++ b/src/Illuminate/Validation/Validator.php @@ -329,12 +329,6 @@ class Validator implements ValidatorContract /** * Create a new Validator instance. - * - * @param \Illuminate\Contracts\Translation\Translator $translator - * @param array $data - * @param array $rules - * @param array $messages - * @param array $attributes */ public function __construct( Translator $translator, @@ -359,7 +353,6 @@ public function __construct( /** * Parse the data array, converting dots and asterisks. * - * @param array $data * @return array */ public function parseData(array $data) @@ -405,7 +398,6 @@ protected function replacePlaceholders($data) /** * Replace the placeholders in the given string. * - * @param string $value * @return string */ protected function replacePlaceholderInString(string $value) @@ -420,7 +412,6 @@ protected function replacePlaceholderInString(string $value) /** * Replace each field parameter dot placeholder with dot. * - * @param array $parameters * @return array */ protected function replaceDotPlaceholderInParameters(array $parameters) @@ -562,7 +553,6 @@ public function validate() /** * Run the validator's rules against its data. * - * @param string $errorBag * @return array * * @throws \Illuminate\Validation\ValidationException @@ -581,7 +571,6 @@ public function validateWithBag(string $errorBag) /** * Get a validated input container for the validated input. * - * @param array|null $keys * @return \Illuminate\Support\ValidatedInput|array */ public function safe(?array $keys = null) @@ -741,7 +730,6 @@ protected function getPrimaryAttribute($attribute) /** * Replace each field parameter which has an escaped dot with the dot placeholder. * - * @param array $parameters * @return array */ protected function replaceDotInParameters(array $parameters) @@ -754,8 +742,6 @@ protected function replaceDotInParameters(array $parameters) /** * Replace each field parameter which has asterisks with the given keys. * - * @param array $parameters - * @param array $keys * @return array */ protected function replaceAsterisksInParameters(array $parameters, array $keys) @@ -770,7 +756,6 @@ protected function replaceAsterisksInParameters(array $parameters, array $keys) * * @param object|string $rule * @param string $attribute - * @param mixed $value * @return bool */ protected function isValidatable($rule, $attribute, $value) @@ -790,7 +775,6 @@ protected function isValidatable($rule, $attribute, $value) * * @param object|string $rule * @param string $attribute - * @param mixed $value * @return bool */ protected function presentOrRuleIsImplicit($rule, $attribute, $value) @@ -867,7 +851,6 @@ protected function hasNotFailedPreviousRuleIfPresenceRule($rule, $attribute) * Validate an attribute using a custom rule object. * * @param string $attribute - * @param mixed $value * @param \Illuminate\Contracts\Validation\Rule $rule * @return void */ @@ -982,7 +965,6 @@ public function addFailure($attribute, $rule, $parameters = []) /** * Add the given attribute to the list of excluded attributes. * - * @param string $attribute * @return void */ protected function excludeAttribute(string $attribute) @@ -1151,7 +1133,6 @@ public function getData() /** * Set the data under validation. * - * @param array $data * @return $this */ public function setData(array $data) @@ -1167,7 +1148,6 @@ public function setData(array $data) * Get the value of a given attribute. * * @param string $attribute - * @return mixed */ public function getValue($attribute) { @@ -1178,7 +1158,6 @@ public function getValue($attribute) * Set the value of a given attribute. * * @param string $attribute - * @param mixed $value * @return void */ public function setValue($attribute, $value) @@ -1213,7 +1192,6 @@ public function getRulesWithoutPlaceholders() /** * Set the validation rules. * - * @param array $rules * @return $this */ public function setRules(array $rules) @@ -1261,7 +1239,6 @@ public function addRules($rules) * * @param string|array $attribute * @param string|array $rules - * @param callable $callback * @return $this */ public function sometimes($attribute, $rules, callable $callback) @@ -1286,8 +1263,6 @@ public function sometimes($attribute, $rules, callable $callback) /** * Get the data that should be injected into the iteration of a wildcard "sometimes" callback. * - * @param string $attribute - * @param bool $removeLastSegmentOfAttribute * @return \Illuminate\Support\Fluent|mixed */ private function dataForSometimesIteration(string $attribute, bool $removeLastSegmentOfAttribute) @@ -1319,7 +1294,6 @@ public function stopOnFirstFailure($stopOnFirstFailure = true) /** * Register an array of custom validator extensions. * - * @param array $extensions * @return void */ public function addExtensions(array $extensions) @@ -1336,7 +1310,6 @@ public function addExtensions(array $extensions) /** * Register an array of custom implicit validator extensions. * - * @param array $extensions * @return void */ public function addImplicitExtensions(array $extensions) @@ -1351,7 +1324,6 @@ public function addImplicitExtensions(array $extensions) /** * Register an array of custom dependent validator extensions. * - * @param array $extensions * @return void */ public function addDependentExtensions(array $extensions) @@ -1406,7 +1378,6 @@ public function addDependentExtension($rule, $extension) /** * Register an array of custom validator message replacers. * - * @param array $replacers * @return void */ public function addReplacers(array $replacers) @@ -1435,7 +1406,6 @@ public function addReplacer($rule, $replacer) /** * Set the custom messages for the validator. * - * @param array $messages * @return $this */ public function setCustomMessages(array $messages) @@ -1448,7 +1418,6 @@ public function setCustomMessages(array $messages) /** * Set the custom attributes on the validator. * - * @param array $attributes * @return $this */ public function setAttributeNames(array $attributes) @@ -1461,7 +1430,6 @@ public function setAttributeNames(array $attributes) /** * Add custom attributes to the validator. * - * @param array $attributes * @return $this */ public function addCustomAttributes(array $attributes) @@ -1474,7 +1442,6 @@ public function addCustomAttributes(array $attributes) /** * Set the callback that used to format an implicit attribute. * - * @param callable|null $formatter * @return $this */ public function setImplicitAttributesFormatter(?callable $formatter = null) @@ -1487,7 +1454,6 @@ public function setImplicitAttributesFormatter(?callable $formatter = null) /** * Set the custom values on the validator. * - * @param array $values * @return $this */ public function setValueNames(array $values) @@ -1500,7 +1466,6 @@ public function setValueNames(array $values) /** * Add the custom values for the validator. * - * @param array $customValues * @return $this */ public function addCustomValues(array $customValues) @@ -1513,7 +1478,6 @@ public function addCustomValues(array $customValues) /** * Set the fallback messages for the validator. * - * @param array $messages * @return void */ public function setFallbackMessages(array $messages) @@ -1545,7 +1509,6 @@ public function getPresenceVerifier($connection = null) /** * Set the Presence Verifier implementation. * - * @param \Illuminate\Validation\PresenceVerifierInterface $presenceVerifier * @return void */ public function setPresenceVerifier(PresenceVerifierInterface $presenceVerifier) @@ -1610,7 +1573,6 @@ public function getTranslator() /** * Set the Translator implementation. * - * @param \Illuminate\Contracts\Translation\Translator $translator * @return void */ public function setTranslator(Translator $translator) @@ -1621,7 +1583,6 @@ public function setTranslator(Translator $translator) /** * Set the IoC container instance. * - * @param \Illuminate\Contracts\Container\Container $container * @return void */ public function setContainer(Container $container) @@ -1666,7 +1627,6 @@ protected function callClassBasedExtension($callback, $parameters) * * @param string $method * @param array $parameters - * @return mixed * * @throws \BadMethodCallException */ diff --git a/src/Illuminate/View/AppendableAttributeValue.php b/src/Illuminate/View/AppendableAttributeValue.php index 35609f26f717..5a6db55bb8f5 100644 --- a/src/Illuminate/View/AppendableAttributeValue.php +++ b/src/Illuminate/View/AppendableAttributeValue.php @@ -8,15 +8,11 @@ class AppendableAttributeValue implements Stringable { /** * The attribute value. - * - * @var mixed */ public $value; /** * Create a new appendable attribute value. - * - * @param mixed $value */ public function __construct($value) { diff --git a/src/Illuminate/View/Compilers/BladeCompiler.php b/src/Illuminate/View/Compilers/BladeCompiler.php index d63cc7bce0d5..4cbd0162705d 100644 --- a/src/Illuminate/View/Compilers/BladeCompiler.php +++ b/src/Illuminate/View/Compilers/BladeCompiler.php @@ -359,7 +359,6 @@ public function render() /** * Render a component instance to HTML. * - * @param \Illuminate\View\Component $component * @return string */ public static function renderComponent(Component $component) @@ -615,7 +614,6 @@ protected function replaceFirstStatement($search, $replace, $subject, $offset) /** * Determine if the given expression has the same number of opening and closing parentheses. * - * @param string $expression * @return bool */ protected function hasEvenNumberOfParentheses(string $expression) @@ -697,7 +695,6 @@ public function stripParentheses($expression) /** * Register a custom Blade compiler. * - * @param callable $compiler * @return void */ public function extend(callable $compiler) @@ -719,7 +716,6 @@ public function getExtensions() * Register an "if" statement directive. * * @param string $name - * @param callable $callback * @return void */ public function if($name, callable $callback) @@ -753,7 +749,6 @@ public function if($name, callable $callback) * Check the result of a condition. * * @param string $name - * @param mixed ...$parameters * @return bool */ public function check($name, ...$parameters) @@ -793,7 +788,6 @@ public function component($class, $alias = null, $prefix = '') /** * Register an array of class-based components. * - * @param array $components * @param string $prefix * @return void */ @@ -821,8 +815,6 @@ public function getClassComponentAliases() /** * Register a new anonymous component path. * - * @param string $path - * @param string|null $prefix * @return void */ public function anonymousComponentPath(string $path, ?string $prefix = null) @@ -843,8 +835,6 @@ public function anonymousComponentPath(string $path, ?string $prefix = null) /** * Register an anonymous component namespace. * - * @param string $directory - * @param string|null $prefix * @return void */ public function anonymousComponentNamespace(string $directory, ?string $prefix = null) @@ -955,7 +945,6 @@ public function aliasInclude($path, $alias = null) * Register a handler for custom directives, binding the handler to the compiler. * * @param string $name - * @param callable $handler * @return void * * @throws \InvalidArgumentException @@ -969,8 +958,6 @@ public function bindDirective($name, callable $handler) * Register a handler for custom directives. * * @param string $name - * @param callable $handler - * @param bool $bind * @return void * * @throws \InvalidArgumentException @@ -997,7 +984,6 @@ public function getCustomDirectives() /** * Indicate that the following callable should be used to prepare strings for compilation. * - * @param callable $callback * @return $this */ public function prepareStringsForCompilationUsing(callable $callback) @@ -1010,7 +996,6 @@ public function prepareStringsForCompilationUsing(callable $callback) /** * Register a new precompiler. * - * @param callable $precompiler * @return void */ public function precompiler(callable $precompiler) @@ -1022,7 +1007,6 @@ public function precompiler(callable $precompiler) * Execute the given callback using a custom echo format. * * @param string $format - * @param callable $callback * @return string */ public function usingEchoFormat($format, callable $callback) diff --git a/src/Illuminate/View/Compilers/Compiler.php b/src/Illuminate/View/Compilers/Compiler.php index 1e61eae95932..fe6c8ada6e57 100755 --- a/src/Illuminate/View/Compilers/Compiler.php +++ b/src/Illuminate/View/Compilers/Compiler.php @@ -54,7 +54,6 @@ abstract class Compiler /** * Create a new compiler instance. * - * @param \Illuminate\Filesystem\Filesystem $files * @param string $cachePath * @param string $basePath * @param bool $shouldCache diff --git a/src/Illuminate/View/Compilers/ComponentTagCompiler.php b/src/Illuminate/View/Compilers/ComponentTagCompiler.php index 4a04965f3a8b..a5729132b295 100644 --- a/src/Illuminate/View/Compilers/ComponentTagCompiler.php +++ b/src/Illuminate/View/Compilers/ComponentTagCompiler.php @@ -50,10 +50,6 @@ class ComponentTagCompiler /** * Create a new component tag compiler. - * - * @param array $aliases - * @param array $namespaces - * @param \Illuminate\View\Compilers\BladeCompiler|null $blade */ public function __construct(array $aliases = [], array $namespaces = [], ?BladeCompiler $blade = null) { @@ -66,7 +62,6 @@ public function __construct(array $aliases = [], array $namespaces = [], ?BladeC /** * Compile the component and slot tags within the given string. * - * @param string $value * @return string */ public function compile(string $value) @@ -79,7 +74,6 @@ public function compile(string $value) /** * Compile the tags within the given string. * - * @param string $value * @return string * * @throws \InvalidArgumentException @@ -96,7 +90,6 @@ public function compileTags(string $value) /** * Compile the opening tags within the given string. * - * @param string $value * @return string * * @throws \InvalidArgumentException @@ -160,7 +153,6 @@ protected function compileOpeningTags(string $value) /** * Compile the self-closing tags within the given string. * - * @param string $value * @return string * * @throws \InvalidArgumentException @@ -224,8 +216,6 @@ protected function compileSelfClosingTags(string $value) /** * Compile the Blade component string for the given component and attributes. * - * @param string $component - * @param array $attributes * @return string * * @throws \InvalidArgumentException @@ -268,7 +258,6 @@ protected function componentString(string $component, array $attributes) /** * Get the component class for a given component alias. * - * @param string $component * @return string * * @throws \InvalidArgumentException @@ -320,8 +309,6 @@ public function componentClass(string $component) /** * Attempt to find an anonymous component using the registered anonymous component paths. * - * @param \Illuminate\Contracts\View\Factory $viewFactory - * @param string $component * @return string|null */ protected function guessAnonymousComponentUsingPaths(Factory $viewFactory, string $component) @@ -356,8 +343,6 @@ protected function guessAnonymousComponentUsingPaths(Factory $viewFactory, strin /** * Attempt to find an anonymous component using the registered anonymous component namespaces. * - * @param \Illuminate\Contracts\View\Factory $viewFactory - * @param string $component * @return string|null */ protected function guessAnonymousComponentUsingNamespaces(Factory $viewFactory, string $component) @@ -393,7 +378,6 @@ protected function guessAnonymousComponentUsingNamespaces(Factory $viewFactory, /** * Find the class for the given component using the registered namespaces. * - * @param string $component * @return string|null */ public function findClassByComponent(string $component) @@ -418,7 +402,6 @@ public function findClassByComponent(string $component) /** * Guess the class name for the given component. * - * @param string $component * @return string */ public function guessClassName(string $component) @@ -435,7 +418,6 @@ public function guessClassName(string $component) /** * Format the class name for the given component. * - * @param string $component * @return string */ public function formatClassName(string $component) @@ -473,7 +455,6 @@ public function guessViewName($name, $prefix = 'components.') * Partition the data and extra attributes from the given array of attributes. * * @param string $class - * @param array $attributes * @return array */ public function partitionDataAndAttributes($class, array $attributes) @@ -499,7 +480,6 @@ public function partitionDataAndAttributes($class, array $attributes) /** * Compile the closing tags within the given string. * - * @param string $value * @return string */ protected function compileClosingTags(string $value) @@ -510,7 +490,6 @@ protected function compileClosingTags(string $value) /** * Compile the slot tags within the given string. * - * @param string $value * @return string */ public function compileSlots(string $value) @@ -591,7 +570,6 @@ public function compileSlots(string $value) /** * Get an array of attributes from the given attribute string. * - * @param string $attributeString * @return array */ protected function getAttributesFromAttributeString(string $attributeString) @@ -653,7 +631,6 @@ protected function getAttributesFromAttributeString(string $attributeString) /** * Parses a short attribute syntax like :$foo into a fully-qualified syntax like :foo="$foo". * - * @param string $value * @return string */ protected function parseShortAttributeSyntax(string $value) @@ -668,7 +645,6 @@ protected function parseShortAttributeSyntax(string $value) /** * Parse the attribute bag in a given attribute string into its fully-qualified syntax. * - * @param string $attributeString * @return string */ protected function parseAttributeBag(string $attributeString) @@ -684,7 +660,6 @@ protected function parseAttributeBag(string $attributeString) /** * Parse @class statements in a given attribute string into their fully-qualified syntax. * - * @param string $attributeString * @return string */ protected function parseComponentTagClassStatements(string $attributeString) @@ -705,7 +680,6 @@ protected function parseComponentTagClassStatements(string $attributeString) /** * Parse @style statements in a given attribute string into their fully-qualified syntax. * - * @param string $attributeString * @return string */ protected function parseComponentTagStyleStatements(string $attributeString) @@ -726,7 +700,6 @@ protected function parseComponentTagStyleStatements(string $attributeString) /** * Parse the "bind" attributes in a given attribute string into their fully-qualified syntax. * - * @param string $attributeString * @return string */ protected function parseBindAttributes(string $attributeString) @@ -746,7 +719,6 @@ protected function parseBindAttributes(string $attributeString) * * These echo statements need to be converted to string concatenation statements. * - * @param string $attributeString * @return string */ protected function compileAttributeEchos(string $attributeString) @@ -764,7 +736,6 @@ protected function compileAttributeEchos(string $attributeString) /** * Escape the single quotes in the given string that are outside of PHP blocks. * - * @param string $value * @return string */ protected function escapeSingleQuotesOutsideOfPhpBlocks(string $value) @@ -783,7 +754,6 @@ protected function escapeSingleQuotesOutsideOfPhpBlocks(string $value) /** * Convert an array of attributes to a string. * - * @param array $attributes * @param bool $escapeBound * @return string */ @@ -801,7 +771,6 @@ protected function attributesToString(array $attributes, $escapeBound = true) /** * Strip any quotes from the given string. * - * @param string $value * @return string */ public function stripQuotes(string $value) diff --git a/src/Illuminate/View/Compilers/Concerns/CompilesComponents.php b/src/Illuminate/View/Compilers/Concerns/CompilesComponents.php index 79336088f5b5..c349b7929e1b 100644 --- a/src/Illuminate/View/Compilers/Concerns/CompilesComponents.php +++ b/src/Illuminate/View/Compilers/Concerns/CompilesComponents.php @@ -44,7 +44,6 @@ protected function compileComponent($expression) /** * Get a new component hash for a component name. * - * @param string $component * @return string */ public static function newComponentHash(string $component) @@ -57,10 +56,6 @@ public static function newComponentHash(string $component) /** * Compile a class component opening. * - * @param string $component - * @param string $alias - * @param string $data - * @param string $hash * @return string */ public static function compileClassComponentOpening(string $component, string $alias, string $data, string $hash) @@ -204,9 +199,6 @@ protected function compileAware($expression) /** * Sanitize the given component attribute value. - * - * @param mixed $value - * @return mixed */ public static function sanitizeComponentAttribute($value) { diff --git a/src/Illuminate/View/Compilers/Concerns/CompilesJs.php b/src/Illuminate/View/Compilers/Concerns/CompilesJs.php index 3104057dfc52..84bda2c1fd1b 100644 --- a/src/Illuminate/View/Compilers/Concerns/CompilesJs.php +++ b/src/Illuminate/View/Compilers/Concerns/CompilesJs.php @@ -9,7 +9,6 @@ trait CompilesJs /** * Compile the "@js" directive into valid PHP. * - * @param string $expression * @return string */ protected function compileJs(string $expression) diff --git a/src/Illuminate/View/Component.php b/src/Illuminate/View/Component.php index 4e67b9a897bd..4f3dc7a7ba27 100644 --- a/src/Illuminate/View/Component.php +++ b/src/Illuminate/View/Component.php @@ -281,9 +281,6 @@ protected function extractPublicMethods() /** * Create a callable variable from the given method. - * - * @param \ReflectionMethod $method - * @return mixed */ protected function createVariableFromMethod(ReflectionMethod $method) { @@ -295,7 +292,6 @@ protected function createVariableFromMethod(ReflectionMethod $method) /** * Create an invokable, toStringable variable for the given component method. * - * @param string $method * @return \Illuminate\View\InvokableComponentVariable */ protected function createInvokableVariable(string $method) @@ -356,7 +352,6 @@ public function withName($name) /** * Set the extra attributes that the component should make available. * - * @param array $attributes * @return $this */ public function withAttributes(array $attributes) @@ -371,7 +366,6 @@ public function withAttributes(array $attributes) /** * Get a new attribute bag instance. * - * @param array $attributes * @return \Illuminate\View\ComponentAttributeBag */ protected function newAttributeBag(array $attributes = []) diff --git a/src/Illuminate/View/ComponentAttributeBag.php b/src/Illuminate/View/ComponentAttributeBag.php index 607f4d134301..fb54a359e492 100644 --- a/src/Illuminate/View/ComponentAttributeBag.php +++ b/src/Illuminate/View/ComponentAttributeBag.php @@ -31,8 +31,6 @@ class ComponentAttributeBag implements Arrayable, ArrayAccess, IteratorAggregate /** * Create a new component attribute bag instance. - * - * @param array $attributes */ public function __construct(array $attributes = []) { @@ -42,7 +40,6 @@ public function __construct(array $attributes = []) /** * Get all the attribute values. * - * @param mixed $keys * @return array */ public function all($keys = null) @@ -56,9 +53,6 @@ public function all($keys = null) /** * Get the first attribute's value. - * - * @param mixed $default - * @return mixed */ public function first($default = null) { @@ -69,8 +63,6 @@ public function first($default = null) * Get a given attribute from the attribute array. * * @param string $key - * @param mixed $default - * @return mixed */ public function get($key, $default = null) { @@ -81,8 +73,6 @@ public function get($key, $default = null) * Retrieve data from the instance. * * @param string|null $key - * @param mixed $default - * @return mixed */ protected function data($key = null, $default = null) { @@ -96,7 +86,6 @@ protected function data($key = null, $default = null) /** * Only include the given attribute from the attribute array. * - * @param mixed $keys * @return static */ public function only($keys) @@ -115,7 +104,6 @@ public function only($keys) /** * Exclude the given attribute from the attribute array. * - * @param mixed $keys * @return static */ public function except($keys) @@ -182,7 +170,6 @@ public function thatStartWith($needles) /** * Only include the given attribute from the attribute array. * - * @param mixed $keys * @return static */ public function onlyProps($keys) @@ -193,7 +180,6 @@ public function onlyProps($keys) /** * Exclude the given attribute from the attribute array. * - * @param mixed $keys * @return static */ public function exceptProps($keys) @@ -204,7 +190,6 @@ public function exceptProps($keys) /** * Conditionally merge classes into the attribute bag. * - * @param mixed $classList * @return static */ public function class($classList) @@ -217,7 +202,6 @@ public function class($classList) /** * Conditionally merge styles into the attribute bag. * - * @param mixed $styleList * @return static */ public function style($styleList) @@ -230,7 +214,6 @@ public function style($styleList) /** * Merge additional attributes / values into the attribute bag. * - * @param array $attributeDefaults * @param bool $escape * @return static */ @@ -269,7 +252,6 @@ public function merge(array $attributeDefaults = [], $escape = true) * Determine if the specific attribute value should be escaped. * * @param bool $escape - * @param mixed $value * @return bool */ protected function shouldEscapeAttributeValue($escape, $value) @@ -286,7 +268,6 @@ protected function shouldEscapeAttributeValue($escape, $value) /** * Create a new appendable attribute value. * - * @param mixed $value * @return \Illuminate\View\AppendableAttributeValue */ public function prepends($value) @@ -300,7 +281,6 @@ public function prepends($value) * @param array $attributeDefaults * @param string $key * @param bool $escape - * @return mixed */ protected function resolveAppendableAttributeDefault($attributeDefaults, $key, $escape) { @@ -344,7 +324,6 @@ public function getAttributes() /** * Set the underlying attributes. * - * @param array $attributes * @return void */ public function setAttributes(array $attributes) @@ -364,7 +343,6 @@ public function setAttributes(array $attributes) /** * Extract "prop" names from given keys. * - * @param array $keys * @return array */ public static function extractPropNames(array $keys) @@ -394,7 +372,6 @@ public function toHtml() /** * Merge additional attributes / values into the attribute bag. * - * @param array $attributeDefaults * @return \Illuminate\Support\HtmlString */ public function __invoke(array $attributeDefaults = []) @@ -406,7 +383,6 @@ public function __invoke(array $attributeDefaults = []) * Determine if the given offset exists. * * @param string $offset - * @return bool */ public function offsetExists($offset): bool { @@ -417,7 +393,6 @@ public function offsetExists($offset): bool * Get the value at the given offset. * * @param string $offset - * @return mixed */ public function offsetGet($offset): mixed { @@ -428,8 +403,6 @@ public function offsetGet($offset): mixed * Set the value at a given offset. * * @param string $offset - * @param mixed $value - * @return void */ public function offsetSet($offset, $value): void { @@ -440,7 +413,6 @@ public function offsetSet($offset, $value): void * Remove the value at the given offset. * * @param string $offset - * @return void */ public function offsetUnset($offset): void { @@ -459,8 +431,6 @@ public function getIterator(): Traversable /** * Convert the object into a JSON serializable form. - * - * @return mixed */ public function jsonSerialize(): mixed { diff --git a/src/Illuminate/View/ComponentSlot.php b/src/Illuminate/View/ComponentSlot.php index 3a3ecd2e5a17..34dee6f37f38 100644 --- a/src/Illuminate/View/ComponentSlot.php +++ b/src/Illuminate/View/ComponentSlot.php @@ -38,7 +38,6 @@ public function __construct($contents = '', $attributes = []) /** * Set the extra attributes that the slot should make available. * - * @param array $attributes * @return $this */ public function withAttributes(array $attributes) @@ -81,7 +80,6 @@ public function isNotEmpty() /** * Determine if the slot has non-comment content. * - * @param callable|string|null $callable * @return bool */ public function hasActualContent(callable|string|null $callable = null) diff --git a/src/Illuminate/View/Concerns/ManagesComponents.php b/src/Illuminate/View/Concerns/ManagesComponents.php index c0a529c02203..1f9021dda296 100644 --- a/src/Illuminate/View/Concerns/ManagesComponents.php +++ b/src/Illuminate/View/Concerns/ManagesComponents.php @@ -48,7 +48,6 @@ trait ManagesComponents * Start a component rendering process. * * @param \Illuminate\Contracts\View\View|\Illuminate\Contracts\Support\Htmlable|\Closure|string $view - * @param array $data * @return void */ public function startComponent($view, array $data = []) @@ -65,8 +64,6 @@ public function startComponent($view, array $data = []) /** * Get the first view that actually exists from the given list, and start a component. * - * @param array $names - * @param array $data * @return void */ public function startComponentFirst(array $names, array $data = []) @@ -132,8 +129,6 @@ protected function componentData() * Get an item from the component data that exists above the current component. * * @param string $key - * @param mixed $default - * @return mixed */ public function getConsumableComponentData($key, $default = null) { diff --git a/src/Illuminate/View/Concerns/ManagesEvents.php b/src/Illuminate/View/Concerns/ManagesEvents.php index 7ad3c689d00e..85031be617be 100644 --- a/src/Illuminate/View/Concerns/ManagesEvents.php +++ b/src/Illuminate/View/Concerns/ManagesEvents.php @@ -29,7 +29,6 @@ public function creator($views, $callback) /** * Register multiple view composers via an array. * - * @param array $composers * @return array */ public function composers(array $composers) @@ -169,7 +168,6 @@ protected function addEventListener($name, $callback) /** * Call the composer for a given view. * - * @param \Illuminate\Contracts\View\View $view * @return void */ public function callComposer(ViewContract $view) @@ -182,7 +180,6 @@ public function callComposer(ViewContract $view) /** * Call the creator for a given view. * - * @param \Illuminate\Contracts\View\View $view * @return void */ public function callCreator(ViewContract $view) diff --git a/src/Illuminate/View/Concerns/ManagesFragments.php b/src/Illuminate/View/Concerns/ManagesFragments.php index 7273da64a5f2..46b74eecf32b 100644 --- a/src/Illuminate/View/Concerns/ManagesFragments.php +++ b/src/Illuminate/View/Concerns/ManagesFragments.php @@ -58,7 +58,6 @@ public function stopFragment() * * @param string $name * @param string|null $default - * @return mixed */ public function getFragment($name, $default = null) { diff --git a/src/Illuminate/View/Concerns/ManagesLayouts.php b/src/Illuminate/View/Concerns/ManagesLayouts.php index 38cc56c7d5ac..3f112149dfec 100644 --- a/src/Illuminate/View/Concerns/ManagesLayouts.php +++ b/src/Illuminate/View/Concerns/ManagesLayouts.php @@ -24,8 +24,6 @@ trait ManagesLayouts /** * The parent placeholder for the request. - * - * @var mixed */ protected static $parentPlaceholder = []; @@ -225,7 +223,6 @@ public function sectionMissing($name) * * @param string $name * @param string|null $default - * @return mixed */ public function getSection($name, $default = null) { diff --git a/src/Illuminate/View/DynamicComponent.php b/src/Illuminate/View/DynamicComponent.php index b34d3759d086..f0ca3f38b8a4 100644 --- a/src/Illuminate/View/DynamicComponent.php +++ b/src/Illuminate/View/DynamicComponent.php @@ -32,8 +32,6 @@ class DynamicComponent extends Component /** * Create a new component instance. - * - * @param string $component */ public function __construct(string $component) { @@ -84,7 +82,6 @@ class_exists($class) ? '{{ $attributes }}' : '', /** * Compile the @props directive for the component. * - * @param array $bindings * @return string */ protected function compileProps(array $bindings) @@ -101,7 +98,6 @@ protected function compileProps(array $bindings) /** * Compile the bindings for the component. * - * @param array $bindings * @return string */ protected function compileBindings(array $bindings) @@ -114,7 +110,6 @@ protected function compileBindings(array $bindings) /** * Compile the slots for the component. * - * @param array $slots * @return string */ protected function compileSlots(array $slots) @@ -143,7 +138,6 @@ protected function classForComponent() /** * Get the names of the variables that should be bound to the component. * - * @param string $class * @return array */ protected function bindings(string $class) diff --git a/src/Illuminate/View/Engines/CompilerEngine.php b/src/Illuminate/View/Engines/CompilerEngine.php index 6cc4e5282267..5e22ebc9929b 100755 --- a/src/Illuminate/View/Engines/CompilerEngine.php +++ b/src/Illuminate/View/Engines/CompilerEngine.php @@ -37,9 +37,6 @@ class CompilerEngine extends PhpEngine /** * Create a new compiler engine instance. - * - * @param \Illuminate\View\Compilers\CompilerInterface $compiler - * @param \Illuminate\Filesystem\Filesystem|null $files */ public function __construct(CompilerInterface $compiler, ?Filesystem $files = null) { @@ -52,7 +49,6 @@ public function __construct(CompilerInterface $compiler, ?Filesystem $files = nu * Get the evaluated contents of the view. * * @param string $path - * @param array $data * @return string * * @throws \Illuminate\View\ViewException @@ -98,7 +94,6 @@ public function get($path, array $data = []) /** * Handle a view exception. * - * @param \Throwable $e * @param int $obLevel * @return void * @@ -121,7 +116,6 @@ protected function handleViewException(Throwable $e, $obLevel) /** * Get the exception message for an exception. * - * @param \Throwable $e * @return string */ protected function getMessage(Throwable $e) diff --git a/src/Illuminate/View/Engines/EngineResolver.php b/src/Illuminate/View/Engines/EngineResolver.php index 674040770be2..87f49d94d06c 100755 --- a/src/Illuminate/View/Engines/EngineResolver.php +++ b/src/Illuminate/View/Engines/EngineResolver.php @@ -27,7 +27,6 @@ class EngineResolver * The engine string typically corresponds to a file extension. * * @param string $engine - * @param \Closure $resolver * @return void */ public function register($engine, Closure $resolver) diff --git a/src/Illuminate/View/Engines/FileEngine.php b/src/Illuminate/View/Engines/FileEngine.php index 65cf2d06924c..b3e18159b5bf 100644 --- a/src/Illuminate/View/Engines/FileEngine.php +++ b/src/Illuminate/View/Engines/FileEngine.php @@ -16,8 +16,6 @@ class FileEngine implements Engine /** * Create a new file engine instance. - * - * @param \Illuminate\Filesystem\Filesystem $files */ public function __construct(Filesystem $files) { @@ -28,7 +26,6 @@ public function __construct(Filesystem $files) * Get the evaluated contents of the view. * * @param string $path - * @param array $data * @return string */ public function get($path, array $data = []) diff --git a/src/Illuminate/View/Engines/PhpEngine.php b/src/Illuminate/View/Engines/PhpEngine.php index 617fbd8c7245..3a8e5325ef5c 100755 --- a/src/Illuminate/View/Engines/PhpEngine.php +++ b/src/Illuminate/View/Engines/PhpEngine.php @@ -17,8 +17,6 @@ class PhpEngine implements Engine /** * Create a new file engine instance. - * - * @param \Illuminate\Filesystem\Filesystem $files */ public function __construct(Filesystem $files) { @@ -29,7 +27,6 @@ public function __construct(Filesystem $files) * Get the evaluated contents of the view. * * @param string $path - * @param array $data * @return string */ public function get($path, array $data = []) @@ -65,7 +62,6 @@ protected function evaluatePath($path, $data) /** * Handle a view exception. * - * @param \Throwable $e * @param int $obLevel * @return void * diff --git a/src/Illuminate/View/Factory.php b/src/Illuminate/View/Factory.php index da559f184871..eb5cddbe8c25 100755 --- a/src/Illuminate/View/Factory.php +++ b/src/Illuminate/View/Factory.php @@ -106,10 +106,6 @@ class Factory implements FactoryContract /** * Create a new view factory instance. - * - * @param \Illuminate\View\Engines\EngineResolver $engines - * @param \Illuminate\View\ViewFinderInterface $finder - * @param \Illuminate\Contracts\Events\Dispatcher $events */ public function __construct(EngineResolver $engines, ViewFinderInterface $finder, Dispatcher $events) { @@ -164,7 +160,6 @@ public function make($view, $data = [], $mergeData = []) /** * Get the first view that actually exists from the given list. * - * @param array $views * @param \Illuminate\Contracts\Support\Arrayable|array $data * @param array $mergeData * @return \Illuminate\Contracts\View\View @@ -266,7 +261,6 @@ protected function normalizeName($name) /** * Parse the given data into a raw array. * - * @param mixed $data * @return array */ protected function parseData($data) @@ -346,8 +340,6 @@ protected function getExtension($path) * Add a piece of shared data to the environment. * * @param array|string $key - * @param mixed $value - * @return mixed */ public function share($key, $value = null) { @@ -393,7 +385,6 @@ public function doneRendering() /** * Determine if the given once token has been rendered. * - * @param string $id * @return bool */ public function hasRenderedOnce(string $id) @@ -404,7 +395,6 @@ public function hasRenderedOnce(string $id) /** * Mark the given once token as having been rendered. * - * @param string $id * @return void */ public function markAsRenderedOnce(string $id) @@ -560,7 +550,6 @@ public function getFinder() /** * Set the view finder instance. * - * @param \Illuminate\View\ViewFinderInterface $finder * @return void */ public function setFinder(ViewFinderInterface $finder) @@ -591,7 +580,6 @@ public function getDispatcher() /** * Set the event dispatcher instance. * - * @param \Illuminate\Contracts\Events\Dispatcher $events * @return void */ public function setDispatcher(Dispatcher $events) @@ -612,7 +600,6 @@ public function getContainer() /** * Set the IoC container instance. * - * @param \Illuminate\Contracts\Container\Container $container * @return void */ public function setContainer(Container $container) @@ -624,8 +611,6 @@ public function setContainer(Container $container) * Get an item from the shared data. * * @param string $key - * @param mixed $default - * @return mixed */ public function shared($key, $default = null) { diff --git a/src/Illuminate/View/FileViewFinder.php b/src/Illuminate/View/FileViewFinder.php index b29c0088e3c2..300e76d705fb 100755 --- a/src/Illuminate/View/FileViewFinder.php +++ b/src/Illuminate/View/FileViewFinder.php @@ -45,7 +45,6 @@ class FileViewFinder implements ViewFinderInterface /** * Create a new file view loader instance. * - * @param \Illuminate\Filesystem\Filesystem $files * @param string[] $paths * @param string[]|null $extensions */ diff --git a/src/Illuminate/View/InvokableComponentVariable.php b/src/Illuminate/View/InvokableComponentVariable.php index e9963b9ea96b..747b4dedcd26 100644 --- a/src/Illuminate/View/InvokableComponentVariable.php +++ b/src/Illuminate/View/InvokableComponentVariable.php @@ -21,8 +21,6 @@ class InvokableComponentVariable implements DeferringDisplayableValue, IteratorA /** * Create a new variable instance. - * - * @param \Closure $callable */ public function __construct(Closure $callable) { @@ -55,7 +53,6 @@ public function getIterator(): Traversable * Dynamically proxy attribute access to the variable. * * @param string $key - * @return mixed */ public function __get($key) { @@ -67,7 +64,6 @@ public function __get($key) * * @param string $method * @param array $parameters - * @return mixed */ public function __call($method, $parameters) { @@ -76,8 +72,6 @@ public function __call($method, $parameters) /** * Resolve the variable. - * - * @return mixed */ public function __invoke() { diff --git a/src/Illuminate/View/Middleware/ShareErrorsFromSession.php b/src/Illuminate/View/Middleware/ShareErrorsFromSession.php index 6c99a87ed17e..154ef67d54d0 100644 --- a/src/Illuminate/View/Middleware/ShareErrorsFromSession.php +++ b/src/Illuminate/View/Middleware/ShareErrorsFromSession.php @@ -17,8 +17,6 @@ class ShareErrorsFromSession /** * Create a new error binder instance. - * - * @param \Illuminate\Contracts\View\Factory $view */ public function __construct(ViewFactory $view) { @@ -29,8 +27,6 @@ public function __construct(ViewFactory $view) * Handle an incoming request. * * @param \Illuminate\Http\Request $request - * @param \Closure $next - * @return mixed */ public function handle($request, Closure $next) { diff --git a/src/Illuminate/View/View.php b/src/Illuminate/View/View.php index c388d23d5baa..14907ea10ae1 100755 --- a/src/Illuminate/View/View.php +++ b/src/Illuminate/View/View.php @@ -62,11 +62,8 @@ class View implements ArrayAccess, Htmlable, Stringable, ViewContract /** * Create a new view instance. * - * @param \Illuminate\View\Factory $factory - * @param \Illuminate\Contracts\View\Engine $engine * @param string $view * @param string $path - * @param mixed $data */ public function __construct(Factory $factory, Engine $engine, $view, $path, $data = []) { @@ -94,7 +91,6 @@ public function fragment($fragment) /** * Get the evaluated contents for a given array of fragments or return all fragments. * - * @param array|null $fragments * @return string */ public function fragments(?array $fragments = null) @@ -124,7 +120,6 @@ public function fragmentIf($boolean, $fragment) * Get the evaluated contents for a given array of fragments if the given condition is true. * * @param bool $boolean - * @param array|null $fragments * @return string */ public function fragmentsIf($boolean, ?array $fragments = null) @@ -149,7 +144,6 @@ protected function allFragments() /** * Get the string contents of the view. * - * @param callable|null $callback * @return string * * @throws \Throwable @@ -244,7 +238,6 @@ public function renderSections() * Add a piece of data to the view. * * @param string|array $key - * @param mixed $value * @return $this */ public function with($key, $value = null) @@ -263,7 +256,6 @@ public function with($key, $value = null) * * @param string $key * @param string $view - * @param array $data * @return $this */ public function nest($key, $view, array $data = []) @@ -373,7 +365,6 @@ public function getEngine() * Determine if a piece of data is bound. * * @param string $key - * @return bool */ public function offsetExists($key): bool { @@ -384,7 +375,6 @@ public function offsetExists($key): bool * Get a piece of bound data to the view. * * @param string $key - * @return mixed */ public function offsetGet($key): mixed { @@ -395,8 +385,6 @@ public function offsetGet($key): mixed * Set a piece of data on the view. * * @param string $key - * @param mixed $value - * @return void */ public function offsetSet($key, $value): void { @@ -407,7 +395,6 @@ public function offsetSet($key, $value): void * Unset a piece of data from the view. * * @param string $key - * @return void */ public function offsetUnset($key): void { @@ -418,7 +405,6 @@ public function offsetUnset($key): void * Get a piece of data from the view. * * @param string $key - * @return mixed */ public function &__get($key) { @@ -429,7 +415,6 @@ public function &__get($key) * Set a piece of data on the view. * * @param string $key - * @param mixed $value * @return void */ public function __set($key, $value) diff --git a/tests/Bus/BusBatchTest.php b/tests/Bus/BusBatchTest.php index 855ce91bb2b3..1584b7a62625 100644 --- a/tests/Bus/BusBatchTest.php +++ b/tests/Bus/BusBatchTest.php @@ -69,8 +69,6 @@ public function createSchema() /** * Tear down the database schema. - * - * @return void */ protected function tearDown(): void { diff --git a/tests/Cache/CacheRepositoryTest.php b/tests/Cache/CacheRepositoryTest.php index 5097a2797795..f1ea8df4b26f 100755 --- a/tests/Cache/CacheRepositoryTest.php +++ b/tests/Cache/CacheRepositoryTest.php @@ -278,9 +278,6 @@ public static function dataProviderTestGetSeconds() ]; } - /** - * @param mixed $duration - */ #[DataProvider('dataProviderTestGetSeconds')] public function testGetSeconds($duration) { diff --git a/tests/Console/CacheCommandMutexTest.php b/tests/Console/CacheCommandMutexTest.php index 4794ec7df812..b3e0225edea1 100644 --- a/tests/Console/CacheCommandMutexTest.php +++ b/tests/Console/CacheCommandMutexTest.php @@ -131,9 +131,6 @@ public function testCanCreateMutexWithCustomConnectionWithLockProvider() $this->mutex->create($this->command); } - /** - * @return void - */ private function mockUsingCacheStore(): void { $this->cacheFactory->expects('store')->once()->andReturn($this->cacheRepository); diff --git a/tests/Database/DatabaseEloquentBelongsToManyAggregateTest.php b/tests/Database/DatabaseEloquentBelongsToManyAggregateTest.php index 7847787984a3..d8493e29019b 100644 --- a/tests/Database/DatabaseEloquentBelongsToManyAggregateTest.php +++ b/tests/Database/DatabaseEloquentBelongsToManyAggregateTest.php @@ -96,8 +96,6 @@ public function createSchema() /** * Tear down the database schema. - * - * @return void */ protected function tearDown(): void { diff --git a/tests/Database/DatabaseEloquentBelongsToManyChunkByIdTest.php b/tests/Database/DatabaseEloquentBelongsToManyChunkByIdTest.php index 0b9d8d51d93c..ec54f624b369 100644 --- a/tests/Database/DatabaseEloquentBelongsToManyChunkByIdTest.php +++ b/tests/Database/DatabaseEloquentBelongsToManyChunkByIdTest.php @@ -82,8 +82,6 @@ public function testBelongsToChunkByIdDesc() /** * Tear down the database schema. - * - * @return void */ protected function tearDown(): void { diff --git a/tests/Database/DatabaseEloquentBelongsToManyEachByIdTest.php b/tests/Database/DatabaseEloquentBelongsToManyEachByIdTest.php index 0a2fe1e97a06..74bacfbdff4b 100644 --- a/tests/Database/DatabaseEloquentBelongsToManyEachByIdTest.php +++ b/tests/Database/DatabaseEloquentBelongsToManyEachByIdTest.php @@ -66,8 +66,6 @@ public function testBelongsToEachById() /** * Tear down the database schema. - * - * @return void */ protected function tearDown(): void { diff --git a/tests/Database/DatabaseEloquentBelongsToManyExpressionTest.php b/tests/Database/DatabaseEloquentBelongsToManyExpressionTest.php index 53e09cfb82f6..5850d2cf4e8f 100644 --- a/tests/Database/DatabaseEloquentBelongsToManyExpressionTest.php +++ b/tests/Database/DatabaseEloquentBelongsToManyExpressionTest.php @@ -98,8 +98,6 @@ public function createSchema() /** * Tear down the database schema. - * - * @return void */ protected function tearDown(): void { diff --git a/tests/Database/DatabaseEloquentBelongsToManyLazyByIdTest.php b/tests/Database/DatabaseEloquentBelongsToManyLazyByIdTest.php index cbdf1ffbda19..b76d1ed0be84 100644 --- a/tests/Database/DatabaseEloquentBelongsToManyLazyByIdTest.php +++ b/tests/Database/DatabaseEloquentBelongsToManyLazyByIdTest.php @@ -65,8 +65,6 @@ public function testBelongsToLazyById() /** * Tear down the database schema. - * - * @return void */ protected function tearDown(): void { diff --git a/tests/Database/DatabaseEloquentBelongsToManySyncReturnValueTypeTest.php b/tests/Database/DatabaseEloquentBelongsToManySyncReturnValueTypeTest.php index 0ebb1ae6e325..e66a49420f49 100644 --- a/tests/Database/DatabaseEloquentBelongsToManySyncReturnValueTypeTest.php +++ b/tests/Database/DatabaseEloquentBelongsToManySyncReturnValueTypeTest.php @@ -53,8 +53,6 @@ public function createSchema() /** * Tear down the database schema. - * - * @return void */ protected function tearDown(): void { diff --git a/tests/Database/DatabaseEloquentBelongsToManySyncTouchesParentTest.php b/tests/Database/DatabaseEloquentBelongsToManySyncTouchesParentTest.php index 428a78608307..005d9bd031cb 100644 --- a/tests/Database/DatabaseEloquentBelongsToManySyncTouchesParentTest.php +++ b/tests/Database/DatabaseEloquentBelongsToManySyncTouchesParentTest.php @@ -57,8 +57,6 @@ public function createSchema() /** * Tear down the database schema. - * - * @return void */ protected function tearDown(): void { diff --git a/tests/Database/DatabaseEloquentBelongsToManyWithAttributesPendingTest.php b/tests/Database/DatabaseEloquentBelongsToManyWithAttributesPendingTest.php index 673cbc525f70..84cf104fe54d 100644 --- a/tests/Database/DatabaseEloquentBelongsToManyWithAttributesPendingTest.php +++ b/tests/Database/DatabaseEloquentBelongsToManyWithAttributesPendingTest.php @@ -169,8 +169,6 @@ protected function createSchema() /** * Tear down the database schema. - * - * @return void */ protected function tearDown(): void { diff --git a/tests/Database/DatabaseEloquentBelongsToManyWithAttributesTest.php b/tests/Database/DatabaseEloquentBelongsToManyWithAttributesTest.php index 618616ed14ce..48b9dfc6562f 100755 --- a/tests/Database/DatabaseEloquentBelongsToManyWithAttributesTest.php +++ b/tests/Database/DatabaseEloquentBelongsToManyWithAttributesTest.php @@ -176,8 +176,6 @@ protected function createSchema() /** * Tear down the database schema. - * - * @return void */ protected function tearDown(): void { diff --git a/tests/Database/DatabaseEloquentCollectionTest.php b/tests/Database/DatabaseEloquentCollectionTest.php index 2d07d97fd761..e87b79af5a8b 100755 --- a/tests/Database/DatabaseEloquentCollectionTest.php +++ b/tests/Database/DatabaseEloquentCollectionTest.php @@ -20,8 +20,6 @@ class DatabaseEloquentCollectionTest extends TestCase { /** * Setup the database schema. - * - * @return void */ protected function setUp(): void { diff --git a/tests/Database/DatabaseEloquentFactoryTest.php b/tests/Database/DatabaseEloquentFactoryTest.php index ac98ceb2fa41..14cf71f99cf3 100644 --- a/tests/Database/DatabaseEloquentFactoryTest.php +++ b/tests/Database/DatabaseEloquentFactoryTest.php @@ -94,8 +94,6 @@ public function createSchema() /** * Tear down the database schema. - * - * @return void */ protected function tearDown(): void { diff --git a/tests/Database/DatabaseEloquentHasManyThroughIntegrationTest.php b/tests/Database/DatabaseEloquentHasManyThroughIntegrationTest.php index 7d5b184372db..2533b840addf 100644 --- a/tests/Database/DatabaseEloquentHasManyThroughIntegrationTest.php +++ b/tests/Database/DatabaseEloquentHasManyThroughIntegrationTest.php @@ -62,8 +62,6 @@ public function createSchema() /** * Tear down the database schema. - * - * @return void */ protected function tearDown(): void { diff --git a/tests/Database/DatabaseEloquentHasOneOfManyTest.php b/tests/Database/DatabaseEloquentHasOneOfManyTest.php index c47f0178c22a..45a43e5aa17c 100755 --- a/tests/Database/DatabaseEloquentHasOneOfManyTest.php +++ b/tests/Database/DatabaseEloquentHasOneOfManyTest.php @@ -59,8 +59,6 @@ public function createSchema() /** * Tear down the database schema. - * - * @return void */ protected function tearDown(): void { diff --git a/tests/Database/DatabaseEloquentHasOneThroughIntegrationTest.php b/tests/Database/DatabaseEloquentHasOneThroughIntegrationTest.php index 8622c68582d8..2dd03893a4bc 100644 --- a/tests/Database/DatabaseEloquentHasOneThroughIntegrationTest.php +++ b/tests/Database/DatabaseEloquentHasOneThroughIntegrationTest.php @@ -60,8 +60,6 @@ public function createSchema() /** * Tear down the database schema. - * - * @return void */ protected function tearDown(): void { diff --git a/tests/Database/DatabaseEloquentIntegrationTest.php b/tests/Database/DatabaseEloquentIntegrationTest.php index c27cbfe476b1..1b37ab8f517f 100644 --- a/tests/Database/DatabaseEloquentIntegrationTest.php +++ b/tests/Database/DatabaseEloquentIntegrationTest.php @@ -34,8 +34,6 @@ class DatabaseEloquentIntegrationTest extends TestCase { /** * Setup the database schema. - * - * @return void */ protected function setUp(): void { @@ -189,8 +187,6 @@ protected function createSchema() /** * Tear down the database schema. - * - * @return void */ protected function tearDown(): void { diff --git a/tests/Database/DatabaseEloquentIntegrationWithTablePrefixTest.php b/tests/Database/DatabaseEloquentIntegrationWithTablePrefixTest.php index 3b8415da0aa2..f73af470a377 100644 --- a/tests/Database/DatabaseEloquentIntegrationWithTablePrefixTest.php +++ b/tests/Database/DatabaseEloquentIntegrationWithTablePrefixTest.php @@ -12,8 +12,6 @@ class DatabaseEloquentIntegrationWithTablePrefixTest extends TestCase { /** * Bootstrap Eloquent. - * - * @return void */ protected function setUp(): void { @@ -63,8 +61,6 @@ protected function createSchema() /** * Tear down the database schema. - * - * @return void */ protected function tearDown(): void { diff --git a/tests/Database/DatabaseEloquentInverseRelationHasManyTest.php b/tests/Database/DatabaseEloquentInverseRelationHasManyTest.php index 47f597dc04b2..ca36d1af1c06 100755 --- a/tests/Database/DatabaseEloquentInverseRelationHasManyTest.php +++ b/tests/Database/DatabaseEloquentInverseRelationHasManyTest.php @@ -16,8 +16,6 @@ class DatabaseEloquentInverseRelationHasManyTest extends TestCase { /** * Setup the database schema. - * - * @return void */ protected function setUp(): void { @@ -49,8 +47,6 @@ protected function createSchema() /** * Tear down the database schema. - * - * @return void */ protected function tearDown(): void { diff --git a/tests/Database/DatabaseEloquentInverseRelationHasOneTest.php b/tests/Database/DatabaseEloquentInverseRelationHasOneTest.php index 4667ab091fc2..e739514a3321 100755 --- a/tests/Database/DatabaseEloquentInverseRelationHasOneTest.php +++ b/tests/Database/DatabaseEloquentInverseRelationHasOneTest.php @@ -15,8 +15,6 @@ class DatabaseEloquentInverseRelationHasOneTest extends TestCase { /** * Setup the database schema. - * - * @return void */ protected function setUp(): void { @@ -48,8 +46,6 @@ protected function createSchema() /** * Tear down the database schema. - * - * @return void */ protected function tearDown(): void { diff --git a/tests/Database/DatabaseEloquentInverseRelationMorphManyTest.php b/tests/Database/DatabaseEloquentInverseRelationMorphManyTest.php index d7e66ef906d3..6ad3cf65c847 100755 --- a/tests/Database/DatabaseEloquentInverseRelationMorphManyTest.php +++ b/tests/Database/DatabaseEloquentInverseRelationMorphManyTest.php @@ -16,8 +16,6 @@ class DatabaseEloquentInverseRelationMorphManyTest extends TestCase { /** * Setup the database schema. - * - * @return void */ protected function setUp(): void { @@ -49,8 +47,6 @@ protected function createSchema() /** * Tear down the database schema. - * - * @return void */ protected function tearDown(): void { diff --git a/tests/Database/DatabaseEloquentInverseRelationMorphOneTest.php b/tests/Database/DatabaseEloquentInverseRelationMorphOneTest.php index 25ee5baf9e81..1c295b7e4d6e 100755 --- a/tests/Database/DatabaseEloquentInverseRelationMorphOneTest.php +++ b/tests/Database/DatabaseEloquentInverseRelationMorphOneTest.php @@ -15,8 +15,6 @@ class DatabaseEloquentInverseRelationMorphOneTest extends TestCase { /** * Setup the database schema. - * - * @return void */ protected function setUp(): void { @@ -48,8 +46,6 @@ protected function createSchema() /** * Tear down the database schema. - * - * @return void */ protected function tearDown(): void { diff --git a/tests/Database/DatabaseEloquentMorphOneOfManyTest.php b/tests/Database/DatabaseEloquentMorphOneOfManyTest.php index f565819dd7cf..6ca8f16647a4 100644 --- a/tests/Database/DatabaseEloquentMorphOneOfManyTest.php +++ b/tests/Database/DatabaseEloquentMorphOneOfManyTest.php @@ -44,8 +44,6 @@ public function createSchema() /** * Tear down the database schema. - * - * @return void */ protected function tearDown(): void { diff --git a/tests/Database/DatabaseEloquentPolymorphicIntegrationTest.php b/tests/Database/DatabaseEloquentPolymorphicIntegrationTest.php index e567bd95fb55..bc35048280be 100644 --- a/tests/Database/DatabaseEloquentPolymorphicIntegrationTest.php +++ b/tests/Database/DatabaseEloquentPolymorphicIntegrationTest.php @@ -63,8 +63,6 @@ public function createSchema() /** * Tear down the database schema. - * - * @return void */ protected function tearDown(): void { diff --git a/tests/Database/DatabaseEloquentPolymorphicRelationsIntegrationTest.php b/tests/Database/DatabaseEloquentPolymorphicRelationsIntegrationTest.php index f1cc4002c979..d284061126b1 100644 --- a/tests/Database/DatabaseEloquentPolymorphicRelationsIntegrationTest.php +++ b/tests/Database/DatabaseEloquentPolymorphicRelationsIntegrationTest.php @@ -11,8 +11,6 @@ class DatabaseEloquentPolymorphicRelationsIntegrationTest extends TestCase { /** * Bootstrap Eloquent. - * - * @return void */ protected function setUp(): void { @@ -55,8 +53,6 @@ protected function createSchema() /** * Tear down the database schema. - * - * @return void */ protected function tearDown(): void { diff --git a/tests/Database/DatabaseEloquentSoftDeletesIntegrationTest.php b/tests/Database/DatabaseEloquentSoftDeletesIntegrationTest.php index 195e2dfd7e17..31b441565587 100644 --- a/tests/Database/DatabaseEloquentSoftDeletesIntegrationTest.php +++ b/tests/Database/DatabaseEloquentSoftDeletesIntegrationTest.php @@ -88,8 +88,6 @@ public function createSchema() /** * Tear down the database schema. - * - * @return void */ protected function tearDown(): void { diff --git a/tests/Database/DatabaseEloquentTimestampsTest.php b/tests/Database/DatabaseEloquentTimestampsTest.php index 9bc8d59b86a4..5747e9fc7ba7 100644 --- a/tests/Database/DatabaseEloquentTimestampsTest.php +++ b/tests/Database/DatabaseEloquentTimestampsTest.php @@ -55,8 +55,6 @@ public function createSchema() /** * Tear down the database schema. - * - * @return void */ protected function tearDown(): void { diff --git a/tests/Database/DatabaseMigratorIntegrationTest.php b/tests/Database/DatabaseMigratorIntegrationTest.php index 9f7f0f00c7f8..d214fb798fd3 100644 --- a/tests/Database/DatabaseMigratorIntegrationTest.php +++ b/tests/Database/DatabaseMigratorIntegrationTest.php @@ -20,8 +20,6 @@ class DatabaseMigratorIntegrationTest extends TestCase /** * Bootstrap Eloquent. - * - * @return void */ protected function setUp(): void { diff --git a/tests/Database/DatabaseSchemaBuilderIntegrationTest.php b/tests/Database/DatabaseSchemaBuilderIntegrationTest.php index 864b8351de92..dbb8c28895f3 100644 --- a/tests/Database/DatabaseSchemaBuilderIntegrationTest.php +++ b/tests/Database/DatabaseSchemaBuilderIntegrationTest.php @@ -14,8 +14,6 @@ class DatabaseSchemaBuilderIntegrationTest extends TestCase /** * Bootstrap database. - * - * @return void */ protected function setUp(): void { diff --git a/tests/Database/DatabaseTransactionsTest.php b/tests/Database/DatabaseTransactionsTest.php index 3affe52a8a00..5a7e7ae31467 100644 --- a/tests/Database/DatabaseTransactionsTest.php +++ b/tests/Database/DatabaseTransactionsTest.php @@ -13,8 +13,6 @@ class DatabaseTransactionsTest extends TestCase { /** * Setup the database schema. - * - * @return void */ protected function setUp(): void { @@ -48,8 +46,6 @@ protected function createSchema() /** * Tear down the database schema. - * - * @return void */ protected function tearDown(): void { diff --git a/tests/Database/EloquentModelCustomCastingTest.php b/tests/Database/EloquentModelCustomCastingTest.php index a3f77227ecb6..3f832de72198 100644 --- a/tests/Database/EloquentModelCustomCastingTest.php +++ b/tests/Database/EloquentModelCustomCastingTest.php @@ -63,8 +63,6 @@ public function createSchema() /** * Tear down the database schema. - * - * @return void */ protected function tearDown(): void { @@ -233,7 +231,6 @@ class AddressCast implements CastsAttributes * * @param \Illuminate\Database\Eloquent\Model $model * @param string $key - * @param mixed $value * @param array $attributes * @return \Illuminate\Tests\Integration\Database\AddressModel */ @@ -301,10 +298,6 @@ public function set($model, $key, $value, $attributes) * Serialize the attribute when converting the model to an array. * * @param \Illuminate\Database\Eloquent\Model $model - * @param string $key - * @param mixed $value - * @param array $attributes - * @return mixed */ public function serialize($model, string $key, $value, array $attributes) { diff --git a/tests/Database/PruneCommandTest.php b/tests/Database/PruneCommandTest.php index 81025fc1de85..eee4301eb025 100644 --- a/tests/Database/PruneCommandTest.php +++ b/tests/Database/PruneCommandTest.php @@ -242,7 +242,7 @@ public function testTheCommandDispatchesEvents() $event->models === [Pruning\Models\PrunableTestModelWithPrunableRecords::class]; }); $dispatcher->shouldReceive('listen')->once()->with(ModelsPruned::class, m::type(Closure::class)); - $dispatcher->shouldReceive('dispatch')->twice()->with(m::type(ModelsPruned::class)); + $dispatcher->shouldReceive('dispatch')->twice()->with(m::type(ModelsPruned::class), [], false); $dispatcher->shouldReceive('dispatch')->once()->withArgs(function ($event) { return get_class($event) === ModelPruningFinished::class && $event->models === [Pruning\Models\PrunableTestModelWithPrunableRecords::class]; diff --git a/tests/Database/stubs/TestCast.php b/tests/Database/stubs/TestCast.php index 4127bcd42598..293e42169b63 100644 --- a/tests/Database/stubs/TestCast.php +++ b/tests/Database/stubs/TestCast.php @@ -8,10 +8,6 @@ class TestCast implements CastsAttributes { /** - * @param Model $model - * @param string $key - * @param mixed $value - * @param array $attributes * @return TestValueObject|null */ public function get(Model $model, string $key, mixed $value, array $attributes) @@ -28,10 +24,6 @@ public function get(Model $model, string $key, mixed $value, array $attributes) } /** - * @param Model $model - * @param string $key - * @param mixed $value - * @param array $attributes * @return array */ public function set(Model $model, string $key, mixed $value, array $attributes) diff --git a/tests/Foundation/Console/AboutCommandTest.php b/tests/Foundation/Console/AboutCommandTest.php index cec2ac591cd8..8bde31ed9d8c 100644 --- a/tests/Foundation/Console/AboutCommandTest.php +++ b/tests/Foundation/Console/AboutCommandTest.php @@ -10,7 +10,6 @@ class AboutCommandTest extends TestCase { /** * @param \Closure(bool):mixed $format - * @param mixed $expected */ #[DataProvider('cliDataProvider')] public function testItCanFormatForCliInterface($format, $expected) @@ -26,7 +25,6 @@ public static function cliDataProvider() /** * @param \Closure(bool):mixed $format - * @param mixed $expected */ #[DataProvider('jsonDataProvider')] public function testItCanFormatForJsonInterface($format, $expected) diff --git a/tests/Http/HttpTestingFileFactoryTest.php b/tests/Http/HttpTestingFileFactoryTest.php index 5ee649cce689..2056475037c9 100644 --- a/tests/Http/HttpTestingFileFactoryTest.php +++ b/tests/Http/HttpTestingFileFactoryTest.php @@ -142,10 +142,6 @@ public static function generateImageDataProvider(): array ]; } - /** - * @param string $driver - * @return bool - */ private function isGDSupported(string $driver = 'GD Version'): bool { $gdInfo = gd_info(); diff --git a/tests/Integration/Cache/DynamoDbStoreTest.php b/tests/Integration/Cache/DynamoDbStoreTest.php index 7abe70d27864..c8648d842326 100644 --- a/tests/Integration/Cache/DynamoDbStoreTest.php +++ b/tests/Integration/Cache/DynamoDbStoreTest.php @@ -106,7 +106,6 @@ protected function defineEnvironment($app) /** * Determine if the given DynamoDB table exists. * - * @param \Aws\DynamoDb\DynamoDbClient $client * @param string $table * @return bool */ diff --git a/tests/Integration/Cache/Psr6RedisTest.php b/tests/Integration/Cache/Psr6RedisTest.php index ff8816f9d9e1..653d0a3672b3 100644 --- a/tests/Integration/Cache/Psr6RedisTest.php +++ b/tests/Integration/Cache/Psr6RedisTest.php @@ -43,9 +43,6 @@ public function testTransactionIsNotOpenedWhenSerializationFails($redisClient): Cache::store('redis')->get('foo'); } - /** - * @return array - */ public static function redisClientDataProvider(): array { return [ diff --git a/tests/Integration/Database/EloquentMassPrunableTest.php b/tests/Integration/Database/EloquentMassPrunableTest.php index 62401e880db3..392f2282133f 100644 --- a/tests/Integration/Database/EloquentMassPrunableTest.php +++ b/tests/Integration/Database/EloquentMassPrunableTest.php @@ -57,7 +57,7 @@ public function testPrunesRecords() app('events') ->shouldReceive('dispatch') ->times(2) - ->with(m::type(ModelsPruned::class)); + ->with(m::type(ModelsPruned::class), [], false); collect(range(1, 5000))->map(function ($id) { return ['name' => 'foo']; @@ -76,7 +76,7 @@ public function testPrunesSoftDeletedRecords() app('events') ->shouldReceive('dispatch') ->times(3) - ->with(m::type(ModelsPruned::class)); + ->with(m::type(ModelsPruned::class), [], false); collect(range(1, 5000))->map(function ($id) { return ['deleted_at' => now()]; diff --git a/tests/Integration/Http/Fixtures/PostResourceWithAnonymousResourceCollectionWithPaginationInformation.php b/tests/Integration/Http/Fixtures/PostResourceWithAnonymousResourceCollectionWithPaginationInformation.php index d90568757083..e7690a1d1b36 100644 --- a/tests/Integration/Http/Fixtures/PostResourceWithAnonymousResourceCollectionWithPaginationInformation.php +++ b/tests/Integration/Http/Fixtures/PostResourceWithAnonymousResourceCollectionWithPaginationInformation.php @@ -14,7 +14,6 @@ public function toArray($request) /** * Create a new anonymous resource collection. * - * @param mixed $resource * @return \Illuminate\Tests\Integration\Http\Fixtures\AnonymousResourceCollectionWithPaginationInformation */ public static function collection($resource) diff --git a/tests/Integration/Notifications/DatabaseNotificationTest.php b/tests/Integration/Notifications/DatabaseNotificationTest.php index e26908d4ed44..cbcd89aede31 100644 --- a/tests/Integration/Notifications/DatabaseNotificationTest.php +++ b/tests/Integration/Notifications/DatabaseNotificationTest.php @@ -36,7 +36,6 @@ public function testAssertSentToWhenNotifiableHasStringableKey() * Define database and convert User's ID to UUID. * * @param \Illuminate\Foundation\Application $app - * @return void */ protected function defineDatabaseAndConvertUserIdToUuid($app): void { diff --git a/tests/Integration/Queue/QueueTestCase.php b/tests/Integration/Queue/QueueTestCase.php index a885c6a87802..cbab5fdec6a8 100644 --- a/tests/Integration/Queue/QueueTestCase.php +++ b/tests/Integration/Queue/QueueTestCase.php @@ -29,10 +29,6 @@ protected function defineEnvironment($app) /** * Run queue worker command. - * - * @param array $options - * @param int $times - * @return void */ protected function runQueueWorkerCommand(array $options = [], int $times = 1): void { @@ -53,7 +49,6 @@ protected function runQueueWorkerCommand(array $options = [], int $times = 1): v * Mark test as skipped when using given queue drivers. * * @param array $drivers - * @return void */ protected function markTestSkippedWhenUsingQueueDrivers(array $drivers): void { @@ -66,8 +61,6 @@ protected function markTestSkippedWhenUsingQueueDrivers(array $drivers): void /** * Mark test as skipped when using "sync" queue driver. - * - * @return void */ protected function markTestSkippedWhenUsingSyncQueueDriver(): void { @@ -76,8 +69,6 @@ protected function markTestSkippedWhenUsingSyncQueueDriver(): void /** * Get the queue driver. - * - * @return string */ protected function getQueueDriver(): string { diff --git a/tests/Integration/Queue/RedisQueueTest.php b/tests/Integration/Queue/RedisQueueTest.php index fdb8b4608cd1..174467cfe556 100644 --- a/tests/Integration/Queue/RedisQueueTest.php +++ b/tests/Integration/Queue/RedisQueueTest.php @@ -91,8 +91,6 @@ public function testExpiredJobsArePopped($driver) } /** - * @param mixed $driver - * * @throws \Exception */ #[DataProvider('redisDriverProvider')] diff --git a/tests/Integration/Routing/CompiledRouteCollectionTest.php b/tests/Integration/Routing/CompiledRouteCollectionTest.php index fcaa4dad5d4e..0dddb5e5fa89 100644 --- a/tests/Integration/Routing/CompiledRouteCollectionTest.php +++ b/tests/Integration/Routing/CompiledRouteCollectionTest.php @@ -544,7 +544,6 @@ public function testRouteWithSamePathAndSameMethodButDiffDomainNameWithOptionsMe * * @param array|string $methods * @param string $uri - * @param mixed $action * @return \Illuminate\Routing\Route */ protected function newRoute($methods, $uri, $action) @@ -557,7 +556,6 @@ protected function newRoute($methods, $uri, $action) /** * Create a new fallback Route object. * - * @param mixed $action * @return \Illuminate\Routing\Route */ protected function fallbackRoute($action) diff --git a/tests/Integration/Testing/ArtisanCommandTest.php b/tests/Integration/Testing/ArtisanCommandTest.php index d86467c396ce..1915378d2804 100644 --- a/tests/Integration/Testing/ArtisanCommandTest.php +++ b/tests/Integration/Testing/ArtisanCommandTest.php @@ -310,7 +310,6 @@ public function test_pending_command_can_be_tapped() * Don't allow Mockery's InvalidCountException to be reported. Mocks setup * in PendingCommand cause PHPUnit tearDown() to later throw the exception. * - * @param callable $callback * @return void */ protected function ignoringMockOnceExceptions(callable $callback) diff --git a/tests/Notifications/NotificationSenderTest.php b/tests/Notifications/NotificationSenderTest.php index 3221a87145c2..a285e2bb8cc8 100644 --- a/tests/Notifications/NotificationSenderTest.php +++ b/tests/Notifications/NotificationSenderTest.php @@ -175,7 +175,6 @@ class DummyQueuedNotificationWithStringVia extends Notification implements Shoul /** * Get the notification channels. * - * @param mixed $notifiable * @return array|string */ public function via($notifiable) @@ -191,7 +190,6 @@ class DummyNotificationWithEmptyStringVia extends Notification /** * Get the notification channels. * - * @param mixed $notifiable * @return array|string */ public function via($notifiable) @@ -207,7 +205,6 @@ class DummyNotificationWithDatabaseVia extends Notification /** * Get the notification channels. * - * @param mixed $notifiable * @return array|string */ public function via($notifiable) diff --git a/tests/Queue/QueueDatabaseQueueIntegrationTest.php b/tests/Queue/QueueDatabaseQueueIntegrationTest.php index 4c4f7c91c5c1..a8a753a7f33d 100644 --- a/tests/Queue/QueueDatabaseQueueIntegrationTest.php +++ b/tests/Queue/QueueDatabaseQueueIntegrationTest.php @@ -98,8 +98,6 @@ protected function schema() /** * Tear down the database schema. - * - * @return void */ protected function tearDown(): void { diff --git a/tests/Redis/RedisManagerExtensionTest.php b/tests/Redis/RedisManagerExtensionTest.php index 67e2fb3d9974..a26b3fe42d43 100644 --- a/tests/Redis/RedisManagerExtensionTest.php +++ b/tests/Redis/RedisManagerExtensionTest.php @@ -96,8 +96,6 @@ class FakeRedisConnector implements Connector /** * Create a new clustered Predis connection. * - * @param array $config - * @param array $options * @return string */ public function connect(array $config, array $options) @@ -108,9 +106,6 @@ public function connect(array $config, array $options) /** * Create a new clustered Predis connection. * - * @param array $config - * @param array $clusterOptions - * @param array $options * @return string */ public function connectToCluster(array $config, array $clusterOptions, array $options) diff --git a/tests/Routing/RouteRegistrarTest.php b/tests/Routing/RouteRegistrarTest.php index d92967a758c3..d75921fb8aa8 100644 --- a/tests/Routing/RouteRegistrarTest.php +++ b/tests/Routing/RouteRegistrarTest.php @@ -1515,7 +1515,6 @@ protected function seeMiddleware($middleware) * Assert that the last route has the given content. * * @param string $content - * @param \Illuminate\Http\Request $request * @return void */ protected function seeResponse($content, Request $request) diff --git a/tests/Validation/ValidationEmailRuleTest.php b/tests/Validation/ValidationEmailRuleTest.php index cbff32a5edb1..b016f1c5f25d 100644 --- a/tests/Validation/ValidationEmailRuleTest.php +++ b/tests/Validation/ValidationEmailRuleTest.php @@ -72,7 +72,6 @@ public function testBasic() } /** - * @param mixed $rule * @param string|array $values * @param array $expectedMessages * @param string|null $customValidationMessage @@ -84,7 +83,6 @@ protected function fails($rule, $values, $expectedMessages, $customValidationMes } /** - * @param mixed $rule * @param string|array $values * @param bool $expectToPass * @param array $expectedMessages @@ -116,7 +114,6 @@ protected function assertValidationRules($rule, $values, $expectToPass, $expecte } /** - * @param mixed $rule * @param string|array $values * @return void */ diff --git a/tests/Validation/ValidationExistsRuleTest.php b/tests/Validation/ValidationExistsRuleTest.php index bcdf95b50c93..c7b460fabc53 100644 --- a/tests/Validation/ValidationExistsRuleTest.php +++ b/tests/Validation/ValidationExistsRuleTest.php @@ -15,8 +15,6 @@ class ValidationExistsRuleTest extends TestCase { /** * Setup the database schema. - * - * @return void */ protected function setUp(): void { @@ -303,8 +301,6 @@ protected function getConnectionResolver() /** * Tear down the database schema. - * - * @return void */ protected function tearDown(): void { diff --git a/tests/Validation/ValidationValidatorTest.php b/tests/Validation/ValidationValidatorTest.php index b23ac15dd5b0..a67d15beefa2 100755 --- a/tests/Validation/ValidationValidatorTest.php +++ b/tests/Validation/ValidationValidatorTest.php @@ -3778,8 +3778,6 @@ public function testValidateMax() } /** - * @param mixed $input - * @param mixed $allowed * @param bool $passes */ #[DataProvider('multipleOfDataProvider')] diff --git a/types/Cache/Repository.php b/types/Cache/Repository.php index ac80b6a194f1..87f5cc8e1d0c 100644 --- a/types/Cache/Repository.php +++ b/types/Cache/Repository.php @@ -14,8 +14,8 @@ })); assertType('mixed', $cache->pull('key')); -assertType('mixed', $cache->pull('cache', 28)); -assertType('mixed', $cache->pull('cache', function (): int { +assertType('28', $cache->pull('cache', 28)); +assertType('30', $cache->pull('cache', function (): int { return 30; })); assertType('33', $cache->sear('cache', function (): int {