mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-04 01:34:07 +02:00
phpcs fix
This commit is contained in:
parent
04315265fd
commit
f4fdd50496
2 changed files with 4 additions and 4 deletions
|
|
@ -274,10 +274,10 @@ class NativeShare extends AbstractShare {
|
||||||
* @throws \Icewind\SMB\Exception\NotFoundException
|
* @throws \Icewind\SMB\Exception\NotFoundException
|
||||||
* @throws \Icewind\SMB\Exception\InvalidTypeException
|
* @throws \Icewind\SMB\Exception\InvalidTypeException
|
||||||
*/
|
*/
|
||||||
public function write($source, $truncate=true) {
|
public function write($source, $truncate = true) {
|
||||||
$url = $this->buildUrl($source);
|
$url = $this->buildUrl($source);
|
||||||
|
|
||||||
if($truncate === true) {
|
if ($truncate === true) {
|
||||||
$handle = $this->getState()->create($url);
|
$handle = $this->getState()->create($url);
|
||||||
} else {
|
} else {
|
||||||
$handle = $this->getState()->open($url, 'c');
|
$handle = $this->getState()->open($url, 'c');
|
||||||
|
|
|
||||||
|
|
@ -333,8 +333,8 @@ class Share extends AbstractShare {
|
||||||
* @throws \Icewind\SMB\Exception\NotFoundException
|
* @throws \Icewind\SMB\Exception\NotFoundException
|
||||||
* @throws \Icewind\SMB\Exception\InvalidTypeException
|
* @throws \Icewind\SMB\Exception\InvalidTypeException
|
||||||
*/
|
*/
|
||||||
public function write($target, $truncate=true) {
|
public function write($target, $truncate = true) {
|
||||||
if($truncate === false) {
|
if ($truncate === false) {
|
||||||
throw new DependencyException('truncate required by smbclient, use php-libsmbclient instead');
|
throw new DependencyException('truncate required by smbclient, use php-libsmbclient instead');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue