Code Duplication    Length = 3-4 lines in 2 locations

src/Tokens/Attribute.php 2 locations

@@ 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.
@@ 215-217 (lines=3) @@
212
        if (!is_int($this->value)) {
213
            $origonalValue = (string) $this->value;
214
            $this->value = (int) $this->value;
215
            if ($origonalValue != ((string) $this->value)) {
216
                $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.');
217
            }
218
        }
219
220
        if ($this->value <= 0 &&