@@ -46,7 +46,7 @@ |
||
46 | 46 | */ |
47 | 47 | public function create($action) |
48 | 48 | { |
49 | - $action_class = 'blitze\\sitemaker\\services\\menus\\action\\' . $action; |
|
49 | + $action_class = 'blitze\\sitemaker\\services\\menus\\action\\'.$action; |
|
50 | 50 | |
51 | 51 | if (!class_exists($action_class)) |
52 | 52 | { |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | * @param string $handle |
66 | 66 | * @return void |
67 | 67 | */ |
68 | - public function display_navlist(array $data, \phpbb\template\twig\twig &$template, $handle = 'tree') |
|
68 | + public function display_navlist(array $data, \phpbb\template\twig\twig & $template, $handle = 'tree') |
|
69 | 69 | { |
70 | 70 | $this->prepare_items($data); |
71 | 71 | |
@@ -79,10 +79,10 @@ discard block |
||
79 | 79 | $row['num_kids'] = $this->count_descendants($row); |
80 | 80 | |
81 | 81 | $template->assign_block_vars($handle, array_change_key_case($row, CASE_UPPER)); |
82 | - $this->close_open_tags($template, $handle . '.close', abs($prev_depth - $this_depth)); |
|
82 | + $this->close_open_tags($template, $handle.'.close', abs($prev_depth - $this_depth)); |
|
83 | 83 | } |
84 | 84 | |
85 | - $this->close_open_tags($template, 'close_' . $handle, ($this_depth - $this->min_depth)); |
|
85 | + $this->close_open_tags($template, 'close_'.$handle, ($this_depth - $this->min_depth)); |
|
86 | 86 | } |
87 | 87 | } |
88 | 88 | |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | } |
122 | 122 | |
123 | 123 | $is_current_item = $this->is_current_item($row); |
124 | - $this_depth = $this->parental_depth[$row['parent_id']] + 1; |
|
124 | + $this_depth = $this->parental_depth[$row['parent_id']] + 1; |
|
125 | 125 | |
126 | 126 | $this->set_parental_depth($row, $this_depth, $leaf, $is_current_item); |
127 | 127 | |
@@ -234,7 +234,7 @@ discard block |
||
234 | 234 | * @param int $repeat |
235 | 235 | * @return void |
236 | 236 | */ |
237 | - protected function close_open_tags(\phpbb\template\twig\twig &$template, $handle, $repeat) |
|
237 | + protected function close_open_tags(\phpbb\template\twig\twig & $template, $handle, $repeat) |
|
238 | 238 | { |
239 | 239 | for ($i = 0; $i < $repeat; $i++) |
240 | 240 | { |
@@ -54,7 +54,7 @@ |
||
54 | 54 | |
55 | 55 | if (!class_exists('acp_forums')) |
56 | 56 | { |
57 | - include($this->phpbb_root_path . 'includes/acp/acp_forums.' . $this->php_ext); |
|
57 | + include($this->phpbb_root_path.'includes/acp/acp_forums.'.$this->php_ext); |
|
58 | 58 | } |
59 | 59 | |
60 | 60 | $translator->add_lang('acp/forums'); |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | // @codeCoverageIgnoreStart |
23 | 23 | if (!function_exists('make_forum_select')) |
24 | 24 | { |
25 | - include($phpbb_root_path . 'includes/functions_admin.' . $php_ext); // @codeCoverageIgnore |
|
25 | + include($phpbb_root_path.'includes/functions_admin.'.$php_ext); // @codeCoverageIgnore |
|
26 | 26 | } |
27 | 27 | // @codeCoverageIgnoreEnd |
28 | 28 | } |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | $forum_options = array('' => 'ALL'); |
44 | 44 | foreach ($forumlist as $row) |
45 | 45 | { |
46 | - $forum_options[$row['forum_id']] = $row['padding'] . $row['forum_name']; |
|
46 | + $forum_options[$row['forum_id']] = $row['padding'].$row['forum_name']; |
|
47 | 47 | } |
48 | 48 | |
49 | 49 | return $forum_options; |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | $content = $this->request->variable('content', '', true); |
70 | 70 | $cblocks = $this->get_custom_blocks(); |
71 | 71 | |
72 | - $sql_data = $this->get_default_fields($block_id); |
|
72 | + $sql_data = $this->get_default_fields($block_id); |
|
73 | 73 | $sql_data['block_content'] = $content; |
74 | 74 | |
75 | 75 | generate_text_for_storage($sql_data['block_content'], $sql_data['bbcode_uid'], $sql_data['bbcode_bitfield'], $sql_data['bbcode_options'], true, true, true); |
@@ -130,11 +130,11 @@ discard block |
||
130 | 130 | { |
131 | 131 | if (!$block_exists) |
132 | 132 | { |
133 | - $sql = 'INSERT INTO ' . $this->cblocks_table . ' ' . $this->db->sql_build_array('INSERT', $sql_data); |
|
133 | + $sql = 'INSERT INTO '.$this->cblocks_table.' '.$this->db->sql_build_array('INSERT', $sql_data); |
|
134 | 134 | } |
135 | 135 | else |
136 | 136 | { |
137 | - $sql = 'UPDATE ' . $this->cblocks_table . ' SET ' . $this->db->sql_build_array('UPDATE', $sql_data) . ' WHERE block_id = ' . (int) $sql_data['block_id']; |
|
137 | + $sql = 'UPDATE '.$this->cblocks_table.' SET '.$this->db->sql_build_array('UPDATE', $sql_data).' WHERE block_id = '.(int) $sql_data['block_id']; |
|
138 | 138 | } |
139 | 139 | $this->db->sql_query($sql); |
140 | 140 | $this->cache->destroy('pt_cblocks'); |
@@ -151,7 +151,7 @@ discard block |
||
151 | 151 | if ($edit_mode !== false) |
152 | 152 | { |
153 | 153 | decode_message($cblock['block_content'], $cblock['bbcode_uid']); |
154 | - $content = '<div id="block-editor-' . $cblock['block_id'] . '" class="editable editable-block" data-service="blitze.sitemaker.block.custom" data-method="edit" data-raw="' . $cblock['block_content'] . '">' . $content . '</div>'; |
|
154 | + $content = '<div id="block-editor-'.$cblock['block_id'].'" class="editable editable-block" data-service="blitze.sitemaker.block.custom" data-method="edit" data-raw="'.$cblock['block_content'].'">'.$content.'</div>'; |
|
155 | 155 | } |
156 | 156 | } |
157 | 157 |
@@ -138,7 +138,7 @@ |
||
138 | 138 | $this->ptemplate->assign_block_vars('postrow.attachment', array( |
139 | 139 | 'DISPLAY_ATTACHMENT' => $attachment, |
140 | 140 | 'EXTENSION_GROUP' => $extensions[$row['extension']]['group_name'], |
141 | - 'U_VIEWTOPIC' => append_sid("{$this->phpbb_root_path}viewtopic.{$this->php_ext}", "t=$topic_id&p=$post_id") . '#p' . $post_id, |
|
141 | + 'U_VIEWTOPIC' => append_sid("{$this->phpbb_root_path}viewtopic.{$this->php_ext}", "t=$topic_id&p=$post_id").'#p'.$post_id, |
|
142 | 142 | )); |
143 | 143 | } |
144 | 144 | } |
@@ -71,9 +71,9 @@ |
||
71 | 71 | $this->ptemplate->assign_vars(array( |
72 | 72 | 'S_SHOW_HIDE_ME' => ($settings['show_hide_me']) ? true : false, |
73 | 73 | 'S_AUTOLOGIN_ENABLED' => ($settings['allow_autologin']) ? true : false, |
74 | - 'S_LOGIN_ACTION' => append_sid("{$this->phpbb_root_path}ucp." . $this->php_ext, 'mode=login'), |
|
75 | - 'U_REGISTER' => append_sid("{$this->phpbb_root_path}ucp." . $this->php_ext, 'mode=register'), |
|
76 | - 'U_SEND_PASSWORD' => append_sid("{$this->phpbb_root_path}ucp." . $this->php_ext, 'mode=sendpassword'), |
|
74 | + 'S_LOGIN_ACTION' => append_sid("{$this->phpbb_root_path}ucp.".$this->php_ext, 'mode=login'), |
|
75 | + 'U_REGISTER' => append_sid("{$this->phpbb_root_path}ucp.".$this->php_ext, 'mode=register'), |
|
76 | + 'U_SEND_PASSWORD' => append_sid("{$this->phpbb_root_path}ucp.".$this->php_ext, 'mode=sendpassword'), |
|
77 | 77 | 'U_REDIRECT' => reapply_sid(ltrim(rtrim(build_url(array('edit_mode')), '?'), './../')) |
78 | 78 | )); |
79 | 79 |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | |
100 | 100 | $this->ptemplate->assign_block_vars('topicrow', array( |
101 | 101 | 'TOPIC_TITLE' => censor_text($row['topic_title']), |
102 | - 'U_VIEWTOPIC' => append_sid($this->phpbb_root_path . 'viewtopic.' . $this->php_ext, "f=$forum_id&t=$topic_id"), |
|
102 | + 'U_VIEWTOPIC' => append_sid($this->phpbb_root_path.'viewtopic.'.$this->php_ext, "f=$forum_id&t=$topic_id"), |
|
103 | 103 | )); |
104 | 104 | unset($topic_data[$i]); |
105 | 105 | } |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | { |
141 | 141 | return array( |
142 | 142 | 'WHERE' => array( |
143 | - 't.topic_last_post_time > ' . $this->user->data['user_lastvisit'], |
|
143 | + 't.topic_last_post_time > '.$this->user->data['user_lastvisit'], |
|
144 | 144 | 't.topic_moved_id = 0', |
145 | 145 | ), |
146 | 146 | ); |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | POSTS_TABLE => 'p', |
157 | 157 | ), |
158 | 158 | 'WHERE' => array( |
159 | - 't.topic_id = p.topic_id AND p.post_time > ' . $this->user->data['user_lastvisit'], |
|
159 | + 't.topic_id = p.topic_id AND p.post_time > '.$this->user->data['user_lastvisit'], |
|
160 | 160 | ), |
161 | 161 | ); |
162 | 162 | } |
@@ -64,13 +64,13 @@ discard block |
||
64 | 64 | 'USER_POSTS' => $this->user->data['user_posts'], |
65 | 65 | 'NEW_POSTS' => $this->get_new_posts_count(), |
66 | 66 | |
67 | - 'U_PROFILE' => append_sid($this->phpbb_root_path . 'memberlist.' . $this->php_ext, 'mode=viewprofile&u=' . $this->user->data['user_id']), |
|
68 | - 'U_SEARCH_NEW' => append_sid($this->phpbb_root_path . 'search.' . $this->php_ext, 'search_id=newposts'), |
|
69 | - 'U_SEARCH_SELF' => append_sid($this->phpbb_root_path . 'search.' . $this->php_ext, 'search_id=egosearch'), |
|
70 | - 'U_PRIVATE_MSG' => append_sid($this->phpbb_root_path . 'ucp.' . $this->php_ext, 'i=pm&folder=inbox'), |
|
71 | - 'U_LOGOUT' => append_sid($this->phpbb_root_path . 'ucp.' . $this->php_ext, 'mode=logout', true, $this->user->session_id), |
|
72 | - 'U_MCP' => ($this->auth->acl_get('m_')) ? append_sid($this->phpbb_root_path . 'mcp.' . $this->php_ext, false, true, $this->user->session_id) : '', |
|
73 | - 'U_ACP' => ($this->auth->acl_get('a_')) ? append_sid($this->phpbb_root_path . 'adm/index.' . $this->php_ext, 'i=-blitze-sitemaker-acp-menu_module', true, $this->user->session_id) : '') |
|
67 | + 'U_PROFILE' => append_sid($this->phpbb_root_path.'memberlist.'.$this->php_ext, 'mode=viewprofile&u='.$this->user->data['user_id']), |
|
68 | + 'U_SEARCH_NEW' => append_sid($this->phpbb_root_path.'search.'.$this->php_ext, 'search_id=newposts'), |
|
69 | + 'U_SEARCH_SELF' => append_sid($this->phpbb_root_path.'search.'.$this->php_ext, 'search_id=egosearch'), |
|
70 | + 'U_PRIVATE_MSG' => append_sid($this->phpbb_root_path.'ucp.'.$this->php_ext, 'i=pm&folder=inbox'), |
|
71 | + 'U_LOGOUT' => append_sid($this->phpbb_root_path.'ucp.'.$this->php_ext, 'mode=logout', true, $this->user->session_id), |
|
72 | + 'U_MCP' => ($this->auth->acl_get('m_')) ? append_sid($this->phpbb_root_path.'mcp.'.$this->php_ext, false, true, $this->user->session_id) : '', |
|
73 | + 'U_ACP' => ($this->auth->acl_get('a_')) ? append_sid($this->phpbb_root_path.'adm/index.'.$this->php_ext, 'i=-blitze-sitemaker-acp-menu_module', true, $this->user->session_id) : '') |
|
74 | 74 | ); |
75 | 75 | |
76 | 76 | $content = $this->ptemplate->render_view('blitze/sitemaker', 'blocks/member_menu.html', 'member_menu_block'); |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | POSTS_TABLE => 'p', |
93 | 93 | ), |
94 | 94 | 'WHERE' => array( |
95 | - 't.topic_id = p.topic_id AND p.post_time > ' . $this->user->data['user_lastvisit'], |
|
95 | + 't.topic_id = p.topic_id AND p.post_time > '.$this->user->data['user_lastvisit'], |
|
96 | 96 | ), |
97 | 97 | ); |
98 | 98 |