Passed
Pull Request — master (#77)
by Daniel
02:12
created
lib/Hooks/UserHooks.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
 
28 28
 use OCA\CMSPico\Events\UserEvents;
29 29
 
30
-class UserHooks
31
-{
30
+class UserHooks {
32 31
 	/**
33 32
 	 * @param array $params
34 33
 	 */
Please login to merge, or discard this patch.
lib/Db/WebsitesRequest.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\Exceptions\WebsiteNotFoundException;
29 29
 use OCA\CMSPico\Model\Website;
30 30
 
31
-class WebsitesRequest extends WebsitesRequestBuilder
32
-{
31
+class WebsitesRequest extends WebsitesRequestBuilder {
33 32
 	/**
34 33
 	 * @param Website $website
35 34
 	 */
Please login to merge, or discard this patch.
lib/Db/CoreRequestBuilder.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,8 +29,7 @@
 block discarded – undo
29 29
 use OCP\DB\QueryBuilder\IQueryBuilder;
30 30
 use OCP\IDBConnection;
31 31
 
32
-class CoreRequestBuilder
33
-{
32
+class CoreRequestBuilder {
34 33
 	/** @var string */
35 34
 	const TABLE_WEBSITES = 'cms_pico_websites';
36 35
 
Please login to merge, or discard this patch.
lib/Migration/AppDataRepairStep.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,8 +35,7 @@
 block discarded – undo
35 35
 use OCP\Migration\IOutput;
36 36
 use OCP\Migration\IRepairStep;
37 37
 
38
-class AppDataRepairStep implements IRepairStep
39
-{
38
+class AppDataRepairStep implements IRepairStep {
40 39
 	/** @var ILogger */
41 40
 	private $logger;
42 41
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -237,7 +237,7 @@
 block discarded – undo
237 237
 	 */
238 238
 	private function log(string $message, int $level = ILogger::DEBUG)
239 239
 	{
240
-		$this->logger->log($level, $message, [ 'app' => Application::APP_NAME ]);
240
+		$this->logger->log($level, $message, ['app' => Application::APP_NAME]);
241 241
 	}
242 242
 
243 243
 	/**
Please login to merge, or discard this patch.
lib/Files/AbstractLocalNode.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,8 +32,7 @@
 block discarded – undo
32 32
 use OCP\Files\NotFoundException;
33 33
 use OCP\Files\NotPermittedException;
34 34
 
35
-abstract class AbstractLocalNode extends AbstractNode implements NodeInterface
36
-{
35
+abstract class AbstractLocalNode extends AbstractNode implements NodeInterface {
37 36
 	/** @var string */
38 37
 	protected $path;
39 38
 
Please login to merge, or discard this patch.
lib/Files/FileInterface.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\GenericFileException;
28 28
 use OCP\Files\NotPermittedException;
29 29
 
30
-interface FileInterface extends NodeInterface
31
-{
30
+interface FileInterface extends NodeInterface {
32 31
 	/**
33 32
 	 * @return string
34 33
 	 */
Please login to merge, or discard this patch.
lib/Files/LocalFolder.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
 
70 70
 		if (!@rmdir($this->getLocalPath())) {
71 71
 			$files = @scandir($this->getLocalPath());
72
-			if (($files === false) || ($files === [ '.', '..' ])) {
72
+			if (($files === false) || ($files === ['.', '..'])) {
73 73
 				throw new GenericFileException();
74 74
 			} else {
75 75
 				throw new NotPermittedException();
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
 	 */
204 204
 	public function isCreatable(): bool
205 205
 	{
206
-		return ($this->getPermissions() & Constants::PERMISSION_CREATE) === Constants::PERMISSION_CREATE;
206
+		return ($this->getPermissions()&Constants::PERMISSION_CREATE) === Constants::PERMISSION_CREATE;
207 207
 	}
208 208
 
209 209
 	/**
Please login to merge, or discard this 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\NotFoundException;
32 32
 use OCP\Files\NotPermittedException;
33 33
 
34
-class LocalFolder extends AbstractLocalNode implements FolderInterface
35
-{
34
+class LocalFolder extends AbstractLocalNode implements FolderInterface {
36 35
 	use FolderTrait;
37 36
 
38 37
 	/** @var LocalFolder */
Please login to merge, or discard this patch.
lib/Files/LocalFile.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,8 +29,7 @@
 block discarded – undo
29 29
 use OCP\Files\NotFoundException;
30 30
 use OCP\Files\NotPermittedException;
31 31
 
32
-class LocalFile extends AbstractLocalNode implements FileInterface
33
-{
32
+class LocalFile extends AbstractLocalNode implements FileInterface {
34 33
 	/**
35 34
 	 * LocalFile constructor.
36 35
 	 *
Please login to merge, or discard this patch.
lib/Exceptions/PicoRuntimeException.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,8 +25,7 @@
 block discarded – undo
25 25
 
26 26
 namespace OCA\CMSPico\Exceptions;
27 27
 
28
-class PicoRuntimeException extends \Exception
29
-{
28
+class PicoRuntimeException extends \Exception {
30 29
 	/** @var \Exception */
31 30
 	private $exception;
32 31
 
Please login to merge, or discard this patch.