| @@ -31,7 +31,7 @@ | ||
| 31 | 31 | /** | 
| 32 | 32 | * Wrap a stream from libsmbclient-php into a regular php stream | 
| 33 | 33 | * | 
| 34 | - * @param \Icewind\SMB\NativeState $state | |
| 34 | + * @param NativeState $state | |
| 35 | 35 | * @param resource $smbStream | 
| 36 | 36 | * @param string $mode | 
| 37 | 37 | * @param string $url | 
| @@ -109,6 +109,9 @@ discard block | ||
| 109 | 109 | return new NativeFileInfo($this, $path, basename($path), $this->getStat($path)); | 
| 110 | 110 | } | 
| 111 | 111 | |
| 112 | + /** | |
| 113 | + * @param string $path | |
| 114 | + */ | |
| 112 | 115 |  	public function getStat($path) { | 
| 113 | 116 | return $this->getState()->stat($this->buildUrl($path)); | 
| 114 | 117 | } | 
| @@ -273,7 +276,7 @@ discard block | ||
| 273 | 276 | * | 
| 274 | 277 | * @param string $path | 
| 275 | 278 | * @param string $attribute attribute to get the info | 
| 276 | - * @param mixed $value | |
| 279 | + * @param integer $value | |
| 277 | 280 | * @return string the attribute value | 
| 278 | 281 | */ | 
| 279 | 282 |  	public function setAttribute($path, $attribute, $value) { | 
| @@ -288,7 +291,7 @@ discard block | ||
| 288 | 291 | /** | 
| 289 | 292 | * @param string $path | 
| 290 | 293 | * @param int $mode a combination of FileInfo::MODE_READONLY, FileInfo::MODE_ARCHIVE, FileInfo::MODE_SYSTEM and FileInfo::MODE_HIDDEN, FileInfo::NORMAL | 
| 291 | - * @return mixed | |
| 294 | + * @return string | |
| 292 | 295 | */ | 
| 293 | 296 |  	public function setMode($path, $mode) { | 
| 294 | 297 | return $this->setAttribute($path, 'system.dos_attr.mode', $mode); | 
| @@ -20,6 +20,9 @@ discard block | ||
| 20 | 20 | /** @var Parser */ | 
| 21 | 21 | private $parser; | 
| 22 | 22 | |
| 23 | + /** | |
| 24 | + * @param string $command | |
| 25 | + */ | |
| 23 | 26 |  	public function __construct($command, Parser $parser, $env = array()) { | 
| 24 | 27 | parent::__construct($command, $env); | 
| 25 | 28 | $this->parser = $parser; | 
| @@ -75,7 +78,7 @@ discard block | ||
| 75 | 78 | /** | 
| 76 | 79 | * Check | 
| 77 | 80 | * | 
| 78 | - * @param $line | |
| 81 | + * @param string|false $line | |
| 79 | 82 | * @return bool | 
| 80 | 83 | */ | 
| 81 | 84 |  	private function isPrompt($line) { | 
| @@ -113,6 +113,10 @@ discard block | ||
| 113 | 113 | return $this->name; | 
| 114 | 114 | } | 
| 115 | 115 | |
| 116 | + /** | |
| 117 | + * @param string $command | |
| 118 | + * @param string $path | |
| 119 | + */ | |
| 116 | 120 |  	protected function simpleCommand($command, $path) { | 
| 117 | 121 | $escapedPath = $this->escapePath($path); | 
| 118 | 122 | $cmd = $command . ' ' . $escapedPath; | 
| @@ -323,7 +327,7 @@ discard block | ||
| 323 | 327 | /** | 
| 324 | 328 | * @param string $path | 
| 325 | 329 | * @param int $mode a combination of FileInfo::MODE_READONLY, FileInfo::MODE_ARCHIVE, FileInfo::MODE_SYSTEM and FileInfo::MODE_HIDDEN, FileInfo::NORMAL | 
| 326 | - * @return mixed | |
| 330 | + * @return boolean | |
| 327 | 331 | */ | 
| 328 | 332 |  	public function setMode($path, $mode) { | 
| 329 | 333 | $modeString = ''; | 
| @@ -373,7 +377,7 @@ discard block | ||
| 373 | 377 | |
| 374 | 378 | /** | 
| 375 | 379 | * @param string $command | 
| 376 | - * @return array | |
| 380 | + * @return string[] | |
| 377 | 381 | */ | 
| 378 | 382 |  	protected function execute($command) { | 
| 379 | 383 | $this->connect(); | 
| @@ -16,7 +16,6 @@ | ||
| 16 | 16 | use Icewind\SMB\INotifyHandler; | 
| 17 | 17 | use Icewind\SMB\IServer; | 
| 18 | 18 | use Icewind\SMB\ISystem; | 
| 19 | -use Icewind\SMB\TimeZoneProvider; | |
| 20 | 19 | use Icewind\Streams\CallbackWrapper; | 
| 21 | 20 | |
| 22 | 21 |  class Share extends AbstractShare { | 
| @@ -31,7 +31,7 @@ | ||
| 31 | 31 | /** | 
| 32 | 32 | * Wrap a stream from libsmbclient-php into a regular php stream | 
| 33 | 33 | * | 
| 34 | - * @param \Icewind\SMB\NativeState $state | |
| 34 | + * @param NativeState $state | |
| 35 | 35 | * @param resource $smbStream | 
| 36 | 36 | * @param string $mode | 
| 37 | 37 | * @param string $url | 
| @@ -20,7 +20,7 @@ | ||
| 20 | 20 | * Check if the smbclient php extension is available | 
| 21 | 21 | * | 
| 22 | 22 | * @param ISystem $system | 
| 23 | - * @return bool | |
| 23 | + * @return string|boolean | |
| 24 | 24 | */ | 
| 25 | 25 |  	public static function available(ISystem $system) { | 
| 26 | 26 | return $system->getSmbclientPath(); |