Minor : Clean code with php-cs-fixer

pull/4246/head
Christian 4 years ago
parent 8457b73559
commit efa7d00dbd
  1. 1
      main/inc/ajax/document.ajax.php
  2. 2
      main/inc/ajax/dropbox.ajax.php
  3. 3
      main/inc/ajax/exercise.ajax.php
  4. 4
      main/inc/ajax/work.ajax.php

@ -148,7 +148,6 @@ switch ($action) {
$resultList = [];
foreach ($fileList as $file) {
if (isset($_REQUEST['chunkAction']) && 'done' === $_REQUEST['chunkAction']) {
// to rename and move the finished file
$chunkedFile = api_get_path(SYS_ARCHIVE_PATH).$file['name'];

@ -41,7 +41,6 @@ switch ($action) {
'errorStatus' => 0,
]);
exit;
} else {
// User access same as upload.php
@ -78,7 +77,6 @@ switch ($action) {
$resultList = [];
foreach ($fileList as $file) {
if (isset($_REQUEST['chunkAction']) && 'done' === $_REQUEST['chunkAction']) {
// to rename and move the finished file
$chunkedFile = api_get_path(SYS_ARCHIVE_PATH).$file['name'];

@ -1134,9 +1134,7 @@ switch ($action) {
'errorStatus' => 0,
]);
exit;
} else {
if (!empty($_FILES)) {
$currentDirectory = Security::remove_XSS($_REQUEST['curdirpath']);
$userId = api_get_user_id();
@ -1203,7 +1201,6 @@ switch ($action) {
echo json_encode(['files' => $resultList]);
exit;
}
}
break;
default:

@ -90,9 +90,7 @@ switch ($action) {
'errorStatus' => 0,
]);
exit;
} else {
$workId = isset($_REQUEST['id']) ? $_REQUEST['id'] : '';
$workInfo = get_work_data_by_id($workId);
$sessionId = api_get_session_id();
@ -120,7 +118,6 @@ switch ($action) {
$resultList = [];
foreach ($fileList as $file) {
if (isset($_REQUEST['chunkAction']) && 'done' === $_REQUEST['chunkAction']) {
// to rename and move the finished file
$chunkedFile = api_get_path(SYS_ARCHIVE_PATH).$file['name'];
@ -176,7 +173,6 @@ switch ($action) {
echo json_encode(['files' => $resultList]);
exit;
}
}
break;
case 'delete_work':

Loading…
Cancel
Save