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]) |
@@ -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 | } |
@@ -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)) { |
@@ -70,7 +70,7 @@ |
||
| 70 | 70 | $pageGridPagination = new PageGridPagination($pageGridPaginator); |
| 71 | 71 | |
| 72 | 72 | $pagination = $this->buildSimplePagination($pageGridPagination, $pageGridPaginator); |
| 73 | - $this->view->assignMultiple([ 'pagination' => $pagination, 'paginator' => $pageGridPaginator ]); |
|
| 73 | + $this->view->assignMultiple(['pagination' => $pagination, 'paginator' => $pageGridPaginator]); |
|
| 74 | 74 | |
| 75 | 75 | $this->view->assign('docUid', $this->requestData['id']); |
| 76 | 76 | } |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | // extract collection(s) from collection parameter |
| 75 | 75 | $collection = null; |
| 76 | 76 | if ($this->searchParams['collection']) { |
| 77 | - foreach(explode(',', $this->searchParams['collection']) as $collectionEntry) { |
|
| 77 | + foreach (explode(',', $this->searchParams['collection']) as $collectionEntry) { |
|
| 78 | 78 | $collection[] = $this->collectionRepository->findByUid($collectionEntry); |
| 79 | 79 | } |
| 80 | 80 | } |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | $simplePagination = new SimplePagination($solrPaginator); |
| 107 | 107 | |
| 108 | 108 | $pagination = $this->buildSimplePagination($simplePagination, $solrPaginator); |
| 109 | - $this->view->assignMultiple([ 'pagination' => $pagination, 'paginator' => $solrPaginator ]); |
|
| 109 | + $this->view->assignMultiple(['pagination' => $pagination, 'paginator' => $solrPaginator]); |
|
| 110 | 110 | } |
| 111 | 111 | |
| 112 | 112 | $this->view->assign('viewData', $this->viewData); |