Conditions | 3 |
Paths | 2 |
Total Lines | 16 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
43 | public function __construct() |
||
44 | { |
||
45 | $this->username = config('services.46elks.username'); |
||
46 | $this->password = config('services.46elks.password'); |
||
47 | if (!$this->username || !$this->password) { |
||
48 | throw MissingConfigNotification::missingConfig(); |
||
49 | } |
||
50 | |||
51 | $this->client = new Client( |
||
|
|||
52 | [ |
||
53 | 'headers' => [ |
||
54 | 'Content-Type' => 'application/x-www-urlencoded', |
||
55 | ], |
||
56 | 'auth' => [ |
||
57 | $this->username, |
||
58 | $this->password, |
||
59 | ], |
||
128 |