Completed
Push — 3.0 ( 6cf351...b035ab )
by Olivier
04:44
created
lib/LoginComboElement.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
 		$login = new LoginForm;
26 26
 		$password = new NonceLoginRequestForm;
27 27
 
28
-		$password->children['email'][Element::DESCRIPTION] = new A($this->t('Cancel', [], [ 'scope' => 'button' ]));
28
+		$password->children['email'][Element::DESCRIPTION] = new A($this->t('Cancel', [], ['scope' => 'button']));
29 29
 
30 30
 		$this->elements['login'] = $login;
31 31
 		$this->elements['password'] = $password;
Please login to merge, or discard this patch.
lib/LoginForm.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
 	{
51 51
 		$app = $this->app;
52 52
 
53
-		$this->lost_password = new A($this->t('lost_password', [], [ 'scope' => 'users.label', 'default' => 'I forgot my password' ]), "#lost-password", [
53
+		$this->lost_password = new A($this->t('lost_password', [], ['scope' => 'users.label', 'default' => 'I forgot my password']), "#lost-password", [
54 54
 
55 55
 			'rel' => 'nonce-request'
56 56
 
Please login to merge, or discard this patch.
lib/Module.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@
 block discarded – undo
81 81
 
82 82
 			Element::CHILDREN => [
83 83
 
84
-				new Button('logout', [ 'type' => 'submit' ])
84
+				new Button('logout', ['type' => 'submit'])
85 85
 
86 86
 			]
87 87
 
Please login to merge, or discard this patch.
lib/Operation/LoginOperation.php 1 patch
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -85,8 +85,7 @@  discard block
 block discarded – undo
85 85
 		{
86 86
 			if ($login_unlock_time > $now)
87 87
 			{
88
-				throw new \Exception
89
-				(
88
+				throw new \Exception(
90 89
 					\ICanBoogie\format("The user account has been locked after multiple failed login attempts.
91 90
 					An e-mail has been sent to unlock the account. Login attempts are locked until %time,
92 91
 					unless you unlock the account using the email sent.", [
@@ -159,7 +158,7 @@  discard block
 block discarded – undo
159 158
 
160 159
 		if (!$user->is_admin && !$user->is_activated)
161 160
 		{
162
-			$errors->add(null, "User %username is not activated", [ '%username' => $username ]);
161
+			$errors->add(null, "User %username is not activated", ['%username' => $username]);
163 162
 
164 163
 			return false;
165 164
 		}
Please login to merge, or discard this patch.
lib/Operation/SaveOperation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -290,7 +290,7 @@
 block discarded – undo
290 290
 		{
291 291
 			$record = $this->record;
292 292
 
293
-			$this->response->message = $this->format($rc['mode'] == 'update' ? "%name's profile has been updated." : "%name's profile has been created.", [ 'name' => $record->name ]);
293
+			$this->response->message = $this->format($rc['mode'] == 'update' ? "%name's profile has been updated." : "%name's profile has been created.", ['name' => $record->name]);
294 294
 		}
295 295
 
296 296
 		return $rc;
Please login to merge, or discard this patch.
lib/OwnershipResolver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
 
37 37
 			foreach ($fragment['ownership_resolver_list'] as $resolver_id => $resolver)
38 38
 			{
39
-				$resolver = ((array) $resolver) + [ 'weight' => 0 ];
39
+				$resolver = ((array) $resolver) + ['weight' => 0];
40 40
 
41 41
 				$list[$resolver_id] = $resolver[0];
42 42
 				$weight[$resolver_id] = $resolver['weight'];
Please login to merge, or discard this patch.
lib/PermissionResolver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
 
35 35
 			foreach ($fragment['permission_resolver_list'] as $resolver_id => $resolver)
36 36
 			{
37
-				$resolver = ((array) $resolver) + [ 'weight' => 0 ];
37
+				$resolver = ((array) $resolver) + ['weight' => 0];
38 38
 
39 39
 				$list[$resolver_id] = $resolver[0];
40 40
 				$weight[$resolver_id] = $resolver['weight'];
Please login to merge, or discard this patch.
lib/User.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -355,7 +355,7 @@
 block discarded – undo
355 355
 		{
356 356
 			if (!$this->uid)
357 357
 			{
358
-				return [ $models['users.roles'][1] ];
358
+				return [$models['users.roles'][1]];
359 359
 			}
360 360
 		}
361 361
 		catch (\Exception $e)
Please login to merge, or discard this patch.
lib/UserModel.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
 				continue;
74 74
 			}
75 75
 
76
-			$has_many_roles->execute('INSERT {self} SET uid = ?, rid = ?', [ $rc, $rid ]);
76
+			$has_many_roles->execute('INSERT {self} SET uid = ?, rid = ?', [$rc, $rid]);
77 77
 		}
78 78
 	}
79 79
 
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
 
89 89
 		foreach ($restricted_sites as $site_id)
90 90
 		{
91
-			$has_many_sites->execute('INSERT {self} SET uid = ?, site_id = ?', [ $rc, $site_id ]);
91
+			$has_many_sites->execute('INSERT {self} SET uid = ?, site_id = ?', [$rc, $site_id]);
92 92
 		}
93 93
 	}
94 94
 }
Please login to merge, or discard this patch.