@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | * |
52 | 52 | * @return $this |
53 | 53 | */ |
54 | - public function addValueOption($key, $value){ |
|
54 | + public function addValueOption($key, $value) { |
|
55 | 55 | $this->valueOptions[$key] = $value; |
56 | 56 | return $this; |
57 | 57 | } |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | { |
64 | 64 | parent::setValue($value); |
65 | 65 | |
66 | - if(!isset($this->valueOptions[$value])){ |
|
66 | + if (!isset($this->valueOptions[$value])) { |
|
67 | 67 | $this->valueOptions[$value] = $value; |
68 | 68 | } |
69 | 69 | } |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | /** |
103 | 103 | * @return $this |
104 | 104 | */ |
105 | - public function required(){ |
|
105 | + public function required() { |
|
106 | 106 | $this->options['attr']['required'] = 'required'; |
107 | 107 | |
108 | 108 | return $this; |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | /** |
112 | 112 | * @return $this |
113 | 113 | */ |
114 | - public function disable(){ |
|
114 | + public function disable() { |
|
115 | 115 | $this->options['attr']['disabled'] = 'disabled'; |
116 | 116 | return $this; |
117 | 117 | } |
@@ -121,8 +121,8 @@ discard block |
||
121 | 121 | * |
122 | 122 | * @return string|int|boolean|null |
123 | 123 | */ |
124 | - public function getOption($option){ |
|
125 | - if(!isset($this->options[$option])){ |
|
124 | + public function getOption($option) { |
|
125 | + if (!isset($this->options[$option])) { |
|
126 | 126 | return null; |
127 | 127 | } |
128 | 128 |