@@ -127,7 +127,6 @@ discard block |
||
127 | 127 | |
128 | 128 | /** |
129 | 129 | * Detect type of range passed as argument (int, float, date) |
130 | - * @param array $value value to detect type |
|
131 | 130 | */ |
132 | 131 | protected function setValueRangeAutodetect(array $range) |
133 | 132 | { |
@@ -178,6 +177,9 @@ discard block |
||
178 | 177 | } |
179 | 178 | |
180 | 179 | |
180 | + /** |
|
181 | + * @param string $forceValueType |
|
182 | + */ |
|
181 | 183 | protected function setValueForced($forceValueType, $value) |
182 | 184 | { |
183 | 185 | if (!array_key_exists($forceValueType, $this->fValues)) { |
@@ -145,7 +145,7 @@ discard block |
||
145 | 145 | ['fvalueRangeFloatMin', 'fvalueRangeFloatMax'], |
146 | 146 | $range |
147 | 147 | ); |
148 | - } elseif($this->isRangeInt($range)) { |
|
148 | + } elseif ($this->isRangeInt($range)) { |
|
149 | 149 | $this->fValues[self::VALUE_RANGE_INT] = array_combine( |
150 | 150 | ['fvalueRangeIntMin', 'fvalueRangeIntMax'], |
151 | 151 | $range |
@@ -214,7 +214,7 @@ discard block |
||
214 | 214 | $this->setFid($array['fid']); |
215 | 215 | unset($array['fid']); |
216 | 216 | |
217 | - foreach($array as $key => $value) { |
|
217 | + foreach ($array as $key => $value) { |
|
218 | 218 | if (!array_key_exists($key, $this->fValues)) { |
219 | 219 | throw new Exception("Unknown Field property: {$key}"); |
220 | 220 | } |
@@ -237,7 +237,7 @@ discard block |
||
237 | 237 | public function getValue() |
238 | 238 | { |
239 | 239 | $defaults = $this->getDefaults(); |
240 | - foreach($this->fValues as $key => $fValue) { |
|
240 | + foreach ($this->fValues as $key => $fValue) { |
|
241 | 241 | if ($fValue !== $defaults[$key]) { |
242 | 242 | return is_array($fValue) ? array_values($fValue) : $fValue; |
243 | 243 | } |