mirror of
https://github.com/elyby/accounts.git
synced 2024-12-27 23:50:19 +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,7 +109,8 @@ class DeliveryWebHookTest extends TestCase {
|
||||
private function createMockedTask(): DeliveryWebHook {
|
||||
$container = &$this->historyContainer;
|
||||
$response = $this->response;
|
||||
return new class ($container, $response) extends DeliveryWebHook {
|
||||
|
||||
return new class($container, $response) extends DeliveryWebHook {
|
||||
private $historyContainer;
|
||||
|
||||
private $response;
|
||||
|
Loading…
Reference in New Issue
Block a user