Completed
Push — develop ( 4a255f...c77227 )
by Daniel
07:47
created
services/form/field/choice.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 		$this->ptemplate->assign_vars($data);
63 63
 
64 64
 		$tpl_name = ($data['field_type'] === 'select') ? 'select' : 'pickem';
65
-		return $this->ptemplate->render_view('blitze/content', "fields/$tpl_name.html", $data['field_type'] . '_field');
65
+		return $this->ptemplate->render_view('blitze/content', "fields/$tpl_name.html", $data['field_type'].'_field');
66 66
 	}
67 67
 
68 68
 	/**
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
 			foreach ($choices as $value => $option)
86 86
 			{
87 87
 				$options[] = array(
88
-					'id'		=> 'smc-'. $name . '-' . $count,
88
+					'id'		=> 'smc-'.$name.'-'.$count,
89 89
 					'label'		=> $this->language->lang($option),
90 90
 					'selected'	=> (int) (in_array($value, $selected)),
91 91
 					'value'		=> $value,
Please login to merge, or discard this patch.
services/form/field/image.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
 		$value = $this->request->variable($data['field_name'], $data['field_value']);
38 38
 		$value = $this->get_image_src($value);
39 39
 
40
-		return ($value) ? '[img]' . $value . '[/img]' : '';
40
+		return ($value) ? '[img]'.$value.'[/img]' : '';
41 41
 	}
42 42
 
43 43
 	/**
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
 		));
59 59
 
60 60
 		$this->ptemplate->assign_vars($data);
61
-		$field = $this->ptemplate->render_view('blitze/content', "fields/image.html", $field . '_field');
61
+		$field = $this->ptemplate->render_view('blitze/content', "fields/image.html", $field.'_field');
62 62
 
63 63
 		$data['field_value'] = $bbcode_value;
64 64
 
@@ -117,14 +117,14 @@  discard block
 block discarded – undo
117 117
 	 */
118 118
 	private function get_image_html($image, $mode, array $field_props)
119 119
 	{
120
-		$image = $image ?: '<img src="' . $field_props['default'] . '" class="postimage" alt="Image" />';
120
+		$image = $image ?: '<img src="'.$field_props['default'].'" class="postimage" alt="Image" />';
121 121
 
122
-		$html = '<figure class="img-ui">' . $image . '</figure>';
122
+		$html = '<figure class="img-ui">'.$image.'</figure>';
123 123
 		if ($mode !== 'block')
124 124
 		{
125
-			$view_props = array_fill_keys(array($mode . '_size', $mode . '_align'), '');
125
+			$view_props = array_fill_keys(array($mode.'_size', $mode.'_align'), '');
126 126
 			$image_props = array_filter(array_intersect_key($field_props, $view_props));
127
-			$html = '<div class="' . join(' ', $image_props) . '">' . $html . '</div>';
127
+			$html = '<div class="'.join(' ', $image_props).'">'.$html.'</div>';
128 128
 		}
129 129
 		return $html;
130 130
 	}
Please login to merge, or discard this patch.