From f214431458d1621b3d28068444bd9ff946dc5450 Mon Sep 17 00:00:00 2001 From: Dries Buytaert <dries@buytaert.net> Date: Sat, 10 Sep 2011 11:39:03 -0400 Subject: [PATCH] - Patch #1263902 by cweagans: Code style: filetransfer.inc. --- includes/filetransfer/filetransfer.inc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/includes/filetransfer/filetransfer.inc b/includes/filetransfer/filetransfer.inc index 63e41230bf35..aa7ebe470e2e 100644 --- a/includes/filetransfer/filetransfer.inc +++ b/includes/filetransfer/filetransfer.inc @@ -1,6 +1,7 @@ <?php -/* +/** + * @file * Base FileTransfer class. * * Classes extending this class perform file operations on directories not @@ -61,7 +62,7 @@ function __get($name) { } /** - * Connect to the server. + * Connects to the server. */ abstract protected function connect(); @@ -280,7 +281,7 @@ abstract public function isDirectory($path); abstract public function isFile($path); /** - * Return the chroot property for this connection. + * Returns the chroot property for this connection. * * It does this by moving up the tree until it finds itself. If successful, * it will return the chroot, otherwise FALSE. @@ -304,7 +305,7 @@ function findChroot() { $check = implode($parts, '/'); if ($this->isFile($check . '/' . basename(__FILE__))) { // Remove the trailing slash. - return substr($chroot,0,-1); + return substr($chroot, 0, -1); } $chroot .= array_shift($parts) . '/'; } -- GitLab