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 | |
@@ -670,7 +670,7 @@ |
||
| 670 | 670 | } |
| 671 | 671 | } |
| 672 | 672 | |
| 673 | - return array_filter($allMdIds, function ($element) { |
|
| 673 | + return array_filter($allMdIds, function($element) { |
|
| 674 | 674 | return !empty($element); |
| 675 | 675 | }); |
| 676 | 676 | } |
@@ -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); |
@@ -48,6 +48,6 @@ |
||
| 48 | 48 | $metadata['video_duration'] = [$videoDuration]; |
| 49 | 49 | } |
| 50 | 50 | |
| 51 | - $metadata['duration'] = $metadata['video_duration'] ?: $metadata['audio_duration'] ?: []; |
|
| 51 | + $metadata['duration'] = $metadata['video_duration'] ? : $metadata['audio_duration'] ? : []; |
|
| 52 | 52 | } |
| 53 | 53 | } |
@@ -400,7 +400,7 @@ discard block |
||
| 400 | 400 | return ''; |
| 401 | 401 | } |
| 402 | 402 | |
| 403 | - $makeCacheKey = function ($pid, $uid) { |
|
| 403 | + $makeCacheKey = function($pid, $uid) { |
|
| 404 | 404 | return $pid . '.' . $uid; |
| 405 | 405 | }; |
| 406 | 406 | |
@@ -925,7 +925,7 @@ discard block |
||
| 925 | 925 | self::log('Could not fetch data from URL "' . $url . '". Error: ' . $e->getMessage() . '.', LOG_SEVERITY_WARNING); |
| 926 | 926 | return false; |
| 927 | 927 | } |
| 928 | - $content = $response->getBody()->getContents(); |
|
| 928 | + $content = $response->getBody()->getContents(); |
|
| 929 | 929 | |
| 930 | 930 | return $content; |
| 931 | 931 | } |
@@ -129,7 +129,7 @@ discard block |
||
| 129 | 129 | foreach ($year['children'] as $month) { |
| 130 | 130 | foreach ($month['children'] as $day) { |
| 131 | 131 | foreach ($day['children'] as $issue) { |
| 132 | - $title = $issue['label'] ?: $issue['orderlabel']; |
|
| 132 | + $title = $issue['label'] ? : $issue['orderlabel']; |
|
| 133 | 133 | if (strtotime($title) !== false) { |
| 134 | 134 | $title = strftime('%x', strtotime($title)); |
| 135 | 135 | } |
@@ -220,8 +220,8 @@ discard block |
||
| 220 | 220 | $this->view->assign('calendarData', $calendarData); |
| 221 | 221 | $this->view->assign('documentId', $this->document->getUid()); |
| 222 | 222 | $this->view->assign('yearLinkTitle', $yearLinkTitle); |
| 223 | - $this->view->assign('parentDocumentId', $this->document->getPartof() ?: $this->document->getDoc()->tableOfContents[0]['points']); |
|
| 224 | - $this->view->assign('allYearDocTitle', $this->document->getDoc()->getTitle($this->document->getPartof()) ?: $this->document->getDoc()->tableOfContents[0]['label']); |
|
| 223 | + $this->view->assign('parentDocumentId', $this->document->getPartof() ? : $this->document->getDoc()->tableOfContents[0]['points']); |
|
| 224 | + $this->view->assign('allYearDocTitle', $this->document->getDoc()->getTitle($this->document->getPartof()) ? : $this->document->getDoc()->tableOfContents[0]['label']); |
|
| 225 | 225 | } |
| 226 | 226 | |
| 227 | 227 | /** |
@@ -257,7 +257,7 @@ discard block |
||
| 257 | 257 | |
| 258 | 258 | if (empty($yearLabel)) { |
| 259 | 259 | // if neither order nor orderlabel is set, use the id... |
| 260 | - $yearLabel = (string)$id; |
|
| 260 | + $yearLabel = (string) $id; |
|
| 261 | 261 | } |
| 262 | 262 | |
| 263 | 263 | $years[] = [ |
@@ -48,7 +48,7 @@ |
||
| 48 | 48 | |
| 49 | 49 | $settingsParts = explode("/", $model); |
| 50 | 50 | $fileName = end($settingsParts); |
| 51 | - $path = substr($model, 0, strrpos($model, $fileName)); |
|
| 51 | + $path = substr($model, 0, strrpos($model, $fileName)); |
|
| 52 | 52 | $modelSettings = $path . "metadata/" . $fileName . "_viewer"; |
| 53 | 53 | |
| 54 | 54 | if (!empty($modelConverted)) { |