mirror of
https://github.com/elyby/accounts.git
synced 2024-12-02 11:41:05 +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) {
|
} catch (ClientException $e) {
|
||||||
Yii::info("Delivery for {$this->url} has failed with {$e->getResponse()->getStatusCode()} status.");
|
Yii::info("Delivery for {$this->url} has failed with {$e->getResponse()->getStatusCode()} status.");
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -38,7 +38,7 @@ class WebhooksController extends Controller {
|
|||||||
if ($eventIndex !== '') {
|
if ($eventIndex !== '') {
|
||||||
$events[] = $options[$eventIndex];
|
$events[] = $options[$eventIndex];
|
||||||
}
|
}
|
||||||
} while($eventIndex !== '' || empty($events)); // User must choose at least one event
|
} while ($eventIndex !== '' || empty($events));
|
||||||
|
|
||||||
$form->url = $url;
|
$form->url = $url;
|
||||||
$form->events = $events;
|
$form->events = $events;
|
||||||
|
@ -109,7 +109,8 @@ class DeliveryWebHookTest extends TestCase {
|
|||||||
private function createMockedTask(): DeliveryWebHook {
|
private function createMockedTask(): DeliveryWebHook {
|
||||||
$container = &$this->historyContainer;
|
$container = &$this->historyContainer;
|
||||||
$response = $this->response;
|
$response = $this->response;
|
||||||
return new class ($container, $response) extends DeliveryWebHook {
|
|
||||||
|
return new class($container, $response) extends DeliveryWebHook {
|
||||||
private $historyContainer;
|
private $historyContainer;
|
||||||
|
|
||||||
private $response;
|
private $response;
|
||||||
|
Loading…
Reference in New Issue
Block a user