Passed
Pull Request — master (#77)
by Daniel
02:08
created
lib/Exceptions/FilesystemNotWritableException.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,7 +24,6 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
lib/Exceptions/FilesystemEncryptedException.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,7 +24,6 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
lib/Service/MiscService.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 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
 	 *
Please login to merge, or discard this patch.
lib/Service/FileService.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,8 +37,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
lib/Service/WebsitesService.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -297,6 +297,6 @@
 block discarded – undo
297 297
 	 */
298 298
 	public function getLinkMode(): int
299 299
 	{
300
-		return (int) $this->configService->getAppValue(ConfigService::LINK_MODE);
300
+		return (int)$this->configService->getAppValue(ConfigService::LINK_MODE);
301 301
 	}
302 302
 }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,8 +45,7 @@
 block discarded – undo
45 45
 use OCA\CMSPico\Model\Website;
46 46
 use OCP\Files\File;
47 47
 
48
-class WebsitesService
49
-{
48
+class WebsitesService {
50 49
 	/** @var int */
51 50
 	const LINK_MODE_LONG = 1;
52 51
 
Please login to merge, or discard this patch.
appinfo/routes.php 1 patch
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
 
24 24
 return [
25 25
 	'routes' => [
26
-		[ 'name' => 'Pico#getRoot', 'url' => '/pico/{site}/', 'verb' => 'GET' ],
26
+		['name' => 'Pico#getRoot', 'url' => '/pico/{site}/', 'verb' => 'GET'],
27 27
 		[
28 28
 			'name' => 'Pico#getPage',
29 29
 			'url' => '/pico/{site}/{page}',
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
 			'requirements' => array('page' => '.+')
32 32
 		],
33 33
 
34
-		[ 'name' => 'Pico#getRootProxy', 'url' => '/pico_proxy/{site}/', 'verb' => 'GET' ],
34
+		['name' => 'Pico#getRootProxy', 'url' => '/pico_proxy/{site}/', 'verb' => 'GET'],
35 35
 		[
36 36
 			'name' => 'Pico#getPageProxy',
37 37
 			'url' => '/pico_proxy/{site}/{page}',
@@ -39,26 +39,26 @@  discard block
 block discarded – undo
39 39
 			'requirements' => array('page' => '.+')
40 40
 		],
41 41
 
42
-		[ 'name' => 'Settings#getPersonalWebsites', 'url' => '/personal/websites', 'verb' => 'GET' ],
43
-		[ 'name' => 'Settings#createPersonalWebsite', 'url' => '/personal/websites', 'verb' => 'POST' ],
44
-		[ 'name' => 'Settings#updatePersonalWebsite', 'url' => '/personal/websites/{siteId}', 'verb' => 'POST' ],
45
-		[ 'name' => 'Settings#removePersonalWebsite', 'url' => '/personal/websites/{siteId}', 'verb' => 'DELETE' ],
42
+		['name' => 'Settings#getPersonalWebsites', 'url' => '/personal/websites', 'verb' => 'GET'],
43
+		['name' => 'Settings#createPersonalWebsite', 'url' => '/personal/websites', 'verb' => 'POST'],
44
+		['name' => 'Settings#updatePersonalWebsite', 'url' => '/personal/websites/{siteId}', 'verb' => 'POST'],
45
+		['name' => 'Settings#removePersonalWebsite', 'url' => '/personal/websites/{siteId}', 'verb' => 'DELETE'],
46 46
 
47
-		[ 'name' => 'Settings#getTemplates', 'url' => '/admin/templates', 'verb' => 'GET' ],
48
-		[ 'name' => 'Settings#addCustomTemplate', 'url' => '/admin/templates', 'verb' => 'POST' ],
49
-		[ 'name' => 'Settings#removeCustomTemplate', 'url' => '/admin/templates/{item}', 'verb' => 'DELETE' ],
47
+		['name' => 'Settings#getTemplates', 'url' => '/admin/templates', 'verb' => 'GET'],
48
+		['name' => 'Settings#addCustomTemplate', 'url' => '/admin/templates', 'verb' => 'POST'],
49
+		['name' => 'Settings#removeCustomTemplate', 'url' => '/admin/templates/{item}', 'verb' => 'DELETE'],
50 50
 
51
-		[ 'name' => 'Settings#getThemes', 'url' => '/admin/themes', 'verb' => 'GET' ],
52
-		[ 'name' => 'Settings#addCustomTheme', 'url' => '/admin/themes', 'verb' => 'POST' ],
53
-		[ 'name' => 'Settings#updateCustomTheme', 'url' => '/admin/themes/{item}', 'verb' => 'POST' ],
54
-		[ 'name' => 'Settings#removeCustomTheme', 'url' => '/admin/themes/{item}', 'verb' => 'DELETE' ],
51
+		['name' => 'Settings#getThemes', 'url' => '/admin/themes', 'verb' => 'GET'],
52
+		['name' => 'Settings#addCustomTheme', 'url' => '/admin/themes', 'verb' => 'POST'],
53
+		['name' => 'Settings#updateCustomTheme', 'url' => '/admin/themes/{item}', 'verb' => 'POST'],
54
+		['name' => 'Settings#removeCustomTheme', 'url' => '/admin/themes/{item}', 'verb' => 'DELETE'],
55 55
 
56
-		[ 'name' => 'Settings#getPlugins', 'url' => '/admin/plugins', 'verb' => 'GET' ],
57
-		[ 'name' => 'Settings#addCustomPlugin', 'url' => '/admin/plugins', 'verb' => 'POST' ],
58
-		[ 'name' => 'Settings#updateCustomPlugin', 'url' => '/admin/plugins/{item}', 'verb' => 'POST' ],
59
-		[ 'name' => 'Settings#removeCustomPlugin', 'url' => '/admin/plugins/{item}', 'verb' => 'DELETE' ],
56
+		['name' => 'Settings#getPlugins', 'url' => '/admin/plugins', 'verb' => 'GET'],
57
+		['name' => 'Settings#addCustomPlugin', 'url' => '/admin/plugins', 'verb' => 'POST'],
58
+		['name' => 'Settings#updateCustomPlugin', 'url' => '/admin/plugins/{item}', 'verb' => 'POST'],
59
+		['name' => 'Settings#removeCustomPlugin', 'url' => '/admin/plugins/{item}', 'verb' => 'DELETE'],
60 60
 
61
-		[ 'name' => 'Settings#setLinkMode', 'url' => '/admin/link_mode', 'verb' => 'POST' ],
61
+		['name' => 'Settings#setLinkMode', 'url' => '/admin/link_mode', 'verb' => 'POST'],
62 62
 	]
63 63
 ];
64 64
 
Please login to merge, or discard this patch.