@@ -117,9 +117,9 @@ discard block |
||
117 | 117 | public function load_permission_language(\phpbb\event\data $event) |
118 | 118 | { |
119 | 119 | $permissions = $event['permissions']; |
120 | - $permissions['a_sm_settings'] = array('lang' => 'ACL_A_SM_SETTINGS', 'cat' => 'misc'); |
|
121 | - $permissions['a_sm_manage_blocks'] = array('lang' => 'ACL_A_SM_MANAGE_BLOCKS', 'cat' => 'misc'); |
|
122 | - $permissions['a_sm_manage_menus'] = array('lang' => 'ACL_A_SM_MANAGE_MENUS', 'cat' => 'misc'); |
|
120 | + $permissions['a_sm_settings'] = array('lang' => 'ACL_A_SM_SETTINGS', 'cat' => 'misc'); |
|
121 | + $permissions['a_sm_manage_blocks'] = array('lang' => 'ACL_A_SM_MANAGE_BLOCKS', 'cat' => 'misc'); |
|
122 | + $permissions['a_sm_manage_menus'] = array('lang' => 'ACL_A_SM_MANAGE_MENUS', 'cat' => 'misc'); |
|
123 | 123 | $event['permissions'] = $permissions; |
124 | 124 | } |
125 | 125 | |
@@ -193,13 +193,13 @@ discard block |
||
193 | 193 | */ |
194 | 194 | public function set_startpage(\phpbb\event\data $event) |
195 | 195 | { |
196 | - if ($this->user->page['page_name'] == 'index.' . $this->php_ext && !$this->is_startpage && ($controller_object = $this->get_startpage_controller()) !== false) |
|
196 | + if ($this->user->page['page_name'] == 'index.'.$this->php_ext && !$this->is_startpage && ($controller_object = $this->get_startpage_controller()) !== false) |
|
197 | 197 | { |
198 | 198 | $method = $this->config['sitemaker_startpage_method']; |
199 | 199 | $this->is_startpage = true; |
200 | 200 | |
201 | 201 | $controller_dir = explode('\\', get_class($controller_object)); |
202 | - $controller_style_dir = 'ext/' . $controller_dir[0] . '/' . $controller_dir[1] . '/styles'; |
|
202 | + $controller_style_dir = 'ext/'.$controller_dir[0].'/'.$controller_dir[1].'/styles'; |
|
203 | 203 | $this->template->set_style(array($controller_style_dir, 'styles')); |
204 | 204 | |
205 | 205 | $arguments = explode('/', $this->config['sitemaker_startpage_params']); |
@@ -220,7 +220,7 @@ discard block |
||
220 | 220 | */ |
221 | 221 | public function add_viewonline_location(\phpbb\event\data $event) |
222 | 222 | { |
223 | - if ($event['on_page'][1] == 'app' && strrpos($event['row']['session_page'], 'app.' . $this->php_ext . '/forum') === 0) |
|
223 | + if ($event['on_page'][1] == 'app' && strrpos($event['row']['session_page'], 'app.'.$this->php_ext.'/forum') === 0) |
|
224 | 224 | { |
225 | 225 | $event['location'] = $this->translator->lang('FORUM_INDEX'); |
226 | 226 | $event['location_url'] = $this->phpbb_container->get('controller.helper')->route('blitze_sitemaker_forum'); |
@@ -57,7 +57,7 @@ |
||
57 | 57 | // @codeCoverageIgnoreStart |
58 | 58 | if (!function_exists('display_forums')) |
59 | 59 | { |
60 | - include($this->phpbb_root_path . 'includes/functions_display.' . $this->php_ext); |
|
60 | + include($this->phpbb_root_path.'includes/functions_display.'.$this->php_ext); |
|
61 | 61 | } |
62 | 62 | // @codeCoverageIgnoreEnd |
63 | 63 |
@@ -15,12 +15,12 @@ |
||
15 | 15 | class invalid_argument extends base |
16 | 16 | { |
17 | 17 | /** |
18 | - * Translate this exception |
|
19 | - * |
|
20 | - * @param \phpbb\language\language $translator |
|
21 | - * @return array|string |
|
22 | - * @access public |
|
23 | - */ |
|
18 | + * Translate this exception |
|
19 | + * |
|
20 | + * @param \phpbb\language\language $translator |
|
21 | + * @return array|string |
|
22 | + * @access public |
|
23 | + */ |
|
24 | 24 | public function get_message(\phpbb\language\language $translator) |
25 | 25 | { |
26 | 26 | return $this->translate_portions($translator, $this->message_full, 'EXCEPTION_INVALID_ARGUMENT'); |
@@ -15,12 +15,12 @@ |
||
15 | 15 | class invalid_argument extends base |
16 | 16 | { |
17 | 17 | /** |
18 | - * Translate this exception |
|
19 | - * |
|
20 | - * @param \phpbb\language\language $translator |
|
21 | - * @return array|string |
|
22 | - * @access public |
|
23 | - */ |
|
18 | + * Translate this exception |
|
19 | + * |
|
20 | + * @param \phpbb\language\language $translator |
|
21 | + * @return array|string |
|
22 | + * @access public |
|
23 | + */ |
|
24 | 24 | public function get_message(\phpbb\language\language $translator) |
25 | 25 | { |
26 | 26 | return $this->translate_portions($translator, $this->message_full, 'EXCEPTION_INVALID_ARGUMENT'); |
@@ -34,7 +34,7 @@ |
||
34 | 34 | |
35 | 35 | if (isset($allowed_fields[$field])) |
36 | 36 | { |
37 | - $mutator = 'set_' . $field; |
|
37 | + $mutator = 'set_'.$field; |
|
38 | 38 | $entity->$mutator($allowed_fields[$field]); |
39 | 39 | $item_mapper->save($entity); |
40 | 40 | } |