We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -102,7 +102,7 @@ |
||
102 | 102 | $simplePagination = new SimplePagination($solrPaginator); |
103 | 103 | |
104 | 104 | $pagination = $this->buildSimplePagination($simplePagination, $solrPaginator); |
105 | - $this->view->assignMultiple([ 'pagination' => $pagination, 'paginator' => $solrPaginator ]); |
|
105 | + $this->view->assignMultiple(['pagination' => $pagination, 'paginator' => $solrPaginator]); |
|
106 | 106 | } |
107 | 107 | |
108 | 108 | $this->view->assign('viewData', $this->viewData); |
@@ -134,8 +134,8 @@ discard block |
||
134 | 134 | $this->view->assign('calendarData', $calendarData); |
135 | 135 | $this->view->assign('documentId', $this->document->getUid()); |
136 | 136 | $this->view->assign('yearLinkTitle', $yearLinkTitle); |
137 | - $this->view->assign('parentDocumentId', $this->document->getPartof() ?: $this->document->getCurrentDocument()->tableOfContents[0]['points']); |
|
138 | - $this->view->assign('allYearDocTitle', $this->document->getCurrentDocument()->getTitle($this->document->getPartof()) ?: $this->document->getCurrentDocument()->tableOfContents[0]['label']); |
|
137 | + $this->view->assign('parentDocumentId', $this->document->getPartof() ? : $this->document->getCurrentDocument()->tableOfContents[0]['points']); |
|
138 | + $this->view->assign('allYearDocTitle', $this->document->getCurrentDocument()->getTitle($this->document->getPartof()) ? : $this->document->getCurrentDocument()->tableOfContents[0]['label']); |
|
139 | 139 | } |
140 | 140 | |
141 | 141 | /** |
@@ -220,7 +220,7 @@ discard block |
||
220 | 220 | } |
221 | 221 | |
222 | 222 | $this->view->assign('documentId', $this->document->getUid()); |
223 | - $this->view->assign('allYearDocTitle', $this->document->getCurrentDocument()->getTitle((int) $this->document->getUid()) ?: $this->document->getCurrentDocument()->tableOfContents[0]['label']); |
|
223 | + $this->view->assign('allYearDocTitle', $this->document->getCurrentDocument()->getTitle((int) $this->document->getUid()) ? : $this->document->getCurrentDocument()->tableOfContents[0]['label']); |
|
224 | 224 | } |
225 | 225 | |
226 | 226 | /** |
@@ -489,7 +489,7 @@ discard block |
||
489 | 489 | foreach ($year['children'] as $month) { |
490 | 490 | foreach ($month['children'] as $day) { |
491 | 491 | foreach ($day['children'] as $issue) { |
492 | - $title = $issue['label'] ?: $issue['orderlabel']; |
|
492 | + $title = $issue['label'] ? : $issue['orderlabel']; |
|
493 | 493 | if (strtotime($title) !== false) { |
494 | 494 | $title = strftime('%x', strtotime($title)); |
495 | 495 | } |
@@ -173,7 +173,7 @@ |
||
173 | 173 | $this->parseMetadata($i, $name, $value, $metadata); |
174 | 174 | |
175 | 175 | if (is_array($metadata[$i][$name])) { |
176 | - $metadata[$i][$name] = array_values(array_filter($metadata[$i][$name], function ($metadataValue) { |
|
176 | + $metadata[$i][$name] = array_values(array_filter($metadata[$i][$name], function($metadataValue) { |
|
177 | 177 | return !empty($metadataValue); |
178 | 178 | })); |
179 | 179 | } |
@@ -173,7 +173,8 @@ |
||
173 | 173 | $this->parseMetadata($i, $name, $value, $metadata); |
174 | 174 | |
175 | 175 | if (is_array($metadata[$i][$name])) { |
176 | - $metadata[$i][$name] = array_values(array_filter($metadata[$i][$name], function ($metadataValue) { |
|
176 | + $metadata[$i][$name] = array_values(array_filter($metadata[$i][$name], function ($metadataValue) |
|
177 | + { |
|
177 | 178 | return !empty($metadataValue); |
178 | 179 | })); |
179 | 180 | } |
@@ -729,7 +729,7 @@ |
||
729 | 729 | */ |
730 | 730 | private function getDate(string $dateType) |
731 | 731 | { |
732 | - return strptime($this->parameters[$dateType], '%Y-%m-%dT%H:%M:%SZ') ?: strptime($this->parameters[$dateType], '%Y-%m-%d'); |
|
732 | + return strptime($this->parameters[$dateType], '%Y-%m-%dT%H:%M:%SZ') ? : strptime($this->parameters[$dateType], '%Y-%m-%d'); |
|
733 | 733 | } |
734 | 734 | |
735 | 735 | /** |
@@ -53,7 +53,7 @@ |
||
53 | 53 | $metadata['video_duration'] = [$videoDuration]; |
54 | 54 | } |
55 | 55 | |
56 | - $metadata['duration'] = $metadata['video_duration'] ?: $metadata['audio_duration'] ?: []; |
|
56 | + $metadata['duration'] = $metadata['video_duration'] ? : $metadata['audio_duration'] ? : []; |
|
57 | 57 | |
58 | 58 | if ($useExternalApis) { |
59 | 59 | // TODO? |
@@ -736,7 +736,8 @@ |
||
736 | 736 | |
737 | 737 | return array_filter( |
738 | 738 | $allMdIds, |
739 | - function ($element) { |
|
739 | + function ($element) |
|
740 | + { |
|
740 | 741 | return !empty($element); |
741 | 742 | } |
742 | 743 | ); |
@@ -461,7 +461,7 @@ discard block |
||
461 | 461 | $cPid = max($cPid, 0); |
462 | 462 | if ($cPid == 0 && ($this->cPid || $this->pid)) { |
463 | 463 | // Retain current PID. |
464 | - $cPid = $this->cPid ?: $this->pid; |
|
464 | + $cPid = $this->cPid ? : $this->pid; |
|
465 | 465 | } |
466 | 466 | return $cPid; |
467 | 467 | } |
@@ -881,7 +881,7 @@ discard block |
||
881 | 881 | |
882 | 882 | return array_filter( |
883 | 883 | $allMdIds, |
884 | - function ($element) { |
|
884 | + function($element) { |
|
885 | 885 | return !empty($element); |
886 | 886 | } |
887 | 887 | ); |
@@ -1273,7 +1273,7 @@ discard block |
||
1273 | 1273 | || $forceReload |
1274 | 1274 | ) { |
1275 | 1275 | // Retain current PID. |
1276 | - $cPid = $this->cPid ?: $this->pid; |
|
1276 | + $cPid = $this->cPid ? : $this->pid; |
|
1277 | 1277 | if (!$cPid) { |
1278 | 1278 | $this->logger->error('Invalid PID ' . $cPid . ' for structure definitions'); |
1279 | 1279 | $this->thumbnailLoaded = true; |
@@ -152,7 +152,7 @@ |
||
152 | 152 | // field for which highlighting is going to be performed, |
153 | 153 | // is required if you want to have OCR highlighting |
154 | 154 | $solrRequest->addParam('hl.ocr.fl', $this->fields['fulltext']); |
155 | - // return the coordinates of highlighted search as absolute coordinates |
|
155 | + // return the coordinates of highlighted search as absolute coordinates |
|
156 | 156 | $solrRequest->addParam('hl.ocr.absoluteHighlights', 'on'); |
157 | 157 | // max amount of snippets for a single page |
158 | 158 | $solrRequest->addParam('hl.snippets', '40'); |
@@ -34,7 +34,7 @@ |
||
34 | 34 | |
35 | 35 | $view->assign( |
36 | 36 | 'configObject', |
37 | - [ 'wrap' => 'all.wrap = <article class="shlb-metadata-text-item metadata-title">|</article> |
|
37 | + ['wrap' => 'all.wrap = <article class="shlb-metadata-text-item metadata-title">|</article> |
|
38 | 38 | key.wrap = <label>|</label> |
39 | 39 | value.required = 1 |
40 | 40 | value.wrap = <li>|</li>' |
@@ -50,7 +50,7 @@ |
||
50 | 50 | <root> |
51 | 51 | <single /> |
52 | 52 | </root> |
53 | -XML; |
|
53 | +xml; |
|
54 | 54 | $node = Helper::getXmlFileAsString($xml); |
55 | 55 | self::assertIsObject($node); |
56 | 56 | self::assertEquals('root', $node->getName()); |