@@ 127-130 (lines=4) @@ | ||
124 | // Standard is case-insensitive attribute values should be lower case. |
|
125 | if ($caseSensitivity == 'ci' && $this->value !== true) { |
|
126 | $newValue = strtolower($this->value); |
|
127 | if ($newValue !== $this->value) { |
|
128 | $logger->debug('Within ' . $element . ', the value for the attribute "' . $this->name . '" is case-insensitive. The value has been converted to lower case.'); |
|
129 | $this->value = $newValue; |
|
130 | } |
|
131 | } |
|
132 | ||
133 | // Validate value types. |
|
@@ 211-213 (lines=3) @@ | ||
208 | if (!is_int($this->value)) { |
|
209 | $origonalValue = (string) $this->value; |
|
210 | $this->value = (int) $this->value; |
|
211 | if ($origonalValue != ((string) $this->value)) { |
|
212 | $logger->debug('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.'); |
|
213 | } |
|
214 | } |
|
215 | ||
216 | if ($this->value <= 0 && |