Passed
Push — master ( dd028f...b414f5 )
by Joas
16:16 queued 12s
created
apps/files_trashbin/lib/Trash/ITrashItem.php 1 patch
Indentation   +43 added lines, -43 removed lines patch added patch discarded remove patch
@@ -28,53 +28,53 @@
 block discarded – undo
28 28
  * @since 15.0.0
29 29
  */
30 30
 interface ITrashItem extends FileInfo {
31
-	/**
32
-	 * Get the trash backend for this item
33
-	 *
34
-	 * @return ITrashBackend
35
-	 * @since 15.0.0
36
-	 */
37
-	public function getTrashBackend(): ITrashBackend;
31
+    /**
32
+     * Get the trash backend for this item
33
+     *
34
+     * @return ITrashBackend
35
+     * @since 15.0.0
36
+     */
37
+    public function getTrashBackend(): ITrashBackend;
38 38
 
39
-	/**
40
-	 * Get the original location for the trash item
41
-	 *
42
-	 * @return string
43
-	 * @since 15.0.0
44
-	 */
45
-	public function getOriginalLocation(): string;
39
+    /**
40
+     * Get the original location for the trash item
41
+     *
42
+     * @return string
43
+     * @since 15.0.0
44
+     */
45
+    public function getOriginalLocation(): string;
46 46
 
47
-	/**
48
-	 * Get the timestamp that the file was moved to trash
49
-	 *
50
-	 * @return int
51
-	 * @since 15.0.0
52
-	 */
53
-	public function getDeletedTime(): int;
47
+    /**
48
+     * Get the timestamp that the file was moved to trash
49
+     *
50
+     * @return int
51
+     * @since 15.0.0
52
+     */
53
+    public function getDeletedTime(): int;
54 54
 
55
-	/**
56
-	 * Get the path of the item relative to the users trashbin
57
-	 *
58
-	 * @return string
59
-	 * @since 15.0.0
60
-	 */
61
-	public function getTrashPath(): string;
55
+    /**
56
+     * Get the path of the item relative to the users trashbin
57
+     *
58
+     * @return string
59
+     * @since 15.0.0
60
+     */
61
+    public function getTrashPath(): string;
62 62
 
63
-	/**
64
-	 * Whether the item is a deleted item in the root of the trash, or a file in a subfolder
65
-	 *
66
-	 * @return bool
67
-	 * @since 15.0.0
68
-	 */
69
-	public function isRootItem(): bool;
63
+    /**
64
+     * Whether the item is a deleted item in the root of the trash, or a file in a subfolder
65
+     *
66
+     * @return bool
67
+     * @since 15.0.0
68
+     */
69
+    public function isRootItem(): bool;
70 70
 
71
-	/**
72
-	 * Get the user for which this trash item applies
73
-	 *
74
-	 * @return IUser
75
-	 * @since 15.0.0
76
-	 */
77
-	public function getUser(): IUser;
71
+    /**
72
+     * Get the user for which this trash item applies
73
+     *
74
+     * @return IUser
75
+     * @since 15.0.0
76
+     */
77
+    public function getUser(): IUser;
78 78
 
79
-	public function getTitle(): string;
79
+    public function getTitle(): string;
80 80
 }
Please login to merge, or discard this patch.
apps/files_versions/lib/Sabre/VersionFile.php 1 patch
Indentation   +58 added lines, -58 removed lines patch added patch discarded remove patch
@@ -32,62 +32,62 @@
 block discarded – undo
32 32
 use Sabre\DAV\IFile;
33 33
 
34 34
 class VersionFile implements IFile {
35
-	/** @var IVersion */
36
-	private $version;
37
-
38
-	/** @var IVersionManager */
39
-	private $versionManager;
40
-
41
-	public function __construct(IVersion $version, IVersionManager $versionManager) {
42
-		$this->version = $version;
43
-		$this->versionManager = $versionManager;
44
-	}
45
-
46
-	public function put($data) {
47
-		throw new Forbidden();
48
-	}
49
-
50
-	public function get() {
51
-		try {
52
-			return $this->versionManager->read($this->version);
53
-		} catch (NotFoundException $e) {
54
-			throw new NotFound();
55
-		}
56
-	}
57
-
58
-	public function getContentType(): string {
59
-		return $this->version->getMimeType();
60
-	}
61
-
62
-	public function getETag(): string {
63
-		return (string)$this->version->getRevisionId();
64
-	}
65
-
66
-	public function getSize(): int {
67
-		return $this->version->getSize();
68
-	}
69
-
70
-	public function delete() {
71
-		throw new Forbidden();
72
-	}
73
-
74
-	public function getName(): string {
75
-		return (string)$this->version->getRevisionId();
76
-	}
77
-
78
-	public function setName($name) {
79
-		throw new Forbidden();
80
-	}
81
-
82
-	public function getLastModified(): int {
83
-		return $this->version->getTimestamp();
84
-	}
85
-
86
-	public function rollBack() {
87
-		$this->versionManager->rollback($this->version);
88
-	}
89
-
90
-	public function getVersion(): IVersion {
91
-		return $this->version;
92
-	}
35
+    /** @var IVersion */
36
+    private $version;
37
+
38
+    /** @var IVersionManager */
39
+    private $versionManager;
40
+
41
+    public function __construct(IVersion $version, IVersionManager $versionManager) {
42
+        $this->version = $version;
43
+        $this->versionManager = $versionManager;
44
+    }
45
+
46
+    public function put($data) {
47
+        throw new Forbidden();
48
+    }
49
+
50
+    public function get() {
51
+        try {
52
+            return $this->versionManager->read($this->version);
53
+        } catch (NotFoundException $e) {
54
+            throw new NotFound();
55
+        }
56
+    }
57
+
58
+    public function getContentType(): string {
59
+        return $this->version->getMimeType();
60
+    }
61
+
62
+    public function getETag(): string {
63
+        return (string)$this->version->getRevisionId();
64
+    }
65
+
66
+    public function getSize(): int {
67
+        return $this->version->getSize();
68
+    }
69
+
70
+    public function delete() {
71
+        throw new Forbidden();
72
+    }
73
+
74
+    public function getName(): string {
75
+        return (string)$this->version->getRevisionId();
76
+    }
77
+
78
+    public function setName($name) {
79
+        throw new Forbidden();
80
+    }
81
+
82
+    public function getLastModified(): int {
83
+        return $this->version->getTimestamp();
84
+    }
85
+
86
+    public function rollBack() {
87
+        $this->versionManager->rollback($this->version);
88
+    }
89
+
90
+    public function getVersion(): IVersion {
91
+        return $this->version;
92
+    }
93 93
 }
Please login to merge, or discard this patch.
lib/public/Broadcast/Events/IBroadcastEvent.php 1 patch
Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -31,27 +31,27 @@
 block discarded – undo
31 31
  */
32 32
 interface IBroadcastEvent {
33 33
 
34
-	/**
35
-	 * @return string the name of the event
36
-	 * @since 18.0.0
37
-	 */
38
-	public function getName(): string;
39
-
40
-	/**
41
-	 * @return string[]
42
-	 * @since 18.0.0
43
-	 */
44
-	public function getUids(): array;
45
-
46
-	/**
47
-	 * @return JsonSerializable the data to be sent to the client
48
-	 * @since 18.0.0
49
-	 */
50
-	public function getPayload(): JsonSerializable;
51
-
52
-	/**
53
-	 * @since 18.0.0
54
-	 */
55
-	public function setBroadcasted(): void;
34
+    /**
35
+     * @return string the name of the event
36
+     * @since 18.0.0
37
+     */
38
+    public function getName(): string;
39
+
40
+    /**
41
+     * @return string[]
42
+     * @since 18.0.0
43
+     */
44
+    public function getUids(): array;
45
+
46
+    /**
47
+     * @return JsonSerializable the data to be sent to the client
48
+     * @since 18.0.0
49
+     */
50
+    public function getPayload(): JsonSerializable;
51
+
52
+    /**
53
+     * @since 18.0.0
54
+     */
55
+    public function setBroadcasted(): void;
56 56
 
57 57
 }
Please login to merge, or discard this patch.
lib/public/EventDispatcher/ABroadcastedEvent.php 1 patch
Indentation   +32 added lines, -32 removed lines patch added patch discarded remove patch
@@ -31,41 +31,41 @@
 block discarded – undo
31 31
  */
32 32
 abstract class ABroadcastedEvent extends Event implements JsonSerializable {
33 33
 
34
-	/**
35
-	 * @since 18.0.0
36
-	 */
37
-	private $broadcasted = false;
34
+    /**
35
+     * @since 18.0.0
36
+     */
37
+    private $broadcasted = false;
38 38
 
39
-	/**
40
-	 * Get the name of the event, as received on the client-side
41
-	 *
42
-	 * Uses the fully qualified event class name by default
43
-	 *
44
-	 * @return string
45
-	 * @since 18.0.0
46
-	 */
47
-	public function broadcastAs(): string {
48
-		return get_class($this);
49
-	}
39
+    /**
40
+     * Get the name of the event, as received on the client-side
41
+     *
42
+     * Uses the fully qualified event class name by default
43
+     *
44
+     * @return string
45
+     * @since 18.0.0
46
+     */
47
+    public function broadcastAs(): string {
48
+        return get_class($this);
49
+    }
50 50
 
51
-	/**
52
-	 * @return string[]
53
-	 * @since 18.0.0
54
-	 */
55
-	abstract public function getUids(): array;
51
+    /**
52
+     * @return string[]
53
+     * @since 18.0.0
54
+     */
55
+    abstract public function getUids(): array;
56 56
 
57
-	/**
58
-	 * @since 18.0.0
59
-	 */
60
-	public function setBroadcasted(): void {
61
-		$this->broadcasted = true;
62
-	}
57
+    /**
58
+     * @since 18.0.0
59
+     */
60
+    public function setBroadcasted(): void {
61
+        $this->broadcasted = true;
62
+    }
63 63
 
64
-	/**
65
-	 * @since 18.0.0
66
-	 */
67
-	public function isBroadcasted(): bool {
68
-		return $this->broadcasted;
69
-	}
64
+    /**
65
+     * @since 18.0.0
66
+     */
67
+    public function isBroadcasted(): bool {
68
+        return $this->broadcasted;
69
+    }
70 70
 
71 71
 }
Please login to merge, or discard this patch.
lib/private/Broadcast/Events/BroadcastEvent.php 1 patch
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -31,29 +31,29 @@
 block discarded – undo
31 31
 
32 32
 class BroadcastEvent extends Event implements IBroadcastEvent {
33 33
 
34
-	/** @var ABroadcastedEvent */
35
-	private $event;
34
+    /** @var ABroadcastedEvent */
35
+    private $event;
36 36
 
37
-	public function __construct(ABroadcastedEvent $event) {
38
-		parent::__construct();
37
+    public function __construct(ABroadcastedEvent $event) {
38
+        parent::__construct();
39 39
 
40
-		$this->event = $event;
41
-	}
40
+        $this->event = $event;
41
+    }
42 42
 
43
-	public function getName(): string {
44
-		return $this->event->broadcastAs();
45
-	}
43
+    public function getName(): string {
44
+        return $this->event->broadcastAs();
45
+    }
46 46
 
47
-	public function getUids(): array {
48
-		return $this->event->getUids();
49
-	}
47
+    public function getUids(): array {
48
+        return $this->event->getUids();
49
+    }
50 50
 
51
-	public function getPayload(): JsonSerializable {
52
-		return $this->event;
53
-	}
51
+    public function getPayload(): JsonSerializable {
52
+        return $this->event;
53
+    }
54 54
 
55
-	public function setBroadcasted(): void {
56
-		$this->event->setBroadcasted();
57
-	}
55
+    public function setBroadcasted(): void {
56
+        $this->event->setBroadcasted();
57
+    }
58 58
 
59 59
 }
Please login to merge, or discard this patch.
lib/public/WorkflowEngine/IOperationCompat.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -36,15 +36,15 @@
 block discarded – undo
36 36
  * @deprecated
37 37
  */
38 38
 interface IOperationCompat {
39
-	/**
40
-	 * Like onEvent, but used with events that are not based on
41
-	 * \OCP\EventDispatcher\Event.
42
-	 *
43
-	 * This method is introduced for compatibility reasons and will be removed
44
-	 * in 2023 again.
45
-	 *
46
-	 * @since 18.0.0
47
-	 * @deprecated
48
-	 */
49
-	public function onEventCompat(string $eventName, $event, IRuleMatcher $ruleMatcher): void;
39
+    /**
40
+     * Like onEvent, but used with events that are not based on
41
+     * \OCP\EventDispatcher\Event.
42
+     *
43
+     * This method is introduced for compatibility reasons and will be removed
44
+     * in 2023 again.
45
+     *
46
+     * @since 18.0.0
47
+     * @deprecated
48
+     */
49
+    public function onEventCompat(string $eventName, $event, IRuleMatcher $ruleMatcher): void;
50 50
 }
Please login to merge, or discard this patch.
lib/public/WorkflowEngine/IEntityCompat.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -36,12 +36,12 @@
 block discarded – undo
36 36
  * @deprecated
37 37
  */
38 38
 interface IEntityCompat extends IEntity {
39
-	/**
40
-	 * Like prepareRuleMatcherCompat, but works with events that are not based
41
-	 * on \OCP\EventDispatcher\Event.
42
-	 *
43
-	 * @since 18.0.0
44
-	 * @deprecated
45
-	 */
46
-	public function prepareRuleMatcherCompat(IRuleMatcher $ruleMatcher, string $eventName, $event): void;
39
+    /**
40
+     * Like prepareRuleMatcherCompat, but works with events that are not based
41
+     * on \OCP\EventDispatcher\Event.
42
+     *
43
+     * @since 18.0.0
44
+     * @deprecated
45
+     */
46
+    public function prepareRuleMatcherCompat(IRuleMatcher $ruleMatcher, string $eventName, $event): void;
47 47
 }
Please login to merge, or discard this patch.
apps/files_trashbin/lib/Trash/TrashItem.php 1 patch
Indentation   +152 added lines, -152 removed lines patch added patch discarded remove patch
@@ -25,164 +25,164 @@
 block discarded – undo
25 25
 use OCP\IUser;
26 26
 
27 27
 class TrashItem implements ITrashItem {
28
-	/** @var ITrashBackend */
29
-	private $backend;
30
-	/** @var string */
31
-	private $orignalLocation;
32
-	/** @var int */
33
-	private $deletedTime;
34
-	/** @var string */
35
-	private $trashPath;
36
-	/** @var FileInfo */
37
-	private $fileInfo;
38
-	/** @var IUser */
39
-	private $user;
40
-
41
-	public function __construct(
42
-		ITrashBackend $backend,
43
-		string $originalLocation,
44
-		int $deletedTime,
45
-		string $trashPath,
46
-		FileInfo $fileInfo,
47
-		IUser $user
48
-	) {
49
-		$this->backend = $backend;
50
-		$this->orignalLocation = $originalLocation;
51
-		$this->deletedTime = $deletedTime;
52
-		$this->trashPath = $trashPath;
53
-		$this->fileInfo = $fileInfo;
54
-		$this->user = $user;
55
-	}
56
-
57
-	public function getTrashBackend(): ITrashBackend {
58
-		return $this->backend;
59
-	}
60
-
61
-	public function getOriginalLocation(): string {
62
-		return $this->orignalLocation;
63
-	}
64
-
65
-	public function getDeletedTime(): int {
66
-		return $this->deletedTime;
67
-	}
68
-
69
-	public function getTrashPath(): string {
70
-		return $this->trashPath;
71
-	}
72
-
73
-	public function isRootItem(): bool {
74
-		return substr_count($this->getTrashPath(), '/') === 1;
75
-	}
76
-
77
-	public function getUser(): IUser {
78
-		return $this->user;
79
-	}
80
-
81
-	public function getEtag() {
82
-		return $this->fileInfo->getEtag();
83
-	}
84
-
85
-	public function getSize($includeMounts = true) {
86
-		return $this->fileInfo->getSize($includeMounts);
87
-	}
88
-
89
-	public function getMtime() {
90
-		return $this->fileInfo->getMtime();
91
-	}
92
-
93
-	public function getName() {
94
-		return $this->fileInfo->getName();
95
-	}
96
-
97
-	public function getInternalPath() {
98
-		return $this->fileInfo->getInternalPath();
99
-	}
100
-
101
-	public function getPath() {
102
-		return $this->fileInfo->getPath();
103
-	}
104
-
105
-	public function getMimetype() {
106
-		return $this->fileInfo->getMimetype();
107
-	}
108
-
109
-	public function getMimePart() {
110
-		return $this->fileInfo->getMimePart();
111
-	}
112
-
113
-	public function getStorage() {
114
-		return $this->fileInfo->getStorage();
115
-	}
116
-
117
-	public function getId() {
118
-		return $this->fileInfo->getId();
119
-	}
120
-
121
-	public function isEncrypted() {
122
-		return $this->fileInfo->isEncrypted();
123
-	}
124
-
125
-	public function getPermissions() {
126
-		return $this->fileInfo->getPermissions();
127
-	}
128
-
129
-	public function getType() {
130
-		return $this->fileInfo->getType();
131
-	}
132
-
133
-	public function isReadable() {
134
-		return $this->fileInfo->isReadable();
135
-	}
136
-
137
-	public function isUpdateable() {
138
-		return $this->fileInfo->isUpdateable();
139
-	}
140
-
141
-	public function isCreatable() {
142
-		return $this->fileInfo->isCreatable();
143
-	}
144
-
145
-	public function isDeletable() {
146
-		return $this->fileInfo->isDeletable();
147
-	}
148
-
149
-	public function isShareable() {
150
-		return $this->fileInfo->isShareable();
151
-	}
152
-
153
-	public function isShared() {
154
-		return $this->fileInfo->isShared();
155
-	}
28
+    /** @var ITrashBackend */
29
+    private $backend;
30
+    /** @var string */
31
+    private $orignalLocation;
32
+    /** @var int */
33
+    private $deletedTime;
34
+    /** @var string */
35
+    private $trashPath;
36
+    /** @var FileInfo */
37
+    private $fileInfo;
38
+    /** @var IUser */
39
+    private $user;
40
+
41
+    public function __construct(
42
+        ITrashBackend $backend,
43
+        string $originalLocation,
44
+        int $deletedTime,
45
+        string $trashPath,
46
+        FileInfo $fileInfo,
47
+        IUser $user
48
+    ) {
49
+        $this->backend = $backend;
50
+        $this->orignalLocation = $originalLocation;
51
+        $this->deletedTime = $deletedTime;
52
+        $this->trashPath = $trashPath;
53
+        $this->fileInfo = $fileInfo;
54
+        $this->user = $user;
55
+    }
56
+
57
+    public function getTrashBackend(): ITrashBackend {
58
+        return $this->backend;
59
+    }
60
+
61
+    public function getOriginalLocation(): string {
62
+        return $this->orignalLocation;
63
+    }
64
+
65
+    public function getDeletedTime(): int {
66
+        return $this->deletedTime;
67
+    }
68
+
69
+    public function getTrashPath(): string {
70
+        return $this->trashPath;
71
+    }
72
+
73
+    public function isRootItem(): bool {
74
+        return substr_count($this->getTrashPath(), '/') === 1;
75
+    }
76
+
77
+    public function getUser(): IUser {
78
+        return $this->user;
79
+    }
80
+
81
+    public function getEtag() {
82
+        return $this->fileInfo->getEtag();
83
+    }
84
+
85
+    public function getSize($includeMounts = true) {
86
+        return $this->fileInfo->getSize($includeMounts);
87
+    }
88
+
89
+    public function getMtime() {
90
+        return $this->fileInfo->getMtime();
91
+    }
92
+
93
+    public function getName() {
94
+        return $this->fileInfo->getName();
95
+    }
96
+
97
+    public function getInternalPath() {
98
+        return $this->fileInfo->getInternalPath();
99
+    }
100
+
101
+    public function getPath() {
102
+        return $this->fileInfo->getPath();
103
+    }
104
+
105
+    public function getMimetype() {
106
+        return $this->fileInfo->getMimetype();
107
+    }
108
+
109
+    public function getMimePart() {
110
+        return $this->fileInfo->getMimePart();
111
+    }
112
+
113
+    public function getStorage() {
114
+        return $this->fileInfo->getStorage();
115
+    }
116
+
117
+    public function getId() {
118
+        return $this->fileInfo->getId();
119
+    }
120
+
121
+    public function isEncrypted() {
122
+        return $this->fileInfo->isEncrypted();
123
+    }
124
+
125
+    public function getPermissions() {
126
+        return $this->fileInfo->getPermissions();
127
+    }
128
+
129
+    public function getType() {
130
+        return $this->fileInfo->getType();
131
+    }
132
+
133
+    public function isReadable() {
134
+        return $this->fileInfo->isReadable();
135
+    }
136
+
137
+    public function isUpdateable() {
138
+        return $this->fileInfo->isUpdateable();
139
+    }
140
+
141
+    public function isCreatable() {
142
+        return $this->fileInfo->isCreatable();
143
+    }
144
+
145
+    public function isDeletable() {
146
+        return $this->fileInfo->isDeletable();
147
+    }
148
+
149
+    public function isShareable() {
150
+        return $this->fileInfo->isShareable();
151
+    }
152
+
153
+    public function isShared() {
154
+        return $this->fileInfo->isShared();
155
+    }
156 156
 
157
-	public function isMounted() {
158
-		return $this->fileInfo->isMounted();
159
-	}
157
+    public function isMounted() {
158
+        return $this->fileInfo->isMounted();
159
+    }
160 160
 
161
-	public function getMountPoint() {
162
-		return $this->fileInfo->getMountPoint();
163
-	}
161
+    public function getMountPoint() {
162
+        return $this->fileInfo->getMountPoint();
163
+    }
164 164
 
165
-	public function getOwner() {
166
-		return $this->fileInfo->getOwner();
167
-	}
165
+    public function getOwner() {
166
+        return $this->fileInfo->getOwner();
167
+    }
168 168
 
169
-	public function getChecksum() {
170
-		return $this->fileInfo->getChecksum();
171
-	}
169
+    public function getChecksum() {
170
+        return $this->fileInfo->getChecksum();
171
+    }
172 172
 
173
-	public function getExtension(): string {
174
-		return $this->fileInfo->getExtension();
175
-	}
173
+    public function getExtension(): string {
174
+        return $this->fileInfo->getExtension();
175
+    }
176 176
 
177
-	public function getTitle(): string {
178
-		return $this->getOriginalLocation();
179
-	}
177
+    public function getTitle(): string {
178
+        return $this->getOriginalLocation();
179
+    }
180 180
 
181
-	public function getCreationTime(): int {
182
-		return $this->fileInfo->getCreationTime();
183
-	}
181
+    public function getCreationTime(): int {
182
+        return $this->fileInfo->getCreationTime();
183
+    }
184 184
 
185
-	public function getUploadTime(): int {
186
-		return $this->fileInfo->getUploadTime();
187
-	}
185
+    public function getUploadTime(): int {
186
+        return $this->fileInfo->getUploadTime();
187
+    }
188 188
 }
Please login to merge, or discard this patch.
apps/files_sharing/lib/Migration/SetAcceptedStatus.php 1 patch
Indentation   +35 added lines, -35 removed lines patch added patch discarded remove patch
@@ -33,47 +33,47 @@
 block discarded – undo
33 33
 
34 34
 class SetAcceptedStatus implements IRepairStep {
35 35
 
36
-	/** @var IDBConnection */
37
-	private $connection;
36
+    /** @var IDBConnection */
37
+    private $connection;
38 38
 
39
-	/** @var  IConfig */
40
-	private $config;
39
+    /** @var  IConfig */
40
+    private $config;
41 41
 
42 42
 
43
-	public function __construct(IDBConnection $connection, IConfig $config) {
44
-		$this->connection = $connection;
45
-		$this->config = $config;
46
-	}
43
+    public function __construct(IDBConnection $connection, IConfig $config) {
44
+        $this->connection = $connection;
45
+        $this->config = $config;
46
+    }
47 47
 
48
-	/**
49
-	 * Returns the step's name
50
-	 *
51
-	 * @return string
52
-	 * @since 9.1.0
53
-	 */
54
-	public function getName(): string {
55
-		return 'Set existing shares as accepted';
56
-	}
48
+    /**
49
+     * Returns the step's name
50
+     *
51
+     * @return string
52
+     * @since 9.1.0
53
+     */
54
+    public function getName(): string {
55
+        return 'Set existing shares as accepted';
56
+    }
57 57
 
58
-	/**
59
-	 * @param IOutput $output
60
-	 */
61
-	public function run(IOutput $output): void {
62
-		if (!$this->shouldRun()) {
63
-			return;
64
-		}
58
+    /**
59
+     * @param IOutput $output
60
+     */
61
+    public function run(IOutput $output): void {
62
+        if (!$this->shouldRun()) {
63
+            return;
64
+        }
65 65
 
66
-		$query = $this->connection->getQueryBuilder();
67
-		$query
68
-			->update('share')
69
-			->set('accepted', $query->createNamedParameter(IShare::STATUS_ACCEPTED))
70
-			->where($query->expr()->in('share_type', $query->createNamedParameter([IShare::TYPE_USER, IShare::TYPE_GROUP, IShare::TYPE_USERGROUP], IQueryBuilder::PARAM_INT_ARRAY)));
71
-		$query->execute();
72
-	}
66
+        $query = $this->connection->getQueryBuilder();
67
+        $query
68
+            ->update('share')
69
+            ->set('accepted', $query->createNamedParameter(IShare::STATUS_ACCEPTED))
70
+            ->where($query->expr()->in('share_type', $query->createNamedParameter([IShare::TYPE_USER, IShare::TYPE_GROUP, IShare::TYPE_USERGROUP], IQueryBuilder::PARAM_INT_ARRAY)));
71
+        $query->execute();
72
+    }
73 73
 
74
-	protected function shouldRun() {
75
-		$appVersion = $this->config->getAppValue('files_sharing', 'installed_version', '0.0.0');
76
-		return version_compare($appVersion, '1.10.1', '<');
77
-	}
74
+    protected function shouldRun() {
75
+        $appVersion = $this->config->getAppValue('files_sharing', 'installed_version', '0.0.0');
76
+        return version_compare($appVersion, '1.10.1', '<');
77
+    }
78 78
 
79 79
 }
Please login to merge, or discard this patch.