Passed
Pull Request — master (#77)
by Daniel
02:37
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
@@ -48,8 +48,7 @@
 block discarded – undo
48 48
 use OCA\CMSPico\Model\Website;
49 49
 use OCP\Files\InvalidPathException;
50 50
 
51
-class WebsitesService
52
-{
51
+class WebsitesService {
53 52
 	/** @var int */
54 53
 	const LINK_MODE_LONG = 1;
55 54
 
Please login to merge, or discard this patch.
lib/Files/AbstractNode.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
 	 */
116 116
 	public function isReadable(): bool
117 117
 	{
118
-		return ($this->getPermissions() & Constants::PERMISSION_READ) === Constants::PERMISSION_READ;
118
+		return ($this->getPermissions()&Constants::PERMISSION_READ) === Constants::PERMISSION_READ;
119 119
 	}
120 120
 
121 121
 	/**
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
 	 */
124 124
 	public function isUpdateable(): bool
125 125
 	{
126
-		return ($this->getPermissions() & Constants::PERMISSION_UPDATE) === Constants::PERMISSION_UPDATE;
126
+		return ($this->getPermissions()&Constants::PERMISSION_UPDATE) === Constants::PERMISSION_UPDATE;
127 127
 	}
128 128
 
129 129
 	/**
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
 	 */
132 132
 	public function isDeletable(): bool
133 133
 	{
134
-		return ($this->getPermissions() & Constants::PERMISSION_DELETE) === Constants::PERMISSION_DELETE;
134
+		return ($this->getPermissions()&Constants::PERMISSION_DELETE) === Constants::PERMISSION_DELETE;
135 135
 	}
136 136
 
137 137
 	/**
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
 	 */
142 142
 	protected function assertValidFileName(string $name)
143 143
 	{
144
-		if (in_array($name, [ '', '.', '..' ], true)) {
144
+		if (in_array($name, ['', '.', '..'], true)) {
145 145
 			throw new InvalidPathException();
146 146
 		}
147 147
 		if ((strpos($name, '/') !== false) || (strpos($name, '\\') !== false)) {
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 OCP\Constants;
28 28
 use OCP\Files\InvalidPathException;
29 29
 
30
-abstract class AbstractNode implements NodeInterface
31
-{
30
+abstract class AbstractNode implements NodeInterface {
32 31
 	/**
33 32
 	 * {@inheritDoc}
34 33
 	 */
Please login to merge, or discard this patch.
lib/Service/PluginsService.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,8 +31,7 @@
 block discarded – undo
31 31
 use OCP\Files\InvalidPathException;
32 32
 use OCP\Files\NotFoundException;
33 33
 
34
-class PluginsService
35
-{
34
+class PluginsService {
36 35
 	/** @var ConfigService */
37 36
 	private $configService;
38 37
 
Please login to merge, or discard this patch.
lib/Db/WebsitesRequestBuilder.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 OCA\CMSPico\Model\Website;
29 29
 use OCP\DB\QueryBuilder\IQueryBuilder;
30 30
 
31
-class WebsitesRequestBuilder extends CoreRequestBuilder
32
-{
31
+class WebsitesRequestBuilder extends CoreRequestBuilder {
33 32
 	/**
34 33
 	 * @return IQueryBuilder
35 34
 	 */
Please login to merge, or discard this patch.
lib/Migration/Version010000.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,8 +45,7 @@
 block discarded – undo
45 45
 use OCP\Migration\IOutput;
46 46
 use OCP\Migration\SimpleMigrationStep;
47 47
 
48
-class Version010000 extends SimpleMigrationStep
49
-{
48
+class Version010000 extends SimpleMigrationStep {
50 49
 	/** @var IDBConnection */
51 50
 	private $databaseConnection;
52 51
 
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -144,11 +144,11 @@  discard block
 block discarded – undo
144 144
 		}
145 145
 
146 146
 		if (!$table->hasIndex('user_id')) {
147
-			$table->addIndex([ 'user_id' ], 'user_id');
147
+			$table->addIndex(['user_id'], 'user_id');
148 148
 		}
149 149
 
150 150
 		if (!$table->hasIndex('site')) {
151
-			$table->addIndex([ 'site' ], 'site');
151
+			$table->addIndex(['site'], 'site');
152 152
 		}
153 153
 
154 154
 		return $schema;
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
 		$qbUpdate
178 178
 			->update(CoreRequestBuilder::TABLE_WEBSITES, 'w')
179 179
 			->set('w.type', $qbUpdate->createParameter('type'))
180
-			->set('w.options',$qbUpdate->createParameter('options'))
180
+			->set('w.options', $qbUpdate->createParameter('options'))
181 181
 			->where($qbUpdate->expr()->eq('w.id', $qbUpdate->createParameter('id')));
182 182
 
183 183
 		$selectCursor = $this->databaseConnection->getQueryBuilder()
@@ -251,7 +251,7 @@  discard block
 block discarded – undo
251 251
 						. 'folders below "%s". Make sure to give the webserver write access to this directory by '
252 252
 						. 'changing its permissions and ownership to the same as of your "%s" directory. Then try '
253 253
 						. 'again enabling Pico CMS for Nextcloud.',
254
-				[ $appDataPublicPath, $dataPath ]
254
+				[$appDataPublicPath, $dataPath]
255 255
 			));
256 256
 		}
257 257
 	}
Please login to merge, or discard this patch.