@@ -47,9 +47,9 @@ |
||
| 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 | |
@@ -52,7 +52,7 @@ |
||
| 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'; |
@@ -34,7 +34,7 @@ |
||
| 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 | |
@@ -102,7 +102,7 @@ discard block |
||
| 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 |
||
| 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 | { |
@@ -136,7 +136,7 @@ |
||
| 136 | 136 | $block = array(); |
| 137 | 137 | if ($this->block_is_viewable($db_data, $display_modes, $users_groups, $edit_mode) && ($block_instance = $this->block_factory->get_block($service_name)) !== null) |
| 138 | 138 | { |
| 139 | - $returned_data = array( |
|
| 139 | + $returned_data = array( |
|
| 140 | 140 | 'title' => '', |
| 141 | 141 | 'data' => null, |
| 142 | 142 | 'content' => null, |
@@ -147,7 +147,7 @@ |
||
| 147 | 147 | } |
| 148 | 148 | |
| 149 | 149 | [$is_current_item, $is_parent] = $this->get_current_item($row); |
| 150 | - $depth = $this->get_parental_depth($row) + 1; |
|
| 150 | + $depth = $this->get_parental_depth($row) + 1; |
|
| 151 | 151 | $leaf = $this->get_leaf_node($row, $is_current_item, $is_parent); |
| 152 | 152 | |
| 153 | 153 | $this->parental_depth[$row[$this->pk]] = $depth; |
@@ -168,7 +168,7 @@ |
||
| 168 | 168 | */ |
| 169 | 169 | public function display_list(array $data) |
| 170 | 170 | { |
| 171 | - $data = array_map(function($row) { |
|
| 171 | + $data = array_map(function ($row) { |
|
| 172 | 172 | $row['num_kids'] = $this->count_descendants($row); |
| 173 | 173 | return array_change_key_case($row, CASE_UPPER); |
| 174 | 174 | }, $data); |
@@ -125,7 +125,7 @@ |
||
| 125 | 125 | */ |
| 126 | 126 | protected function save_locations(array $locations) |
| 127 | 127 | { |
| 128 | - $locations = array_merge($this->get_locations(), $locations); |
|
| 128 | + $locations = array_merge($this->get_locations(), $locations); |
|
| 129 | 129 | |
| 130 | 130 | $this->config->set('sm_navbar_locations', json_encode(array_filter($locations))); |
| 131 | 131 | } |