We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -46,7 +46,8 @@ |
||
| 46 | 46 | |
| 47 | 47 | public static function paragraphs(array $paragraphs) |
| 48 | 48 | { |
| 49 | - $paragraphs = array_values(array_filter($paragraphs, function ($entry) { |
|
| 49 | + $paragraphs = array_values(array_filter($paragraphs, function ($entry) |
|
| 50 | + { |
|
| 50 | 51 | return !empty($entry); |
| 51 | 52 | })); |
| 52 | 53 | |
@@ -204,7 +204,8 @@ discard block |
||
| 204 | 204 | RST); |
| 205 | 205 | |
| 206 | 206 | // Sort tables alphabetically |
| 207 | - usort($tables, function ($lhs, $rhs) { |
|
| 207 | + usort($tables, function ($lhs, $rhs) |
|
| 208 | + { |
|
| 208 | 209 | return $lhs->name <=> $rhs->name; |
| 209 | 210 | }); |
| 210 | 211 | |
@@ -231,7 +232,8 @@ discard block |
||
| 231 | 232 | 'description' => 'Description', |
| 232 | 233 | ]]; |
| 233 | 234 | |
| 234 | - $rows = array_map(function ($column) use ($page) { |
|
| 235 | + $rows = array_map(function ($column) use ($page) |
|
| 236 | + { |
|
| 235 | 237 | return [ |
| 236 | 238 | 'field' => ( |
| 237 | 239 | $page->format($column->name, ['bold' => $column->isPrimary]) |
@@ -71,7 +71,8 @@ discard block |
||
| 71 | 71 | $this->configurationToUseInTestInstance['EXTENSIONS']['dlf'] = $this->getDlfConfiguration(); |
| 72 | 72 | |
| 73 | 73 | if ($this->disableJsonWrappedResponse) { |
| 74 | - $this->frameworkExtensionsToLoad = array_filter($this->frameworkExtensionsToLoad, function ($ext) { |
|
| 74 | + $this->frameworkExtensionsToLoad = array_filter($this->frameworkExtensionsToLoad, function ($ext) |
|
| 75 | + { |
|
| 75 | 76 | return $ext !== 'Resources/Core/Functional/Extensions/json_response'; |
| 76 | 77 | }); |
| 77 | 78 | } |
@@ -152,7 +153,8 @@ discard block |
||
| 152 | 153 | $jsonDocuments = json_decode(file_get_contents($path), true); |
| 153 | 154 | |
| 154 | 155 | $updateQuery = $solr->service->createUpdate(); |
| 155 | - $documents = array_map(function ($jsonDoc) use ($updateQuery) { |
|
| 156 | + $documents = array_map(function ($jsonDoc) use ($updateQuery) |
|
| 157 | + { |
|
| 156 | 158 | $document = $updateQuery->createDocument(); |
| 157 | 159 | foreach ($jsonDoc as $key => $value) { |
| 158 | 160 | $document->setField($key, $value); |
@@ -776,7 +776,8 @@ |
||
| 776 | 776 | * |
| 777 | 777 | * @return array The Apache Solr Documents that were fetched |
| 778 | 778 | */ |
| 779 | - private function getDocument(Document $record, array $highlighting, array $fields, $parameters) { |
|
| 779 | + private function getDocument(Document $record, array $highlighting, array $fields, $parameters) |
|
| 780 | + { |
|
| 780 | 781 | $resultDocument = new ResultDocument($record, $highlighting, $fields); |
| 781 | 782 | |
| 782 | 783 | $document = [ |
@@ -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 | } |
@@ -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 | ); |
@@ -351,7 +351,8 @@ discard block |
||
| 351 | 351 | $lastStartRecordNumberGrid = 0; // due to validity outside the loop |
| 352 | 352 | foreach (range($firstPage, $lastPage) as $i) { |
| 353 | 353 | // detect which pagination is active: ListView or GridView |
| 354 | - if (get_class($pagination) == 'TYPO3\CMS\Core\Pagination\SimplePagination') { // ListView |
|
| 354 | + if (get_class($pagination) == 'TYPO3\CMS\Core\Pagination\SimplePagination') { |
|
| 355 | +// ListView |
|
| 355 | 356 | $lastStartRecordNumberGrid = $i; // save last $startRecordNumber for LastPage button |
| 356 | 357 | |
| 357 | 358 | $pages[$i] = [ |
@@ -364,7 +365,8 @@ discard block |
||
| 364 | 365 | if (in_array($i, $aRange)) { |
| 365 | 366 | array_push($pagesSect, ['label' => $i, 'startRecordNumber' => $i]); |
| 366 | 367 | }; |
| 367 | - } else { // GridView |
|
| 368 | + } else { |
|
| 369 | +// GridView |
|
| 368 | 370 | // to calculate the values for generation the links for the pagination pages |
| 369 | 371 | /** @var \Kitodo\Dlf\Pagination\PageGridPaginator $paginator */ |
| 370 | 372 | $itemsPerPage = $paginator->getPublicItemsPerPage(); |
@@ -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 | } |
@@ -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; |