Passed
Push — master ( 0f924e...60f946 )
by Robin
13:56 queued 11s
created
lib/public/Activity/IProvider.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -28,15 +28,15 @@
 block discarded – undo
28 28
  * @since 11.0.0
29 29
  */
30 30
 interface IProvider {
31
-	/**
32
-	 * @param string $language The language which should be used for translating, e.g. "en"
33
-	 * @param IEvent $event The current event which should be parsed
34
-	 * @param IEvent|null $previousEvent A potential previous event which you can combine with the current one.
35
-	 *                                   To do so, simply use setChildEvent($previousEvent) after setting the
36
-	 *                                   combined subject on the current event.
37
-	 * @return IEvent
38
-	 * @throws \InvalidArgumentException Should be thrown if your provider does not know this event
39
-	 * @since 11.0.0
40
-	 */
41
-	public function parse($language, IEvent $event, IEvent $previousEvent = null);
31
+    /**
32
+     * @param string $language The language which should be used for translating, e.g. "en"
33
+     * @param IEvent $event The current event which should be parsed
34
+     * @param IEvent|null $previousEvent A potential previous event which you can combine with the current one.
35
+     *                                   To do so, simply use setChildEvent($previousEvent) after setting the
36
+     *                                   combined subject on the current event.
37
+     * @return IEvent
38
+     * @throws \InvalidArgumentException Should be thrown if your provider does not know this event
39
+     * @since 11.0.0
40
+     */
41
+    public function parse($language, IEvent $event, IEvent $previousEvent = null);
42 42
 }
Please login to merge, or discard this patch.
lib/public/Activity/IConsumer.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -38,12 +38,12 @@
 block discarded – undo
38 38
  * @since 6.0.0
39 39
  */
40 40
 interface IConsumer {
41
-	/**
42
-	 * @param IEvent $event
43
-	 * @return null
44
-	 * @since 6.0.0
45
-	 * @since 8.2.0 Replaced the parameters with an IEvent object
46
-	 */
47
-	public function receive(IEvent $event);
41
+    /**
42
+     * @param IEvent $event
43
+     * @return null
44
+     * @since 6.0.0
45
+     * @since 8.2.0 Replaced the parameters with an IEvent object
46
+     */
47
+    public function receive(IEvent $event);
48 48
 }
49 49
 
Please login to merge, or discard this patch.
lib/public/IMemcacheTTL.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -29,12 +29,12 @@
 block discarded – undo
29 29
  * @since 8.2.2
30 30
  */
31 31
 interface IMemcacheTTL extends IMemcache {
32
-	/**
33
-	 * Set the ttl for an existing value
34
-	 *
35
-	 * @param string $key
36
-	 * @param int $ttl time to live in seconds
37
-	 * @since 8.2.2
38
-	 */
39
-	public function setTTL($key, $ttl);
32
+    /**
33
+     * Set the ttl for an existing value
34
+     *
35
+     * @param string $key
36
+     * @param int $ttl time to live in seconds
37
+     * @since 8.2.2
38
+     */
39
+    public function setTTL($key, $ttl);
40 40
 }
Please login to merge, or discard this patch.
lib/public/IDateTimeZone.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -30,10 +30,10 @@
 block discarded – undo
30 30
  * @since 8.0.0
31 31
  */
32 32
 interface IDateTimeZone {
33
-	/**
34
-	 * @param bool|int $timestamp
35
-	 * @return \DateTimeZone
36
-	 * @since 8.0.0 - parameter $timestamp was added in 8.1.0
37
-	 */
38
-	public function getTimeZone($timestamp = false);
33
+    /**
34
+     * @param bool|int $timestamp
35
+     * @return \DateTimeZone
36
+     * @since 8.0.0 - parameter $timestamp was added in 8.1.0
37
+     */
38
+    public function getTimeZone($timestamp = false);
39 39
 }
Please login to merge, or discard this patch.
lib/public/IUserManager.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
 	 * remove all user backends
69 69
 	 * @since 8.0.0
70 70
 	 */
71
-	public function clearBackends() ;
71
+	public function clearBackends();
72 72
 
73 73
 	/**
74 74
 	 * get a user by user id
Please login to merge, or discard this patch.
Indentation   +157 added lines, -157 removed lines patch added patch discarded remove patch
@@ -46,161 +46,161 @@
 block discarded – undo
46 46
  * @since 8.0.0
47 47
  */
48 48
 interface IUserManager {
49
-	/**
50
-	 * register a user backend
51
-	 *
52
-	 * @param \OCP\UserInterface $backend
53
-	 * @since 8.0.0
54
-	 */
55
-	public function registerBackend($backend);
56
-
57
-	/**
58
-	 * Get the active backends
59
-	 * @return \OCP\UserInterface[]
60
-	 * @since 8.0.0
61
-	 */
62
-	public function getBackends();
63
-
64
-	/**
65
-	 * remove a user backend
66
-	 *
67
-	 * @param \OCP\UserInterface $backend
68
-	 * @since 8.0.0
69
-	 */
70
-	public function removeBackend($backend);
71
-
72
-	/**
73
-	 * remove all user backends
74
-	 * @since 8.0.0
75
-	 */
76
-	public function clearBackends() ;
77
-
78
-	/**
79
-	 * get a user by user id
80
-	 *
81
-	 * @param string $uid
82
-	 * @return \OCP\IUser|null Either the user or null if the specified user does not exist
83
-	 * @since 8.0.0
84
-	 */
85
-	public function get($uid);
86
-
87
-	/**
88
-	 * check if a user exists
89
-	 *
90
-	 * @param string $uid
91
-	 * @return bool
92
-	 * @since 8.0.0
93
-	 */
94
-	public function userExists($uid);
95
-
96
-	/**
97
-	 * Check if the password is valid for the user
98
-	 *
99
-	 * @param string $loginName
100
-	 * @param string $password
101
-	 * @return mixed the User object on success, false otherwise
102
-	 * @since 8.0.0
103
-	 */
104
-	public function checkPassword($loginName, $password);
105
-
106
-	/**
107
-	 * search by user id
108
-	 *
109
-	 * @param string $pattern
110
-	 * @param int $limit
111
-	 * @param int $offset
112
-	 * @return \OCP\IUser[]
113
-	 * @since 8.0.0
114
-	 */
115
-	public function search($pattern, $limit = null, $offset = null);
116
-
117
-	/**
118
-	 * search by displayName
119
-	 *
120
-	 * @param string $pattern
121
-	 * @param int $limit
122
-	 * @param int $offset
123
-	 * @return \OCP\IUser[]
124
-	 * @since 8.0.0
125
-	 */
126
-	public function searchDisplayName($pattern, $limit = null, $offset = null);
127
-
128
-	/**
129
-	 * Search known users (from phonebook sync) by displayName
130
-	 *
131
-	 * @param string $searcher
132
-	 * @param string $pattern
133
-	 * @param int|null $limit
134
-	 * @param int|null $offset
135
-	 * @return IUser[]
136
-	 * @since 21.0.1
137
-	 */
138
-	public function searchKnownUsersByDisplayName(string $searcher, string $pattern, ?int $limit = null, ?int $offset = null): array;
139
-
140
-	/**
141
-	 * @param string $uid
142
-	 * @param string $password
143
-	 * @throws \InvalidArgumentException
144
-	 * @return bool|\OCP\IUser the created user or false
145
-	 * @since 8.0.0
146
-	 */
147
-	public function createUser($uid, $password);
148
-
149
-	/**
150
-	 * @param string $uid
151
-	 * @param string $password
152
-	 * @param UserInterface $backend
153
-	 * @return IUser|null
154
-	 * @throws \InvalidArgumentException
155
-	 * @since 12.0.0
156
-	 */
157
-	public function createUserFromBackend($uid, $password, UserInterface $backend);
158
-
159
-	/**
160
-	 * returns how many users per backend exist (if supported by backend)
161
-	 *
162
-	 * @return array an array of backend class as key and count number as value
163
-	 * @since 8.0.0
164
-	 */
165
-	public function countUsers();
166
-
167
-	/**
168
-	 * @param \Closure $callback
169
-	 * @psalm-param \Closure(\OCP\IUser):void $callback
170
-	 * @param string $search
171
-	 * @since 9.0.0
172
-	 */
173
-	public function callForAllUsers(\Closure $callback, $search = '');
174
-
175
-	/**
176
-	 * returns how many users have logged in once
177
-	 *
178
-	 * @return int
179
-	 * @since 11.0.0
180
-	 */
181
-	public function countDisabledUsers();
182
-
183
-	/**
184
-	 * returns how many users have logged in once
185
-	 *
186
-	 * @return int
187
-	 * @since 11.0.0
188
-	 */
189
-	public function countSeenUsers();
190
-
191
-	/**
192
-	 * @param \Closure $callback
193
-	 * @psalm-param \Closure(\OCP\IUser):?bool $callback
194
-	 * @since 11.0.0
195
-	 */
196
-	public function callForSeenUsers(\Closure $callback);
197
-
198
-	/**
199
-	 * returns all users having the provided email set as system email address
200
-	 *
201
-	 * @param string $email
202
-	 * @return IUser[]
203
-	 * @since 9.1.0
204
-	 */
205
-	public function getByEmail($email);
49
+    /**
50
+     * register a user backend
51
+     *
52
+     * @param \OCP\UserInterface $backend
53
+     * @since 8.0.0
54
+     */
55
+    public function registerBackend($backend);
56
+
57
+    /**
58
+     * Get the active backends
59
+     * @return \OCP\UserInterface[]
60
+     * @since 8.0.0
61
+     */
62
+    public function getBackends();
63
+
64
+    /**
65
+     * remove a user backend
66
+     *
67
+     * @param \OCP\UserInterface $backend
68
+     * @since 8.0.0
69
+     */
70
+    public function removeBackend($backend);
71
+
72
+    /**
73
+     * remove all user backends
74
+     * @since 8.0.0
75
+     */
76
+    public function clearBackends() ;
77
+
78
+    /**
79
+     * get a user by user id
80
+     *
81
+     * @param string $uid
82
+     * @return \OCP\IUser|null Either the user or null if the specified user does not exist
83
+     * @since 8.0.0
84
+     */
85
+    public function get($uid);
86
+
87
+    /**
88
+     * check if a user exists
89
+     *
90
+     * @param string $uid
91
+     * @return bool
92
+     * @since 8.0.0
93
+     */
94
+    public function userExists($uid);
95
+
96
+    /**
97
+     * Check if the password is valid for the user
98
+     *
99
+     * @param string $loginName
100
+     * @param string $password
101
+     * @return mixed the User object on success, false otherwise
102
+     * @since 8.0.0
103
+     */
104
+    public function checkPassword($loginName, $password);
105
+
106
+    /**
107
+     * search by user id
108
+     *
109
+     * @param string $pattern
110
+     * @param int $limit
111
+     * @param int $offset
112
+     * @return \OCP\IUser[]
113
+     * @since 8.0.0
114
+     */
115
+    public function search($pattern, $limit = null, $offset = null);
116
+
117
+    /**
118
+     * search by displayName
119
+     *
120
+     * @param string $pattern
121
+     * @param int $limit
122
+     * @param int $offset
123
+     * @return \OCP\IUser[]
124
+     * @since 8.0.0
125
+     */
126
+    public function searchDisplayName($pattern, $limit = null, $offset = null);
127
+
128
+    /**
129
+     * Search known users (from phonebook sync) by displayName
130
+     *
131
+     * @param string $searcher
132
+     * @param string $pattern
133
+     * @param int|null $limit
134
+     * @param int|null $offset
135
+     * @return IUser[]
136
+     * @since 21.0.1
137
+     */
138
+    public function searchKnownUsersByDisplayName(string $searcher, string $pattern, ?int $limit = null, ?int $offset = null): array;
139
+
140
+    /**
141
+     * @param string $uid
142
+     * @param string $password
143
+     * @throws \InvalidArgumentException
144
+     * @return bool|\OCP\IUser the created user or false
145
+     * @since 8.0.0
146
+     */
147
+    public function createUser($uid, $password);
148
+
149
+    /**
150
+     * @param string $uid
151
+     * @param string $password
152
+     * @param UserInterface $backend
153
+     * @return IUser|null
154
+     * @throws \InvalidArgumentException
155
+     * @since 12.0.0
156
+     */
157
+    public function createUserFromBackend($uid, $password, UserInterface $backend);
158
+
159
+    /**
160
+     * returns how many users per backend exist (if supported by backend)
161
+     *
162
+     * @return array an array of backend class as key and count number as value
163
+     * @since 8.0.0
164
+     */
165
+    public function countUsers();
166
+
167
+    /**
168
+     * @param \Closure $callback
169
+     * @psalm-param \Closure(\OCP\IUser):void $callback
170
+     * @param string $search
171
+     * @since 9.0.0
172
+     */
173
+    public function callForAllUsers(\Closure $callback, $search = '');
174
+
175
+    /**
176
+     * returns how many users have logged in once
177
+     *
178
+     * @return int
179
+     * @since 11.0.0
180
+     */
181
+    public function countDisabledUsers();
182
+
183
+    /**
184
+     * returns how many users have logged in once
185
+     *
186
+     * @return int
187
+     * @since 11.0.0
188
+     */
189
+    public function countSeenUsers();
190
+
191
+    /**
192
+     * @param \Closure $callback
193
+     * @psalm-param \Closure(\OCP\IUser):?bool $callback
194
+     * @since 11.0.0
195
+     */
196
+    public function callForSeenUsers(\Closure $callback);
197
+
198
+    /**
199
+     * returns all users having the provided email set as system email address
200
+     *
201
+     * @param string $email
202
+     * @return IUser[]
203
+     * @since 9.1.0
204
+     */
205
+    public function getByEmail($email);
206 206
 }
Please login to merge, or discard this patch.
lib/public/Comments/ICommentsEventHandler.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -31,9 +31,9 @@
 block discarded – undo
31 31
  */
32 32
 interface ICommentsEventHandler {
33 33
 
34
-	/**
35
-	 * @param CommentsEvent $event
36
-	 * @since 11.0.0
37
-	 */
38
-	public function handle(CommentsEvent $event);
34
+    /**
35
+     * @param CommentsEvent $event
36
+     * @since 11.0.0
37
+     */
38
+    public function handle(CommentsEvent $event);
39 39
 }
Please login to merge, or discard this patch.
lib/public/Comments/CommentsEntityEvent.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
 	 */
62 62
 	public function addEntityCollection($name, \Closure $entityExistsFunction) {
63 63
 		if (isset($this->collections[$name])) {
64
-			throw new \OutOfBoundsException('Duplicate entity name "' . $name . '"');
64
+			throw new \OutOfBoundsException('Duplicate entity name "'.$name.'"');
65 65
 		}
66 66
 
67 67
 		$this->collections[$name] = $entityExistsFunction;
Please login to merge, or discard this patch.
Indentation   +40 added lines, -40 removed lines patch added patch discarded remove patch
@@ -32,49 +32,49 @@
 block discarded – undo
32 32
  * @since 9.1.0
33 33
  */
34 34
 class CommentsEntityEvent extends Event {
35
-	/**
36
-	 * @deprecated 22.0.0
37
-	 */
38
-	public const EVENT_ENTITY = 'OCP\Comments\ICommentsManager::registerEntity';
35
+    /**
36
+     * @deprecated 22.0.0
37
+     */
38
+    public const EVENT_ENTITY = 'OCP\Comments\ICommentsManager::registerEntity';
39 39
 
40
-	/** @var string */
41
-	protected $event;
42
-	/** @var \Closure[] */
43
-	protected $collections;
40
+    /** @var string */
41
+    protected $event;
42
+    /** @var \Closure[] */
43
+    protected $collections;
44 44
 
45
-	/**
46
-	 * DispatcherEvent constructor.
47
-	 *
48
-	 * @param string $event
49
-	 * @since 9.1.0
50
-	 */
51
-	public function __construct($event) {
52
-		$this->event = $event;
53
-		$this->collections = [];
54
-	}
45
+    /**
46
+     * DispatcherEvent constructor.
47
+     *
48
+     * @param string $event
49
+     * @since 9.1.0
50
+     */
51
+    public function __construct($event) {
52
+        $this->event = $event;
53
+        $this->collections = [];
54
+    }
55 55
 
56
-	/**
57
-	 * @param string $name
58
-	 * @param \Closure $entityExistsFunction The closure should take one
59
-	 *                 argument, which is the id of the entity, that comments
60
-	 *                 should be handled for. The return should then be bool,
61
-	 *                 depending on whether comments are allowed (true) or not.
62
-	 * @throws \OutOfBoundsException when the entity name is already taken
63
-	 * @since 9.1.0
64
-	 */
65
-	public function addEntityCollection($name, \Closure $entityExistsFunction) {
66
-		if (isset($this->collections[$name])) {
67
-			throw new \OutOfBoundsException('Duplicate entity name "' . $name . '"');
68
-		}
56
+    /**
57
+     * @param string $name
58
+     * @param \Closure $entityExistsFunction The closure should take one
59
+     *                 argument, which is the id of the entity, that comments
60
+     *                 should be handled for. The return should then be bool,
61
+     *                 depending on whether comments are allowed (true) or not.
62
+     * @throws \OutOfBoundsException when the entity name is already taken
63
+     * @since 9.1.0
64
+     */
65
+    public function addEntityCollection($name, \Closure $entityExistsFunction) {
66
+        if (isset($this->collections[$name])) {
67
+            throw new \OutOfBoundsException('Duplicate entity name "' . $name . '"');
68
+        }
69 69
 
70
-		$this->collections[$name] = $entityExistsFunction;
71
-	}
70
+        $this->collections[$name] = $entityExistsFunction;
71
+    }
72 72
 
73
-	/**
74
-	 * @return \Closure[]
75
-	 * @since 9.1.0
76
-	 */
77
-	public function getEntityCollections() {
78
-		return $this->collections;
79
-	}
73
+    /**
74
+     * @return \Closure[]
75
+     * @since 9.1.0
76
+     */
77
+    public function getEntityCollections() {
78
+        return $this->collections;
79
+    }
80 80
 }
Please login to merge, or discard this patch.
lib/public/Comments/ICommentsManagerFactory.php 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -36,19 +36,19 @@
 block discarded – undo
36 36
  */
37 37
 interface ICommentsManagerFactory {
38 38
 
39
-	/**
40
-	 * Constructor for the comments manager factory
41
-	 *
42
-	 * @param IServerContainer $serverContainer server container
43
-	 * @since 9.0.0
44
-	 */
45
-	public function __construct(IServerContainer $serverContainer);
39
+    /**
40
+     * Constructor for the comments manager factory
41
+     *
42
+     * @param IServerContainer $serverContainer server container
43
+     * @since 9.0.0
44
+     */
45
+    public function __construct(IServerContainer $serverContainer);
46 46
 
47
-	/**
48
-	 * creates and returns an instance of the ICommentsManager
49
-	 *
50
-	 * @return ICommentsManager
51
-	 * @since 9.0.0
52
-	 */
53
-	public function getManager();
47
+    /**
48
+     * creates and returns an instance of the ICommentsManager
49
+     *
50
+     * @return ICommentsManager
51
+     * @since 9.0.0
52
+     */
53
+    public function getManager();
54 54
 }
Please login to merge, or discard this patch.
lib/public/IUserBackend.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -38,11 +38,11 @@
 block discarded – undo
38 38
  */
39 39
 interface IUserBackend {
40 40
 
41
-	/**
42
-	 * Backend name to be shown in user management
43
-	 * @return string the name of the backend to be shown
44
-	 * @since 8.0.0
45
-	 */
46
-	public function getBackendName();
41
+    /**
42
+     * Backend name to be shown in user management
43
+     * @return string the name of the backend to be shown
44
+     * @since 8.0.0
45
+     */
46
+    public function getBackendName();
47 47
 
48 48
 }
Please login to merge, or discard this patch.