@@ -34,8 +34,7 @@ |
||
| 34 | 34 | use OCP\Files\AlreadyExistsException; |
| 35 | 35 | use OCP\Files\NotFoundException; |
| 36 | 36 | |
| 37 | -class ThemesService |
|
| 38 | -{ |
|
| 37 | +class ThemesService { |
|
| 39 | 38 | /** @var ConfigService */ |
| 40 | 39 | private $configService; |
| 41 | 40 | |
@@ -205,7 +205,7 @@ discard block |
||
| 205 | 205 | if ($this->htmlPurifier === null) { |
| 206 | 206 | $this->htmlPurifier = new HTMLPurifier(HTMLPurifier_Config::createDefault()); |
| 207 | 207 | |
| 208 | - $this->triggerEvent('onHtmlPurifier', [ &$this->htmlPurifier ]); |
|
| 208 | + $this->triggerEvent('onHtmlPurifier', [&$this->htmlPurifier]); |
|
| 209 | 209 | } |
| 210 | 210 | |
| 211 | 211 | return $this->htmlPurifier; |
@@ -231,12 +231,12 @@ discard block |
||
| 231 | 231 | return parent::getFiles($absolutePath, $fileExtension, $order); |
| 232 | 232 | } |
| 233 | 233 | |
| 234 | - $folderFilter = function (NodeInterface $node, int $key, FolderInterface $folder) use ($fileExtension) { |
|
| 234 | + $folderFilter = function(NodeInterface $node, int $key, FolderInterface $folder) use ($fileExtension) { |
|
| 235 | 235 | $fileName = $node->getName(); |
| 236 | 236 | |
| 237 | 237 | // exclude hidden files/dirs starting with a . |
| 238 | 238 | // exclude files ending with a ~ (vim/nano backup) or # (emacs backup) |
| 239 | - if (($fileName[0] === '.') || in_array(substr($fileName, -1), [ '~', '#' ], true)) { |
|
| 239 | + if (($fileName[0] === '.') || in_array(substr($fileName, -1), ['~', '#'], true)) { |
|
| 240 | 240 | return false; |
| 241 | 241 | } |
| 242 | 242 | |
@@ -289,7 +289,7 @@ discard block |
||
| 289 | 289 | $fileName = $file->getName(); |
| 290 | 290 | |
| 291 | 291 | // exclude files ending with a ~ (vim/nano backup) or # (emacs backup) |
| 292 | - if (in_array(substr($fileName, -1), [ '~', '#' ], true)) { |
|
| 292 | + if (in_array(substr($fileName, -1), ['~', '#'], true)) { |
|
| 293 | 293 | continue; |
| 294 | 294 | } |
| 295 | 295 | |
@@ -39,8 +39,7 @@ |
||
| 39 | 39 | use OCP\Files\NotPermittedException; |
| 40 | 40 | use Symfony\Component\Yaml\Exception\ParseException; |
| 41 | 41 | |
| 42 | -class Pico extends \Pico |
|
| 43 | -{ |
|
| 42 | +class Pico extends \Pico { |
|
| 44 | 43 | /** @var PicoService */ |
| 45 | 44 | private $picoService; |
| 46 | 45 | |
@@ -24,7 +24,6 @@ |
||
| 24 | 24 | |
| 25 | 25 | namespace OCA\CMSPico\Exceptions; |
| 26 | 26 | |
| 27 | -class ComposerException extends \Exception |
|
| 28 | -{ |
|
| 27 | +class ComposerException extends \Exception { |
|
| 29 | 28 | |
| 30 | 29 | } |