@@ 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('Within ' . $element . ', the value for the attribute "' . $this->name . '" is case-insensitive. The value has been converted to lower case.'); |
|
127 | $this->value = $newValue; |
|
128 | } |
|
129 | } |
|
130 | ||
131 | // Validate value types. |
|
@@ 202-204 (lines=3) @@ | ||
199 | if (!is_int($this->value)) { |
|
200 | $origonalValue = (string) $this->value; |
|
201 | $this->value = (int) $this->value; |
|
202 | if ($origonalValue != ((string) $this->value)) { |
|
203 | $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.'); |
|
204 | } |
|
205 | } |
|
206 | ||
207 | if ($this->value <= 0 && |