Some light refactoring. No changes.

This commit is contained in:
James Cole
2018-01-25 18:41:27 +01:00
parent 53fc4f2740
commit 7c70732247
28 changed files with 76 additions and 133 deletions

View File

@@ -190,7 +190,7 @@ class CategoryController extends Controller
$end = new Carbon;
}
// prep for "specific date" view.$dates = app('navigation')->blockPeriods($start, $end, $range);
// prep for "specific date" view.
if (strlen($moment) > 0 && 'all' !== $moment) {
$start = app('navigation')->startOfPeriod(new Carbon($moment), $range);
$end = app('navigation')->endOfPeriod($start, $range);