Skip to content

Commit ba0ef91

Browse files
Michael Kliewenikic
authored andcommitted
convert spaces to tabs in ext/ftp/tests/server.inc
1 parent 7d5bf6e commit ba0ef91

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

ext/ftp/tests/server.inc

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ if ($pid) {
286286
file_put_contents(__DIR__.'/'.$m[1], $data, FILE_APPEND);
287287
fputs($s, "226 Closing data Connection.\r\n");
288288
fclose($fs);
289-
}
289+
}
290290

291291
}elseif (preg_match("~^CWD ([A-Za-z./]+)\r\n$~", $buf, $m)) {
292292
change_dir($m[1]);
@@ -395,17 +395,17 @@ if ($pid) {
395395
$transfer_type = $ascii? 'ASCII' : 'BINARY' ;
396396
fputs($fs, "Bar\r\n");
397397
fputs($s, "226 Closing data Connection.\r\n");
398-
break;
399-
case "fget_large":
398+
break;
399+
case "fget_large":
400400
fputs($s, "150 File status okay; about to open data connection.\r\n");
401-
$transfer_type = $ascii? 'ASCII' : 'BINARY' ;
402-
if ($GLOBALS['rest_pos'] == '5368709119') {
403-
fputs($fs, "X");
404-
} else {
405-
fputs($fs, "Y");
406-
}
401+
$transfer_type = $ascii? 'ASCII' : 'BINARY' ;
402+
if ($GLOBALS['rest_pos'] == '5368709119') {
403+
fputs($fs, "X");
404+
} else {
405+
fputs($fs, "Y");
406+
}
407407
fputs($s, "226 Closing data Connection.\r\n");
408-
break;
408+
break;
409409
case "mediumfile":
410410
fputs($s, "150 File status okay; about to open data connection.\r\n");
411411
for($i = 0; $i < 150; $i++){
@@ -471,11 +471,11 @@ if ($pid) {
471471
}elseif (preg_match('/^LIST no_exists\//', $buf, $matches)) {
472472
fputs($s, "425 Error establishing connection\r\n");
473473

474-
}elseif (preg_match('/^REST (\d+)/', $buf, $matches)) {
474+
}elseif (preg_match('/^REST (\d+)/', $buf, $matches)) {
475475
$GLOBALS['rest_pos'] = $matches[1];
476476
fputs($s, "350 OK\r\n");
477-
}elseif (preg_match('/^SIZE largefile/', $buf)) {
478-
fputs($s, "213 5368709120\r\n");
477+
}elseif (preg_match('/^SIZE largefile/', $buf)) {
478+
fputs($s, "213 5368709120\r\n");
479479
}elseif (preg_match('/^RNFR existing_file/', $buf, $matches)) {
480480
fputs($s, "350 File or directory exists, ready for destination name\r\n");
481481
}elseif (preg_match('/^RNFR nonexisting_file/', $buf, $matches)) {
@@ -524,7 +524,7 @@ if ($pid) {
524524

525525
fputs($s, "226 Closing data Connection.\r\n");
526526
fclose($fs);
527-
}else {
527+
}else {
528528
fputs($s, "500 Syntax error, command unrecognized.\r\n");
529529
dump_and_exit($buf);
530530
}

0 commit comments

Comments
 (0)