Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | public function __invoke() |
||
12 | { |
||
13 | $auth = [ |
||
14 | 'client_auth' => $this->client_auth, |
||
15 | 'token' => $this->token, |
||
16 | 'secret' => $this->secret |
||
17 | ]; |
||
18 | |||
19 | if( ($index = array_search( null, $auth )) !== false ){ |
||
20 | throw new OneDocException("Autenticação Incompleta!\nNão foi encontrado: ".$index); |
||
21 | } |
||
22 | |||
23 | return $auth; |
||
24 | } |
||
26 | } |