|
@@ 125-128 (lines=4) @@
|
| 122 |
|
// Standard is case-insensitive attribute values should be lower case. |
| 123 |
|
if ($caseSensitivity === 'ci' && $this->value !== true) { |
| 124 |
|
$newValue = strtolower($this->value); |
| 125 |
|
if ($newValue !== $this->value) { |
| 126 |
|
$logger->debug( |
| 127 |
|
'Within ' . $element . ', the value for the attribute "' . $this->name . '" is case-insensitive. The value has been converted to lower case.' |
| 128 |
|
); |
| 129 |
|
$this->value = $newValue; |
| 130 |
|
} |
| 131 |
|
} |
|
@@ 215-219 (lines=5) @@
|
| 212 |
|
if (!is_int($this->value)) { |
| 213 |
|
$originalValue = (string) $this->value; |
| 214 |
|
$this->value = (int) $this->value; |
| 215 |
|
if ($originalValue !== ((string) $this->value)) { |
| 216 |
|
$logger->debug( |
| 217 |
|
'Within ' . $element . ', the value for the attribute "' . $this->name . '" is required to be an positive, non-zero integer. The value has been converted to an integer.' |
| 218 |
|
); |
| 219 |
|
} |
| 220 |
|
} |
| 221 |
|
|
| 222 |
|
if ($this->value <= 0 && $configuration->get('clean-strategy') !== Configuration::CLEAN_STRATEGY_LENIENT) { |