Passed
Push — templating ( 0cf8c2...d1ec7e )
by Daniel
03:46
created
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_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.
services/blocks/config/fields/checkbox.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
 
35 35
 		$vars['method'] = 'build_checkbox';
36 36
 		$vars['params'][] = $field;
37
-		$vars['params'][] = (string) $type[1];	// css class to be applied to list
37
+		$vars['params'][] = (string) $type[1]; // css class to be applied to list
38 38
 		$type[0] = 'custom';
39 39
 	}
40 40
 
Please login to merge, or discard this patch.
services/blocks/cleaner.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
 	protected function clean_styles()
103 103
 	{
104 104
 		$routes_ary	= array_keys($this->manager->get_routes('style'));
105
-		$style_ids	= $this->get_style_ids();
105
+		$style_ids = $this->get_style_ids();
106 106
 		$col_widths	= (array) json_decode($this->config['sitemaker_column_widths'], true);
107 107
 
108 108
 		foreach ($routes_ary as $style_id)
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
 	protected function clean_routes()
132 132
 	{
133 133
 		$board_url = generate_board_url();
134
-		$routes	= $this->manager->get_routes('route');
134
+		$routes = $this->manager->get_routes('route');
135 135
 
136 136
 		foreach ($routes as $route => $row)
137 137
 		{
Please login to merge, or discard this patch.
services/menus/display.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -162,7 +162,7 @@
 block discarded – undo
162 162
 			}
163 163
 
164 164
 			[$is_current_item, $is_parent] = $this->get_current_item($row);
165
-			$this_depth	= $this->get_parental_depth($row) + 1;
165
+			$this_depth = $this->get_parental_depth($row) + 1;
166 166
 			$leaf = $this->get_leaf_node($row, $is_current_item, $is_parent);
167 167
 
168 168
 			$this->parental_depth[$row[$this->pk]] = $this_depth;
Please login to merge, or discard this patch.
services/tree/display.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -176,7 +176,7 @@
 block discarded – undo
176 176
 		for ($i = 0, $size = sizeof($data); $i < $size; $i++)
177 177
 		{
178 178
 			$row 		= $data[$i];
179
-			$this_depth	= $parental_depth[$row[$this->column_parent_id]] + 1;
179
+			$this_depth = $parental_depth[$row[$this->column_parent_id]] + 1;
180 180
 			$repeat		= (int) abs($prev_depth - $this_depth);
181 181
 
182 182
 			$nodes[]	= array_merge(array(
Please login to merge, or discard this patch.
services/blocks/blocks.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@
 block discarded – undo
123 123
 			);
124 124
 
125 125
 			// we get the template after running 'display()' above so template can be set dynamically
126
-			$returned_data['template']	= $block_instance->get_template();
126
+			$returned_data['template'] = $block_instance->get_template();
127 127
 
128 128
 			if ($this->block_has_content($returned_data, $edit_mode))
129 129
 			{
Please login to merge, or discard this patch.