Skip to content

Commit 7e9fcc6

Browse files
committed
fix code style
1 parent 48f7d95 commit 7e9fcc6

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

FtpClient.php

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -495,13 +495,13 @@ public function isEmpty($directory)
495495
*
496496
* @param string $directory
497497
* @param bool $recursive
498-
* @param bool $include_hidden
498+
* @param bool $includeHidden
499499
*
500500
* @return array
501501
*/
502-
public function scanDir($directory = '.', $recursive = false, $include_hidden = false)
502+
public function scanDir($directory = '.', $recursive = false, $includeHidden = false)
503503
{
504-
return $this->parseRawList($this->rawlist($directory, $recursive, $include_hidden));
504+
return $this->parseRawList($this->rawlist($directory, $recursive, $includeHidden));
505505
}
506506

507507
/**
@@ -639,18 +639,22 @@ public function putAll($source_directory, $target_directory, $mode = FTP_BINARY)
639639
*
640640
* @param string $directory The directory, by default is the current directory
641641
* @param bool $recursive
642-
* @param bool $include_hidden
642+
* @param bool $includeHidden
643643
*
644644
* @return array
645645
*
646646
* @throws FtpException
647647
*/
648-
public function rawlist($directory = '.', $recursive = false, $include_hidden = false)
648+
public function rawlist($directory = '.', $recursive = false, $includeHidden = false)
649649
{
650650
if (!$this->isDir($directory)) {
651651
throw new FtpException('"' . $directory . '" is not a directory.');
652652
}
653-
if ($include_hidden) $directory = "-la $directory";
653+
654+
if ($includeHidden) {
655+
$directory = "-la $directory";
656+
}
657+
654658
$list = $this->ftp->rawlist($directory);
655659
$items = [];
656660
if (false == $recursive) {

FtpWrapper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
* @method string pwd() pwd() Returns the current directory name
3131
* @method bool quit() quit() Closes an FTP connection
3232
* @method array raw() raw(string $command) Sends an arbitrary command to an FTP server
33-
* @method array rawlist() rawlist(string $directory, bool $recursive = false, bool $include_hidden = false) Returns a detailed list of files in the given directory
33+
* @method array rawlist() rawlist(string $directory, bool $recursive = false, bool $includeHidden = false) Returns a detailed list of files in the given directory
3434
* @method bool rename() rename(string $oldname, string $newname) Renames a file or a directory on the FTP server
3535
* @method bool rmdir() rmdir(string $directory) Removes a directory
3636
* @method bool set_option() set_option(int $option, mixed $value) Set miscellaneous runtime FTP options

0 commit comments

Comments
 (0)