Completed
Push — develop ( 1859c0...4d26b2 )
by Daniel
14:51
created
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(array $data)
57 57
 	{
58 58
 		$default = is_array($data['field_value']) ? $data['field_value'] : explode("\n", $data['field_value']);
59
-		$value =  $this->request->variable($data['field_name'], array(0 => ''));
59
+		$value = $this->request->variable($data['field_name'], array(0 => ''));
60 60
 		return $value ?: $default;
61 61
 	}
62 62
 
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
 	 */
102 102
 	protected function make_box($color)
103 103
 	{
104
-		$style = 'display: inline-block; width: 15px; height: 15px; border: 1 solid #fff; border-radius: 4px; background-color: ' . $color;
105
-		return ($color) ? '<div style="' . $style . '" title="' . $color . '"></div>' : '';
104
+		$style = 'display: inline-block; width: 15px; height: 15px; border: 1 solid #fff; border-radius: 4px; background-color: '.$color;
105
+		return ($color) ? '<div style="'.$style.'" title="'.$color.'"></div>' : '';
106 106
 	}
107 107
 }
Please login to merge, or discard this patch.