Fix code style

This commit is contained in:
ErickSkrauch 2018-07-08 18:55:53 +03:00
parent e3ade6a0cb
commit 7f42aadfcf
3 changed files with 4 additions and 2 deletions

View File

@ -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;
}
}

View File

@ -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;

View File

@ -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;