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

8.0.x
Dries Buytaert 2011-09-10 11:39:03 -04:00
parent 8bdea8d9f0
commit f214431458
1 changed files with 5 additions and 4 deletions

View File

@ -1,6 +1,7 @@
<?php
/*
/**
* @file
* Base FileTransfer class.
*
* Classes extending this class perform file operations on directories not
@ -61,7 +62,7 @@ abstract class FileTransfer {
}
/**
* Connect to the server.
* Connects to the server.
*/
abstract protected function connect();
@ -280,7 +281,7 @@ abstract class FileTransfer {
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 @@ abstract class FileTransfer {
$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) . '/';
}