Completed
Push — master ( 0d9341...91d173 )
by Robin
01:19
created
src/Wrapped/Share.php 1 patch
Doc Comments   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -113,6 +113,10 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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();
Please login to merge, or discard this patch.
src/Wrapped/Server.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
src/Native/NativeShare.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,6 +66,9 @@  discard block
 block discarded – undo
66 66
 		return $this->name;
67 67
 	}
68 68
 
69
+	/**
70
+	 * @param string $path
71
+	 */
69 72
 	private function buildUrl($path) {
70 73
 		$this->verifyPath($path);
71 74
 		$url = sprintf('smb://%s/%s', $this->server->getHost(), $this->name);
@@ -311,7 +314,7 @@  discard block
 block discarded – undo
311 314
 	 *
312 315
 	 * @param string $path
313 316
 	 * @param string $attribute attribute to get the info
314
-	 * @param string|int $value
317
+	 * @param integer $value
315 318
 	 * @return mixed the attribute value
316 319
 	 */
317 320
 	public function setAttribute($path, $attribute, $value) {
Please login to merge, or discard this patch.
src/Wrapped/Connection.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -21,6 +21,9 @@
 block discarded – undo
21 21
 	/** @var Parser */
22 22
 	private $parser;
23 23
 
24
+	/**
25
+	 * @param string $command
26
+	 */
24 27
 	public function __construct($command, Parser $parser, $env = []) {
25 28
 		parent::__construct($command, $env);
26 29
 		$this->parser = $parser;
Please login to merge, or discard this patch.
src/Wrapped/Parser.php 1 patch
Doc Comments   +11 added lines patch added patch discarded remove patch
@@ -75,6 +75,10 @@  discard block
 block discarded – undo
75 75
 		return false;
76 76
 	}
77 77
 
78
+	/**
79
+	 * @param string[] $output
80
+	 * @param string $path
81
+	 */
78 82
 	public function checkForError($output, $path) {
79 83
 		if (strpos($output[0], 'does not exist')) {
80 84
 			throw new NotFoundException($path);
@@ -130,6 +134,9 @@  discard block
 block discarded – undo
130 134
 		return $result;
131 135
 	}
132 136
 
137
+	/**
138
+	 * @param string[] $output
139
+	 */
133 140
 	public function parseStat($output) {
134 141
 		$data = [];
135 142
 		foreach ($output as $line) {
@@ -151,6 +158,10 @@  discard block
 block discarded – undo
151 158
 		];
152 159
 	}
153 160
 
161
+	/**
162
+	 * @param string[] $output
163
+	 * @param string $basePath
164
+	 */
154 165
 	public function parseDir($output, $basePath, callable $aclCallback) {
155 166
 		//last line is used space
156 167
 		array_pop($output);
Please login to merge, or discard this patch.