@@ -144,7 +144,7 @@ |
||
144 | 144 | * @param string $position |
145 | 145 | * @param array $blocks |
146 | 146 | * @param array $ex_positions |
147 | - * @param array $users_groups |
|
147 | + * @param integer[] $users_groups |
|
148 | 148 | * @param array $display_modes |
149 | 149 | * @param bool $edit_mode |
150 | 150 | * @return array[] |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | * @param array $db_data |
105 | 105 | * @param array $users_groups |
106 | 106 | * @param int $index |
107 | - * @return string[] |
|
107 | + * @return string[] |
|
108 | 108 | */ |
109 | 109 | public function render(array $display_modes, $edit_mode, array $db_data, array $users_groups, $index) |
110 | 110 | { |
@@ -147,7 +147,7 @@ discard block |
||
147 | 147 | * @param array $users_groups |
148 | 148 | * @param array $display_modes |
149 | 149 | * @param bool $edit_mode |
150 | - * @return array[] |
|
150 | + * @return array[] |
|
151 | 151 | */ |
152 | 152 | protected function show_position($position, array $blocks, array $ex_positions, array $users_groups, $display_modes, $edit_mode) |
153 | 153 | { |
@@ -81,7 +81,7 @@ |
||
81 | 81 | |
82 | 82 | /** |
83 | 83 | * @param array $settings |
84 | - * @return string[] |
|
84 | + * @return string[] |
|
85 | 85 | */ |
86 | 86 | private function get_bookmarks(array $settings) |
87 | 87 | { |
@@ -39,7 +39,7 @@ |
||
39 | 39 | * @param \phpbb\db\driver\driver_interface $db Database connection |
40 | 40 | * @param string $phpbb_root_path phpBB root path |
41 | 41 | * @param string $php_ext phpEx |
42 | - * @param integer $cache_time Cache results for given time |
|
42 | + * @param integer $cache_time Cache results for given time |
|
43 | 43 | */ |
44 | 44 | public function __construct(\phpbb\auth\auth $auth, \phpbb\content_visibility $content_visibility, \phpbb\db\driver\driver_interface $db, $phpbb_root_path, $php_ext, $cache_time) |
45 | 45 | { |
@@ -211,10 +211,10 @@ |
||
211 | 211 | return $truncateService->truncate($row['post_text'], $this->settings['preview_chars']); |
212 | 212 | } |
213 | 213 | |
214 | - /** |
|
215 | - * @param array $row |
|
216 | - * @return string |
|
217 | - */ |
|
214 | + /** |
|
215 | + * @param array $row |
|
216 | + * @return string |
|
217 | + */ |
|
218 | 218 | protected function get_tooltip_text(array $row) |
219 | 219 | { |
220 | 220 | strip_bbcode($row['post_text'], $row['bbcode_uid']); |
@@ -34,8 +34,8 @@ |
||
34 | 34 | 'item_target' => $this->request->variable('item_target', 0), |
35 | 35 | )); |
36 | 36 | |
37 | - /** @var \blitze\sitemaker\model\entity\item $entity */ |
|
38 | - $entity = $items_mapper->save($entity); |
|
37 | + /** @var \blitze\sitemaker\model\entity\item $entity */ |
|
38 | + $entity = $items_mapper->save($entity); |
|
39 | 39 | |
40 | 40 | return $entity->to_array(); |
41 | 41 | } |
@@ -72,13 +72,13 @@ |
||
72 | 72 | return $total_topics; |
73 | 73 | } |
74 | 74 | |
75 | - /** |
|
76 | - * Get topic data |
|
77 | - * |
|
78 | - * @param bool|false|int $limit |
|
79 | - * @param int $start |
|
80 | - * @return array |
|
81 | - */ |
|
75 | + /** |
|
76 | + * Get topic data |
|
77 | + * |
|
78 | + * @param bool|false|int $limit |
|
79 | + * @param int $start |
|
80 | + * @return array |
|
81 | + */ |
|
82 | 82 | public function get_topic_data($limit = false, $start = 0) |
83 | 83 | { |
84 | 84 | // Topics table need to be the last in the chain |
@@ -242,8 +242,7 @@ |
||
242 | 242 | { |
243 | 243 | $sql_where[] = $this->db->sql_in_set('p.post_id', array_map('intval', $post_ids)); |
244 | 244 | return $sql_where; |
245 | - } |
|
246 | - else if (sizeof($this->store['topic'])) |
|
245 | + } else if (sizeof($this->store['topic'])) |
|
247 | 246 | { |
248 | 247 | $this->_limit_posts_by_topic($sql_where, $topic_first_or_last_post); |
249 | 248 | } |
@@ -57,13 +57,13 @@ |
||
57 | 57 | $this->ex_fid_ary = array_unique(array_keys($this->auth->acl_getf('!f_read', true))); |
58 | 58 | } |
59 | 59 | |
60 | - /** |
|
61 | - * Begin query |
|
62 | - * |
|
63 | - * @param bool $track_topics |
|
64 | - * @param bool $add_forum_data |
|
65 | - * @return $this |
|
66 | - */ |
|
60 | + /** |
|
61 | + * Begin query |
|
62 | + * |
|
63 | + * @param bool $track_topics |
|
64 | + * @param bool $add_forum_data |
|
65 | + * @return $this |
|
66 | + */ |
|
67 | 67 | public function query($track_topics = true, $add_forum_data = true) |
68 | 68 | { |
69 | 69 | $this->_reset(); |
@@ -30,15 +30,15 @@ |
||
30 | 30 | 'style' => $style_id, |
31 | 31 | ); |
32 | 32 | |
33 | - /** @var \blitze\sitemaker\model\entity\route $entity */ |
|
34 | - $route_entity = $this->force_get_route($route_data, true); |
|
33 | + /** @var \blitze\sitemaker\model\entity\route $entity */ |
|
34 | + $route_entity = $this->force_get_route($route_data, true); |
|
35 | 35 | |
36 | 36 | $default_settings = $block_instance->get_config(array()); |
37 | 37 | $block_settings = $this->blocks->sync_settings($default_settings); |
38 | 38 | |
39 | 39 | $block_mapper = $this->mapper_factory->create('blocks'); |
40 | 40 | |
41 | - $entity = $block_mapper->create_entity(array( |
|
41 | + $entity = $block_mapper->create_entity(array( |
|
42 | 42 | 'name' => $name, |
43 | 43 | 'weight' => $this->request->variable('weight', 0), |
44 | 44 | 'position' => $this->request->variable('position', ''), |
@@ -24,14 +24,14 @@ |
||
24 | 24 | $this->translator = $translator; |
25 | 25 | } |
26 | 26 | |
27 | - /** |
|
28 | - * Used to add a select drop down in blocks config |
|
29 | - * |
|
30 | - * @param array $option_ary |
|
31 | - * @param string $selected_item |
|
32 | - * @param string $key |
|
33 | - * @return string |
|
34 | - */ |
|
27 | + /** |
|
28 | + * Used to add a select drop down in blocks config |
|
29 | + * |
|
30 | + * @param array $option_ary |
|
31 | + * @param string $selected_item |
|
32 | + * @param string $key |
|
33 | + * @return string |
|
34 | + */ |
|
35 | 35 | public function build_select($option_ary, $selected_item, $key) |
36 | 36 | { |
37 | 37 | $html = '<select id="' . $key . '" name="config[' . $key . ']">'; |
@@ -34,11 +34,11 @@ discard block |
||
34 | 34 | */ |
35 | 35 | public function build_select($option_ary, $selected_item, $key) |
36 | 36 | { |
37 | - $html = '<select id="' . $key . '" name="config[' . $key . ']">'; |
|
37 | + $html = '<select id="'.$key.'" name="config['.$key.']">'; |
|
38 | 38 | foreach ($option_ary as $value => $title) |
39 | 39 | { |
40 | 40 | $selected = ($value == $selected_item) ? ' selected="selected"' : ''; |
41 | - $html .= '<option value="' . $value . '"' . $selected . '>' . $this->translator->lang($title) . '</option>'; |
|
41 | + $html .= '<option value="'.$value.'"'.$selected.'>'.$this->translator->lang($title).'</option>'; |
|
42 | 42 | } |
43 | 43 | $html .= '</select>'; |
44 | 44 | |
@@ -57,11 +57,11 @@ discard block |
||
57 | 57 | { |
58 | 58 | $selected_items = $this->ensure_array($selected_items); |
59 | 59 | |
60 | - $html = '<select id="' . $field . '" name="config[' . $field . '][]" multiple="multiple">'; |
|
60 | + $html = '<select id="'.$field.'" name="config['.$field.'][]" multiple="multiple">'; |
|
61 | 61 | foreach ($option_ary as $value => $title) |
62 | 62 | { |
63 | 63 | $selected = $this->get_selected_option($value, $selected_items); |
64 | - $html .= '<option value="' . $value . '"' . $selected . '>' . $this->translator->lang($title) . '</option>'; |
|
64 | + $html .= '<option value="'.$value.'"'.$selected.'>'.$this->translator->lang($title).'</option>'; |
|
65 | 65 | } |
66 | 66 | $html .= '</select>'; |
67 | 67 | |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | foreach ($option_ary as $value => $title) |
121 | 121 | { |
122 | 122 | $selected = $this->get_selected_option($value, $selected_item, 'checked'); |
123 | - $html .= '<label><input type="radio" name="config[' . $key . ']" value="' . $value . '"' . $selected . ' class="radio" /> ' . $this->translator->lang($title) . '</label><br />'; |
|
123 | + $html .= '<label><input type="radio" name="config['.$key.']" value="'.$value.'"'.$selected.' class="radio" /> '.$this->translator->lang($title).'</label><br />'; |
|
124 | 124 | } |
125 | 125 | |
126 | 126 | return $html; |
@@ -163,7 +163,7 @@ discard block |
||
163 | 163 | */ |
164 | 164 | protected function get_selected_option($needle, array $haystack, $type = 'selected') |
165 | 165 | { |
166 | - return (in_array($needle, $haystack)) ? ' ' . $type . '="' . $type . '"' : ''; |
|
166 | + return (in_array($needle, $haystack)) ? ' '.$type.'="'.$type.'"' : ''; |
|
167 | 167 | } |
168 | 168 | |
169 | 169 | /** |
@@ -177,12 +177,12 @@ discard block |
||
177 | 177 | */ |
178 | 178 | protected function get_checkbox_column(array $row, array $selected_items, $field, $column_class, $column_count, &$index) |
179 | 179 | { |
180 | - $column = '<div class="' . $column_class . $field . '-checkbox" id="' . $field . '-col-' . $column_count . '">'; |
|
180 | + $column = '<div class="'.$column_class.$field.'-checkbox" id="'.$field.'-col-'.$column_count.'">'; |
|
181 | 181 | foreach ($row as $value => $title) |
182 | 182 | { |
183 | 183 | $title = $this->translator->lang($title); |
184 | 184 | $selected = $this->get_selected_option($value, $selected_items, 'checked'); |
185 | - $column .= '<label><input type="checkbox" name="config[' . $field . '][' . $index . ']" value="' . $value . '"' . $selected . ' class="checkbox" /> ' . $title . '</label><br />'; |
|
185 | + $column .= '<label><input type="checkbox" name="config['.$field.']['.$index.']" value="'.$value.'"'.$selected.' class="checkbox" /> '.$title.'</label><br />'; |
|
186 | 186 | $index++; |
187 | 187 | } |
188 | 188 | $column .= '</div>'; |