Unrelated code cleanup.

This commit is contained in:
James Cole
2017-12-16 19:48:31 +01:00
parent 8176356509
commit 1d58d519a0
19 changed files with 52 additions and 50 deletions

View File

@@ -227,7 +227,7 @@ class CategoryController extends Controller
$start = null;
$end = null;
$periods = new Collection;
$path = route('categories.show', [$category->id]);
$path = route('categories.show', [$category->id]);
// prep for "all" view.
if ('all' === $moment) {
@@ -236,7 +236,7 @@ class CategoryController extends Controller
/** @var Carbon $start */
$start = null === $first ? new Carbon : $first;
$end = new Carbon;
$path = route('categories.show', [$category->id,'all']);
$path = route('categories.show', [$category->id, 'all']);
}
// prep for "specific date" view.
@@ -249,7 +249,7 @@ class CategoryController extends Controller
'start' => $start->formatLocalized($this->monthAndDayFormat), 'end' => $end->formatLocalized($this->monthAndDayFormat),]
);
$periods = $this->getPeriodOverview($category);
$path = route('categories.show', [$category->id, $moment]);
$path = route('categories.show', [$category->id, $moment]);
}
// prep for current period