|
@@ 192-194 (lines=3) @@
|
| 189 |
|
{ |
| 190 |
|
if ($this->value === true || |
| 191 |
|
$this->value == '') { |
| 192 |
|
if ($configuration->get('clean-strategy') !== Configuration::CLEAN_STRATEGY_LENIENT) { |
| 193 |
|
$logger->debug('Within ' . $element . ', the value for the attribute "' . $this->name . '" is required to be an positive, non-zero integer. The value is invalid, therefore the attribute has been removed.'); |
| 194 |
|
} |
| 195 |
|
|
| 196 |
|
return false; |
| 197 |
|
} |
|
@@ 207-212 (lines=6) @@
|
| 204 |
|
} |
| 205 |
|
} |
| 206 |
|
|
| 207 |
|
if ($this->value <= 0 && |
| 208 |
|
$configuration->get('clean-strategy') !== Configuration::CLEAN_STRATEGY_LENIENT) { |
| 209 |
|
$logger->debug('Within ' . $element . ', the value for the attribute "' . $this->value . '" is required to be an positive, non-zero integer. The value is invalid, therefore the attribute has been removed.'); |
| 210 |
|
|
| 211 |
|
return false; |
| 212 |
|
} |
| 213 |
|
|
| 214 |
|
return true; |
| 215 |
|
} |