@@ -24,8 +24,7 @@ |
||
24 | 24 | |
25 | 25 | namespace OCA\CMSPico\Exceptions; |
26 | 26 | |
27 | -class ThemeNotCompatibleException extends \Exception |
|
28 | -{ |
|
27 | +class ThemeNotCompatibleException extends \Exception { |
|
29 | 28 | /** @var string */ |
30 | 29 | private $themeName; |
31 | 30 |
@@ -69,7 +69,7 @@ |
||
69 | 69 | } |
70 | 70 | |
71 | 71 | $reasonData = $this->reasonData; |
72 | - $replaceCallback = function (array $matches) use ($reasonData) { |
|
72 | + $replaceCallback = function(array $matches) use ($reasonData) { |
|
73 | 73 | return $reasonData[$matches[1]] ?? ''; |
74 | 74 | }; |
75 | 75 |
@@ -116,7 +116,7 @@ |
||
116 | 116 | throw new ThemeNotCompatibleException( |
117 | 117 | $this->getName(), |
118 | 118 | 'Incompatible theme: Twig template "{file}" not found.', |
119 | - [ 'file' => $this->getName() . '/index.twig' ] |
|
119 | + ['file' => $this->getName() . '/index.twig'] |
|
120 | 120 | ); |
121 | 121 | } |
122 | 122 |
@@ -27,8 +27,7 @@ |
||
27 | 27 | use OCA\CMSPico\Exceptions\ThemeNotCompatibleException; |
28 | 28 | use OCA\CMSPico\Files\LocalFolder; |
29 | 29 | |
30 | -class Theme implements \JsonSerializable |
|
31 | -{ |
|
30 | +class Theme implements \JsonSerializable { |
|
32 | 31 | /** @var int */ |
33 | 32 | const THEME_TYPE_SYSTEM = 1; |
34 | 33 |
@@ -35,8 +35,7 @@ |
||
35 | 35 | use OCP\Files\InvalidPathException; |
36 | 36 | use OCP\Files\NotFoundException; |
37 | 37 | |
38 | -class ThemesService |
|
39 | -{ |
|
38 | +class ThemesService { |
|
40 | 39 | /** @var ConfigService */ |
41 | 40 | private $configService; |
42 | 41 |
@@ -30,8 +30,7 @@ |
||
30 | 30 | use OCP\Files\NotFoundException; |
31 | 31 | use OCP\Files\NotPermittedException; |
32 | 32 | |
33 | -interface NodeInterface |
|
34 | -{ |
|
33 | +interface NodeInterface { |
|
35 | 34 | /** |
36 | 35 | * @param string $name |
37 | 36 | * |
@@ -30,8 +30,7 @@ |
||
30 | 30 | use OCP\Files\Node as OCNode; |
31 | 31 | use OCP\Files\NotFoundException; |
32 | 32 | |
33 | -abstract class AbstractStorageNode extends AbstractNode implements NodeInterface |
|
34 | -{ |
|
33 | +abstract class AbstractStorageNode extends AbstractNode implements NodeInterface { |
|
35 | 34 | /** @var OCNode */ |
36 | 35 | protected $node; |
37 | 36 |
@@ -24,8 +24,7 @@ |
||
24 | 24 | |
25 | 25 | namespace OCA\CMSPico\Exceptions; |
26 | 26 | |
27 | -class WebsiteInvalidFilesystemException extends \Exception |
|
28 | -{ |
|
27 | +class WebsiteInvalidFilesystemException extends \Exception { |
|
29 | 28 | /** |
30 | 29 | * WebsiteInvalidFilesystemException constructor. |
31 | 30 | * |
@@ -28,8 +28,7 @@ |
||
28 | 28 | use OCP\Files\InvalidPathException; |
29 | 29 | use Pico; |
30 | 30 | |
31 | -class PicoPage |
|
32 | -{ |
|
31 | +class PicoPage { |
|
33 | 32 | /** @var MiscService */ |
34 | 33 | private $miscService; |
35 | 34 |
@@ -27,8 +27,7 @@ |
||
27 | 27 | use OCA\CMSPico\Files\StorageFile; |
28 | 28 | use OCP\Files\NotPermittedException; |
29 | 29 | |
30 | -class PicoAsset |
|
31 | -{ |
|
30 | +class PicoAsset { |
|
32 | 31 | /** @var StorageFile */ |
33 | 32 | private $file; |
34 | 33 |
@@ -28,8 +28,7 @@ |
||
28 | 28 | use OCP\AppFramework\Http\DownloadResponse; |
29 | 29 | use OCP\AppFramework\Http\EmptyContentSecurityPolicy; |
30 | 30 | |
31 | -class PicoAssetResponse extends DownloadResponse |
|
32 | -{ |
|
31 | +class PicoAssetResponse extends DownloadResponse { |
|
33 | 32 | /** @var PicoAsset */ |
34 | 33 | private $asset; |
35 | 34 |