Passed
Push — master ( da9ad9...c724eb )
by Roeland
13:33 queued 01:55
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 1 patch
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.
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.
apps/dav/lib/Direct/DirectFile.php 1 patch
Indentation   +53 added lines, -53 removed lines patch added patch discarded remove patch
@@ -32,79 +32,79 @@
 block discarded – undo
32 32
 use Sabre\DAV\IFile;
33 33
 
34 34
 class DirectFile implements IFile {
35
-	/** @var Direct */
36
-	private $direct;
35
+    /** @var Direct */
36
+    private $direct;
37 37
 
38
-	/** @var IRootFolder */
39
-	private $rootFolder;
38
+    /** @var IRootFolder */
39
+    private $rootFolder;
40 40
 
41
-	/** @var File */
42
-	private $file;
41
+    /** @var File */
42
+    private $file;
43 43
 
44
-	public function __construct(Direct $direct, IRootFolder $rootFolder) {
45
-		$this->direct = $direct;
46
-		$this->rootFolder = $rootFolder;
47
-	}
44
+    public function __construct(Direct $direct, IRootFolder $rootFolder) {
45
+        $this->direct = $direct;
46
+        $this->rootFolder = $rootFolder;
47
+    }
48 48
 
49
-	public function put($data) {
50
-		throw new Forbidden();
51
-	}
49
+    public function put($data) {
50
+        throw new Forbidden();
51
+    }
52 52
 
53
-	public function get() {
54
-		$this->getFile();
53
+    public function get() {
54
+        $this->getFile();
55 55
 
56
-		return $this->file->fopen('rb');
57
-	}
56
+        return $this->file->fopen('rb');
57
+    }
58 58
 
59
-	public function getContentType() {
60
-		$this->getFile();
59
+    public function getContentType() {
60
+        $this->getFile();
61 61
 
62
-		return $this->file->getMimeType();
63
-	}
62
+        return $this->file->getMimeType();
63
+    }
64 64
 
65
-	public function getETag() {
66
-		$this->getFile();
65
+    public function getETag() {
66
+        $this->getFile();
67 67
 
68
-		return $this->file->getEtag();
69
-	}
68
+        return $this->file->getEtag();
69
+    }
70 70
 
71
-	public function getSize() {
72
-		$this->getFile();
71
+    public function getSize() {
72
+        $this->getFile();
73 73
 
74
-		return $this->file->getSize();
75
-	}
74
+        return $this->file->getSize();
75
+    }
76 76
 
77
-	public function delete() {
78
-		throw new Forbidden();
79
-	}
77
+    public function delete() {
78
+        throw new Forbidden();
79
+    }
80 80
 
81
-	public function getName() {
82
-		return $this->direct->getToken();
83
-	}
81
+    public function getName() {
82
+        return $this->direct->getToken();
83
+    }
84 84
 
85
-	public function setName($name) {
86
-		throw new Forbidden();
87
-	}
85
+    public function setName($name) {
86
+        throw new Forbidden();
87
+    }
88 88
 
89
-	public function getLastModified() {
90
-		$this->getFile();
89
+    public function getLastModified() {
90
+        $this->getFile();
91 91
 
92
-		return $this->file->getMTime();
93
-	}
92
+        return $this->file->getMTime();
93
+    }
94 94
 
95
-	private function getFile() {
96
-		if ($this->file === null) {
97
-			$userFolder = $this->rootFolder->getUserFolder($this->direct->getUserId());
98
-			$files = $userFolder->getById($this->direct->getFileId());
95
+    private function getFile() {
96
+        if ($this->file === null) {
97
+            $userFolder = $this->rootFolder->getUserFolder($this->direct->getUserId());
98
+            $files = $userFolder->getById($this->direct->getFileId());
99 99
 
100
-			if ($files === []) {
101
-				throw new NotFound();
102
-			}
100
+            if ($files === []) {
101
+                throw new NotFound();
102
+            }
103 103
 
104
-			$this->file = array_shift($files);
105
-		}
104
+            $this->file = array_shift($files);
105
+        }
106 106
 
107
-		return $this->file;
108
-	}
107
+        return $this->file;
108
+    }
109 109
 
110 110
 }
Please login to merge, or discard this patch.