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