enforce code style with php-cs in travis

This commit is contained in:
Robin Appelman 2018-08-27 17:51:17 +02:00
commit 83cea01c56
4 changed files with 5 additions and 3 deletions

View file

@ -53,7 +53,7 @@ class NativeFileInfo implements IFileInfo {
if (is_array($stat)) {
$this->statCache = $stat;
} else if (is_callable($stat)) {
} elseif (is_callable($stat)) {
$this->statCallback = $stat;
} else {
throw new \InvalidArgumentException('$stat needs to be an array or callback');

View file

@ -94,7 +94,7 @@ class NativeShare extends AbstractShare {
$name = $file['name'];
if ($name !== '.' and $name !== '..') {
$fullPath = $path . '/' . $name;
$files [] = new NativeFileInfo($this, $fullPath, $name, function() use ($fullPath) {
$files [] = new NativeFileInfo($this, $fullPath, $name, function () use ($fullPath) {
return $this->getStat($fullPath);
});
}