Completed
Pull Request — master (#26)
by Daniel
11:14
created
services/date_range.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
 		$time = $this->user->create_datetime($this->time);
39 39
 		$now = phpbb_gmgetdate($time->getTimestamp() + $time->getOffset());
40 40
 
41
-		$method = 'get_' . $range;
41
+		$method = 'get_'.$range;
42 42
 		$data = array(
43 43
 			'start'	=> 0,
44 44
 			'stop'	=> 0,
Please login to merge, or discard this patch.
services/auto_lang.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -64,8 +64,8 @@  discard block
 block discarded – undo
64 64
 			$default_lang_files = $finder
65 65
 				->prefix($lang_file)
66 66
 				->suffix(".$this->php_ext")
67
-				->extension_directory('/language/' . basename($this->config['default_lang']))
68
-				->core_path('language/' . basename($this->config['default_lang']) . '/')
67
+				->extension_directory('/language/'.basename($this->config['default_lang']))
68
+				->core_path('language/'.basename($this->config['default_lang']).'/')
69 69
 				->find();
70 70
 		}
71 71
 
@@ -84,8 +84,8 @@  discard block
 block discarded – undo
84 84
 		$user_lang_files = $finder
85 85
 			->prefix($lang_file)
86 86
 			->suffix(".$this->php_ext")
87
-			->extension_directory('/language/' . $this->user->lang_name)
88
-			->core_path('language/' . $this->user->lang_name . '/')
87
+			->extension_directory('/language/'.$this->user->lang_name)
88
+			->core_path('language/'.$this->user->lang_name.'/')
89 89
 			->find();
90 90
 
91 91
 		$lang_files = array_unique(array_merge($user_lang_files, $english_lang_files, $default_lang_files));
Please login to merge, or discard this patch.
services/menus/action/add_menu.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
 
21 21
 		/** @type \blitze\sitemaker\model\menus\entity\menu $entity */
22 22
 		$entity = $menu_mapper->create_entity(array(
23
-			'menu_name' => $this->translator->lang('MENU') . '-' . mt_rand(1000, 9999),
23
+			'menu_name' => $this->translator->lang('MENU').'-'.mt_rand(1000, 9999),
24 24
 		));
25 25
 
26 26
 		$entity = $menu_mapper->save($entity);
Please login to merge, or discard this patch.
services/menus/action/update_item.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
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
 		}
Please login to merge, or discard this patch.
services/menus/action_handler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
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
 		{
Please login to merge, or discard this patch.
services/menus/display.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 		{
Please login to merge, or discard this patch.
services/forum/attachments.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -77,10 +77,10 @@
 block discarded – undo
77 77
 	protected function get_attachment_sql(array $attach_ids, array $allowed_extensions, $exclude_in_message, $order_by)
78 78
 	{
79 79
 		return 'SELECT *
80
-			FROM ' . ATTACHMENTS_TABLE . '
81
-			WHERE ' . $this->db->sql_in_set('post_msg_id', $attach_ids) .
82
-				(($exclude_in_message) ? ' AND in_message = 0' : '') .
83
-				(sizeof($allowed_extensions) ? ' AND ' . $this->db->sql_in_set('extension', $allowed_extensions) : '') . '
80
+			FROM ' . ATTACHMENTS_TABLE.'
81
+			WHERE ' . $this->db->sql_in_set('post_msg_id', $attach_ids).
82
+				(($exclude_in_message) ? ' AND in_message = 0' : '').
83
+				(sizeof($allowed_extensions) ? ' AND '.$this->db->sql_in_set('extension', $allowed_extensions) : '').'
84 84
 			ORDER BY ' . $order_by;
85 85
 	}
86 86
 }
Please login to merge, or discard this patch.
services/forum/manager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
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');
Please login to merge, or discard this patch.
services/users/data.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
 
76 76
 		if (sizeof($query_ids))
77 77
 		{
78
-			$sql_where .= (($sql_where) ? ' AND ' : '') . $this->db->sql_in_set('user_id', $query_ids);
78
+			$sql_where .= (($sql_where) ? ' AND ' : '').$this->db->sql_in_set('user_id', $query_ids);
79 79
 			$this->query($sql_where);
80 80
 		}
81 81
 
@@ -150,8 +150,8 @@  discard block
 block discarded – undo
150 150
 	public function get_profile_fields()
151 151
 	{
152 152
 		$sql = 'SELECT l.lang_name, f.field_ident
153
-			FROM ' . PROFILE_LANG_TABLE . ' l, ' . PROFILE_FIELDS_TABLE . ' f
154
-			WHERE l.lang_id = ' . $this->user->get_iso_lang_id() . '
153
+			FROM ' . PROFILE_LANG_TABLE.' l, '.PROFILE_FIELDS_TABLE.' f
154
+			WHERE l.lang_id = ' . $this->user->get_iso_lang_id().'
155 155
 				AND f.field_active = 1
156 156
 				AND f.field_no_view = 0
157 157
 				AND f.field_hide = 0
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
 	 */
204 204
 	protected function get_search_url($user_id)
205 205
 	{
206
-		return ($this->auth->acl_get('u_search')) ? append_sid($this->phpbb_root_path . 'search.' . $this->php_ext, "author_id=$user_id&amp;sr=posts") : '';
206
+		return ($this->auth->acl_get('u_search')) ? append_sid($this->phpbb_root_path.'search.'.$this->php_ext, "author_id=$user_id&amp;sr=posts") : '';
207 207
 	}
208 208
 
209 209
 	/**
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
 	{
215 215
 		if (!function_exists('phpbb_get_user_rank'))
216 216
 		{
217
-			include($this->phpbb_root_path . 'includes/functions_display.' . $this->php_ext);
217
+			include($this->phpbb_root_path.'includes/functions_display.'.$this->php_ext);
218 218
 		}
219 219
 
220 220
 		$user_rank_data = phpbb_get_user_rank($row, $row['user_posts']);
@@ -288,8 +288,8 @@  discard block
 block discarded – undo
288 288
 	protected function get_sql_statement($sql_where = '', $order_by = '')
289 289
 	{
290 290
 		return 'SELECT user_id, username, user_type, user_colour, user_avatar, user_avatar_type, user_avatar_height, user_avatar_width, user_regdate, user_lastvisit, user_birthday, user_posts, user_rank, user_allow_viewemail, user_allow_pm, user_jabber, user_inactive_reason
291
-			FROM ' . USERS_TABLE .
292
-			(($sql_where) ? ' WHERE ' . $sql_where : '') .
293
-			(($order_by) ? ' ORDER BY ' . $order_by : '');
291
+			FROM ' . USERS_TABLE.
292
+			(($sql_where) ? ' WHERE '.$sql_where : '').
293
+			(($order_by) ? ' ORDER BY '.$order_by : '');
294 294
 	}
295 295
 }
Please login to merge, or discard this patch.