Completed
Push — master ( c82647...f02916 )
by Paul
03:02
created
controller/main_controller.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -87,15 +87,15 @@  discard block
 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
 
@@ -225,8 +225,8 @@  discard block
 block discarded – undo
225 225
 			if ($admin)
226 226
 			{
227 227
 				// the login array is used because the user ids do not differ for re-authentication
228
-				$sql = 'DELETE FROM ' . SESSIONS_TABLE . "
229
-						WHERE session_id = '" . $this->db->sql_escape($old_session_id) . "'
228
+				$sql = 'DELETE FROM '.SESSIONS_TABLE."
229
+						WHERE session_id = '" . $this->db->sql_escape($old_session_id)."'
230 230
 						AND session_user_id = " . (int) $user_id;
231 231
 				$this->db->sql_query($sql);
232 232
 
Please login to merge, or discard this patch.
helper/session_helper.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -72,11 +72,11 @@  discard block
 block discarded – undo
72 72
 	 */
73 73
 	public function __construct(driver_interface $db, config $config, user $user, service_collection $modules, $registration_table, $user_table)
74 74
 	{
75
-		$this->db					= $db;
76
-		$this->user					= $user;
77
-		$this->config				= $config;
78
-		$this->registration_table	= $registration_table;
79
-		$this->user_table			= $user_table;
75
+		$this->db = $db;
76
+		$this->user = $user;
77
+		$this->config = $config;
78
+		$this->registration_table = $registration_table;
79
+		$this->user_table = $user_table;
80 80
 
81 81
 		$this->validateModules($modules);
82 82
 	}
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
 	{
203 203
 		if (empty($userdata))
204 204
 		{
205
-			$sql = 'SELECT * FROM ' . $this->user_table . 'WHERE user_id = ' . (int) $user_id;
205
+			$sql = 'SELECT * FROM '.$this->user_table.'WHERE user_id = '.(int) $user_id;
206 206
 			$result = $this->db->sql_query($sql);
207 207
 			$userdata = $this->db->sql_fetchrow($result);
208 208
 			$this->db->sql_freeresult($result);
Please login to merge, or discard this patch.