Apply fixes from StyleCI (#12120)

This commit is contained in:
Jellyfrog
2020-09-21 15:40:17 +02:00
committed by GitHub
parent 77c531527c
commit 82f43cb98d
1733 changed files with 18337 additions and 18540 deletions

View File

@ -1,10 +1,10 @@
<?php
if (!Auth::user()->hasGlobalAdmin()) {
$response = array(
if (! Auth::user()->hasGlobalAdmin()) {
$response = [
'status' => 'error',
'message' => 'Need to be admin',
);
];
echo _json_encode($response);
exit;
}
@ -20,10 +20,10 @@ if (is_numeric($customoid_id) && $customoid_id > 0) {
}
if ($oid['customoid_passed'] == 1) {
$cpassed = true;
$passed = 'on';
$passed = 'on';
} else {
$cpassed = false;
$passed = '';
$passed = '';
}
header('Content-type: application/json');