Passed
Push — release-3.2.0 ( e3b9c5...a662cc )
by Daniel
02:49
created
services/tree/display.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
 	{
90 90
 		$sql = "SELECT *
91 91
 			FROM $this->items_table
92
-			WHERE $this->pk = " . (int) $node_id ;
92
+			WHERE $this->pk = " . (int) $node_id;
93 93
 		$result = $this->db->sql_query($sql);
94 94
 		$row = $this->db->sql_fetchrow($result);
95 95
 		$this->db->sql_freeresult($result);
@@ -174,10 +174,10 @@  discard block
 block discarded – undo
174 174
 		for ($i = 0, $size = sizeof($data); $i < $size; $i++)
175 175
 		{
176 176
 			$row 		= $data[$i];
177
-			$this_depth	= $parental_depth[$row[$this->column_parent_id]] + 1;
178
-			$repeat		= (int) abs($prev_depth - $this_depth);
177
+			$this_depth = $parental_depth[$row[$this->column_parent_id]] + 1;
178
+			$repeat = (int) abs($prev_depth - $this_depth);
179 179
 
180
-			$tpl_data	= array(
180
+			$tpl_data = array(
181 181
 				'PREV_DEPTH'	=> $prev_depth,
182 182
 				'THIS_DEPTH'	=> $this_depth,
183 183
 				'NUM_KIDS'		=> $this->count_descendants($row),
Please login to merge, or discard this patch.
services/blocks/action/set_route_prefs.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,8 +43,8 @@
 block discarded – undo
43 43
 			$entity = $this->force_get_route($route_data);
44 44
 			$this->update_route($entity, $route_prefs);
45 45
 
46
-			$ex_positions	= $entity->get_ex_positions();
47
-			$hide_blocks	= $entity->get_hide_blocks();
46
+			$ex_positions = $entity->get_ex_positions();
47
+			$hide_blocks = $entity->get_hide_blocks();
48 48
 		}
49 49
 		// user has made choices that match defaults, and route prefs exist in db
50 50
 		else if ($entity = $this->route_mapper->load($this->get_condition($route_data)))
Please login to merge, or discard this patch.
cron/blocks_cleanup.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@
 block discarded – undo
92 92
 	private function clean_styles()
93 93
 	{
94 94
 		$routes_ary	= $this->manager->get_routes_per_style();
95
-		$style_ids	= $this->get_style_ids();
95
+		$style_ids = $this->get_style_ids();
96 96
 		$col_widths	= (array) json_decode($this->config['sitemaker_column_widths'], true);
97 97
 
98 98
 		$routes = array();
Please login to merge, or discard this patch.
services/blocks/admin_bar.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
 		}
163 163
 		else
164 164
 		{
165
-			return preg_replace_callback('/_([a-z0-9]+)/i', function($parts) {
165
+			return preg_replace_callback('/_([a-z0-9]+)/i', function ($parts) {
166 166
 				return strtoupper($parts[0]);
167 167
 			}, $user_lang);
168 168
 		}
@@ -225,7 +225,7 @@  discard block
 block discarded – undo
225 225
 			list($controller_service, $controller_method) = explode(':', $controller);
226 226
 			$controller_params	= $symfony_request->attributes->get('_route_params');
227 227
 			$controller_object	= $this->phpbb_container->get($controller_service);
228
-			$controller_class	= get_class($controller_object);
228
+			$controller_class = get_class($controller_object);
229 229
 
230 230
 			$r = new \ReflectionMethod($controller_class, $controller_method);
231 231
 			$class_params = $r->getParameters();
Please login to merge, or discard this patch.
services/blocks/config/fields/select.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -47,9 +47,9 @@
 block discarded – undo
47 47
 
48 48
 		$vars['method'] = 'build_select';
49 49
 		$vars['params'][] = $field;
50
-		$vars['params'][] = (int) $type[1];		// size
51
-		$vars['params'][] = (bool) $type[2];	// multi select
52
-		$vars['params'][] = (string) $type[3];	// togggle key
50
+		$vars['params'][] = (int) $type[1]; // size
51
+		$vars['params'][] = (bool) $type[2]; // multi select
52
+		$vars['params'][] = (string) $type[3]; // togggle key
53 53
 		$type[0] = 'custom';
54 54
 	}
55 55
 
Please login to merge, or discard this patch.
services/blocks/config/fields/multi_select.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
 	 */
43 43
 	public function prep_field(array &$vars, array &$type, $field, array $db_settings)
44 44
 	{
45
-		$vars['method'] ='build_multi_select';
45
+		$vars['method'] = 'build_multi_select';
46 46
 		$vars['params'][] = $field;
47 47
 		$type[0] = 'custom';
48 48
 	}
Please login to merge, or discard this patch.
services/blocks/config/fields/multi_input.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
 		}
53 53
 
54 54
 		$vars['params'][] = array_filter((array) $db_settings[$field]);
55
-		$vars['params'][] = $type[1];	// sortable
55
+		$vars['params'][] = $type[1]; // sortable
56 56
 		$vars['params'][] = $field;
57 57
 
58 58
 		$type[0] = 'custom';
Please login to merge, or discard this patch.
migrations/v20x/m14_update_settings_data.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
 				'settings'	=> $settings,
46 46
 				'hash' => md5($settings),
47 47
 			);
48
-			$this->db->sql_query('UPDATE ' . $this->table_prefix . 'sm_blocks SET ' . $this->db->sql_build_array('UPDATE', $sql_data) .' WHERE bid = ' . (int) $row['bid']);
48
+			$this->db->sql_query('UPDATE ' . $this->table_prefix . 'sm_blocks SET ' . $this->db->sql_build_array('UPDATE', $sql_data) . ' WHERE bid = ' . (int) $row['bid']);
49 49
 		}
50 50
 		$this->db->sql_freeresult($result);
51 51
 	}
Please login to merge, or discard this patch.