Completed
Push — master ( ab0a6e...a28d98 )
by Paul
03:42
created
modules/u2f.php 1 patch
Indentation   +36 added lines, -36 removed lines patch added patch discarded remove patch
@@ -50,10 +50,10 @@  discard block
 block discarded – undo
50 50
 	 */
51 51
 	private $registration_table;
52 52
 
53
-    /**
54
-     * @var string
55
-     */
56
-    private $root_path;
53
+	/**
54
+	 * @var string
55
+	 */
56
+	private $root_path;
57 57
 
58 58
 	/**
59 59
 	 * @var \paul999\u2f\U2F
@@ -65,22 +65,22 @@  discard block
 block discarded – undo
65 65
 	 */
66 66
 	private $reg_data;
67 67
 
68
-    /**
69
-     * u2f constructor.
70
-     * @param driver_interface $db
71
-     * @param user $user
72
-     * @param request_interface $request
73
-     * @param template $template
74
-     * @param string $registration_table
75
-     * @param string $root_path
76
-     */
68
+	/**
69
+	 * u2f constructor.
70
+	 * @param driver_interface $db
71
+	 * @param user $user
72
+	 * @param request_interface $request
73
+	 * @param template $template
74
+	 * @param string $registration_table
75
+	 * @param string $root_path
76
+	 */
77 77
 	public function __construct(driver_interface $db, user $user, request_interface $request, template $template, $registration_table, $root_path)
78 78
 	{
79 79
 		$this->db       = $db;
80 80
 		$this->user     = $user;
81 81
 		$this->request  = $request;
82 82
 		$this->template = $template;
83
-        $this->root_path= $root_path;
83
+		$this->root_path= $root_path;
84 84
 
85 85
 		$this->registration_table	= $registration_table;
86 86
 
@@ -288,7 +288,7 @@  discard block
 block discarded – undo
288 288
 	/**
289 289
 	 * Start of registration
290 290
 	 * @return string
291
-     */
291
+	 */
292 292
 	public function register_start()
293 293
 	{
294 294
 		$data = $this->u2f->getRegisterData($this->reg_data);
@@ -318,13 +318,13 @@  discard block
 block discarded – undo
318 318
 			'U2F_SIGN'          => json_encode($data[1], JSON_UNESCAPED_SLASHES),
319 319
 		));
320 320
 
321
-        return 'tfa_u2f_ucp_new';
321
+		return 'tfa_u2f_ucp_new';
322 322
 	}
323 323
 
324 324
 	/**
325 325
 	 * Actual registration
326 326
 	 * @return void
327
-     * @throws BadRequestHttpException
327
+	 * @throws BadRequestHttpException
328 328
 	 */
329 329
 	public function register()
330 330
 	{
@@ -374,7 +374,7 @@  discard block
 block discarded – undo
374 374
 		while ($row = $this->db->sql_fetchrow($result))
375 375
 		{
376 376
 			$this->template->assign_block_vars('keys', array(
377
-			    'CLASS'         => 'u2f',
377
+				'CLASS'         => 'u2f',
378 378
 				'ID'            => $row['registration_id'],
379 379
 				'REGISTERED'    => $this->user->format_date($row['registered']),
380 380
 				'LAST_USED'     => $this->user->format_date($row['last_used']),
@@ -411,24 +411,24 @@  discard block
 block discarded – undo
411 411
 		}
412 412
 	}
413 413
 
414
-    /**
415
-     * If this module can add new keys (Or other things)
416
-     *
417
-     * @return boolean
418
-     */
419
-    public function can_register()
420
-    {
421
-        return $this->is_potentially_usable(false);
422
-    }
423
-
424
-    /**
425
-     * Get a language key for this specific module.
426
-     * @return string
427
-     */
428
-    public function get_translatable_name()
429
-    {
430
-        return 'MODULE_U2F';
431
-    }
414
+	/**
415
+	 * If this module can add new keys (Or other things)
416
+	 *
417
+	 * @return boolean
418
+	 */
419
+	public function can_register()
420
+	{
421
+		return $this->is_potentially_usable(false);
422
+	}
423
+
424
+	/**
425
+	 * Get a language key for this specific module.
426
+	 * @return string
427
+	 */
428
+	public function get_translatable_name()
429
+	{
430
+		return 'MODULE_U2F';
431
+	}
432 432
 
433 433
 	/**
434 434
 	 * Select all registration objects from the database
Please login to merge, or discard this patch.
helper/session_helper.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -180,7 +180,7 @@
 block discarded – undo
180 180
 			return $this->user_array[$user_id];
181 181
 		}
182 182
 
183
-        $this->user_array[$user_id] = false; // Preset to false.
183
+		$this->user_array[$user_id] = false; // Preset to false.
184 184
 
185 185
 		/**
186 186
 		 * @var int $priority
Please login to merge, or discard this patch.