@@ -400,7 +400,7 @@ |
||
400 | 400 | $now = DateTimeUtility::getNow(); |
401 | 401 | $useCurrentDate = $now->format('Y-m') === $date->format('Y-m'); |
402 | 402 | |
403 | - if(isset($arguments['index'])) { |
|
403 | + if (isset($arguments['index'])) { |
|
404 | 404 | /** @var Index $index */ |
405 | 405 | $index = $this->indexRepository->findByUid($arguments['index']); |
406 | 406 | $date = $index->getStartDate(); |
@@ -404,8 +404,7 @@ |
||
404 | 404 | /** @var Index $index */ |
405 | 405 | $index = $this->indexRepository->findByUid($arguments['index']); |
406 | 406 | $date = $index->getStartDate(); |
407 | - } |
|
408 | - else { |
|
407 | + } else { |
|
409 | 408 | if ($useCurrentDate) { |
410 | 409 | $date = $now; |
411 | 410 | } |