We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -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 |
@@ -433,7 +433,7 @@ discard block |
||
433 | 433 | return ''; |
434 | 434 | } |
435 | 435 | |
436 | - $makeCacheKey = function ($pid, $uid) { |
|
436 | + $makeCacheKey = function($pid, $uid) { |
|
437 | 437 | return $pid . '.' . $uid; |
438 | 438 | }; |
439 | 439 | |
@@ -963,7 +963,7 @@ discard block |
||
963 | 963 | $mimeTypeCollection = GeneralUtility::makeInstance(MimeTypeCollection::class); |
964 | 964 | $mimeTypes = array_filter( |
965 | 965 | $mimeTypeCollection->getMimeTypes(), |
966 | - function ($mimeType) use ($categories) { |
|
966 | + function($mimeType) use ($categories) { |
|
967 | 967 | foreach ($categories as $category) { |
968 | 968 | if (strpos($mimeType, $category . '/') === 0) { |
969 | 969 | return true; |
@@ -433,7 +433,8 @@ discard block |
||
433 | 433 | return ''; |
434 | 434 | } |
435 | 435 | |
436 | - $makeCacheKey = function ($pid, $uid) { |
|
436 | + $makeCacheKey = function ($pid, $uid) |
|
437 | + { |
|
437 | 438 | return $pid . '.' . $uid; |
438 | 439 | }; |
439 | 440 | |
@@ -963,7 +964,8 @@ discard block |
||
963 | 964 | $mimeTypeCollection = GeneralUtility::makeInstance(MimeTypeCollection::class); |
964 | 965 | $mimeTypes = array_filter( |
965 | 966 | $mimeTypeCollection->getMimeTypes(), |
966 | - function ($mimeType) use ($categories) { |
|
967 | + function ($mimeType) use ($categories) |
|
968 | + { |
|
967 | 969 | foreach ($categories as $category) { |
968 | 970 | if (strpos($mimeType, $category . '/') === 0) { |
969 | 971 | return true; |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | $query = $solr->service->createApi( |
91 | 91 | [ |
92 | 92 | 'version' => Request::API_V1, |
93 | - 'handler' => $affectedSolrCore['index_name'].'/schema', |
|
93 | + 'handler' => $affectedSolrCore['index_name'] . '/schema', |
|
94 | 94 | 'method' => Request::METHOD_POST, |
95 | 95 | 'rawdata' => json_encode( |
96 | 96 | [ |
@@ -175,7 +175,7 @@ discard block |
||
175 | 175 | $query = $solr->service->createApi( |
176 | 176 | [ |
177 | 177 | 'version' => Request::API_V1, |
178 | - 'handler' => $solrCore['index_name'].'/config/schemaFactory', |
|
178 | + 'handler' => $solrCore['index_name'] . '/config/schemaFactory', |
|
179 | 179 | 'method' => Request::METHOD_GET |
180 | 180 | ] |
181 | 181 | ); |
@@ -188,7 +188,7 @@ discard block |
||
188 | 188 | $query = $solr->service->createApi( |
189 | 189 | [ |
190 | 190 | 'version' => Request::API_V1, |
191 | - 'handler' => $solrCore['index_name'].'/schema/fields/autocomplete', |
|
191 | + 'handler' => $solrCore['index_name'] . '/schema/fields/autocomplete', |
|
192 | 192 | 'method' => Request::METHOD_GET |
193 | 193 | ] |
194 | 194 | ); |
@@ -66,7 +66,7 @@ |
||
66 | 66 | $pageGridPagination = new PageGridPagination($pageGridPaginator); |
67 | 67 | |
68 | 68 | $pagination = $this->buildSimplePagination($pageGridPagination, $pageGridPaginator); |
69 | - $this->view->assignMultiple([ 'pagination' => $pagination, 'paginator' => $pageGridPaginator ]); |
|
69 | + $this->view->assignMultiple(['pagination' => $pagination, 'paginator' => $pageGridPaginator]); |
|
70 | 70 | |
71 | 71 | $this->view->assign('docUid', $this->requestData['id']); |
72 | 72 |
@@ -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); |