Completed
Push — master ( 88ba65...9a0892 )
by Christoph
24:20
created
apps/federatedfilesharing/composer/autoload.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,6 +20,6 @@
 block discarded – undo
20 20
     );
21 21
 }
22 22
 
23
-require_once __DIR__ . '/composer/autoload_real.php';
23
+require_once __DIR__.'/composer/autoload_real.php';
24 24
 
25 25
 return ComposerAutoloaderInitFederatedFileSharing::getLoader();
Please login to merge, or discard this patch.
apps/admin_audit/composer/autoload.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,6 +20,6 @@
 block discarded – undo
20 20
     );
21 21
 }
22 22
 
23
-require_once __DIR__ . '/composer/autoload_real.php';
23
+require_once __DIR__.'/composer/autoload_real.php';
24 24
 
25 25
 return ComposerAutoloaderInitAdminAudit::getLoader();
Please login to merge, or discard this patch.
apps/sharebymail/composer/autoload.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,6 +20,6 @@
 block discarded – undo
20 20
     );
21 21
 }
22 22
 
23
-require_once __DIR__ . '/composer/autoload_real.php';
23
+require_once __DIR__.'/composer/autoload_real.php';
24 24
 
25 25
 return ComposerAutoloaderInitShareByMail::getLoader();
Please login to merge, or discard this patch.
apps/comments/composer/autoload.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,6 +20,6 @@
 block discarded – undo
20 20
     );
21 21
 }
22 22
 
23
-require_once __DIR__ . '/composer/autoload_real.php';
23
+require_once __DIR__.'/composer/autoload_real.php';
24 24
 
25 25
 return ComposerAutoloaderInitComments::getLoader();
Please login to merge, or discard this patch.
apps/systemtags/composer/autoload.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,6 +20,6 @@
 block discarded – undo
20 20
     );
21 21
 }
22 22
 
23
-require_once __DIR__ . '/composer/autoload_real.php';
23
+require_once __DIR__.'/composer/autoload_real.php';
24 24
 
25 25
 return ComposerAutoloaderInitSystemTags::getLoader();
Please login to merge, or discard this patch.
apps/user_status/composer/autoload.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,6 +20,6 @@
 block discarded – undo
20 20
     );
21 21
 }
22 22
 
23
-require_once __DIR__ . '/composer/autoload_real.php';
23
+require_once __DIR__.'/composer/autoload_real.php';
24 24
 
25 25
 return ComposerAutoloaderInitUserStatus::getLoader();
Please login to merge, or discard this patch.
lib/public/Group/Events/GroupChangedEvent.php 1 patch
Indentation   +54 added lines, -54 removed lines patch added patch discarded remove patch
@@ -32,63 +32,63 @@
 block discarded – undo
32 32
  * @since 26.0.0
33 33
  */
34 34
 class GroupChangedEvent extends Event {
35
-	private IGroup $group;
36
-	private string $feature;
37
-	/** @var mixed */
38
-	private $value;
39
-	/** @var mixed */
40
-	private $oldValue;
35
+    private IGroup $group;
36
+    private string $feature;
37
+    /** @var mixed */
38
+    private $value;
39
+    /** @var mixed */
40
+    private $oldValue;
41 41
 
42
-	/**
43
-	 * @since 26.0.0
44
-	 */
45
-	public function __construct(IGroup $group,
46
-		string $feature,
47
-		$value,
48
-		$oldValue = null) {
49
-		parent::__construct();
50
-		$this->group = $group;
51
-		$this->feature = $feature;
52
-		$this->value = $value;
53
-		$this->oldValue = $oldValue;
54
-	}
42
+    /**
43
+     * @since 26.0.0
44
+     */
45
+    public function __construct(IGroup $group,
46
+        string $feature,
47
+        $value,
48
+        $oldValue = null) {
49
+        parent::__construct();
50
+        $this->group = $group;
51
+        $this->feature = $feature;
52
+        $this->value = $value;
53
+        $this->oldValue = $oldValue;
54
+    }
55 55
 
56
-	/**
57
-	 *
58
-	 * @since 26.0.0
59
-	 *
60
-	 * @return IGroup
61
-	 */
62
-	public function getGroup(): IGroup {
63
-		return $this->group;
64
-	}
56
+    /**
57
+     *
58
+     * @since 26.0.0
59
+     *
60
+     * @return IGroup
61
+     */
62
+    public function getGroup(): IGroup {
63
+        return $this->group;
64
+    }
65 65
 
66
-	/**
67
-	 *
68
-	 * @since 26.0.0
69
-	 *
70
-	 * @return string
71
-	 */
72
-	public function getFeature(): string {
73
-		return $this->feature;
74
-	}
66
+    /**
67
+     *
68
+     * @since 26.0.0
69
+     *
70
+     * @return string
71
+     */
72
+    public function getFeature(): string {
73
+        return $this->feature;
74
+    }
75 75
 
76
-	/**
77
-	 * @since 26.0.0
78
-	 *
79
-	 * @return mixed
80
-	 */
81
-	public function getValue() {
82
-		return $this->value;
83
-	}
76
+    /**
77
+     * @since 26.0.0
78
+     *
79
+     * @return mixed
80
+     */
81
+    public function getValue() {
82
+        return $this->value;
83
+    }
84 84
 
85
-	/**
86
-	 *
87
-	 * @since 26.0.0
88
-	 *
89
-	 * @return mixed
90
-	 */
91
-	public function getOldValue() {
92
-		return $this->oldValue;
93
-	}
85
+    /**
86
+     *
87
+     * @since 26.0.0
88
+     *
89
+     * @return mixed
90
+     */
91
+    public function getOldValue() {
92
+        return $this->oldValue;
93
+    }
94 94
 }
Please login to merge, or discard this patch.
apps/contactsinteraction/lib/Db/RecentContactMapper.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@
 block discarded – undo
116 116
 			return null;
117 117
 		}
118 118
 
119
-		return (int)$row['last_contact'];
119
+		return (int) $row['last_contact'];
120 120
 	}
121 121
 
122 122
 	public function cleanUp(int $olderThan): void {
Please login to merge, or discard this patch.
Indentation   +95 added lines, -95 removed lines patch added patch discarded remove patch
@@ -17,99 +17,99 @@
 block discarded – undo
17 17
  * @template-extends QBMapper<RecentContact>
18 18
  */
19 19
 class RecentContactMapper extends QBMapper {
20
-	public const TABLE_NAME = 'recent_contact';
21
-
22
-	public function __construct(IDBConnection $db) {
23
-		parent::__construct($db, self::TABLE_NAME);
24
-	}
25
-
26
-	/**
27
-	 * @return RecentContact[]
28
-	 */
29
-	public function findAll(string $uid): array {
30
-		$qb = $this->db->getQueryBuilder();
31
-
32
-		$select = $qb
33
-			->select('*')
34
-			->from($this->getTableName())
35
-			->where($qb->expr()->eq('actor_uid', $qb->createNamedParameter($uid)));
36
-
37
-		return $this->findEntities($select);
38
-	}
39
-
40
-	/**
41
-	 * @throws DoesNotExistException
42
-	 */
43
-	public function find(string $uid, int $id): RecentContact {
44
-		$qb = $this->db->getQueryBuilder();
45
-
46
-		$select = $qb
47
-			->select('*')
48
-			->from($this->getTableName())
49
-			->where($qb->expr()->eq('id', $qb->createNamedParameter($id, $qb::PARAM_INT)))
50
-			->andWhere($qb->expr()->eq('actor_uid', $qb->createNamedParameter($uid)));
51
-
52
-		return $this->findEntity($select);
53
-	}
54
-
55
-	/**
56
-	 * @return RecentContact[]
57
-	 */
58
-	public function findMatch(IUser $user,
59
-		?string $uid,
60
-		?string $email,
61
-		?string $cloudId): array {
62
-		$qb = $this->db->getQueryBuilder();
63
-
64
-		$additionalWheres = [];
65
-		if ($uid !== null) {
66
-			$additionalWheres[] = $qb->expr()->eq('uid', $qb->createNamedParameter($uid));
67
-		}
68
-		if ($email !== null) {
69
-			$additionalWheres[] = $qb->expr()->eq('email', $qb->createNamedParameter($email));
70
-		}
71
-		if ($cloudId !== null) {
72
-			$additionalWheres[] = $qb->expr()->eq('federated_cloud_id', $qb->createNamedParameter($cloudId));
73
-		}
74
-
75
-		$select = $qb
76
-			->select('*')
77
-			->from($this->getTableName())
78
-			->where($qb->expr()->eq('actor_uid', $qb->createNamedParameter($user->getUID())));
79
-
80
-		if (!empty($additionalWheres)) {
81
-			$select->andWhere($select->expr()->orX(...$additionalWheres));
82
-		}
83
-		return $this->findEntities($select);
84
-	}
85
-
86
-	public function findLastUpdatedForUserId(string $uid): ?int {
87
-		$qb = $this->db->getQueryBuilder();
88
-
89
-		$select = $qb
90
-			->select('last_contact')
91
-			->from($this->getTableName())
92
-			->where($qb->expr()->eq('actor_uid', $qb->createNamedParameter($uid)))
93
-			->orderBy('last_contact', 'DESC')
94
-			->setMaxResults(1);
95
-
96
-		$cursor = $select->executeQuery();
97
-		$row = $cursor->fetch();
98
-
99
-		if ($row === false) {
100
-			return null;
101
-		}
102
-
103
-		return (int)$row['last_contact'];
104
-	}
105
-
106
-	public function cleanUp(int $olderThan): void {
107
-		$qb = $this->db->getQueryBuilder();
108
-
109
-		$delete = $qb
110
-			->delete($this->getTableName())
111
-			->where($qb->expr()->lt('last_contact', $qb->createNamedParameter($olderThan)));
112
-
113
-		$delete->executeStatement();
114
-	}
20
+    public const TABLE_NAME = 'recent_contact';
21
+
22
+    public function __construct(IDBConnection $db) {
23
+        parent::__construct($db, self::TABLE_NAME);
24
+    }
25
+
26
+    /**
27
+     * @return RecentContact[]
28
+     */
29
+    public function findAll(string $uid): array {
30
+        $qb = $this->db->getQueryBuilder();
31
+
32
+        $select = $qb
33
+            ->select('*')
34
+            ->from($this->getTableName())
35
+            ->where($qb->expr()->eq('actor_uid', $qb->createNamedParameter($uid)));
36
+
37
+        return $this->findEntities($select);
38
+    }
39
+
40
+    /**
41
+     * @throws DoesNotExistException
42
+     */
43
+    public function find(string $uid, int $id): RecentContact {
44
+        $qb = $this->db->getQueryBuilder();
45
+
46
+        $select = $qb
47
+            ->select('*')
48
+            ->from($this->getTableName())
49
+            ->where($qb->expr()->eq('id', $qb->createNamedParameter($id, $qb::PARAM_INT)))
50
+            ->andWhere($qb->expr()->eq('actor_uid', $qb->createNamedParameter($uid)));
51
+
52
+        return $this->findEntity($select);
53
+    }
54
+
55
+    /**
56
+     * @return RecentContact[]
57
+     */
58
+    public function findMatch(IUser $user,
59
+        ?string $uid,
60
+        ?string $email,
61
+        ?string $cloudId): array {
62
+        $qb = $this->db->getQueryBuilder();
63
+
64
+        $additionalWheres = [];
65
+        if ($uid !== null) {
66
+            $additionalWheres[] = $qb->expr()->eq('uid', $qb->createNamedParameter($uid));
67
+        }
68
+        if ($email !== null) {
69
+            $additionalWheres[] = $qb->expr()->eq('email', $qb->createNamedParameter($email));
70
+        }
71
+        if ($cloudId !== null) {
72
+            $additionalWheres[] = $qb->expr()->eq('federated_cloud_id', $qb->createNamedParameter($cloudId));
73
+        }
74
+
75
+        $select = $qb
76
+            ->select('*')
77
+            ->from($this->getTableName())
78
+            ->where($qb->expr()->eq('actor_uid', $qb->createNamedParameter($user->getUID())));
79
+
80
+        if (!empty($additionalWheres)) {
81
+            $select->andWhere($select->expr()->orX(...$additionalWheres));
82
+        }
83
+        return $this->findEntities($select);
84
+    }
85
+
86
+    public function findLastUpdatedForUserId(string $uid): ?int {
87
+        $qb = $this->db->getQueryBuilder();
88
+
89
+        $select = $qb
90
+            ->select('last_contact')
91
+            ->from($this->getTableName())
92
+            ->where($qb->expr()->eq('actor_uid', $qb->createNamedParameter($uid)))
93
+            ->orderBy('last_contact', 'DESC')
94
+            ->setMaxResults(1);
95
+
96
+        $cursor = $select->executeQuery();
97
+        $row = $cursor->fetch();
98
+
99
+        if ($row === false) {
100
+            return null;
101
+        }
102
+
103
+        return (int)$row['last_contact'];
104
+    }
105
+
106
+    public function cleanUp(int $olderThan): void {
107
+        $qb = $this->db->getQueryBuilder();
108
+
109
+        $delete = $qb
110
+            ->delete($this->getTableName())
111
+            ->where($qb->expr()->lt('last_contact', $qb->createNamedParameter($olderThan)));
112
+
113
+        $delete->executeStatement();
114
+    }
115 115
 }
Please login to merge, or discard this patch.
lib/private/Authentication/Events/LoginFailed.php 1 patch
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -28,21 +28,21 @@
 block discarded – undo
28 28
 use OCP\EventDispatcher\Event;
29 29
 
30 30
 class LoginFailed extends Event {
31
-	private string $loginName;
32
-	private ?string $password;
31
+    private string $loginName;
32
+    private ?string $password;
33 33
 
34
-	public function __construct(string $loginName, ?string $password) {
35
-		parent::__construct();
34
+    public function __construct(string $loginName, ?string $password) {
35
+        parent::__construct();
36 36
 
37
-		$this->loginName = $loginName;
38
-		$this->password = $password;
39
-	}
37
+        $this->loginName = $loginName;
38
+        $this->password = $password;
39
+    }
40 40
 
41
-	public function getLoginName(): string {
42
-		return $this->loginName;
43
-	}
41
+    public function getLoginName(): string {
42
+        return $this->loginName;
43
+    }
44 44
 
45
-	public function getPassword(): ?string {
46
-		return $this->password;
47
-	}
45
+    public function getPassword(): ?string {
46
+        return $this->password;
47
+    }
48 48
 }
Please login to merge, or discard this patch.