@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | */ |
31 | 31 | public function getDataSet() |
32 | 32 | { |
33 | - return $this->createXMLDataSet(dirname(__FILE__) . '/fixtures/menu.xml'); |
|
33 | + return $this->createXMLDataSet(dirname(__FILE__).'/fixtures/menu.xml'); |
|
34 | 34 | } |
35 | 35 | |
36 | 36 | public function setUp() |
@@ -55,12 +55,12 @@ discard block |
||
55 | 55 | global $db, $request, $user; |
56 | 56 | |
57 | 57 | $table_prefix = 'phpbb_'; |
58 | - $collection_class = '\\blitze\\sitemaker\\model\\menus\\collections\\' . $type; |
|
59 | - $mapper_class = '\\blitze\\sitemaker\\model\\menus\\mapper\\' . $type; |
|
58 | + $collection_class = '\\blitze\\sitemaker\\model\\menus\\collections\\'.$type; |
|
59 | + $mapper_class = '\\blitze\\sitemaker\\model\\menus\\mapper\\'.$type; |
|
60 | 60 | $tables = array( |
61 | 61 | 'mapper_tables' => array( |
62 | - 'menus' => $table_prefix . 'sm_menus', |
|
63 | - 'items' => $table_prefix . 'sm_menu_items' |
|
62 | + 'menus' => $table_prefix.'sm_menus', |
|
63 | + 'items' => $table_prefix.'sm_menu_items' |
|
64 | 64 | ) |
65 | 65 | ); |
66 | 66 |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | */ |
137 | 137 | public function set_item_icon($icon) |
138 | 138 | { |
139 | - $this->item_icon = ($icon) ? trim($icon) . ' ' : ''; |
|
139 | + $this->item_icon = ($icon) ? trim($icon).' ' : ''; |
|
140 | 140 | return $this; |
141 | 141 | } |
142 | 142 | |
@@ -153,7 +153,7 @@ discard block |
||
153 | 153 | // add leading / for local paths, except leading hashtags |
154 | 154 | if ($this->is_local($this->item_url) && $this->item_url[0] !== '#') |
155 | 155 | { |
156 | - $this->item_url = '/' . ltrim($this->item_url, './'); |
|
156 | + $this->item_url = '/'.ltrim($this->item_url, './'); |
|
157 | 157 | } |
158 | 158 | |
159 | 159 | return $this; |
@@ -168,7 +168,7 @@ discard block |
||
168 | 168 | |
169 | 169 | if ($this->is_local($item_url) && $item_url[0] === '/') |
170 | 170 | { |
171 | - $item_url = $this->board_url . $item_url; |
|
171 | + $item_url = $this->board_url.$item_url; |
|
172 | 172 | if ($this->mod_rewrite_enabled) |
173 | 173 | { |
174 | 174 | $item_url = str_replace('app.php/', '', $item_url); |
@@ -185,6 +185,6 @@ discard block |
||
185 | 185 | private function is_local($item_url) |
186 | 186 | { |
187 | 187 | $host = parse_url($item_url, PHP_URL_HOST); |
188 | - return (!$item_url || !empty($host) || substr($item_url, 0, 2) === '//') ? false: true; |
|
188 | + return (!$item_url || !empty($host) || substr($item_url, 0, 2) === '//') ? false : true; |
|
189 | 189 | } |
190 | 190 | } |
@@ -39,8 +39,8 @@ |
||
39 | 39 | */ |
40 | 40 | public function create($type) |
41 | 41 | { |
42 | - $mapper_class = 'blitze\\sitemaker\\model\\mapper\\' . $type; |
|
43 | - $collection = 'blitze\\sitemaker\\model\\collections\\' . $type; |
|
42 | + $mapper_class = 'blitze\\sitemaker\\model\\mapper\\'.$type; |
|
43 | + $collection = 'blitze\\sitemaker\\model\\collections\\'.$type; |
|
44 | 44 | |
45 | 45 | return new $mapper_class($this->db, new $collection, $this, $this->mapper_tables[$type], $this->config); |
46 | 46 | } |