We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -136,8 +136,8 @@ discard block |
||
| 136 | 136 | $this->view->assign('calendarData', $calendarData); |
| 137 | 137 | $this->view->assign('documentId', $this->document->getUid()); |
| 138 | 138 | $this->view->assign('yearLinkTitle', $yearLinkTitle); |
| 139 | - $this->view->assign('parentDocumentId', $this->document->getPartof() ?: $this->document->getCurrentDocument()->tableOfContents[0]['points']); |
|
| 140 | - $this->view->assign('allYearDocTitle', $this->document->getCurrentDocument()->getTitle($this->document->getPartof()) ?: $this->document->getCurrentDocument()->tableOfContents[0]['label']); |
|
| 139 | + $this->view->assign('parentDocumentId', $this->document->getPartof() ? : $this->document->getCurrentDocument()->tableOfContents[0]['points']); |
|
| 140 | + $this->view->assign('allYearDocTitle', $this->document->getCurrentDocument()->getTitle($this->document->getPartof()) ? : $this->document->getCurrentDocument()->tableOfContents[0]['label']); |
|
| 141 | 141 | |
| 142 | 142 | return $this->htmlResponse(); |
| 143 | 143 | } |
@@ -224,7 +224,7 @@ discard block |
||
| 224 | 224 | } |
| 225 | 225 | |
| 226 | 226 | $this->view->assign('documentId', $this->document->getUid()); |
| 227 | - $this->view->assign('allYearDocTitle', $this->document->getCurrentDocument()->getTitle((int) $this->document->getUid()) ?: $this->document->getCurrentDocument()->tableOfContents[0]['label']); |
|
| 227 | + $this->view->assign('allYearDocTitle', $this->document->getCurrentDocument()->getTitle((int) $this->document->getUid()) ? : $this->document->getCurrentDocument()->tableOfContents[0]['label']); |
|
| 228 | 228 | |
| 229 | 229 | return $this->htmlResponse(); |
| 230 | 230 | } |
@@ -495,7 +495,7 @@ discard block |
||
| 495 | 495 | foreach ($year['children'] as $month) { |
| 496 | 496 | foreach ($month['children'] as $day) { |
| 497 | 497 | foreach ($day['children'] as $issue) { |
| 498 | - $title = $issue['label'] ?: $issue['orderlabel']; |
|
| 498 | + $title = $issue['label'] ? : $issue['orderlabel']; |
|
| 499 | 499 | if (strtotime($title) !== false) { |
| 500 | 500 | $title = strftime('%x', strtotime($title)); |
| 501 | 501 | } |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | // extract collection(s) from collection parameter |
| 84 | 84 | $collections = []; |
| 85 | 85 | if (is_array($this->searchParams) && array_key_exists('collection', $this->searchParams)) { |
| 86 | - foreach(explode(',', $this->searchParams['collection']) as $collectionEntry) { |
|
| 86 | + foreach (explode(',', $this->searchParams['collection']) as $collectionEntry) { |
|
| 87 | 87 | if (!empty($collectionEntry)) { |
| 88 | 88 | $collections[] = $this->collectionRepository->findByUid((int) $collectionEntry); |
| 89 | 89 | } |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | $simplePagination = new SimplePagination($solrPaginator); |
| 117 | 117 | |
| 118 | 118 | $pagination = $this->buildSimplePagination($simplePagination, $solrPaginator); |
| 119 | - $this->view->assignMultiple([ 'pagination' => $pagination, 'paginator' => $solrPaginator ]); |
|
| 119 | + $this->view->assignMultiple(['pagination' => $pagination, 'paginator' => $solrPaginator]); |
|
| 120 | 120 | } |
| 121 | 121 | |
| 122 | 122 | $this->view->assign('viewData', $this->viewData); |