Use the short array syntax, everywhere

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
Christoph Wurst
2020-03-26 09:30:18 +01:00
parent 62403d0932
commit b80ebc9674
454 changed files with 4214 additions and 4214 deletions
+2 -2
View File
@@ -77,7 +77,7 @@ try {
if (OC::$CLI) {
echo 'Background Jobs are disabled!' . PHP_EOL;
} else {
OC_JSON::error(array('data' => array('message' => 'Background jobs disabled!')));
OC_JSON::error(['data' => ['message' => 'Background jobs disabled!']]);
}
exit(1);
}
@@ -140,7 +140,7 @@ try {
// We call cron.php from some website
if ($appMode === 'cron') {
// Cron is cron :-P
OC_JSON::error(array('data' => array('message' => 'Backgroundjobs are using system cron!')));
OC_JSON::error(['data' => ['message' => 'Backgroundjobs are using system cron!']]);
} else {
// Work and success :-)
$jobList = \OC::$server->getJobList();