Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Commit

Permalink
[CODESTYLE] Convert arrays to old syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
vertexvaar committed Mar 30, 2021
1 parent 8aec6a4 commit 80d94a6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class tx_caretakerinstance_Operation_GetSchedulerFailures implements tx_caretake
{
public function execute($parameter = array()): tx_caretakerinstance_OperationResult
{
$results = [];
$results = array();

$connection = GeneralUtility::makeInstance(ConnectionPool::class);
$query = $connection->getQueryBuilderForTable('tx_scheduler_task');
Expand All @@ -49,12 +49,12 @@ public function execute($parameter = array()): tx_caretakerinstance_OperationRes
continue;
}
try {
$exception = unserialize($row['lastexecution_failure'], ['allowed_classes' => false]);
$exception = unserialize($row['lastexecution_failure'], array('allowed_classes' => false));
} catch (Throwable $exception) {
$results[$taskUid] = 'unserialize exception: ' . (string)$exception;
continue;
}
$keepKeys = ['code', 'file', 'line', 'message'];
$keepKeys = array('code', 'file', 'line', 'message');
foreach (array_keys($exception) as $key) {
if (!in_array($key, $keepKeys, true)) {
unset($exception[$key]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ class tx_caretakerinstance_SchedulerFailuresTestService extends tx_caretakerinst
*/
public function runTest(): tx_caretaker_TestResult
{
$operations = [
['GetScheduler', []]
];
$operations = array(
array('GetScheduler', array()),
);

$commandResult = $this->executeRemoteOperations($operations);

Expand All @@ -20,7 +20,7 @@ public function runTest(): tx_caretaker_TestResult

$results = $commandResult->getOperationResults();

$errors = [];
$errors = array();

/** @var tx_caretakerinstance_OperationResult $operationResult */
foreach ($results as $operationResult) {
Expand Down

0 comments on commit 80d94a6

Please sign in to comment.