Passed
Push — master ( b37a49...348454 )
by Joas
15:41 queued 15s
created
apps/files_sharing/lib/Controller/AcceptController.php 1 patch
Indentation   +34 added lines, -34 removed lines patch added patch discarded remove patch
@@ -37,47 +37,47 @@
 block discarded – undo
37 37
 
38 38
 class AcceptController extends Controller {
39 39
 
40
-	/** @var ShareManager */
41
-	private $shareManager;
40
+    /** @var ShareManager */
41
+    private $shareManager;
42 42
 
43
-	/** @var IUserSession */
44
-	private $userSession;
43
+    /** @var IUserSession */
44
+    private $userSession;
45 45
 
46
-	/** @var IURLGenerator */
47
-	private $urlGenerator;
46
+    /** @var IURLGenerator */
47
+    private $urlGenerator;
48 48
 
49
-	public function __construct(IRequest $request, ShareManager $shareManager, IUserSession $userSession, IURLGenerator $urlGenerator) {
50
-		parent::__construct(Application::APP_ID, $request);
49
+    public function __construct(IRequest $request, ShareManager $shareManager, IUserSession $userSession, IURLGenerator $urlGenerator) {
50
+        parent::__construct(Application::APP_ID, $request);
51 51
 
52
-		$this->shareManager = $shareManager;
53
-		$this->userSession = $userSession;
54
-		$this->urlGenerator = $urlGenerator;
55
-	}
52
+        $this->shareManager = $shareManager;
53
+        $this->userSession = $userSession;
54
+        $this->urlGenerator = $urlGenerator;
55
+    }
56 56
 
57
-	/**
58
-	 * @NoAdminRequired
59
-	 * @NoCSRFRequired
60
-	 */
61
-	public function accept(string $shareId): Response {
62
-		try {
63
-			$share = $this->shareManager->getShareById($shareId);
64
-		} catch (ShareNotFound $e) {
65
-			return new NotFoundResponse();
66
-		}
57
+    /**
58
+     * @NoAdminRequired
59
+     * @NoCSRFRequired
60
+     */
61
+    public function accept(string $shareId): Response {
62
+        try {
63
+            $share = $this->shareManager->getShareById($shareId);
64
+        } catch (ShareNotFound $e) {
65
+            return new NotFoundResponse();
66
+        }
67 67
 
68
-		$user = $this->userSession->getUser();
69
-		if ($user === null) {
70
-			return new NotFoundResponse();
71
-		}
68
+        $user = $this->userSession->getUser();
69
+        if ($user === null) {
70
+            return new NotFoundResponse();
71
+        }
72 72
 
73
-		try {
74
-			$share = $this->shareManager->acceptShare($share, $user->getUID());
75
-		} catch (\Exception $e) {
76
-			// Just ignore
77
-		}
73
+        try {
74
+            $share = $this->shareManager->acceptShare($share, $user->getUID());
75
+        } catch (\Exception $e) {
76
+            // Just ignore
77
+        }
78 78
 
79
-		$url = $this->urlGenerator->linkToRouteAbsolute('files.viewcontroller.showFile', ['fileid' => $share->getNode()->getId()]);
79
+        $url = $this->urlGenerator->linkToRouteAbsolute('files.viewcontroller.showFile', ['fileid' => $share->getNode()->getId()]);
80 80
 
81
-		return new RedirectResponse($url);
82
-	}
81
+        return new RedirectResponse($url);
82
+    }
83 83
 }
Please login to merge, or discard this patch.
lib/public/AppFramework/Http/Template/ExternalShareMenuAction.php 1 patch
Indentation   +38 added lines, -38 removed lines patch added patch discarded remove patch
@@ -36,46 +36,46 @@
 block discarded – undo
36 36
  */
37 37
 class ExternalShareMenuAction extends SimpleMenuAction {
38 38
 
39
-	/** @var string */
40
-	private $owner;
39
+    /** @var string */
40
+    private $owner;
41 41
 
42
-	/** @var string */
43
-	private $displayname;
42
+    /** @var string */
43
+    private $displayname;
44 44
 
45
-	/** @var string */
46
-	private $shareName;
45
+    /** @var string */
46
+    private $shareName;
47 47
 
48
-	/**
49
-	 * ExternalShareMenuAction constructor.
50
-	 *
51
-	 * @param string $label
52
-	 * @param string $icon
53
-	 * @param string $owner
54
-	 * @param string $displayname
55
-	 * @param string $shareName
56
-	 * @since 14.0.0
57
-	 */
58
-	public function __construct(string $label, string $icon, string $owner, string $displayname, string $shareName) {
59
-		parent::__construct('save', $label, $icon);
60
-		$this->owner = $owner;
61
-		$this->displayname = $displayname;
62
-		$this->shareName = $shareName;
63
-	}
48
+    /**
49
+     * ExternalShareMenuAction constructor.
50
+     *
51
+     * @param string $label
52
+     * @param string $icon
53
+     * @param string $owner
54
+     * @param string $displayname
55
+     * @param string $shareName
56
+     * @since 14.0.0
57
+     */
58
+    public function __construct(string $label, string $icon, string $owner, string $displayname, string $shareName) {
59
+        parent::__construct('save', $label, $icon);
60
+        $this->owner = $owner;
61
+        $this->displayname = $displayname;
62
+        $this->shareName = $shareName;
63
+    }
64 64
 
65
-	/**
66
-	 * @since 14.0.0
67
-	 */
68
-	public function render(): string {
69
-		return '<li>' .
70
-			'    <button id="save-external-share" class="icon ' . Util::sanitizeHTML($this->getIcon()) . '" data-protected="false" data-owner-display-name="' . Util::sanitizeHTML($this->displayname) . '" data-owner="' . Util::sanitizeHTML($this->owner) . '" data-name="' . Util::sanitizeHTML($this->shareName) . '">' . Util::sanitizeHTML($this->getLabel()) . '</button>' .
71
-			'</li>' .
72
-			'<li id="external-share-menu-item" class="hidden">' .
73
-			'    <span class="menuitem">' .
74
-			'        <form class="save-form" action="#">' .
75
-			'            <input type="text" id="remote_address" placeholder="[email protected]">' .
76
-			'            <input type="submit" value=" " id="save-button-confirm" class="icon-confirm" disabled="disabled"></button>' .
77
-			'        </form>' .
78
-			'    </span>' .
79
-			'</li>';
80
-	}
65
+    /**
66
+     * @since 14.0.0
67
+     */
68
+    public function render(): string {
69
+        return '<li>' .
70
+            '    <button id="save-external-share" class="icon ' . Util::sanitizeHTML($this->getIcon()) . '" data-protected="false" data-owner-display-name="' . Util::sanitizeHTML($this->displayname) . '" data-owner="' . Util::sanitizeHTML($this->owner) . '" data-name="' . Util::sanitizeHTML($this->shareName) . '">' . Util::sanitizeHTML($this->getLabel()) . '</button>' .
71
+            '</li>' .
72
+            '<li id="external-share-menu-item" class="hidden">' .
73
+            '    <span class="menuitem">' .
74
+            '        <form class="save-form" action="#">' .
75
+            '            <input type="text" id="remote_address" placeholder="[email protected]">' .
76
+            '            <input type="submit" value=" " id="save-button-confirm" class="icon-confirm" disabled="disabled"></button>' .
77
+            '        </form>' .
78
+            '    </span>' .
79
+            '</li>';
80
+    }
81 81
 }
Please login to merge, or discard this patch.
lib/public/WorkflowEngine/Events/RegisterChecksEvent.php 1 patch
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -35,22 +35,22 @@
 block discarded – undo
35 35
  */
36 36
 class RegisterChecksEvent extends Event {
37 37
 
38
-	/** @var IManager */
39
-	private $manager;
40
-
41
-	/**
42
-	 * @since 18.0.0
43
-	 */
44
-	public function __construct(IManager $manager) {
45
-		parent::__construct();
46
-
47
-		$this->manager = $manager;
48
-	}
49
-
50
-	/**
51
-	 * @since 18.0.0
52
-	 */
53
-	public function registerCheck(ICheck $check): void {
54
-		$this->manager->registerCheck($check);
55
-	}
38
+    /** @var IManager */
39
+    private $manager;
40
+
41
+    /**
42
+     * @since 18.0.0
43
+     */
44
+    public function __construct(IManager $manager) {
45
+        parent::__construct();
46
+
47
+        $this->manager = $manager;
48
+    }
49
+
50
+    /**
51
+     * @since 18.0.0
52
+     */
53
+    public function registerCheck(ICheck $check): void {
54
+        $this->manager->registerCheck($check);
55
+    }
56 56
 }
Please login to merge, or discard this patch.
lib/public/WorkflowEngine/Events/RegisterOperationsEvent.php 1 patch
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -35,22 +35,22 @@
 block discarded – undo
35 35
  */
36 36
 class RegisterOperationsEvent extends Event {
37 37
 
38
-	/** @var IManager */
39
-	private $manager;
40
-
41
-	/**
42
-	 * @since 18.0.0
43
-	 */
44
-	public function __construct(IManager $manager) {
45
-		parent::__construct();
46
-
47
-		$this->manager = $manager;
48
-	}
49
-
50
-	/**
51
-	 * @since 18.0.0
52
-	 */
53
-	public function registerOperation(IOperation $operation): void {
54
-		$this->manager->registerOperation($operation);
55
-	}
38
+    /** @var IManager */
39
+    private $manager;
40
+
41
+    /**
42
+     * @since 18.0.0
43
+     */
44
+    public function __construct(IManager $manager) {
45
+        parent::__construct();
46
+
47
+        $this->manager = $manager;
48
+    }
49
+
50
+    /**
51
+     * @since 18.0.0
52
+     */
53
+    public function registerOperation(IOperation $operation): void {
54
+        $this->manager->registerOperation($operation);
55
+    }
56 56
 }
Please login to merge, or discard this patch.
lib/public/WorkflowEngine/Events/RegisterEntitiesEvent.php 1 patch
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -35,22 +35,22 @@
 block discarded – undo
35 35
  */
36 36
 class RegisterEntitiesEvent extends Event {
37 37
 
38
-	/** @var IManager */
39
-	private $manager;
40
-
41
-	/**
42
-	 * @since 18.0.0
43
-	 */
44
-	public function __construct(IManager $manager) {
45
-		parent::__construct();
46
-
47
-		$this->manager = $manager;
48
-	}
49
-
50
-	/**
51
-	 * @since 18.0.0
52
-	 */
53
-	public function registerEntity(IEntity $entity): void {
54
-		$this->manager->registerEntity($entity);
55
-	}
38
+    /** @var IManager */
39
+    private $manager;
40
+
41
+    /**
42
+     * @since 18.0.0
43
+     */
44
+    public function __construct(IManager $manager) {
45
+        parent::__construct();
46
+
47
+        $this->manager = $manager;
48
+    }
49
+
50
+    /**
51
+     * @since 18.0.0
52
+     */
53
+    public function registerEntity(IEntity $entity): void {
54
+        $this->manager->registerEntity($entity);
55
+    }
56 56
 }
Please login to merge, or discard this patch.
lib/public/Lock/ManuallyLockedException.php 1 patch
Indentation   +43 added lines, -43 removed lines patch added patch discarded remove patch
@@ -37,54 +37,54 @@
 block discarded – undo
37 37
 class ManuallyLockedException extends LockedException {
38 38
 
39 39
 
40
-	/**
41
-	 * owner of the lock
42
-	 *
43
-	 * @var string|null
44
-	 */
45
-	private $owner = null;
40
+    /**
41
+     * owner of the lock
42
+     *
43
+     * @var string|null
44
+     */
45
+    private $owner = null;
46 46
 
47
-	/**
48
-	 * estimated timeout for the lock
49
-	 *
50
-	 * @var int
51
-	 * @since 18.0.0
52
-	 */
53
-	private $timeout = -1;
47
+    /**
48
+     * estimated timeout for the lock
49
+     *
50
+     * @var int
51
+     * @since 18.0.0
52
+     */
53
+    private $timeout = -1;
54 54
 
55 55
 
56
-	/**
57
-	 * ManuallyLockedException constructor.
58
-	 *
59
-	 * @param string $path locked path
60
-	 * @param \Exception|null $previous previous exception for cascading
61
-	 * @param string $existingLock
62
-	 * @param string|null $owner
63
-	 * @param int $timeout
64
-	 *
65
-	 * @since 18.0.0
66
-	 */
67
-	public function __construct(string $path, \Exception $previous = null, ?string $existingLock = null, ?string $owner = null, int $timeout = -1) {
68
-		parent::__construct($path, $previous, $existingLock);
69
-		$this->owner = $owner;
70
-		$this->timeout = $timeout;
71
-	}
56
+    /**
57
+     * ManuallyLockedException constructor.
58
+     *
59
+     * @param string $path locked path
60
+     * @param \Exception|null $previous previous exception for cascading
61
+     * @param string $existingLock
62
+     * @param string|null $owner
63
+     * @param int $timeout
64
+     *
65
+     * @since 18.0.0
66
+     */
67
+    public function __construct(string $path, \Exception $previous = null, ?string $existingLock = null, ?string $owner = null, int $timeout = -1) {
68
+        parent::__construct($path, $previous, $existingLock);
69
+        $this->owner = $owner;
70
+        $this->timeout = $timeout;
71
+    }
72 72
 
73 73
 
74
-	/**
75
-	 * @return int
76
-	 * @since 18.0.0
77
-	 */
78
-	public function getTimeout(): int {
79
-		return $this->timeout;
80
-	}
74
+    /**
75
+     * @return int
76
+     * @since 18.0.0
77
+     */
78
+    public function getTimeout(): int {
79
+        return $this->timeout;
80
+    }
81 81
 
82
-	/**
83
-	 * @return string|null
84
-	 * @since 18.0.0
85
-	 */
86
-	public function getOwner(): ?string {
87
-		return $this->owner;
88
-	}
82
+    /**
83
+     * @return string|null
84
+     * @since 18.0.0
85
+     */
86
+    public function getOwner(): ?string {
87
+        return $this->owner;
88
+    }
89 89
 
90 90
 }
Please login to merge, or discard this patch.
apps/settings/lib/Sections/Admin/Groupware.php 1 patch
Indentation   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -30,30 +30,30 @@
 block discarded – undo
30 30
 
31 31
 class Groupware implements IIconSection {
32 32
 
33
-	/** @var IL10N */
34
-	private $l;
33
+    /** @var IL10N */
34
+    private $l;
35 35
 
36
-	/** @var IURLGenerator */
37
-	private $urlGenerator;
36
+    /** @var IURLGenerator */
37
+    private $urlGenerator;
38 38
 
39
-	public function __construct(IL10N $l, IURLGenerator $urlGenerator) {
40
-		$this->l = $l;
41
-		$this->urlGenerator = $urlGenerator;
42
-	}
39
+    public function __construct(IL10N $l, IURLGenerator $urlGenerator) {
40
+        $this->l = $l;
41
+        $this->urlGenerator = $urlGenerator;
42
+    }
43 43
 
44
-	public function getIcon(): string {
45
-		return $this->urlGenerator->imagePath('core', 'places/contacts.svg');
46
-	}
44
+    public function getIcon(): string {
45
+        return $this->urlGenerator->imagePath('core', 'places/contacts.svg');
46
+    }
47 47
 
48
-	public function getID(): string {
49
-		return 'groupware';
50
-	}
48
+    public function getID(): string {
49
+        return 'groupware';
50
+    }
51 51
 
52
-	public function getName(): string {
53
-		return $this->l->t('Groupware');
54
-	}
52
+    public function getName(): string {
53
+        return $this->l->t('Groupware');
54
+    }
55 55
 
56
-	public function getPriority(): int {
57
-		return 50;
58
-	}
56
+    public function getPriority(): int {
57
+        return 50;
58
+    }
59 59
 }
Please login to merge, or discard this patch.
apps/settings/lib/Sections/Admin/Additional.php 1 patch
Indentation   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -30,30 +30,30 @@
 block discarded – undo
30 30
 
31 31
 class Additional implements IIconSection {
32 32
 
33
-	/** @var IL10N */
34
-	private $l;
33
+    /** @var IL10N */
34
+    private $l;
35 35
 
36
-	/** @var IURLGenerator */
37
-	private $urlGenerator;
36
+    /** @var IURLGenerator */
37
+    private $urlGenerator;
38 38
 
39
-	public function __construct(IL10N $l, IURLGenerator $urlGenerator) {
40
-		$this->l = $l;
41
-		$this->urlGenerator = $urlGenerator;
42
-	}
39
+    public function __construct(IL10N $l, IURLGenerator $urlGenerator) {
40
+        $this->l = $l;
41
+        $this->urlGenerator = $urlGenerator;
42
+    }
43 43
 
44
-	public function getIcon(): string {
45
-		return $this->urlGenerator->imagePath('core', 'actions/settings-dark.svg');
46
-	}
44
+    public function getIcon(): string {
45
+        return $this->urlGenerator->imagePath('core', 'actions/settings-dark.svg');
46
+    }
47 47
 
48
-	public function getID(): string {
49
-		return 'additional';
50
-	}
48
+    public function getID(): string {
49
+        return 'additional';
50
+    }
51 51
 
52
-	public function getName(): string {
53
-		return $this->l->t('Additional settings');
54
-	}
52
+    public function getName(): string {
53
+        return $this->l->t('Additional settings');
54
+    }
55 55
 
56
-	public function getPriority(): int {
57
-		return 98;
58
-	}
56
+    public function getPriority(): int {
57
+        return 98;
58
+    }
59 59
 }
Please login to merge, or discard this patch.
apps/settings/lib/Sections/Admin/Sharing.php 1 patch
Indentation   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -30,30 +30,30 @@
 block discarded – undo
30 30
 
31 31
 class Sharing implements IIconSection {
32 32
 
33
-	/** @var IL10N */
34
-	private $l;
33
+    /** @var IL10N */
34
+    private $l;
35 35
 
36
-	/** @var IURLGenerator */
37
-	private $urlGenerator;
36
+    /** @var IURLGenerator */
37
+    private $urlGenerator;
38 38
 
39
-	public function __construct(IL10N $l, IURLGenerator $urlGenerator) {
40
-		$this->l = $l;
41
-		$this->urlGenerator = $urlGenerator;
42
-	}
39
+    public function __construct(IL10N $l, IURLGenerator $urlGenerator) {
40
+        $this->l = $l;
41
+        $this->urlGenerator = $urlGenerator;
42
+    }
43 43
 
44
-	public function getIcon(): string {
45
-		return $this->urlGenerator->imagePath('core', 'actions/share.svg');
46
-	}
44
+    public function getIcon(): string {
45
+        return $this->urlGenerator->imagePath('core', 'actions/share.svg');
46
+    }
47 47
 
48
-	public function getID(): string {
49
-		return 'sharing';
50
-	}
48
+    public function getID(): string {
49
+        return 'sharing';
50
+    }
51 51
 
52
-	public function getName(): string {
53
-		return $this->l->t('Sharing');
54
-	}
52
+    public function getName(): string {
53
+        return $this->l->t('Sharing');
54
+    }
55 55
 
56
-	public function getPriority(): int {
57
-		return 5;
58
-	}
56
+    public function getPriority(): int {
57
+        return 5;
58
+    }
59 59
 }
Please login to merge, or discard this patch.