@@ -139,7 +139,7 @@ |
||
139 | 139 | */ |
140 | 140 | public function installTemplates(Website $website) |
141 | 141 | { |
142 | - $filesIterator = function (FolderInterface $folder, string $basePath = '') use (&$filesIterator) { |
|
142 | + $filesIterator = function(FolderInterface $folder, string $basePath = '') use (&$filesIterator) { |
|
143 | 143 | $files = []; |
144 | 144 | foreach ($folder->listing() as $node) { |
145 | 145 | if ($node->isFolder()) { |
@@ -34,8 +34,7 @@ |
||
34 | 34 | use OCP\Files\InvalidPathException; |
35 | 35 | use OCP\Files\NotFoundException; |
36 | 36 | |
37 | -class TemplatesService |
|
38 | -{ |
|
37 | +class TemplatesService { |
|
39 | 38 | /** @var ConfigService */ |
40 | 39 | private $configService; |
41 | 40 |
@@ -65,7 +65,7 @@ |
||
65 | 65 | public function getReason(): string |
66 | 66 | { |
67 | 67 | $reasonData = $this->reasonData; |
68 | - $replaceCallback = function (array $matches) use ($reasonData) { |
|
68 | + $replaceCallback = function(array $matches) use ($reasonData) { |
|
69 | 69 | return $reasonData[$matches[1]] ?? ''; |
70 | 70 | }; |
71 | 71 |
@@ -24,8 +24,7 @@ |
||
24 | 24 | |
25 | 25 | namespace OCA\CMSPico\Exceptions; |
26 | 26 | |
27 | -class PluginNotCompatibleException extends \Exception |
|
28 | -{ |
|
27 | +class PluginNotCompatibleException extends \Exception { |
|
29 | 28 | /** @var string */ |
30 | 29 | private $pluginName; |
31 | 30 |
@@ -24,7 +24,6 @@ |
||
24 | 24 | |
25 | 25 | namespace OCA\CMSPico\Exceptions; |
26 | 26 | |
27 | -class PluginNotFoundException extends \Exception |
|
28 | -{ |
|
27 | +class PluginNotFoundException extends \Exception { |
|
29 | 28 | |
30 | 29 | } |
@@ -27,8 +27,7 @@ |
||
27 | 27 | use OCA\CMSPico\Exceptions\PluginNotCompatibleException; |
28 | 28 | use OCA\CMSPico\Files\LocalFolder; |
29 | 29 | |
30 | -class Plugin implements \JsonSerializable |
|
31 | -{ |
|
30 | +class Plugin implements \JsonSerializable { |
|
32 | 31 | /** @var int */ |
33 | 32 | const PLUGIN_TYPE_SYSTEM = 1; |
34 | 33 |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | return; |
112 | 112 | } |
113 | 113 | |
114 | - $includeClosure = static function (string $pluginFile) { |
|
114 | + $includeClosure = static function(string $pluginFile) { |
|
115 | 115 | require($pluginFile); |
116 | 116 | }; |
117 | 117 | |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | throw new PluginNotCompatibleException( |
121 | 121 | $this->getName(), |
122 | 122 | 'Incompatible plugin: Plugin file "{file}" not found.', |
123 | - [ 'file' => $this->getName() . '/' . $this->getName() . '.php' ] |
|
123 | + ['file' => $this->getName() . '/' . $this->getName() . '.php'] |
|
124 | 124 | ); |
125 | 125 | } |
126 | 126 | |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | throw new PluginNotCompatibleException( |
132 | 132 | $this->getName(), |
133 | 133 | 'Incompatible plugin: Plugin class "{class}" not found.', |
134 | - [ 'class' => $className ] |
|
134 | + ['class' => $className] |
|
135 | 135 | ); |
136 | 136 | } |
137 | 137 | |
@@ -146,7 +146,7 @@ discard block |
||
146 | 146 | $this->getName(), |
147 | 147 | 'Incompatible plugin: Plugins for Pico CMS for Nextcloud must use API version {minApiVersion} ' |
148 | 148 | . 'or later, but this plugin uses API version {apiVersion}.', |
149 | - [ 'minApiVersion' => \Pico::API_VERSION, 'apiVersion' => $apiVersion ] |
|
149 | + ['minApiVersion' => \Pico::API_VERSION, 'apiVersion' => $apiVersion] |
|
150 | 150 | ); |
151 | 151 | } |
152 | 152 |
@@ -41,8 +41,7 @@ |
||
41 | 41 | use OCP\Migration\IOutput; |
42 | 42 | use OCP\Migration\SimpleMigrationStep; |
43 | 43 | |
44 | -class Version010000 extends SimpleMigrationStep |
|
45 | -{ |
|
44 | +class Version010000 extends SimpleMigrationStep { |
|
46 | 45 | /** @var IL10N */ |
47 | 46 | private $l10n; |
48 | 47 |
@@ -24,7 +24,6 @@ |
||
24 | 24 | |
25 | 25 | namespace OCA\CMSPico\Exceptions; |
26 | 26 | |
27 | -class FilesystemNotWritableException extends \Exception |
|
28 | -{ |
|
27 | +class FilesystemNotWritableException extends \Exception { |
|
29 | 28 | |
30 | 29 | } |
@@ -24,7 +24,6 @@ |
||
24 | 24 | |
25 | 25 | namespace OCA\CMSPico\Exceptions; |
26 | 26 | |
27 | -class FilesystemEncryptedException extends \Exception |
|
28 | -{ |
|
27 | +class FilesystemEncryptedException extends \Exception { |
|
29 | 28 | |
30 | 29 | } |
@@ -27,8 +27,7 @@ |
||
27 | 27 | use OCP\Files\InvalidPathException; |
28 | 28 | use OCP\Security\ISecureRandom; |
29 | 29 | |
30 | -class MiscService |
|
31 | -{ |
|
30 | +class MiscService { |
|
32 | 31 | /** |
33 | 32 | * @param string $path |
34 | 33 | * |
@@ -37,8 +37,7 @@ |
||
37 | 37 | use OCP\Files\NotFoundException; |
38 | 38 | use OCP\Files\NotPermittedException; |
39 | 39 | |
40 | -class FileService |
|
41 | -{ |
|
40 | +class FileService { |
|
42 | 41 | /** @var string */ |
43 | 42 | const APPDATA_PUBLIC = 'appdata_public'; |
44 | 43 |