Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TASK] Fix CGL after update of php-cs-fixer to v3.23.0 #206

Merged
merged 1 commit into from
Aug 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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