Passed
Pull Request — master (#77)
by Daniel
02:12
created
lib/Service/ThemesService.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,8 +34,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
lib/Pico.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,8 +39,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.