Completed
Push — develop ( 6a0b8a...755a17 )
by Daniel
07:17
created
controller/field_controller.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@
 block discarded – undo
111 111
 	 */
112 112
 	protected function set_prop($prop, array &$data)
113 113
 	{
114
-		$field_prop = $this->request->variable('field_' . $prop, array('' => array(0 => '')), true);
114
+		$field_prop = $this->request->variable('field_'.$prop, array('' => array(0 => '')), true);
115 115
 
116 116
 		if (null !== ($array = array_pop($field_prop)))
117 117
 		{
Please login to merge, or discard this patch.
services/actions/type/index.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
 		$this->template = $template;
53 53
 		$this->content_types = $content_types;
54 54
 		$this->phpbb_root_path = $phpbb_root_path;
55
-		$this->phpbb_admin_path = $this->phpbb_root_path . $relative_admin_path;
55
+		$this->phpbb_admin_path = $this->phpbb_root_path.$relative_admin_path;
56 56
 		$this->php_ext = $php_ext;
57 57
 	}
58 58
 
@@ -76,19 +76,19 @@  discard block
 block discarded – undo
76 76
 
77 77
 				'S_ENABLED'		=> $entity->get_content_enabled(),
78 78
 
79
-				'U_DELETE'		=> $u_action . '&do=pre_delete&type=' . $type,
80
-				'U_EDIT'		=> $u_action . '&do=edit&type=' . $type,
81
-				'U_STATUS'		=> $u_action . '&do=toggle_status&type=' . $type,
79
+				'U_DELETE'		=> $u_action.'&do=pre_delete&type='.$type,
80
+				'U_EDIT'		=> $u_action.'&do=edit&type='.$type,
81
+				'U_STATUS'		=> $u_action.'&do=toggle_status&type='.$type,
82 82
 				'U_VIEW'		=> $this->controller_helper->route('blitze_content_index', array('type' => $type)),
83
-				'U_POST'		=> append_sid("{$this->phpbb_root_path}ucp." . $this->php_ext, "i=-blitze-content-ucp-content_module&mode=content&action=post&type={$type}"),
84
-				'U_GROUP_PERMS'	=> append_sid("{$this->phpbb_admin_path}index." . $this->php_ext, "i=acp_permissions&mode=setting_group_global"),
85
-				'U_FORUM_PERMS'	=> append_sid("{$this->phpbb_admin_path}index." . $this->php_ext, "i=acp_permissions&mode=setting_forum_local&forum_id[]=$forum_id"),
83
+				'U_POST'		=> append_sid("{$this->phpbb_root_path}ucp.".$this->php_ext, "i=-blitze-content-ucp-content_module&mode=content&action=post&type={$type}"),
84
+				'U_GROUP_PERMS'	=> append_sid("{$this->phpbb_admin_path}index.".$this->php_ext, "i=acp_permissions&mode=setting_group_global"),
85
+				'U_FORUM_PERMS'	=> append_sid("{$this->phpbb_admin_path}index.".$this->php_ext, "i=acp_permissions&mode=setting_forum_local&forum_id[]=$forum_id"),
86 86
 			);
87 87
 		}
88 88
 
89 89
 		$this->template->assign_vars(array(
90 90
 			'TYPES'			=> $types_list,
91
-			'U_ADD_TYPE'	=> $u_action . "&do=add",
91
+			'U_ADD_TYPE'	=> $u_action."&do=add",
92 92
 		));
93 93
 	}
94 94
 }
Please login to merge, or discard this patch.
services/actions/type/add.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
 			'ITEMS_PER_PAGE'	=> 10,
86 86
 			'TOPICS_PER_GROUP'	=> 4,
87 87
 
88
-			'U_ACTION'			=> $u_action . "&do=save&type=$type",
88
+			'U_ACTION'			=> $u_action."&do=save&type=$type",
89 89
 			'UA_AJAX_URL'		=> $this->controller_helper->route('blitze_content_field_settings', array(), false),
90 90
 
91 91
 			'S_TYPE_OPS'				=> $this->get_field_options(),
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
 		$options = '';
109 109
 		foreach ($fields as $field => $object)
110 110
 		{
111
-			$options .= '<option value="' . $field . '">' . $this->language->lang($object->get_langname()) . '</option>';
111
+			$options .= '<option value="'.$field.'">'.$this->language->lang($object->get_langname()).'</option>';
112 112
 		}
113 113
 
114 114
 		return $options;
Please login to merge, or discard this patch.
services/form/field/textarea.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
 			$asset_path = $this->util->get_web_path();
126 126
 			$this->util->add_assets(array(
127 127
 				'js'   => array(
128
-					$asset_path . 'assets/javascript/editor.js',
128
+					$asset_path.'assets/javascript/editor.js',
129 129
 					'@blitze_content/assets/form/textarea.min.js'
130 130
 				)
131 131
 			));
@@ -145,12 +145,12 @@  discard block
 block discarded – undo
145 145
 		// Assigning custom bbcodes
146 146
 		if (!function_exists('display_custom_bbcodes'))
147 147
 		{
148
-			include($this->phpbb_root_path . 'includes/functions_display.' . $this->php_ext);
148
+			include($this->phpbb_root_path.'includes/functions_display.'.$this->php_ext);
149 149
 		}
150 150
 
151 151
 		display_custom_bbcodes();
152 152
 
153
-		$bbcode_status	= ($this->config['allow_bbcode'] && $this->auth->acl_get('f_bbcode', $forum_id)) ? true : false;
153
+		$bbcode_status = ($this->config['allow_bbcode'] && $this->auth->acl_get('f_bbcode', $forum_id)) ? true : false;
154 154
 
155 155
 		$dataref = $this->template_context->get_data_ref();
156 156
 		$this->ptemplate->assign_block_vars_array('custom_tags', (isset($dataref['custom_tags'])) ? $dataref['custom_tags'] : array());
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
 			$this->template->assign_block_vars('toc', array(
236 236
 				'TITLE'		=> $title,
237 237
 				'S_PAGE'	=> ($page === $start),
238
-				'U_VIEW'	=> append_sid($topic_url, 'page=' . $page),
238
+				'U_VIEW'	=> append_sid($topic_url, 'page='.$page),
239 239
 			));
240 240
 		}
241 241
 	}
Please login to merge, or discard this patch.
services/form/field/telephone.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
 	 */
37 37
 	public function display_field(array $data)
38 38
 	{
39
-		return '<a href="tel:' . $data['field_value'] . '">' . preg_replace("/^1?(\d{3})(\d{3})(\d{4})$/", "$1-$2-$3", $data['field_value']) . '</a>';
39
+		return '<a href="tel:'.$data['field_value'].'">'.preg_replace("/^1?(\d{3})(\d{3})(\d{4})$/", "$1-$2-$3", $data['field_value']).'</a>';
40 40
 	}
41 41
 
42 42
 	/**
Please login to merge, or discard this patch.
services/form/field/image.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 		$value = $this->request->variable($name, $value);
20 20
 		$value = $this->get_image_src($value);
21 21
 
22
-		return ($value) ? '[img]' . $value . '[/img]' : '';
22
+		return ($value) ? '[img]'.$value.'[/img]' : '';
23 23
 	}
24 24
 
25 25
 	/**
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 		$data['field_value'] = $this->get_image_src($bbcode_value);
35 35
 
36 36
 		$this->ptemplate->assign_vars($data);
37
-		$field = $this->ptemplate->render_view('blitze/content', "fields/$field.twig", $field . '_field');
37
+		$field = $this->ptemplate->render_view('blitze/content', "fields/$field.twig", $field.'_field');
38 38
 
39 39
 		$data['field_value'] = $bbcode_value;
40 40
 
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
 	 */
47 47
 	public function display_field(array $data)
48 48
 	{
49
-		return ($data['field_value']) ? '<div class="img-ui">' . $data['field_value'] . '</div>' : '';
49
+		return ($data['field_value']) ? '<div class="img-ui">'.$data['field_value'].'</div>' : '';
50 50
 	}
51 51
 
52 52
 	/**
Please login to merge, or discard this patch.
services/form/field/choice.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 	public function get_field_value($name, $default)
31 31
 	{
32 32
 		$default = is_array($default) ? $default : explode("\n", $default);
33
-		$value =  $this->request->variable($name, $default, true);
33
+		$value = $this->request->variable($name, $default, true);
34 34
 
35 35
 		if (empty($value) && $this->request->server('REQUEST_METHOD') !== 'POST')
36 36
 		{
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
 		$this->set_field_options($name, $data, $selected);
69 69
 		$this->ptemplate->assign_vars($data);
70 70
 
71
-		return $this->ptemplate->render_view('blitze/content', "fields/$field.twig", $field . '_field');
71
+		return $this->ptemplate->render_view('blitze/content', "fields/$field.twig", $field.'_field');
72 72
 	}
73 73
 
74 74
 	/**
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
 			foreach ($data['field_props']['options'] as $option)
91 91
 			{
92 92
 				$options[] = array(
93
-					'id'		=> 'smc-'. $name . '-' . $count,
93
+					'id'		=> 'smc-'.$name.'-'.$count,
94 94
 					'label'		=> $this->language->lang($option),
95 95
 					'selected'	=> (in_array($option, $selected, true)) ? true : false,
96 96
 					'value'		=> $option,
Please login to merge, or discard this patch.
services/form/field/range.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
 			),
69 69
 			'css'   => array(
70 70
 				'@blitze_content/vendor/ion.rangeSlider/css/ion.rangeSlider.min.css',
71
-				'@blitze_content/vendor/ion.rangeSlider/css/ion.rangeSlider.' . $data['field_props']['theme'] . '.min.css',
71
+				'@blitze_content/vendor/ion.rangeSlider/css/ion.rangeSlider.'.$data['field_props']['theme'].'.min.css',
72 72
 			)
73 73
 		));
74 74
 
@@ -127,6 +127,6 @@  discard block
 block discarded – undo
127 127
 	 */
128 128
 	protected function set_prepost(&$item, $key, array $props)
129 129
 	{
130
-		$item = $props['prefix'] . $item . $props['postfix'];
130
+		$item = $props['prefix'].$item.$props['postfix'];
131 131
 	}
132 132
 }
Please login to merge, or discard this patch.
services/form/field/base.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
 		$this->ptemplate->assign_vars($data);
70 70
 
71 71
 		$field = $this->get_name();
72
-		return $this->ptemplate->render_view('blitze/content', "fields/$field.twig", $field . '_field');
72
+		return $this->ptemplate->render_view('blitze/content', "fields/$field.twig", $field.'_field');
73 73
 	}
74 74
 
75 75
 	/**
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
 	 */
86 86
 	public function get_langname()
87 87
 	{
88
-		return strtoupper('FORM_FIELD_' . $this->get_name());
88
+		return strtoupper('FORM_FIELD_'.$this->get_name());
89 89
 	}
90 90
 
91 91
 	/**
Please login to merge, or discard this patch.