Skip to content

Commit a1319d7

Browse files
committed
chore: remove superfluous phpdoc tags with pint
1 parent 5a89978 commit a1319d7

File tree

900 files changed

+0
-6854
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

900 files changed

+0
-6854
lines changed

src/Illuminate/Auth/Access/AuthorizationException.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ class AuthorizationException extends Exception
2525
* Create a new authorization exception instance.
2626
*
2727
* @param string|null $message
28-
* @param mixed $code
29-
* @param \Throwable|null $previous
3028
*/
3129
public function __construct($message = null, $code = null, ?Throwable $previous = null)
3230
{

src/Illuminate/Auth/Access/Gate.php

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -87,14 +87,6 @@ class Gate implements GateContract
8787

8888
/**
8989
* Create a new gate instance.
90-
*
91-
* @param \Illuminate\Contracts\Container\Container $container
92-
* @param callable $userResolver
93-
* @param array $abilities
94-
* @param array $policies
95-
* @param array $beforeCallbacks
96-
* @param array $afterCallbacks
97-
* @param callable|null $guessPolicyNamesUsingCallback
9890
*/
9991
public function __construct(
10092
Container $container,
@@ -226,7 +218,6 @@ public function define($ability, $callback)
226218
*
227219
* @param string $name
228220
* @param string $class
229-
* @param array|null $abilities
230221
* @return $this
231222
*/
232223
public function resource($name, $class, ?array $abilities = null)
@@ -299,7 +290,6 @@ public function policy($class, $policy)
299290
/**
300291
* Register a callback to run before all Gate checks.
301292
*
302-
* @param callable $callback
303293
* @return $this
304294
*/
305295
public function before(callable $callback)
@@ -312,7 +302,6 @@ public function before(callable $callback)
312302
/**
313303
* Register a callback to run after all Gate checks.
314304
*
315-
* @param callable $callback
316305
* @return $this
317306
*/
318307
public function after(callable $callback)
@@ -326,7 +315,6 @@ public function after(callable $callback)
326315
* Determine if all of the given abilities should be granted for the current user.
327316
*
328317
* @param iterable|\UnitEnum|string $ability
329-
* @param mixed $arguments
330318
* @return bool
331319
*/
332320
public function allows($ability, $arguments = [])
@@ -338,7 +326,6 @@ public function allows($ability, $arguments = [])
338326
* Determine if any of the given abilities should be denied for the current user.
339327
*
340328
* @param iterable|\UnitEnum|string $ability
341-
* @param mixed $arguments
342329
* @return bool
343330
*/
344331
public function denies($ability, $arguments = [])
@@ -350,7 +337,6 @@ public function denies($ability, $arguments = [])
350337
* Determine if all of the given abilities should be granted for the current user.
351338
*
352339
* @param iterable|\UnitEnum|string $abilities
353-
* @param mixed $arguments
354340
* @return bool
355341
*/
356342
public function check($abilities, $arguments = [])
@@ -364,7 +350,6 @@ public function check($abilities, $arguments = [])
364350
* Determine if any one of the given abilities should be granted for the current user.
365351
*
366352
* @param iterable|\UnitEnum|string $abilities
367-
* @param mixed $arguments
368353
* @return bool
369354
*/
370355
public function any($abilities, $arguments = [])
@@ -376,7 +361,6 @@ public function any($abilities, $arguments = [])
376361
* Determine if all of the given abilities should be denied for the current user.
377362
*
378363
* @param iterable|\UnitEnum|string $abilities
379-
* @param mixed $arguments
380364
* @return bool
381365
*/
382366
public function none($abilities, $arguments = [])
@@ -388,7 +372,6 @@ public function none($abilities, $arguments = [])
388372
* Determine if the given ability should be granted for the current user.
389373
*
390374
* @param \UnitEnum|string $ability
391-
* @param mixed $arguments
392375
* @return \Illuminate\Auth\Access\Response
393376
*
394377
* @throws \Illuminate\Auth\Access\AuthorizationException
@@ -402,7 +385,6 @@ public function authorize($ability, $arguments = [])
402385
* Inspect the user for the given ability.
403386
*
404387
* @param \UnitEnum|string $ability
405-
* @param mixed $arguments
406388
* @return \Illuminate\Auth\Access\Response
407389
*/
408390
public function inspect($ability, $arguments = [])
@@ -426,8 +408,6 @@ public function inspect($ability, $arguments = [])
426408
* Get the raw result from the authorization callback.
427409
*
428410
* @param string $ability
429-
* @param mixed $arguments
430-
* @return mixed
431411
*
432412
* @throws \Illuminate\Auth\Access\AuthorizationException
433413
*/
@@ -543,7 +523,6 @@ protected function parameterAllowsGuests($parameter)
543523
*
544524
* @param \Illuminate\Contracts\Auth\Authenticatable|null $user
545525
* @param string $ability
546-
* @param array $arguments
547526
* @return bool
548527
*/
549528
protected function callAuthCallback($user, $ability, array $arguments)
@@ -558,7 +537,6 @@ protected function callAuthCallback($user, $ability, array $arguments)
558537
*
559538
* @param \Illuminate\Contracts\Auth\Authenticatable|null $user
560539
* @param string $ability
561-
* @param array $arguments
562540
* @return bool|null
563541
*/
564542
protected function callBeforeCallbacks($user, $ability, array $arguments)
@@ -579,7 +557,6 @@ protected function callBeforeCallbacks($user, $ability, array $arguments)
579557
*
580558
* @param \Illuminate\Contracts\Auth\Authenticatable $user
581559
* @param string $ability
582-
* @param array $arguments
583560
* @param bool|null $result
584561
* @return bool|null
585562
*/
@@ -603,7 +580,6 @@ protected function callAfterCallbacks($user, $ability, array $arguments, $result
603580
*
604581
* @param \Illuminate\Contracts\Auth\Authenticatable|null $user
605582
* @param string $ability
606-
* @param array $arguments
607583
* @param bool|null $result
608584
* @return void
609585
*/
@@ -621,7 +597,6 @@ protected function dispatchGateEvaluatedEvent($user, $ability, array $arguments,
621597
*
622598
* @param \Illuminate\Contracts\Auth\Authenticatable|null $user
623599
* @param string $ability
624-
* @param array $arguments
625600
* @return callable
626601
*/
627602
protected function resolveAuthCallback($user, $ability, array $arguments)
@@ -654,7 +629,6 @@ protected function resolveAuthCallback($user, $ability, array $arguments)
654629
* Get a policy instance for a given class.
655630
*
656631
* @param object|string $class
657-
* @return mixed
658632
*/
659633
public function getPolicyFor($class)
660634
{
@@ -739,7 +713,6 @@ protected function guessPolicyName($class)
739713
/**
740714
* Specify a callback to be used to guess policy names.
741715
*
742-
* @param callable $callback
743716
* @return $this
744717
*/
745718
public function guessPolicyNamesUsing(callable $callback)
@@ -753,7 +726,6 @@ public function guessPolicyNamesUsing(callable $callback)
753726
* Build a policy class instance of the given type.
754727
*
755728
* @param object|string $class
756-
* @return mixed
757729
*
758730
* @throws \Illuminate\Contracts\Container\BindingResolutionException
759731
*/
@@ -767,8 +739,6 @@ public function resolvePolicy($class)
767739
*
768740
* @param \Illuminate\Contracts\Auth\Authenticatable $user
769741
* @param string $ability
770-
* @param array $arguments
771-
* @param mixed $policy
772742
* @return bool|callable
773743
*/
774744
protected function resolvePolicyCallback($user, $ability, array $arguments, $policy)
@@ -801,11 +771,9 @@ protected function resolvePolicyCallback($user, $ability, array $arguments, $pol
801771
/**
802772
* Call the "before" method on the given policy, if applicable.
803773
*
804-
* @param mixed $policy
805774
* @param \Illuminate\Contracts\Auth\Authenticatable $user
806775
* @param string $ability
807776
* @param array $arguments
808-
* @return mixed
809777
*/
810778
protected function callPolicyBefore($policy, $user, $ability, $arguments)
811779
{
@@ -821,11 +789,8 @@ protected function callPolicyBefore($policy, $user, $ability, $arguments)
821789
/**
822790
* Call the appropriate method on the given policy.
823791
*
824-
* @param mixed $policy
825792
* @param string $method
826793
* @param \Illuminate\Contracts\Auth\Authenticatable|null $user
827-
* @param array $arguments
828-
* @return mixed
829794
*/
830795
protected function callPolicyMethod($policy, $method, $user, array $arguments)
831796
{
@@ -877,8 +842,6 @@ public function forUser($user)
877842

878843
/**
879844
* Resolve the user from the user resolver.
880-
*
881-
* @return mixed
882845
*/
883846
protected function resolveUser()
884847
{
@@ -908,7 +871,6 @@ public function policies()
908871
/**
909872
* Set the default denial response for gates and policies.
910873
*
911-
* @param \Illuminate\Auth\Access\Response $response
912874
* @return $this
913875
*/
914876
public function defaultDenialResponse(Response $response)
@@ -921,7 +883,6 @@ public function defaultDenialResponse(Response $response)
921883
/**
922884
* Set the container instance used by the gate.
923885
*
924-
* @param \Illuminate\Contracts\Container\Container $container
925886
* @return $this
926887
*/
927888
public function setContainer(Container $container)

src/Illuminate/Auth/Access/HandlesAuthorization.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ trait HandlesAuthorization
88
* Create a new access response.
99
*
1010
* @param string|null $message
11-
* @param mixed $code
1211
* @return \Illuminate\Auth\Access\Response
1312
*/
1413
protected function allow($message = null, $code = null)
@@ -20,7 +19,6 @@ protected function allow($message = null, $code = null)
2019
* Throws an unauthorized exception.
2120
*
2221
* @param string|null $message
23-
* @param mixed $code
2422
* @return \Illuminate\Auth\Access\Response
2523
*/
2624
protected function deny($message = null, $code = null)

src/Illuminate/Auth/Access/Response.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ class Response implements Arrayable, Stringable
2323

2424
/**
2525
* The response code.
26-
*
27-
* @var mixed
2826
*/
2927
protected $code;
3028

@@ -40,7 +38,6 @@ class Response implements Arrayable, Stringable
4038
*
4139
* @param bool $allowed
4240
* @param string|null $message
43-
* @param mixed $code
4441
*/
4542
public function __construct($allowed, $message = '', $code = null)
4643
{
@@ -53,7 +50,6 @@ public function __construct($allowed, $message = '', $code = null)
5350
* Create a new "allow" Response.
5451
*
5552
* @param string|null $message
56-
* @param mixed $code
5753
* @return \Illuminate\Auth\Access\Response
5854
*/
5955
public static function allow($message = null, $code = null)
@@ -65,7 +61,6 @@ public static function allow($message = null, $code = null)
6561
* Create a new "deny" Response.
6662
*
6763
* @param string|null $message
68-
* @param mixed $code
6964
* @return \Illuminate\Auth\Access\Response
7065
*/
7166
public static function deny($message = null, $code = null)
@@ -78,7 +73,6 @@ public static function deny($message = null, $code = null)
7873
*
7974
* @param int $status
8075
* @param string|null $message
81-
* @param mixed $code
8276
* @return \Illuminate\Auth\Access\Response
8377
*/
8478
public static function denyWithStatus($status, $message = null, $code = null)
@@ -90,7 +84,6 @@ public static function denyWithStatus($status, $message = null, $code = null)
9084
* Create a new "deny" Response with a 404 HTTP status code.
9185
*
9286
* @param string|null $message
93-
* @param mixed $code
9487
* @return \Illuminate\Auth\Access\Response
9588
*/
9689
public static function denyAsNotFound($message = null, $code = null)
@@ -130,8 +123,6 @@ public function message()
130123

131124
/**
132125
* Get the response code / reason.
133-
*
134-
* @return mixed
135126
*/
136127
public function code()
137128
{

src/Illuminate/Auth/AuthManager.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,6 @@ protected function resolve($name)
104104
* Call a custom driver creator.
105105
*
106106
* @param string $name
107-
* @param array $config
108-
* @return mixed
109107
*/
110108
protected function callCustomCreator($name, array $config)
111109
{
@@ -227,7 +225,6 @@ public function setDefaultDriver($name)
227225
* Register a new callback based request guard.
228226
*
229227
* @param string $driver
230-
* @param callable $callback
231228
* @return $this
232229
*/
233230
public function viaRequest($driver, callable $callback)
@@ -254,7 +251,6 @@ public function userResolver()
254251
/**
255252
* Set the callback to be used to resolve users.
256253
*
257-
* @param \Closure $userResolver
258254
* @return $this
259255
*/
260256
public function resolveUsersUsing(Closure $userResolver)
@@ -268,7 +264,6 @@ public function resolveUsersUsing(Closure $userResolver)
268264
* Register a custom driver creator Closure.
269265
*
270266
* @param string $driver
271-
* @param \Closure $callback
272267
* @return $this
273268
*/
274269
public function extend($driver, Closure $callback)
@@ -282,7 +277,6 @@ public function extend($driver, Closure $callback)
282277
* Register a custom provider creator Closure.
283278
*
284279
* @param string $name
285-
* @param \Closure $callback
286280
* @return $this
287281
*/
288282
public function provider($name, Closure $callback)
@@ -332,7 +326,6 @@ public function setApplication($app)
332326
*
333327
* @param string $method
334328
* @param array $parameters
335-
* @return mixed
336329
*/
337330
public function __call($method, $parameters)
338331
{

src/Illuminate/Auth/Authenticatable.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ public function getAuthIdentifierName()
3030

3131
/**
3232
* Get the unique identifier for the user.
33-
*
34-
* @return mixed
3533
*/
3634
public function getAuthIdentifier()
3735
{
@@ -40,8 +38,6 @@ public function getAuthIdentifier()
4038

4139
/**
4240
* Get the unique broadcast identifier for the user.
43-
*
44-
* @return mixed
4541
*/
4642
public function getAuthIdentifierForBroadcasting()
4743
{

src/Illuminate/Auth/AuthenticationException.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ class AuthenticationException extends Exception
3232
* Create a new authentication exception.
3333
*
3434
* @param string $message
35-
* @param array $guards
3635
* @param string|null $redirectTo
3736
*/
3837
public function __construct($message = 'Unauthenticated.', array $guards = [], $redirectTo = null)
@@ -56,7 +55,6 @@ public function guards()
5655
/**
5756
* Get the path the user should be redirected to.
5857
*
59-
* @param \Illuminate\Http\Request $request
6058
* @return string|null
6159
*/
6260
public function redirectTo(Request $request)
@@ -73,7 +71,6 @@ public function redirectTo(Request $request)
7371
/**
7472
* Specify the callback that should be used to generate the redirect path.
7573
*
76-
* @param callable $redirectToCallback
7774
* @return void
7875
*/
7976
public static function redirectUsing(callable $redirectToCallback)

0 commit comments

Comments
 (0)