We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -46,7 +46,7 @@ |
||
| 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 | return !empty($entry); |
| 51 | 51 | })); |
| 52 | 52 | |
@@ -204,7 +204,7 @@ 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 | return $lhs->name <=> $rhs->name; |
| 209 | 209 | }); |
| 210 | 210 | |
@@ -231,7 +231,7 @@ discard block |
||
| 231 | 231 | 'description' => 'Description', |
| 232 | 232 | ]]; |
| 233 | 233 | |
| 234 | - $rows = array_map(function ($column) use ($page) { |
|
| 234 | + $rows = array_map(function($column) use ($page) { |
|
| 235 | 235 | return [ |
| 236 | 236 | 'field' => ( |
| 237 | 237 | $page->format($column->name, ['bold' => $column->isPrimary]) |
@@ -277,7 +277,7 @@ |
||
| 277 | 277 | |
| 278 | 278 | if ($this->solrCoreRepository->findOneByPid($this->pid) === null) { |
| 279 | 279 | $newRecord = GeneralUtility::makeInstance(SolrCore::class); |
| 280 | - $newRecord->setLabel($this->getLLL('flexform.solrcore', $this->siteLanguages[0]->getTypo3Language(), $beLabels). ' (PID ' . $this->pid . ')'); |
|
| 280 | + $newRecord->setLabel($this->getLLL('flexform.solrcore', $this->siteLanguages[0]->getTypo3Language(), $beLabels) . ' (PID ' . $this->pid . ')'); |
|
| 281 | 281 | $indexName = Solr::createCore(''); |
| 282 | 282 | $newRecord->setIndexName($indexName); |
| 283 | 283 | |
@@ -71,7 +71,7 @@ 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 | return $ext !== 'Resources/Core/Functional/Extensions/json_response'; |
| 76 | 76 | }); |
| 77 | 77 | } |
@@ -152,7 +152,7 @@ discard block |
||
| 152 | 152 | $jsonDocuments = json_decode(file_get_contents($path), true); |
| 153 | 153 | |
| 154 | 154 | $updateQuery = $solr->service->createUpdate(); |
| 155 | - $documents = array_map(function ($jsonDoc) use ($updateQuery) { |
|
| 155 | + $documents = array_map(function($jsonDoc) use ($updateQuery) { |
|
| 156 | 156 | $document = $updateQuery->createDocument(); |
| 157 | 157 | foreach ($jsonDoc as $key => $value) { |
| 158 | 158 | $document->setField($key, $value); |
@@ -393,7 +393,7 @@ discard block |
||
| 393 | 393 | $uid = max(intval($uid), 0); |
| 394 | 394 | if ( |
| 395 | 395 | !$uid |
| 396 | - || !in_array($table, ['tx_dlf_collections', 'tx_dlf_libraries', 'tx_dlf_metadata', 'tx_dlf_metadatasubentries','tx_dlf_structures', 'tx_dlf_solrcores']) |
|
| 396 | + || !in_array($table, ['tx_dlf_collections', 'tx_dlf_libraries', 'tx_dlf_metadata', 'tx_dlf_metadatasubentries', 'tx_dlf_structures', 'tx_dlf_solrcores']) |
|
| 397 | 397 | ) { |
| 398 | 398 | self::log('Invalid UID "' . $uid . '" or table "' . $table . '"', LOG_SEVERITY_ERROR); |
| 399 | 399 | return ''; |
@@ -915,7 +915,7 @@ discard block |
||
| 915 | 915 | self::log('Could not fetch data from URL "' . $url . '". Error: ' . $e->getMessage() . '.', LOG_SEVERITY_WARNING); |
| 916 | 916 | return false; |
| 917 | 917 | } |
| 918 | - $content = $response->getBody()->getContents(); |
|
| 918 | + $content = $response->getBody()->getContents(); |
|
| 919 | 919 | |
| 920 | 920 | return $content; |
| 921 | 921 | } |
@@ -616,11 +616,11 @@ discard block |
||
| 616 | 616 | if ($subentries = $this->getSubentries($allSubentries, $resArray['index_name'], $value)) { |
| 617 | 617 | $metadata[$resArray['index_name']][] = $subentries; |
| 618 | 618 | } else { |
| 619 | - $metadata[$resArray['index_name']][] = trim((string)$value->nodeValue); |
|
| 619 | + $metadata[$resArray['index_name']][] = trim((string) $value->nodeValue); |
|
| 620 | 620 | } |
| 621 | 621 | } |
| 622 | 622 | } elseif (!($values instanceof \DOMNodeList)) { |
| 623 | - $metadata[$resArray['index_name']] = [trim((string)$values->nodeValue)]; |
|
| 623 | + $metadata[$resArray['index_name']] = [trim((string) $values->nodeValue)]; |
|
| 624 | 624 | } |
| 625 | 625 | } |
| 626 | 626 | // Set default value if applicable. |
@@ -644,9 +644,9 @@ discard block |
||
| 644 | 644 | $values instanceof \DOMNodeList |
| 645 | 645 | && $values->length > 0 |
| 646 | 646 | ) { |
| 647 | - $metadata[$resArray['index_name'] . '_sorting'][0] = trim((string)$values->item(0)->nodeValue); |
|
| 647 | + $metadata[$resArray['index_name'] . '_sorting'][0] = trim((string) $values->item(0)->nodeValue); |
|
| 648 | 648 | } elseif (!($values instanceof \DOMNodeList)) { |
| 649 | - $metadata[$resArray['index_name'] . '_sorting'][0] = trim((string)$values); |
|
| 649 | + $metadata[$resArray['index_name'] . '_sorting'][0] = trim((string) $values); |
|
| 650 | 650 | } |
| 651 | 651 | } |
| 652 | 652 | if (empty($metadata[$resArray['index_name'] . '_sorting'][0])) { |
@@ -685,10 +685,10 @@ discard block |
||
| 685 | 685 | ) { |
| 686 | 686 | $theseSubentries[$subentry['index_name']] = []; |
| 687 | 687 | foreach ($values as $value) { |
| 688 | - $theseSubentries[$subentry['index_name']][] = trim((string)$value->nodeValue); |
|
| 688 | + $theseSubentries[$subentry['index_name']][] = trim((string) $value->nodeValue); |
|
| 689 | 689 | } |
| 690 | 690 | } elseif (!($values instanceof \DOMNodeList)) { |
| 691 | - $theseSubentries[$subentry['index_name']] = [trim((string)$values->nodeValue)]; |
|
| 691 | + $theseSubentries[$subentry['index_name']] = [trim((string) $values->nodeValue)]; |
|
| 692 | 692 | } |
| 693 | 693 | } |
| 694 | 694 | // Set default value if applicable. |