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