We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -29,10 +29,10 @@ |
||
29 | 29 | */ |
30 | 30 | class DocumentValidator |
31 | 31 | { |
32 | - /** |
|
33 | - * @access protected |
|
34 | - * @var Logger This holds the logger |
|
35 | - */ |
|
32 | + /** |
|
33 | + * @access protected |
|
34 | + * @var Logger This holds the logger |
|
35 | + */ |
|
36 | 36 | protected Logger $logger; |
37 | 37 | |
38 | 38 | /** |
@@ -347,7 +347,7 @@ discard block |
||
347 | 347 | } |
348 | 348 | } |
349 | 349 | } |
350 | - return $label ?: $orderLabel; |
|
350 | + return $label ? : $orderLabel; |
|
351 | 351 | } |
352 | 352 | |
353 | 353 | /** |
@@ -382,7 +382,7 @@ discard block |
||
382 | 382 | { |
383 | 383 | usort( |
384 | 384 | $menu[0]['_SUB_MENU'], |
385 | - function ($firstElement, $secondElement) { |
|
385 | + function($firstElement, $secondElement) { |
|
386 | 386 | if (!empty($firstElement['orderlabel'])) { |
387 | 387 | return $firstElement['orderlabel'] <=> $secondElement['orderlabel']; |
388 | 388 | } |
@@ -382,7 +382,8 @@ |
||
382 | 382 | { |
383 | 383 | usort( |
384 | 384 | $menu[0]['_SUB_MENU'], |
385 | - function ($firstElement, $secondElement) { |
|
385 | + function ($firstElement, $secondElement) |
|
386 | + { |
|
386 | 387 | if (!empty($firstElement['orderlabel'])) { |
387 | 388 | return $firstElement['orderlabel'] <=> $secondElement['orderlabel']; |
388 | 389 | } |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | } |
123 | 123 | |
124 | 124 | if (isset($listRequestData['searchParameter']) && is_array($listRequestData['searchParameter'])) { |
125 | - $this->searchParams = array_merge($this->searchParams ?: [], $listRequestData['searchParameter']); |
|
125 | + $this->searchParams = array_merge($this->searchParams ? : [], $listRequestData['searchParameter']); |
|
126 | 126 | $listViewSearch = true; |
127 | 127 | $GLOBALS['TSFE']->fe_user->setKey('ses', 'search', $this->searchParams); |
128 | 128 | } |
@@ -190,7 +190,7 @@ discard block |
||
190 | 190 | $simplePagination = new SimplePagination($solrPaginator); |
191 | 191 | |
192 | 192 | $pagination = $this->buildSimplePagination($simplePagination, $solrPaginator); |
193 | - $this->view->assignMultiple([ 'pagination' => $pagination, 'paginator' => $solrPaginator ]); |
|
193 | + $this->view->assignMultiple(['pagination' => $pagination, 'paginator' => $solrPaginator]); |
|
194 | 194 | } |
195 | 195 | |
196 | 196 | $this->view->assign('documents', !empty($solrResults) ? $solrResults : []); |
@@ -354,7 +354,7 @@ |
||
354 | 354 | $solrDoc->setField('title', $metadata['title'][0]); |
355 | 355 | $solrDoc->setField('volume', $metadata['volume'][0]); |
356 | 356 | // verify date formatting |
357 | - if(strtotime($metadata['date'][0])) { |
|
357 | + if (strtotime($metadata['date'][0])) { |
|
358 | 358 | $solrDoc->setField('date', self::getFormattedDate($metadata['date'][0])); |
359 | 359 | } |
360 | 360 | $solrDoc->setField('record_id', $metadata['record_id'][0]); |
@@ -130,11 +130,11 @@ |
||
130 | 130 | ); |
131 | 131 | } |
132 | 132 | } elseif ($annotationTarget->getObjectId()) { |
133 | - $objectTargetPages = []; |
|
133 | + $objectTargetPages = []; |
|
134 | 134 | foreach ($this->document->getCurrentDocument()->physicalStructureInfo as $physInfo) { |
135 | - $order = $physInfo['order']; |
|
135 | + $order = $physInfo['order']; |
|
136 | 136 | if ($order) { |
137 | - $objectTargetPages[] = $order; |
|
137 | + $objectTargetPages[] = $order; |
|
138 | 138 | } |
139 | 139 | } |
140 | 140 | if ($objectTargetPages) { |
@@ -24,7 +24,7 @@ |
||
24 | 24 | */ |
25 | 25 | public function __construct($apiUrl) |
26 | 26 | { |
27 | - $this->apiUrl = trim($apiUrl, "/ "); |
|
27 | + $this->apiUrl = trim($apiUrl, "/ "); |
|
28 | 28 | } |
29 | 29 | |
30 | 30 |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | // extract collection(s) from collection parameter |
83 | 83 | $collections = []; |
84 | 84 | if (is_array($this->searchParams) && array_key_exists('collection', $this->searchParams)) { |
85 | - foreach(explode(',', $this->searchParams['collection']) as $collectionEntry) { |
|
85 | + foreach (explode(',', $this->searchParams['collection']) as $collectionEntry) { |
|
86 | 86 | $collections[] = $this->collectionRepository->findByUid((int) $collectionEntry); |
87 | 87 | } |
88 | 88 | } |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | $simplePagination = new SimplePagination($solrPaginator); |
114 | 114 | |
115 | 115 | $pagination = $this->buildSimplePagination($simplePagination, $solrPaginator); |
116 | - $this->view->assignMultiple([ 'pagination' => $pagination, 'paginator' => $solrPaginator ]); |
|
116 | + $this->view->assignMultiple(['pagination' => $pagination, 'paginator' => $solrPaginator]); |
|
117 | 117 | } |
118 | 118 | |
119 | 119 | $this->view->assign('viewData', $this->viewData); |