Completed
Push — develop ( 8387b5...1b51bd )
by Daniel
11:34
created
styles/menus/mapper/base_mapper.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
model/entity/item.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
model/mapper_factory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,8 +39,8 @@
 block discarded – undo
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
 	}
Please login to merge, or discard this patch.