@@ -27,7 +27,8 @@ |
||
| 27 | 27 | */ |
| 28 | 28 | private $equipmentLogRepository; |
| 29 | 29 | |
| 30 | - function __construct(ACSNodeRepository $acsNodeRepository, ACSValidator $ACSValidator, \BB\Services\KeyFobAccess $keyFobAccess, EquipmentLogRepository $equipmentLogRepository) { |
|
| 30 | + function __construct(ACSNodeRepository $acsNodeRepository, ACSValidator $ACSValidator, \BB\Services\KeyFobAccess $keyFobAccess, EquipmentLogRepository $equipmentLogRepository) |
|
| 31 | + { |
|
| 31 | 32 | $this->acsNodeRepository = $acsNodeRepository; |
| 32 | 33 | $this->ACSValidator = $ACSValidator; |
| 33 | 34 | $this->keyFobAccess = $keyFobAccess; |
@@ -88,8 +88,7 @@ |
||
| 88 | 88 | $client->post($url, [ |
| 89 | 89 | GuzzleHttp\RequestOptions::JSON => ['content' => $message] |
| 90 | 90 | ]); |
| 91 | - } |
|
| 92 | - else { |
|
| 91 | + } else { |
|
| 93 | 92 | throw new Exception('Discord URL has not been set.'); |
| 94 | 93 | } |
| 95 | 94 | } catch (Exception $e) { |