Commit f2144314 authored by Dries's avatar Dries
Browse files

- Patch #1263902 by cweagans: Code style: filetransfer.inc.

parent 8bdea8d9
<?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) . '/';
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment