Completed
Push — master ( 93f351...ab0a6e )
by Paul
03:41
created
language/en/common.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -69,8 +69,8 @@
 block discarded – undo
69 69
 
70 70
 		'TFA_DOUBLE_PRIORITY'				=> 'The choosen priority (%d) for module %s is already in use for module %s',
71 71
 
72
-        // Module names
73
-        'MODULE_U2F'        => 'U2F',
72
+		// Module names
73
+		'MODULE_U2F'        => 'U2F',
74 74
 
75 75
 	)
76 76
 );
Please login to merge, or discard this patch.
ucp/tfa_module.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
 		{
201 201
 			foreach ($keys as $row)
202 202
 			{
203
-			    $row = explode('_', $row);
203
+				$row = explode('_', $row);
204 204
 				if (isset($row[0]))
205 205
 				{
206 206
 					$module = $this->session_helper->findModule($row['class']);
@@ -211,8 +211,8 @@  discard block
 block discarded – undo
211 211
 				}
212 212
 			}
213 213
 		}
214
-        meta_refresh(3, $this->u_action);
215
-        $message = $this->user->lang['TFA_KEYS_DELETED'] . '<br /><br />' . sprintf($this->user->lang['RETURN_UCP'], '<a href="' . $this->u_action . '">', '</a>');
216
-        trigger_error($message);
214
+		meta_refresh(3, $this->u_action);
215
+		$message = $this->user->lang['TFA_KEYS_DELETED'] . '<br /><br />' . sprintf($this->user->lang['RETURN_UCP'], '<a href="' . $this->u_action . '">', '</a>');
216
+		trigger_error($message);
217 217
 	}
218 218
 }
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -60,10 +60,10 @@  discard block
 block discarded – undo
60 60
 	 */
61 61
 	private function setup(user $user, template $template, request_interface $request, session_helper $session_helper)
62 62
 	{
63
-		$this->user 				= $user;
63
+		$this->user = $user;
64 64
 		$this->template 			= $template;
65 65
 		$this->request 				= $request;
66
-		$this->session_helper 		= $session_helper;
66
+		$this->session_helper = $session_helper;
67 67
 	}
68 68
 
69 69
 	/**
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
 				{
103 103
 					$module->register();
104 104
 					meta_refresh(3, $this->u_action);
105
-					$message = $this->user->lang['TFA_KEY_ADDED'] . '<br /><br />' . sprintf($this->user->lang['RETURN_UCP'], '<a href="' . $this->u_action . '">', '</a>');
105
+					$message = $this->user->lang['TFA_KEY_ADDED'].'<br /><br />'.sprintf($this->user->lang['RETURN_UCP'], '<a href="'.$this->u_action.'">', '</a>');
106 106
 					trigger_error($message);
107 107
 				}
108 108
 				if ($module->can_register())
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
 			}
213 213
 		}
214 214
         meta_refresh(3, $this->u_action);
215
-        $message = $this->user->lang['TFA_KEYS_DELETED'] . '<br /><br />' . sprintf($this->user->lang['RETURN_UCP'], '<a href="' . $this->u_action . '">', '</a>');
215
+        $message = $this->user->lang['TFA_KEYS_DELETED'].'<br /><br />'.sprintf($this->user->lang['RETURN_UCP'], '<a href="'.$this->u_action.'">', '</a>');
216 216
         trigger_error($message);
217 217
 	}
218 218
 }
Please login to merge, or discard this patch.
modules/u2f.php 1 patch
Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -281,7 +281,7 @@  discard block
 block discarded – undo
281 281
 	/**
282 282
 	 * Start of registration
283 283
 	 * @return string
284
-     */
284
+	 */
285 285
 	public function register_start()
286 286
 	{
287 287
 		$data = $this->u2f->getRegisterData($this->reg_data);
@@ -311,13 +311,13 @@  discard block
 block discarded – undo
311 311
 			'U2F_SIGN'          => json_encode($data[1], JSON_UNESCAPED_SLASHES),
312 312
 		));
313 313
 
314
-        return 'tfa_u2f_ucp_new';
314
+		return 'tfa_u2f_ucp_new';
315 315
 	}
316 316
 
317 317
 	/**
318 318
 	 * Actual registration
319 319
 	 * @return void
320
-     * @throws BadRequestHttpException
320
+	 * @throws BadRequestHttpException
321 321
 	 */
322 322
 	public function register()
323 323
 	{
@@ -367,7 +367,7 @@  discard block
 block discarded – undo
367 367
 		while ($row = $this->db->sql_fetchrow($result))
368 368
 		{
369 369
 			$this->template->assign_block_vars('keys', array(
370
-			    'CLASS'         => 'u2f',
370
+				'CLASS'         => 'u2f',
371 371
 				'ID'            => $row['registration_id'],
372 372
 				'REGISTERED'    => $this->user->format_date($row['registered']),
373 373
 				'LAST_USED'     => $this->user->format_date($row['last_used']),
@@ -404,24 +404,24 @@  discard block
 block discarded – undo
404 404
 		}
405 405
 	}
406 406
 
407
-    /**
408
-     * If this module can add new keys (Or other things)
409
-     *
410
-     * @return boolean
411
-     */
412
-    public function can_register()
413
-    {
414
-        return $this->is_potentially_usable(false);
415
-    }
416
-
417
-    /**
418
-     * Get a language key for this specific module.
419
-     * @return string
420
-     */
421
-    public function get_translatable_name()
422
-    {
423
-        return 'MODULE_U2F';
424
-    }
407
+	/**
408
+	 * If this module can add new keys (Or other things)
409
+	 *
410
+	 * @return boolean
411
+	 */
412
+	public function can_register()
413
+	{
414
+		return $this->is_potentially_usable(false);
415
+	}
416
+
417
+	/**
418
+	 * Get a language key for this specific module.
419
+	 * @return string
420
+	 */
421
+	public function get_translatable_name()
422
+	{
423
+		return 'MODULE_U2F';
424
+	}
425 425
 
426 426
 	/**
427 427
 	 * Select all registration objects from the database
Please login to merge, or discard this patch.
modules/module_interface.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -12,11 +12,11 @@  discard block
 block discarded – undo
12 12
 
13 13
 interface module_interface
14 14
 {
15
-    /**
16
-     * Get a language key for this specific module.
17
-     * @return string
18
-     */
19
-    public function get_translatable_name();
15
+	/**
16
+	 * Get a language key for this specific module.
17
+	 * @return string
18
+	 */
19
+	public function get_translatable_name();
20 20
 
21 21
 	/**
22 22
 	 * Return if this module is enabled by the admin
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
 	 * Do the actual registration of a new security key.
98 98
 	 *
99 99
 	 * @return boolean Result of the registration.
100
-     * @throws BadRequestHttpException
100
+	 * @throws BadRequestHttpException
101 101
 	 */
102 102
 	public function register();
103 103
 
Please login to merge, or discard this patch.