Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 2.0116 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
20 | 2 | public function resolve() |
|
21 | { |
||
22 | 2 | $config = $this->getConfig('chief'); |
|
23 | |||
24 | 2 | if (is_null($config)) { |
|
25 | throw new InvalidArgumentException("Password resetter [chief] is not defined."); |
||
26 | } |
||
27 | |||
28 | 2 | return new ChiefPasswordBroker( |
|
29 | 2 | $this->createTokenRepository($config), |
|
30 | 2 | $this->app['auth']->createUserProvider($config['provider'] ?? null) |
|
31 | ); |
||
58 |