Completed
Branch master (a182de)
by Daniel
03:00
created
blocks/whois.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
 
67 67
 		if (!empty($data['.'][0]['TOTAL_USERS_ONLINE']) && !$this->request->is_set('f'))
68 68
 		{
69
-			$l_online_users	= $data['.'][0]['TOTAL_USERS_ONLINE'];
69
+			$l_online_users = $data['.'][0]['TOTAL_USERS_ONLINE'];
70 70
 			$online_userlist = $data['.'][0]['LOGGED_IN_USER_LIST'];
71 71
 			$l_online_record = $data['.'][0]['RECORD_USERS'];
72 72
 		}
Please login to merge, or discard this patch.
blocks/custom.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
 		// Delete block data
55 55
 		$this->db->sql_query('DELETE FROM ' . $this->cblocks_table . ' WHERE block_id = ' . (int) $id);
56 56
 
57
-		$sql_data =	array(
57
+		$sql_data = array(
58 58
 			'block_id'			=> $id,
59 59
 			'block_content'		=> $content,
60 60
 			'bbcode_bitfield'	=> '',
Please login to merge, or discard this patch.
cron/blocks_cleanup.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -91,8 +91,8 @@
 block discarded – undo
91 91
 	 */
92 92
 	private function clean_styles()
93 93
 	{
94
-		$routes_ary	= $this->manager->get_routes_per_style();
95
-		$style_ids	= $this->get_style_ids();
94
+		$routes_ary = $this->manager->get_routes_per_style();
95
+		$style_ids = $this->get_style_ids();
96 96
 
97 97
 		$routes = array();
98 98
 		foreach ($routes_ary as $style_id => $style_routes)
Please login to merge, or discard this patch.
services/tree/display.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
 	{
72 72
 		$sql = "SELECT *
73 73
 			FROM $this->items_table
74
-			WHERE $this->pk = " . (int) $node_id ;
74
+			WHERE $this->pk = " . (int) $node_id;
75 75
 		$result = $this->db->sql_query($sql);
76 76
 		$row = $this->db->sql_fetchrow($result);
77 77
 		$this->db->sql_freeresult($result);
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
 		return $data;
175 175
 	}
176 176
 
177
-	public function display_list(array $data, \phpbb\template\twig\twig &$template, $handle = 'tree')
177
+	public function display_list(array $data, \phpbb\template\twig\twig & $template, $handle = 'tree')
178 178
 	{
179 179
 		$prev_depth = 0;
180 180
 		$parental_depth = array(0 => -1);
@@ -183,10 +183,10 @@  discard block
 block discarded – undo
183 183
 		for ($i = 0, $size = sizeof($data); $i < $size; $i++)
184 184
 		{
185 185
 			$row 		= $data[$i];
186
-			$this_depth	= $parental_depth[$row['parent_id']] + 1;
187
-			$repeat		= abs($prev_depth - $this_depth);
186
+			$this_depth = $parental_depth[$row['parent_id']] + 1;
187
+			$repeat = abs($prev_depth - $this_depth);
188 188
 
189
-			$tpl_data	= array(
189
+			$tpl_data = array(
190 190
 				'S_PREV_DEPTH'	=> $prev_depth,
191 191
 				'S_THIS_DEPTH'	=> $this_depth,
192 192
 				'S_NUM_KIDS'	=> $this->count_descendants($row),
Please login to merge, or discard this patch.
services/tree/builder.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -214,23 +214,23 @@
 block discarded – undo
214 214
 		foreach ($branch as $i => $row)
215 215
 		{
216 216
 			$left_id	= $right_id + 1;
217
-			$right_id   = $right_id + 2;
217
+			$right_id = $right_id + 2;
218 218
 
219 219
 			$sql_data[$i] = $row;
220
-			$sql_data[$i]['parent_id']	= $parent_id;
221
-			$sql_data[$i]['left_id']	= $left_id;
222
-			$sql_data[$i]['right_id']	= $right_id;
223
-			$sql_data[$i]['depth']		= $depth;
220
+			$sql_data[$i]['parent_id'] = $parent_id;
221
+			$sql_data[$i]['left_id'] = $left_id;
222
+			$sql_data[$i]['right_id'] = $right_id;
223
+			$sql_data[$i]['depth'] = $depth;
224 224
 
225 225
 			if ($row['parent_id'])
226 226
 			{
227
-				$left_id	= $sql_data[$row['parent_id']]['right_id'];
228
-				$right_id   = $left_id + 1;
227
+				$left_id = $sql_data[$row['parent_id']]['right_id'];
228
+				$right_id = $left_id + 1;
229 229
 
230
-				$sql_data[$i]['parent_id']	= $row['parent_id'];
231
-				$sql_data[$i]['depth']		= $sql_data[$row['parent_id']]['depth'] + 1;
232
-				$sql_data[$i]['left_id']	= $left_id;
233
-				$sql_data[$i]['right_id']	= $right_id;
230
+				$sql_data[$i]['parent_id'] = $row['parent_id'];
231
+				$sql_data[$i]['depth'] = $sql_data[$row['parent_id']]['depth'] + 1;
232
+				$sql_data[$i]['left_id'] = $left_id;
233
+				$sql_data[$i]['right_id'] = $right_id;
234 234
 
235 235
 				$this->update_right_side($sql_data, $right_id, $row['parent_id'], $branch);
236 236
 			}
Please login to merge, or discard this patch.
services/blocks/action/add_block.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,8 +13,8 @@
 block discarded – undo
13 13
 {
14 14
 	public function execute($style_id)
15 15
 	{
16
-		$name	= $this->request->variable('block', '');
17
-		$route	= $this->request->variable('route', '');
16
+		$name = $this->request->variable('block', '');
17
+		$route = $this->request->variable('route', '');
18 18
 
19 19
 		if (($block_instance = $this->block_factory->get_block($name)) === null)
20 20
 		{
Please login to merge, or discard this patch.
services/blocks/action/copy_route.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
 	public function execute($style_id)
21 21
 	{
22 22
 		$ext_name = $this->request->variable('ext', '');
23
-		$route	= $this->request->variable('route', '');
23
+		$route = $this->request->variable('route', '');
24 24
 		$from_route = $this->request->variable('from_route', '');
25 25
 		$from_style = $this->request->variable('from_style', $style_id);
26 26
 
Please login to merge, or discard this patch.
services/blocks/admin_bar.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -141,7 +141,7 @@
 block discarded – undo
141 141
 			list($controller_service, $controller_method) = explode(':', $controller);
142 142
 			$controller_params	= $symfony_request->attributes->get('_route_params');
143 143
 			$controller_object	= $this->phpbb_container->get($controller_service);
144
-			$controller_class	= get_class($controller_object);
144
+			$controller_class = get_class($controller_object);
145 145
 
146 146
 			$r = new \ReflectionMethod($controller_class, $controller_method);
147 147
 			$params = $r->getParameters();
Please login to merge, or discard this patch.
services/url_checker.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
 			$headers = $headers[0];
30 30
 		}
31 31
 
32
-		preg_match('/HTTP\/.* ([0-9]+) .*/', $headers , $status);
32
+		preg_match('/HTTP\/.* ([0-9]+) .*/', $headers, $status);
33 33
 
34 34
 		return ($status[1] == 200) ? true : false;
35 35
 	}
Please login to merge, or discard this patch.