Conditions | 1 |
Paths | 1 |
Total Lines | 17 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
31 | protected function getAuthClient() |
||
32 | { |
||
33 | $client = static::createClient(); |
||
34 | $client->request( |
||
35 | 'POST', |
||
36 | '/api/login_check', |
||
37 | [ |
||
38 | 'identifiant' => $this->identifiant, |
||
39 | 'motDePasse' => $this->motDePasse, |
||
40 | ] |
||
41 | ); |
||
42 | $dataHeader = json_decode($client->getResponse()->getContent(), true); |
||
43 | |||
44 | $client = static::createClient(); |
||
45 | $client->setServerParameter('HTTP_Authorization', sprintf('Bearer %s', $dataHeader['token'])); |
||
46 | return $client; |
||
47 | } |
||
48 | } |
||
|
|||
49 |
This check marks files that end in a newline character, i.e. an empy line.