1 | <?php |
||
25 | class PasswordResetBrokerManager implements PasswordBrokerFactory |
||
26 | { |
||
27 | /** |
||
28 | * The application instance. |
||
29 | * |
||
30 | * @var \Illuminate\Foundation\Application |
||
31 | */ |
||
32 | protected $app; |
||
33 | |||
34 | /** |
||
35 | * The array of created "drivers". |
||
36 | * |
||
37 | * @var array |
||
38 | */ |
||
39 | protected $brokers = []; |
||
40 | |||
41 | /** |
||
42 | * Create a new PasswordResetBroker manager instance. |
||
43 | * |
||
44 | * @param \Illuminate\Foundation\Application $app |
||
45 | */ |
||
46 | public function __construct($app) |
||
50 | |||
51 | /** |
||
52 | * Attempt to get the broker from the local cache. |
||
53 | * |
||
54 | * @param string $name |
||
|
|||
55 | * |
||
56 | * @return \Illuminate\Contracts\Auth\PasswordBroker |
||
57 | */ |
||
58 | public function broker($name = null) |
||
64 | |||
65 | /** |
||
66 | * Resolve the given broker. |
||
67 | * |
||
68 | * @param string $name |
||
69 | * |
||
70 | * @throws \InvalidArgumentException |
||
71 | * |
||
72 | * @return \Illuminate\Contracts\Auth\PasswordBroker |
||
73 | */ |
||
74 | protected function resolve($name) |
||
90 | |||
91 | /** |
||
92 | * Create a token repository instance based on the given configuration. |
||
93 | * |
||
94 | * @param array $config |
||
95 | * |
||
96 | * @return \Rinvex\Fort\Contracts\PasswordResetTokenRepositoryContract |
||
97 | */ |
||
98 | protected function createTokenRepository(array $config) |
||
116 | |||
117 | /** |
||
118 | * Get the password reset broker configuration. |
||
119 | * |
||
120 | * @param string $name |
||
121 | * |
||
122 | * @return array |
||
123 | */ |
||
124 | protected function getConfig($name) |
||
128 | |||
129 | /** |
||
130 | * Get the default password reset broker name. |
||
131 | * |
||
132 | * @return string |
||
133 | */ |
||
134 | public function getDefaultDriver() |
||
138 | |||
139 | /** |
||
140 | * Set the default password reset broker name. |
||
141 | * |
||
142 | * @param string $name |
||
143 | * |
||
144 | * @return void |
||
145 | */ |
||
146 | public function setDefaultDriver($name) |
||
150 | |||
151 | /** |
||
152 | * Dynamically call the default driver instance. |
||
153 | * |
||
154 | * @param string $method |
||
155 | * @param array $parameters |
||
156 | * |
||
157 | * @return mixed |
||
158 | */ |
||
159 | public function __call($method, $parameters) |
||
163 | } |
||
164 |
This check looks for
@param
annotations where the type inferred by our type inference engine differs from the declared type.It makes a suggestion as to what type it considers more descriptive.
Most often this is a case of a parameter that can be null in addition to its declared types.