Conditions | 3 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 12 |
Ratio | 100 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
31 | View Code Duplication | public function secureRequest(Request $request, RequestBuilder $builder) |
|
32 | { |
||
33 | $credentials = $builder->getCredentials(); |
||
34 | |||
35 | if (!isset($credentials['username']) || !isset($credentials['password'])) { |
||
36 | throw new \RuntimeException( |
||
37 | 'You must specified a "username" and a "password" for the http basic authentication.' |
||
38 | ); |
||
39 | } |
||
40 | |||
41 | $request->setAuth($credentials['username'], $credentials['password'], $this->scheme); |
||
42 | } |
||
43 | } |
||
44 |
This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.