Skip to content

Commit

Permalink
[TASK] Fix CGL after update of php-cs-fixer to v3.23.0 (#207)
Browse files Browse the repository at this point in the history
Releases: main, 12.4

Co-authored-by: Chris Müller <[email protected]>
  • Loading branch information
github-actions[bot] and brotkrueml authored Aug 15, 2023
1 parent dcbe208 commit 191a3fd
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Classes/ContextMenu/HelloWorldItemProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public function addItems(array $items): array
$position = array_search('info', array_keys($items), true);

//slices array into two parts
$beginning = array_slice($items, 0, $position+1, true);
$beginning = array_slice($items, 0, $position + 1, true);
$end = array_slice($items, $position, null, true);

// adds custom item in the correct position
Expand Down
2 changes: 1 addition & 1 deletion Classes/Controller/Haiku/DetailController.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function main(string $content, array $conf, ServerRequestInterface $reque
$this->loadFlexFormSettings();
$this->view = $this->viewService->createView($request, $this->conf, 'Haiku/Detail');

$parameter = $request->getQueryParams()['tx_examples_haiku']??[];
$parameter = $request->getQueryParams()['tx_examples_haiku'] ?? [];
$action = $parameter['action'] ?? '';
try {
return match ($action) {
Expand Down
2 changes: 1 addition & 1 deletion Classes/Http/MeowInformationRequester.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public function request(): string
}
// Get the content as a string on a successful request
$content = $response->getBody()->getContents();
return (string)json_decode($content, true, flags: JSON_THROW_ON_ERROR)['fact']??
return (string)json_decode($content, true, flags: JSON_THROW_ON_ERROR)['fact'] ??
throw new \RuntimeException('The service returned an unexpected format.', 1666413230);
}
}
4 changes: 2 additions & 2 deletions Classes/LinkHandler/GitHubLinkHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public function canHandleLink(array $linkParts): bool
if ($linkParts['type'] !== 'github') {
return false;
}
$this->linkParts = $linkParts['url']??[];
$this->linkParts = $linkParts['url'] ?? [];
return true;
}

Expand All @@ -75,7 +75,7 @@ public function canHandleLink(array $linkParts): bool
public function formatCurrentUrl(): string
{
return 'https://github.com/' . $this->configuration['project'] . '/'
. $this->configuration['action'] . '/' . $this->linkParts['issue']??'';
. $this->configuration['action'] . '/' . $this->linkParts['issue'] ?? '';
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
'examples'
);

$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['examples_haiku_detail']='pages,layout,select_key,recursive';
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['examples_haiku_detail'] = 'pages,layout,select_key,recursive';

$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['examples_haiku_detail']='pi_flexform';
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['examples_haiku_detail'] = 'pi_flexform';

\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue(
'examples_haiku_detail',
Expand Down
4 changes: 2 additions & 2 deletions Configuration/TCA/Overrides/tt_content_plugin_haiku_list.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
'examples'
);

$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['examples_haiku_list']='pages,layout,select_key,recursive';
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['examples_haiku_list'] = 'pages,layout,select_key,recursive';

$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['examples_haiku_list']='pi_flexform';
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['examples_haiku_list'] = 'pi_flexform';

\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue(
'examples_haiku_list',
Expand Down

0 comments on commit 191a3fd

Please sign in to comment.