Apply fixes from StyleCI
This commit is contained in:
@@ -101,8 +101,8 @@ class StatusPageController extends AbstractApiController
|
|||||||
$endDate->format('Y-m-d').' 00:00:00',
|
$endDate->format('Y-m-d').' 00:00:00',
|
||||||
$startDate->format('Y-m-d').' 23:59:59',
|
$startDate->format('Y-m-d').' 23:59:59',
|
||||||
])->orderBy('occurred_at', 'desc')->get()->groupBy(function (Incident $incident) {
|
])->orderBy('occurred_at', 'desc')->get()->groupBy(function (Incident $incident) {
|
||||||
return app(DateFactory::class)->make($incident->occurred_at)->toDateString();
|
return app(DateFactory::class)->make($incident->occurred_at)->toDateString();
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!$onlyDisruptedDays) {
|
if (!$onlyDisruptedDays) {
|
||||||
$incidentDays = array_pad([], $appIncidentDays, null);
|
$incidentDays = array_pad([], $appIncidentDays, null);
|
||||||
|
|||||||
@@ -94,8 +94,12 @@ class SubscribeController extends Controller
|
|||||||
$subscription->notify(new ManageSubscriptionNotification());
|
$subscription->notify(new ManageSubscriptionNotification());
|
||||||
|
|
||||||
return redirect()->back()->withSuccess(
|
return redirect()->back()->withSuccess(
|
||||||
sprintf('%s %s', trans('dashboard.notifications.awesome'),
|
sprintf(
|
||||||
trans('cachet.subscriber.email.manage_subscription')));
|
'%s %s',
|
||||||
|
trans('dashboard.notifications.awesome'),
|
||||||
|
trans('cachet.subscriber.email.manage_subscription')
|
||||||
|
)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -26,6 +26,7 @@ class ComponentStatusWasChangedEventTest extends AbstractComponentEventTestCase
|
|||||||
{
|
{
|
||||||
use DatabaseMigrations;
|
use DatabaseMigrations;
|
||||||
use InteractsWithMail;
|
use InteractsWithMail;
|
||||||
|
|
||||||
public function testComponentUpdateEmailWasSent()
|
public function testComponentUpdateEmailWasSent()
|
||||||
{
|
{
|
||||||
$user = factory('CachetHQ\Cachet\Models\User')->create();
|
$user = factory('CachetHQ\Cachet\Models\User')->create();
|
||||||
|
|||||||
@@ -137,7 +137,8 @@ class MailTest extends AbstractTestCase
|
|||||||
]);
|
]);
|
||||||
|
|
||||||
Notification::assertSentTo(
|
Notification::assertSentTo(
|
||||||
[$subscriber], NewIncidentNotification::class
|
[$subscriber],
|
||||||
|
NewIncidentNotification::class
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -161,7 +162,8 @@ class MailTest extends AbstractTestCase
|
|||||||
]);
|
]);
|
||||||
|
|
||||||
Notification::assertNotSentTo(
|
Notification::assertNotSentTo(
|
||||||
[$subscriber], NewIncidentNotification::class
|
[$subscriber],
|
||||||
|
NewIncidentNotification::class
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -184,7 +186,8 @@ class MailTest extends AbstractTestCase
|
|||||||
]);
|
]);
|
||||||
|
|
||||||
Notification::assertSentTo(
|
Notification::assertSentTo(
|
||||||
[$subscriber], IncidentUpdatedNotification::class
|
[$subscriber],
|
||||||
|
IncidentUpdatedNotification::class
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user