|
@@ 205-207 (lines=3) @@
|
| 202 |
|
{ |
| 203 |
|
if ($this->value === true || |
| 204 |
|
$this->value == '') { |
| 205 |
|
if ($configuration->get('clean-strategy') !== Configuration::CLEAN_STRATEGY_LENIENT) { |
| 206 |
|
$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.'); |
| 207 |
|
} |
| 208 |
|
|
| 209 |
|
return false; |
| 210 |
|
} |
|
@@ 220-225 (lines=6) @@
|
| 217 |
|
} |
| 218 |
|
} |
| 219 |
|
|
| 220 |
|
if ($this->value <= 0 && |
| 221 |
|
$configuration->get('clean-strategy') !== Configuration::CLEAN_STRATEGY_LENIENT) { |
| 222 |
|
$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.'); |
| 223 |
|
|
| 224 |
|
return false; |
| 225 |
|
} |
| 226 |
|
|
| 227 |
|
return true; |
| 228 |
|
} |