Passed
Pull Request — master (#77)
by Daniel
02:37
created
lib/Exceptions/ThemeNotCompatibleException.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,8 +24,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
lib/Model/Theme.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,8 +27,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
lib/Service/ThemesService.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,8 +35,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
lib/Files/NodeInterface.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,8 +30,7 @@
 block discarded – undo
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
 	 *
Please login to merge, or discard this patch.
lib/Files/AbstractStorageNode.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,8 +30,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
lib/Exceptions/WebsiteInvalidFilesystemException.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,8 +24,7 @@
 block discarded – undo
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
 	 *
Please login to merge, or discard this patch.
lib/Model/PicoPage.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,8 +28,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
lib/Model/PicoAsset.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,8 +27,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
lib/Http/PicoAssetResponse.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,8 +28,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.