mirror of
https://github.com/elyby/accounts.git
synced 2024-11-30 02:32:26 +05:30
Fix code style
This commit is contained in:
parent
e3ade6a0cb
commit
7f42aadfcf
@ -78,6 +78,7 @@ class DeliveryWebHook implements RetryableJobInterface {
|
||||
]);
|
||||
} catch (ClientException $e) {
|
||||
Yii::info("Delivery for {$this->url} has failed with {$e->getResponse()->getStatusCode()} status.");
|
||||
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
@ -38,7 +38,7 @@ class WebhooksController extends Controller {
|
||||
if ($eventIndex !== '') {
|
||||
$events[] = $options[$eventIndex];
|
||||
}
|
||||
} while($eventIndex !== '' || empty($events)); // User must choose at least one event
|
||||
} while ($eventIndex !== '' || empty($events));
|
||||
|
||||
$form->url = $url;
|
||||
$form->events = $events;
|
||||
|
@ -109,6 +109,7 @@ class DeliveryWebHookTest extends TestCase {
|
||||
private function createMockedTask(): DeliveryWebHook {
|
||||
$container = &$this->historyContainer;
|
||||
$response = $this->response;
|
||||
|
||||
return new class($container, $response) extends DeliveryWebHook {
|
||||
private $historyContainer;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user