Passed
Push — master ( 348454...c8160a )
by Joas
15:07 queued 14s
created
lib/public/Group/Backend/IGroupDetailsBackend.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -29,8 +29,8 @@
 block discarded – undo
29 29
  */
30 30
 interface IGroupDetailsBackend {
31 31
 
32
-	/**
33
-	 * @since 14.0.0
34
-	 */
35
-	public function getGroupDetails(string $gid): array;
32
+    /**
33
+     * @since 14.0.0
34
+     */
35
+    public function getGroupDetails(string $gid): array;
36 36
 }
Please login to merge, or discard this patch.
lib/public/Group/Backend/IIsAdminBackend.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -29,8 +29,8 @@
 block discarded – undo
29 29
  */
30 30
 interface IIsAdminBackend {
31 31
 
32
-	/**
33
-	 * @since 14.0.0
34
-	 */
35
-	public function isAdmin(string $uid): bool;
32
+    /**
33
+     * @since 14.0.0
34
+     */
35
+    public function isAdmin(string $uid): bool;
36 36
 }
Please login to merge, or discard this patch.
lib/public/Group/Backend/ICreateGroupBackend.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -29,8 +29,8 @@
 block discarded – undo
29 29
  */
30 30
 interface ICreateGroupBackend {
31 31
 
32
-	/**
33
-	 * @since 14.0.0
34
-	 */
35
-	public function createGroup(string $gid): bool;
32
+    /**
33
+     * @since 14.0.0
34
+     */
35
+    public function createGroup(string $gid): bool;
36 36
 }
Please login to merge, or discard this patch.
lib/public/Group/Backend/ICountUsersBackend.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -29,8 +29,8 @@
 block discarded – undo
29 29
  */
30 30
 interface ICountUsersBackend {
31 31
 
32
-	/**
33
-	 * @since 14.0.0
34
-	 */
35
-	public function countUsersInGroup(string $gid, string $search = ''): int;
32
+    /**
33
+     * @since 14.0.0
34
+     */
35
+    public function countUsersInGroup(string $gid, string $search = ''): int;
36 36
 }
Please login to merge, or discard this patch.
lib/public/Group/Backend/IAddToGroupBackend.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -29,8 +29,8 @@
 block discarded – undo
29 29
  */
30 30
 interface IAddToGroupBackend {
31 31
 
32
-	/**
33
-	 * @since 14.0.0
34
-	 */
35
-	public function addToGroup(string $uid, string $gid): bool;
32
+    /**
33
+     * @since 14.0.0
34
+     */
35
+    public function addToGroup(string $uid, string $gid): bool;
36 36
 }
Please login to merge, or discard this patch.
lib/public/Group/Backend/IRemoveFromGroupBackend.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -29,8 +29,8 @@
 block discarded – undo
29 29
  */
30 30
 interface IRemoveFromGroupBackend {
31 31
 
32
-	/**
33
-	 * @since 14.0.0
34
-	 */
35
-	public function removeFromGroup(string $uid, string $gid);
32
+    /**
33
+     * @since 14.0.0
34
+     */
35
+    public function removeFromGroup(string $uid, string $gid);
36 36
 }
Please login to merge, or discard this patch.
lib/public/Group/Backend/ABackend.php 2 patches
Indentation   +31 added lines, -31 removed lines patch added patch discarded remove patch
@@ -31,37 +31,37 @@
 block discarded – undo
31 31
  */
32 32
 abstract class ABackend implements GroupInterface {
33 33
 
34
-	/**
35
-	 * @deprecated 14.0.0
36
-	 *
37
-	 * @param int $actions The action to check for
38
-	 * @return bool
39
-	 */
40
-	public function implementsActions($actions): bool {
41
-		$implements = 0;
34
+    /**
35
+     * @deprecated 14.0.0
36
+     *
37
+     * @param int $actions The action to check for
38
+     * @return bool
39
+     */
40
+    public function implementsActions($actions): bool {
41
+        $implements = 0;
42 42
 
43
-		if ($this instanceof IAddToGroupBackend) {
44
-			$implements |= GroupInterface::ADD_TO_GROUP;
45
-		}
46
-		if ($this instanceof ICountUsersBackend) {
47
-			$implements |= GroupInterface::COUNT_USERS;
48
-		}
49
-		if ($this instanceof ICreateGroupBackend) {
50
-			$implements |= GroupInterface::CREATE_GROUP;
51
-		}
52
-		if ($this instanceof IDeleteGroupBackend) {
53
-			$implements |= GroupInterface::DELETE_GROUP;
54
-		}
55
-		if ($this instanceof IGroupDetailsBackend) {
56
-			$implements |= GroupInterface::GROUP_DETAILS;
57
-		}
58
-		if ($this instanceof IIsAdminBackend) {
59
-			$implements |= GroupInterface::IS_ADMIN;
60
-		}
61
-		if ($this instanceof IRemoveFromGroupBackend) {
62
-			$implements |= GroupInterface::REMOVE_FROM_GOUP;
63
-		}
43
+        if ($this instanceof IAddToGroupBackend) {
44
+            $implements |= GroupInterface::ADD_TO_GROUP;
45
+        }
46
+        if ($this instanceof ICountUsersBackend) {
47
+            $implements |= GroupInterface::COUNT_USERS;
48
+        }
49
+        if ($this instanceof ICreateGroupBackend) {
50
+            $implements |= GroupInterface::CREATE_GROUP;
51
+        }
52
+        if ($this instanceof IDeleteGroupBackend) {
53
+            $implements |= GroupInterface::DELETE_GROUP;
54
+        }
55
+        if ($this instanceof IGroupDetailsBackend) {
56
+            $implements |= GroupInterface::GROUP_DETAILS;
57
+        }
58
+        if ($this instanceof IIsAdminBackend) {
59
+            $implements |= GroupInterface::IS_ADMIN;
60
+        }
61
+        if ($this instanceof IRemoveFromGroupBackend) {
62
+            $implements |= GroupInterface::REMOVE_FROM_GOUP;
63
+        }
64 64
 
65
-		return (bool)($actions & $implements);
66
-	}
65
+        return (bool)($actions & $implements);
66
+    }
67 67
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,6 +62,6 @@
 block discarded – undo
62 62
 			$implements |= GroupInterface::REMOVE_FROM_GOUP;
63 63
 		}
64 64
 
65
-		return (bool)($actions & $implements);
65
+		return (bool) ($actions & $implements);
66 66
 	}
67 67
 }
Please login to merge, or discard this patch.
lib/public/Group/Backend/IDeleteGroupBackend.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -29,8 +29,8 @@
 block discarded – undo
29 29
  */
30 30
 interface IDeleteGroupBackend {
31 31
 
32
-	/**
33
-	 * @since 14.0.0
34
-	 */
35
-	public function deleteGroup(string $gid): bool;
32
+    /**
33
+     * @since 14.0.0
34
+     */
35
+    public function deleteGroup(string $gid): bool;
36 36
 }
Please login to merge, or discard this patch.
lib/public/SystemTag/SystemTagsEntityEvent.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
 	 */
63 63
 	public function addEntityCollection(string $name, \Closure $entityExistsFunction) {
64 64
 		if (isset($this->collections[$name])) {
65
-			throw new \OutOfBoundsException('Duplicate entity name "' . $name . '"');
65
+			throw new \OutOfBoundsException('Duplicate entity name "'.$name.'"');
66 66
 		}
67 67
 
68 68
 		$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
@@ -37,49 +37,49 @@
 block discarded – undo
37 37
  */
38 38
 class SystemTagsEntityEvent extends Event {
39 39
 
40
-	/**
41
-	 * @deprecated 22.0.0
42
-	 */
43
-	public const EVENT_ENTITY = 'OCP\SystemTag\ISystemTagManager::registerEntity';
40
+    /**
41
+     * @deprecated 22.0.0
42
+     */
43
+    public const EVENT_ENTITY = 'OCP\SystemTag\ISystemTagManager::registerEntity';
44 44
 
45
-	/** @var string */
46
-	protected $event;
47
-	/** @var \Closure[] */
48
-	protected $collections;
45
+    /** @var string */
46
+    protected $event;
47
+    /** @var \Closure[] */
48
+    protected $collections;
49 49
 
50
-	/**
51
-	 * SystemTagsEntityEvent constructor.
52
-	 *
53
-	 * @param string $event
54
-	 * @since 9.1.0
55
-	 */
56
-	public function __construct(string $event) {
57
-		$this->event = $event;
58
-		$this->collections = [];
59
-	}
50
+    /**
51
+     * SystemTagsEntityEvent constructor.
52
+     *
53
+     * @param string $event
54
+     * @since 9.1.0
55
+     */
56
+    public function __construct(string $event) {
57
+        $this->event = $event;
58
+        $this->collections = [];
59
+    }
60 60
 
61
-	/**
62
-	 * @param string $name
63
-	 * @param \Closure $entityExistsFunction The closure should take one
64
-	 *                 argument, which is the id of the entity, that tags
65
-	 *                 should be handled for. The return should then be bool,
66
-	 *                 depending on whether tags are allowed (true) or not.
67
-	 * @throws \OutOfBoundsException when the entity name is already taken
68
-	 * @since 9.1.0
69
-	 */
70
-	public function addEntityCollection(string $name, \Closure $entityExistsFunction) {
71
-		if (isset($this->collections[$name])) {
72
-			throw new \OutOfBoundsException('Duplicate entity name "' . $name . '"');
73
-		}
61
+    /**
62
+     * @param string $name
63
+     * @param \Closure $entityExistsFunction The closure should take one
64
+     *                 argument, which is the id of the entity, that tags
65
+     *                 should be handled for. The return should then be bool,
66
+     *                 depending on whether tags are allowed (true) or not.
67
+     * @throws \OutOfBoundsException when the entity name is already taken
68
+     * @since 9.1.0
69
+     */
70
+    public function addEntityCollection(string $name, \Closure $entityExistsFunction) {
71
+        if (isset($this->collections[$name])) {
72
+            throw new \OutOfBoundsException('Duplicate entity name "' . $name . '"');
73
+        }
74 74
 
75
-		$this->collections[$name] = $entityExistsFunction;
76
-	}
75
+        $this->collections[$name] = $entityExistsFunction;
76
+    }
77 77
 
78
-	/**
79
-	 * @return \Closure[]
80
-	 * @since 9.1.0
81
-	 */
82
-	public function getEntityCollections(): array {
83
-		return $this->collections;
84
-	}
78
+    /**
79
+     * @return \Closure[]
80
+     * @since 9.1.0
81
+     */
82
+    public function getEntityCollections(): array {
83
+        return $this->collections;
84
+    }
85 85
 }
Please login to merge, or discard this patch.