Completed
Push — 4.0 ( 40f637...af9dea )
by Olivier
02:21
created
lib/Element/PickUser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
 	{
32 32
 		parent::__construct('select', $attributes + [
33 33
 
34
-			Element::OPTIONS => [ null => '' ] + $this->create_options($attributes)
34
+			Element::OPTIONS => [null => ''] + $this->create_options($attributes)
35 35
 
36 36
 		]);
37 37
 	}
Please login to merge, or discard this patch.
lib/Hooks.php 3 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
 			return;
51 51
 		}
52 52
 
53
-		$event->errors['rid'] = $event->errors->format('The role %name is used by :count users.', [ 'name' => $operation->record->name, ':count' => $count ]);
53
+		$event->errors['rid'] = $event->errors->format('The role %name is used by :count users.', ['name' => $operation->record->name, ':count' => $count]);
54 54
 	}
55 55
 
56 56
 	/**
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -233,7 +233,9 @@
 block discarded – undo
233 233
 				$user = $model[$uid];
234 234
 			}
235 235
 		}
236
-		catch (\Exception $e) {}
236
+		catch (\Exception $e)
237
+		{
238
+}
237 239
 
238 240
 		if (!$user)
239 241
 		{
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,6 @@
 block discarded – undo
20 20
 use ICanBoogie\Operation;
21 21
 use ICanBoogie\PropertyNotDefined;
22 22
 use ICanBoogie\Routing\RouteDispatcher;
23
-
24 23
 use Icybee\Element\AdminDecorator;
25 24
 use Icybee\Element\DocumentDecorator;
26 25
 use Icybee\Modules\Members\Member;
Please login to merge, or discard this patch.
lib/LoginComboElement.php 2 patches
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.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,6 +45,6 @@
 block discarded – undo
45 45
 		return parent::render_inner_html() . <<<EOT
46 46
 {$this->elements['login']}
47 47
 {$this->elements['password']}
48
-EOT;
48
+eot;
49 49
 	}
50 50
 }
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/Operation/LoginOperation.php 3 patches
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -146,7 +146,7 @@
 block discarded – undo
146 146
 attack attempt on the website. If you think this is the case, please contact its admin.
147 147
 
148 148
 The remote address of the request was: $request->ip.
149
-EOT
149
+eot
150 150
 				]);
151 151
 
152 152
 				unset($errors[User::PASSWORD]);
Please login to merge, or discard this patch.
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -91,8 +91,7 @@  discard block
 block discarded – undo
91 91
 		{
92 92
 			if ($login_unlock_time > $now)
93 93
 			{
94
-				throw new \Exception
95
-				(
94
+				throw new \Exception(
96 95
 					\ICanBoogie\format("The user account has been locked after multiple failed login attempts.
97 96
 					An e-mail has been sent to unlock the account. Login attempts are locked until %time,
98 97
 					unless you unlock the account using the email sent.", [
@@ -168,7 +167,7 @@  discard block
 block discarded – undo
168 167
 
169 168
 		if (!$user->is_admin && !$user->is_activated)
170 169
 		{
171
-			$errors->add_generic("User %username is not activated", [ '%username' => $username ]);
170
+			$errors->add_generic("User %username is not activated", ['%username' => $username]);
172 171
 
173 172
 			return false;
174 173
 		}
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,6 @@
 block discarded – undo
15 15
 use ICanBoogie\I18n;
16 16
 use ICanBoogie\Operation;
17 17
 use ICanBoogie\Module\ControllerBindings as ModuleBindings;
18
-
19 18
 use Icybee\Modules\Registry\MetaCollection;
20 19
 use Icybee\Modules\Users\LoginForm;
21 20
 use Icybee\Modules\Users\User;
Please login to merge, or discard this patch.
lib/Operation/SaveOperation.php 2 patches
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.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,6 @@
 block discarded – undo
13 13
 
14 14
 use ICanBoogie\ErrorCollection;
15 15
 use ICanBoogie\HTTP\Request;
16
-
17 16
 use Icybee\Modules\Users\Module;
18 17
 use Icybee\Modules\Users\User;
19 18
 use Icybee\Modules\Users\UserModel;
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/Operation/DeactivateOperation.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,6 @@
 block discarded – undo
13 13
 
14 14
 use ICanBoogie\ErrorCollection;
15 15
 use ICanBoogie\Operation;
16
-
17 16
 use Icybee\Modules\Users\Module;
18 17
 use Icybee\Modules\Users\User;
19 18
 
Please login to merge, or discard this patch.