We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -125,7 +125,7 @@ discard block |
||
| 125 | 125 | foreach ($year['children'] as $month) { |
| 126 | 126 | foreach ($month['children'] as $day) { |
| 127 | 127 | foreach ($day['children'] as $issue) { |
| 128 | - $title = $issue['label'] ?: $issue['orderlabel']; |
|
| 128 | + $title = $issue['label'] ? : $issue['orderlabel']; |
|
| 129 | 129 | if (strtotime($title) !== false) { |
| 130 | 130 | $title = strftime('%x', strtotime($title)); |
| 131 | 131 | } |
@@ -216,8 +216,8 @@ discard block |
||
| 216 | 216 | $this->view->assign('calendarData', $calendarData); |
| 217 | 217 | $this->view->assign('documentId', $this->document->getUid()); |
| 218 | 218 | $this->view->assign('yearLinkTitle', $yearLinkTitle); |
| 219 | - $this->view->assign('parentDocumentId', $this->document->getPartof() ?: $this->document->getCurrentDocument()->tableOfContents[0]['points']); |
|
| 220 | - $this->view->assign('allYearDocTitle', $this->document->getCurrentDocument()->getTitle($this->document->getPartof()) ?: $this->document->getCurrentDocument()->tableOfContents[0]['label']); |
|
| 219 | + $this->view->assign('parentDocumentId', $this->document->getPartof() ? : $this->document->getCurrentDocument()->tableOfContents[0]['points']); |
|
| 220 | + $this->view->assign('allYearDocTitle', $this->document->getCurrentDocument()->getTitle($this->document->getPartof()) ? : $this->document->getCurrentDocument()->tableOfContents[0]['label']); |
|
| 221 | 221 | } |
| 222 | 222 | |
| 223 | 223 | /** |
@@ -253,7 +253,7 @@ discard block |
||
| 253 | 253 | |
| 254 | 254 | if (empty($yearLabel)) { |
| 255 | 255 | // if neither order nor orderlabel is set, use the id... |
| 256 | - $yearLabel = (string)$id; |
|
| 256 | + $yearLabel = (string) $id; |
|
| 257 | 257 | } |
| 258 | 258 | |
| 259 | 259 | $years[] = [ |
@@ -292,7 +292,7 @@ discard block |
||
| 292 | 292 | if (is_int($key)) { |
| 293 | 293 | $yearFilled[] = $yearArray[$key]; |
| 294 | 294 | } else { |
| 295 | - $yearFilled[] = ['title' => $min+$i, 'documentId' => '']; |
|
| 295 | + $yearFilled[] = ['title' => $min + $i, 'documentId' => '']; |
|
| 296 | 296 | } |
| 297 | 297 | } |
| 298 | 298 | $yearArray = $yearFilled; |