@@ -179,7 +179,7 @@ discard block |
||
| 179 | 179 | { |
| 180 | 180 | $compareValue = $value->value ?? $value; |
| 181 | 181 | |
| 182 | - foreach ($this->getOptions() as $option) |
|
| 182 | + foreach ($this->getOptions() as $option) |
|
| 183 | 183 | { |
| 184 | 184 | if ($option['value'] === $compareValue) |
| 185 | 185 | { |
@@ -196,7 +196,7 @@ discard block |
||
| 196 | 196 | */ |
| 197 | 197 | public function normalizeValue($value, ElementInterface $element = null) |
| 198 | 198 | { |
| 199 | - if (!$value) |
|
| 199 | + if ( ! $value) |
|
| 200 | 200 | { |
| 201 | 201 | $value = $this->defaultValue(); |
| 202 | 202 | } |
@@ -122,8 +122,10 @@ |
||
| 122 | 122 | // Get all of the acceptable values |
| 123 | 123 | $range = []; |
| 124 | 124 | |
| 125 | - if ($options = $this->getOptions()) { |
|
| 126 | - foreach ($options as $option) { |
|
| 125 | + if ($options = $this->getOptions()) |
|
| 126 | + { |
|
| 127 | + foreach ($options as $option) |
|
| 128 | + { |
|
| 127 | 129 | $range[] = $option['value']; |
| 128 | 130 | } |
| 129 | 131 | } |