Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
CachetBot authored and StyleCIBot committed Apr 1, 2020
1 parent 686ba07 commit 0309246
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 7 deletions.
4 changes: 2 additions & 2 deletions app/Http/Controllers/StatusPageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ public function showIndex()
$endDate->format('Y-m-d').' 00:00:00',
$startDate->format('Y-m-d').' 23:59:59',
])->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) {
$incidentDays = array_pad([], $appIncidentDays, null);
Expand Down
8 changes: 6 additions & 2 deletions app/Http/Controllers/SubscribeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,12 @@ public function postSubscribe()
$subscription->notify(new ManageSubscriptionNotification());

return redirect()->back()->withSuccess(
sprintf('%s %s', trans('dashboard.notifications.awesome'),
trans('cachet.subscriber.email.manage_subscription')));
sprintf(
'%s %s',
trans('dashboard.notifications.awesome'),
trans('cachet.subscriber.email.manage_subscription')
)
);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ class ComponentStatusWasChangedEventTest extends AbstractComponentEventTestCase
{
use DatabaseMigrations;
use InteractsWithMail;

public function testComponentUpdateEmailWasSent()
{
$user = factory('CachetHQ\Cachet\Models\User')->create();
Expand Down
9 changes: 6 additions & 3 deletions tests/Functional/Notifications/MailTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@ public function testEmailNotificationSentForNewIncident()
]);

Notification::assertSentTo(
[$subscriber], NewIncidentNotification::class
[$subscriber],
NewIncidentNotification::class
);
}

Expand All @@ -161,7 +162,8 @@ public function testEmailNotificationNotSentWhenNotifyNotCheckedForNewIncident()
]);

Notification::assertNotSentTo(
[$subscriber], NewIncidentNotification::class
[$subscriber],
NewIncidentNotification::class
);
}

Expand All @@ -184,7 +186,8 @@ public function testEmailNotificationSentForIncidentUpdate()
]);

Notification::assertSentTo(
[$subscriber], IncidentUpdatedNotification::class
[$subscriber],
IncidentUpdatedNotification::class
);
}
}

0 comments on commit 0309246

Please sign in to comment.