@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | |
70 | 70 | if (!@rmdir($this->getLocalPath())) { |
71 | 71 | $files = @scandir($this->getLocalPath()); |
72 | - if (($files === false) || ($files === [ '.', '..' ])) { |
|
72 | + if (($files === false) || ($files === ['.', '..'])) { |
|
73 | 73 | throw new GenericFileException(); |
74 | 74 | } else { |
75 | 75 | throw new NotPermittedException(); |
@@ -203,7 +203,7 @@ discard block |
||
203 | 203 | */ |
204 | 204 | public function isCreatable(): bool |
205 | 205 | { |
206 | - return ($this->getPermissions() & Constants::PERMISSION_CREATE) === Constants::PERMISSION_CREATE; |
|
206 | + return ($this->getPermissions()&Constants::PERMISSION_CREATE) === Constants::PERMISSION_CREATE; |
|
207 | 207 | } |
208 | 208 | |
209 | 209 | /** |
@@ -31,8 +31,7 @@ |
||
31 | 31 | use OCP\Files\NotFoundException; |
32 | 32 | use OCP\Files\NotPermittedException; |
33 | 33 | |
34 | -class LocalFolder extends AbstractLocalNode implements FolderInterface |
|
35 | -{ |
|
34 | +class LocalFolder extends AbstractLocalNode implements FolderInterface { |
|
36 | 35 | /** @var LocalFolder */ |
37 | 36 | private $baseFolder; |
38 | 37 |
@@ -29,8 +29,7 @@ |
||
29 | 29 | use OCP\Files\NotFoundException; |
30 | 30 | use OCP\Files\NotPermittedException; |
31 | 31 | |
32 | -class LocalFile extends AbstractLocalNode implements FileInterface |
|
33 | -{ |
|
32 | +class LocalFile extends AbstractLocalNode implements FileInterface { |
|
34 | 33 | /** |
35 | 34 | * LocalFile constructor. |
36 | 35 | * |
@@ -25,8 +25,7 @@ |
||
25 | 25 | |
26 | 26 | namespace OCA\CMSPico\Exceptions; |
27 | 27 | |
28 | -class PicoRuntimeException extends \Exception |
|
29 | -{ |
|
28 | +class PicoRuntimeException extends \Exception { |
|
30 | 29 | /** @var \Exception */ |
31 | 30 | private $exception; |
32 | 31 |
@@ -25,8 +25,7 @@ |
||
25 | 25 | |
26 | 26 | namespace OCA\CMSPico\Exceptions; |
27 | 27 | |
28 | -class AssetNotFoundException extends \Exception |
|
29 | -{ |
|
28 | +class AssetNotFoundException extends \Exception { |
|
30 | 29 | /** |
31 | 30 | * AssetNotFoundException constructor. |
32 | 31 | * |
@@ -24,7 +24,6 @@ |
||
24 | 24 | |
25 | 25 | namespace OCA\CMSPico\Exceptions; |
26 | 26 | |
27 | -class WebsiteExistsException extends \Exception |
|
28 | -{ |
|
27 | +class WebsiteExistsException extends \Exception { |
|
29 | 28 | |
30 | 29 | } |
@@ -24,8 +24,7 @@ |
||
24 | 24 | |
25 | 25 | namespace OCA\CMSPico\Exceptions; |
26 | 26 | |
27 | -class WebsiteInvalidDataException extends \Exception |
|
28 | -{ |
|
27 | +class WebsiteInvalidDataException extends \Exception { |
|
29 | 28 | /** @var string */ |
30 | 29 | private $field; |
31 | 30 |
@@ -24,8 +24,7 @@ |
||
24 | 24 | |
25 | 25 | namespace OCA\CMSPico\Exceptions; |
26 | 26 | |
27 | -class PageInvalidPathException extends \Exception |
|
28 | -{ |
|
27 | +class PageInvalidPathException extends \Exception { |
|
29 | 28 | /** |
30 | 29 | * PageInvalidPathException constructor. |
31 | 30 | * |
@@ -24,7 +24,6 @@ |
||
24 | 24 | |
25 | 25 | namespace OCA\CMSPico\Exceptions; |
26 | 26 | |
27 | -class ThemeNotFoundException extends \Exception |
|
28 | -{ |
|
27 | +class ThemeNotFoundException extends \Exception { |
|
29 | 28 | |
30 | 29 | } |
@@ -24,7 +24,6 @@ |
||
24 | 24 | |
25 | 25 | namespace OCA\CMSPico\Exceptions; |
26 | 26 | |
27 | -class WebsiteForeignOwnerException extends \Exception |
|
28 | -{ |
|
27 | +class WebsiteForeignOwnerException extends \Exception { |
|
29 | 28 | |
30 | 29 | } |