minor code cleanup

This commit is contained in:
Robin Appelman 2016-08-26 23:19:21 +02:00
commit 9c50244e67
2 changed files with 2 additions and 3 deletions

View file

@ -218,8 +218,7 @@ class Share extends AbstractShare {
public function rename($from, $to) { public function rename($from, $to) {
$path1 = $this->escapePath($from); $path1 = $this->escapePath($from);
$path2 = $this->escapePath($to); $path2 = $this->escapePath($to);
$cmd = 'rename ' . $path1 . ' ' . $path2; $output = $this->execute('rename ' . $path1 . ' ' . $path2);
$output = $this->execute($cmd);
return $this->parseOutput($output, $to); return $this->parseOutput($output, $to);
} }

View file

@ -27,7 +27,7 @@ class TimeZoneProvider {
* @param string $host * @param string $host
* @param System $system * @param System $system
*/ */
function __construct($host, System $system) { public function __construct($host, System $system) {
$this->host = $host; $this->host = $host;
$this->system = $system; $this->system = $system;
} }