Completed
Push — develop ( 6a0b8a...755a17 )
by Daniel
07:17
created
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/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.
services/form/field/color.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
 	public function get_field_value($name, $default)
57 57
 	{
58 58
 		$default = is_array($default) ? $default : explode("\n", $default);
59
-		$value =  $this->request->variable($name, array(0 => ''), true);
59
+		$value = $this->request->variable($name, array(0 => ''), true);
60 60
 
61 61
 		return $value ? $value : $default;
62 62
 	}
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
 	 */
103 103
 	protected function make_box($color)
104 104
 	{
105
-		$style = 'display: inline-block; width: 15px; height: 15px; border: 1 solid #fff; border-radius: 4px; background-color: ' . $color;
106
-		return ($color) ? '<div style="' . $style . '" title="' . $color . '"></div>' : '';
105
+		$style = 'display: inline-block; width: 15px; height: 15px; border: 1 solid #fff; border-radius: 4px; background-color: '.$color;
106
+		return ($color) ? '<div style="'.$style.'" title="'.$color.'"></div>' : '';
107 107
 	}
108 108
 }
Please login to merge, or discard this patch.
services/fields.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
 
75 75
 		if (!empty($custom_tpl))
76 76
 		{
77
-			$this->tpl_name	= ($tpl_name) ? $tpl_name : $content_type . '_' . $view_mode;
77
+			$this->tpl_name	= ($tpl_name) ? $tpl_name : $content_type.'_'.$view_mode;
78 78
 		}
79 79
 
80 80
 		$this->view_mode = (in_array($view_mode, array('summary', 'detail'))) ? $view_mode : 'summary';
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
 	 */
97 97
 	public function show($type, array $topic_data, array $post_data, array $users_cache, array $attachments, array &$update_count, array $topic_tracking_info, array $topic_data_overwrite = array(), $mode = '')
98 98
 	{
99
-		$callable = 'get_' . $this->view_mode . '_template_data';
99
+		$callable = 'get_'.$this->view_mode.'_template_data';
100 100
 		$tpl_data = array_merge(
101 101
 			$this->{$callable}($type, $topic_data, $post_data, $users_cache, $attachments, $update_count, $topic_tracking_info, $mode),
102 102
 			$topic_data_overwrite
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
 			$field_type = $field_data['field_type'];
168 168
 			$field_data['field_value'] = &$post_field_data[$field_name];
169 169
 			$field_data['field_props'] = array_replace_recursive($this->form_fields[$field_type]->get_default_props(), $field_data['field_props']);
170
-			$field_contents	= $this->form_fields[$field_type]->display_field($field_data, $this->view_mode, $tpl_data);
170
+			$field_contents = $this->form_fields[$field_type]->display_field($field_data, $this->view_mode, $tpl_data);
171 171
 
172 172
 			// this essentially hides other fields if the field returns an array
173 173
 			if (is_array($field_contents))
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
 
179 179
 			if (!empty($field_contents))
180 180
 			{
181
-				$display_data[$field_name] = '<div class="field-label ' . $this->label[$field_data['field_' . $this->view_mode . '_ldisp']] . '">' . $field_data['field_label'] . $this->language->lang('COLON') . ' </div>' . $field_contents;
181
+				$display_data[$field_name] = '<div class="field-label '.$this->label[$field_data['field_'.$this->view_mode.'_ldisp']].'">'.$field_data['field_label'].$this->language->lang('COLON').' </div>'.$field_contents;
182 182
 			}
183 183
 		}
184 184
 
Please login to merge, or discard this patch.