Skip to content

Commit ab0c11f

Browse files
committed
Replace tabs with spaces.
1 parent 64a5f8b commit ab0c11f

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

server/php/UploadHandler.php

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ function __construct($options = null, $initialize = true) {
5353
'GET',
5454
'POST',
5555
'PUT',
56-
'PATCH',
56+
'PATCH',
5757
'DELETE'
5858
),
5959
'access_control_allow_headers' => array(
@@ -124,8 +124,8 @@ protected function initialize() {
124124
case 'GET':
125125
$this->get();
126126
break;
127-
case 'PATCH':
128-
case 'PUT':
127+
case 'PATCH':
128+
case 'PUT':
129129
case 'POST':
130130
$this->post();
131131
break;
@@ -461,16 +461,16 @@ protected function orient_image($file_path) {
461461
$image = @imagecreatefromjpeg($file_path);
462462
switch ($orientation) {
463463
case 3:
464-
$image = @imagerotate($image, 180, 0);
465-
break;
464+
$image = @imagerotate($image, 180, 0);
465+
break;
466466
case 6:
467-
$image = @imagerotate($image, 270, 0);
468-
break;
467+
$image = @imagerotate($image, 270, 0);
468+
break;
469469
case 8:
470-
$image = @imagerotate($image, 90, 0);
471-
break;
470+
$image = @imagerotate($image, 90, 0);
471+
break;
472472
default:
473-
return false;
473+
return false;
474474
}
475475
$success = imagejpeg($image, $file_path);
476476
// Free up memory (imagedestroy does not delete files):
@@ -540,17 +540,17 @@ protected function handle_file_upload($uploaded_file, $name, $size, $type, $erro
540540
return $file;
541541
}
542542

543-
protected function readfile($file_path) {
544-
return readfile($file_path);
545-
}
543+
protected function readfile($file_path) {
544+
return readfile($file_path);
545+
}
546546

547-
protected function body($str) {
548-
echo $str;
549-
}
550-
551-
protected function header($str) {
552-
header($str);
553-
}
547+
protected function body($str) {
548+
echo $str;
549+
}
550+
551+
protected function header($str) {
552+
header($str);
553+
}
554554

555555
protected function generate_response($content, $print_response = true) {
556556
if ($print_response) {

0 commit comments

Comments
 (0)