Completed
Push — master ( b5a957...040c1d )
by Paul
03:38
created
modules/u2f.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
         $this->request  = $request;
78 78
         $this->template = $template;
79 79
 
80
-        $this->registration_table	= $registration_table;
80
+        $this->registration_table = $registration_table;
81 81
 
82 82
         $this->u2f = new \paul999\u2f\U2F('https://' . $this->request->server('HTTP_HOST'));
83 83
     }
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
         try {
203 203
             $sql = 'SELECT u2f_request FROM ' . SESSIONS_TABLE . ' WHERE
204 204
 			    session_id = \'' . $this->db->sql_escape($this->user->data['session_id']) . '\' AND
205
-			    session_user_id = ' . (int)$this->user->data['user_id'];
205
+			    session_user_id = ' . (int) $this->user->data['user_id'];
206 206
             $result = $this->db->sql_query($sql);
207 207
             $row = $this->db->sql_fetchrow($result);
208 208
             $this->db->sql_freeresult($result);
@@ -229,7 +229,7 @@  discard block
 block discarded – undo
229 229
                 'last_used' => time(),
230 230
             );
231 231
 
232
-            $sql = 'UPDATE ' . $this->registration_table . ' SET ' . $this->db->sql_build_array('UPDATE', $sql_ary) . ' WHERE registration_id = ' . (int)$reg->id;
232
+            $sql = 'UPDATE ' . $this->registration_table . ' SET ' . $this->db->sql_build_array('UPDATE', $sql_ary) . ' WHERE registration_id = ' . (int) $reg->id;
233 233
             $this->db->sql_query($sql);
234 234
         }
235 235
         catch (U2fError $error)
@@ -249,7 +249,7 @@  discard block
 block discarded – undo
249 249
     private function convertRequests($requests)
250 250
     {
251 251
         $result = array();
252
-        foreach($requests as $request)
252
+        foreach ($requests as $request)
253 253
         {
254 254
             $result[] = new SignRequest($request->challenge, $request->keyHandle, $request->appId);
255 255
         }
@@ -347,13 +347,13 @@  discard block
 block discarded – undo
347 347
                 'LAST_USED'     => $this->user->format_date($row['last_used']),
348 348
             ));
349 349
 
350
-            $reg				= new registration_helper();
350
+            $reg = new registration_helper();
351 351
             $reg->setCounter($row['counter']);
352 352
             $reg->setCertificate($row['certificate']);
353 353
             $reg->setKeyHandle($row['key_handle']);
354 354
             $reg->setPublicKey($row['public_key']);
355
-            $reg->id			= $row['registration_id'];
356
-            $this->reg_data		= $reg;
355
+            $reg->id = $row['registration_id'];
356
+            $this->reg_data = $reg;
357 357
         }
358 358
         $this->db->sql_freeresult($result);
359 359
     }
@@ -370,7 +370,7 @@  discard block
 block discarded – undo
370 370
         {
371 371
             $sql_where = $this->db->sql_in_set('registration_id', $data['keys']);
372 372
             $sql = 'DELETE FROM ' . $this->registration_table . '
373
-                                                WHERE user_id = ' . (int)$this->user->data['user_id'] . '
373
+                                                WHERE user_id = ' . (int) $this->user->data['user_id'] . '
374 374
                                                 AND ' . $sql_where;
375 375
 
376 376
             $this->db->sql_query($sql);
@@ -390,13 +390,13 @@  discard block
 block discarded – undo
390 390
 
391 391
         while ($row = $this->db->sql_fetchrow($result))
392 392
         {
393
-            $reg 				= new registration_helper();
393
+            $reg = new registration_helper();
394 394
             $reg->setCounter($row['counter']);
395 395
             $reg->setCertificate($row['certificate']);
396 396
             $reg->setKeyHandle($row['key_handle']);
397 397
             $reg->setPublicKey($row['public_key']);
398
-            $reg->id 			= $row['registration_id'];
399
-            $rows[] 			= $reg;
398
+            $reg->id = $row['registration_id'];
399
+            $rows[] = $reg;
400 400
         }
401 401
 
402 402
         $this->db->sql_freeresult($result);
Please login to merge, or discard this patch.
ucp/tfa_module.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -64,10 +64,10 @@
 block discarded – undo
64 64
 	 */
65 65
 	private function setup(user $user, template $template, request_interface $request, session_helper $session_helper)
66 66
 	{
67
-		$this->user 				= $user;
67
+		$this->user = $user;
68 68
 		$this->template 			= $template;
69 69
 		$this->request 				= $request;
70
-		$this->session_helper 		= $session_helper;
70
+		$this->session_helper = $session_helper;
71 71
 	}
72 72
 
73 73
 	/**
Please login to merge, or discard this patch.
controller/main_controller.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -87,15 +87,15 @@
 block discarded – undo
87 87
 	 */
88 88
 	public function __construct(helper $controller_helper, driver_interface $db, template $template, user $user, request_interface $request, config $config, session_helper_interface $session_helper, $root_path, $php_ext)
89 89
 	{
90
-		$this->controller_helper 	= $controller_helper;
91
-		$this->template 			= $template;
92
-		$this->db					= $db;
93
-		$this->user					= $user;
94
-		$this->request				= $request;
95
-		$this->config				= $config;
96
-		$this->session_helper		= $session_helper;
97
-		$this->root_path			= $root_path;
98
-		$this->php_ext				= $php_ext;
90
+		$this->controller_helper = $controller_helper;
91
+		$this->template = $template;
92
+		$this->db = $db;
93
+		$this->user = $user;
94
+		$this->request = $request;
95
+		$this->config = $config;
96
+		$this->session_helper = $session_helper;
97
+		$this->root_path = $root_path;
98
+		$this->php_ext = $php_ext;
99 99
 
100 100
 	}
101 101
 
Please login to merge, or discard this patch.