Passed
Pull Request — master (#77)
by Daniel
02:12
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/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.
appinfo/routes.php 1 patch
Spacing   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -27,21 +27,21 @@  discard block
 block discarded – undo
27 27
 			'name' => 'Pico#getAsset',
28 28
 			'url' => '/pico/{site}/assets/{asset}',
29 29
 			'verb' => 'GET',
30
-			'requirements' => [ 'asset' => '.+' ]
30
+			'requirements' => ['asset' => '.+']
31 31
 		],
32 32
 		[
33 33
 			'name' => 'Pico#getAsset',
34 34
 			'postfix' => 'ETag',
35 35
 			'url' => '/pico/{site}/assets-{assetsETag}/{asset}',
36 36
 			'verb' => 'GET',
37
-			'requirements' => [ 'asset' => '.+' ]
37
+			'requirements' => ['asset' => '.+']
38 38
 		],
39 39
 		[
40 40
 			'name' => 'Pico#getPage',
41 41
 			'url' => '/pico/{site}/{page}',
42 42
 			'verb' => 'GET',
43
-			'defaults' => [ 'page' => '' ],
44
-			'requirements' => [ 'page' => '.*' ]
43
+			'defaults' => ['page' => ''],
44
+			'requirements' => ['page' => '.*']
45 45
 		],
46 46
 
47 47
 		[
@@ -49,44 +49,44 @@  discard block
 block discarded – undo
49 49
 			'postfix' => 'Proxy',
50 50
 			'url' => '/pico_proxy/{site}/assets/{asset}',
51 51
 			'verb' => 'GET',
52
-			'requirements' => [ 'asset' => '.+' ]
52
+			'requirements' => ['asset' => '.+']
53 53
 		],
54 54
 		[
55 55
 			'name' => 'Pico#getAsset',
56 56
 			'postfix' => 'ProxyETag',
57 57
 			'url' => '/pico_proxy/{site}/assets-{assetsETag}/{asset}',
58 58
 			'verb' => 'GET',
59
-			'requirements' => [ 'asset' => '.+' ]
59
+			'requirements' => ['asset' => '.+']
60 60
 		],
61 61
 		[
62 62
 			'name' => 'Pico#getPage',
63 63
 			'postfix' => 'Proxy',
64 64
 			'url' => '/pico_proxy/{site}/{page}',
65 65
 			'verb' => 'GET',
66
-			'defaults' => [ 'page' => '', 'proxyRequest' => true ],
67
-			'requirements' => [ 'page' => '.*' ]
66
+			'defaults' => ['page' => '', 'proxyRequest' => true],
67
+			'requirements' => ['page' => '.*']
68 68
 		],
69 69
 
70
-		[ 'name' => 'Settings#getPersonalWebsites', 'url' => '/personal/websites', 'verb' => 'GET' ],
71
-		[ 'name' => 'Settings#createPersonalWebsite', 'url' => '/personal/websites', 'verb' => 'POST' ],
72
-		[ 'name' => 'Settings#updatePersonalWebsite', 'url' => '/personal/websites/{siteId}', 'verb' => 'POST' ],
73
-		[ 'name' => 'Settings#removePersonalWebsite', 'url' => '/personal/websites/{siteId}', 'verb' => 'DELETE' ],
70
+		['name' => 'Settings#getPersonalWebsites', 'url' => '/personal/websites', 'verb' => 'GET'],
71
+		['name' => 'Settings#createPersonalWebsite', 'url' => '/personal/websites', 'verb' => 'POST'],
72
+		['name' => 'Settings#updatePersonalWebsite', 'url' => '/personal/websites/{siteId}', 'verb' => 'POST'],
73
+		['name' => 'Settings#removePersonalWebsite', 'url' => '/personal/websites/{siteId}', 'verb' => 'DELETE'],
74 74
 
75
-		[ 'name' => 'Settings#getTemplates', 'url' => '/admin/templates', 'verb' => 'GET' ],
76
-		[ 'name' => 'Settings#addCustomTemplate', 'url' => '/admin/templates', 'verb' => 'POST' ],
77
-		[ 'name' => 'Settings#removeCustomTemplate', 'url' => '/admin/templates/{item}', 'verb' => 'DELETE' ],
75
+		['name' => 'Settings#getTemplates', 'url' => '/admin/templates', 'verb' => 'GET'],
76
+		['name' => 'Settings#addCustomTemplate', 'url' => '/admin/templates', 'verb' => 'POST'],
77
+		['name' => 'Settings#removeCustomTemplate', 'url' => '/admin/templates/{item}', 'verb' => 'DELETE'],
78 78
 
79
-		[ 'name' => 'Settings#getThemes', 'url' => '/admin/themes', 'verb' => 'GET' ],
80
-		[ 'name' => 'Settings#addCustomTheme', 'url' => '/admin/themes', 'verb' => 'POST' ],
81
-		[ 'name' => 'Settings#updateCustomTheme', 'url' => '/admin/themes/{item}', 'verb' => 'POST' ],
82
-		[ 'name' => 'Settings#removeCustomTheme', 'url' => '/admin/themes/{item}', 'verb' => 'DELETE' ],
79
+		['name' => 'Settings#getThemes', 'url' => '/admin/themes', 'verb' => 'GET'],
80
+		['name' => 'Settings#addCustomTheme', 'url' => '/admin/themes', 'verb' => 'POST'],
81
+		['name' => 'Settings#updateCustomTheme', 'url' => '/admin/themes/{item}', 'verb' => 'POST'],
82
+		['name' => 'Settings#removeCustomTheme', 'url' => '/admin/themes/{item}', 'verb' => 'DELETE'],
83 83
 
84
-		[ 'name' => 'Settings#getPlugins', 'url' => '/admin/plugins', 'verb' => 'GET' ],
85
-		[ 'name' => 'Settings#addCustomPlugin', 'url' => '/admin/plugins', 'verb' => 'POST' ],
86
-		[ 'name' => 'Settings#updateCustomPlugin', 'url' => '/admin/plugins/{item}', 'verb' => 'POST' ],
87
-		[ 'name' => 'Settings#removeCustomPlugin', 'url' => '/admin/plugins/{item}', 'verb' => 'DELETE' ],
84
+		['name' => 'Settings#getPlugins', 'url' => '/admin/plugins', 'verb' => 'GET'],
85
+		['name' => 'Settings#addCustomPlugin', 'url' => '/admin/plugins', 'verb' => 'POST'],
86
+		['name' => 'Settings#updateCustomPlugin', 'url' => '/admin/plugins/{item}', 'verb' => 'POST'],
87
+		['name' => 'Settings#removeCustomPlugin', 'url' => '/admin/plugins/{item}', 'verb' => 'DELETE'],
88 88
 
89
-		[ 'name' => 'Settings#setLinkMode', 'url' => '/admin/link_mode', 'verb' => 'POST' ],
89
+		['name' => 'Settings#setLinkMode', 'url' => '/admin/link_mode', 'verb' => 'POST'],
90 90
 	]
91 91
 ];
92 92
 
Please login to merge, or discard this patch.