style and error message fixes

This commit is contained in:
Robin Appelman 2018-08-28 16:17:02 +02:00
commit aec9b6f2f8
2 changed files with 11 additions and 11 deletions

View file

@ -263,17 +263,17 @@ class NativeShare extends AbstractShare {
/** /**
* Open a writeable stream and set the cursor to the end of the stream * Open a writeable stream and set the cursor to the end of the stream
* *
* @param string $source * @param string $source
* @return resource a writeable stream * @return resource a writeable stream
* *
* @throws \Icewind\SMB\Exception\NotFoundException * @throws \Icewind\SMB\Exception\NotFoundException
* @throws \Icewind\SMB\Exception\InvalidTypeException * @throws \Icewind\SMB\Exception\InvalidTypeException
*/ */
public function append($source) { public function append($source) {
$url = $this->buildUrl($source); $url = $this->buildUrl($source);
$handle = $this->getState()->open($url, "a"); $handle = $this->getState()->open($url, "a");
return NativeWriteStream::wrap($this->getState(), $handle, "a", $url); return NativeWriteStream::wrap($this->getState(), $handle, "a", $url);
} }
/** /**

View file

@ -345,16 +345,16 @@ class Share extends AbstractShare {
}); });
} }
/** /**
* Append to stream * Append to stream
* Note: smbclient does not support this (Use php-libsmbclient) * Note: smbclient does not support this (Use php-libsmbclient)
* *
* @param string $target * @param string $target
* *
* @throws \Icewind\SMB\Exception\DependencyException * @throws \Icewind\SMB\Exception\DependencyException
*/ */
public function append($target) { public function append($target) {
throw new DependencyException('php-libsmbclient not installed'); throw new DependencyException('php-libsmbclient is required for append');
} }
/** /**