mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-03 17:24:07 +02:00
minor code cleanup
This commit is contained in:
parent
471824d423
commit
9c50244e67
2 changed files with 2 additions and 3 deletions
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue