Code Duplication    Length = 5-8 lines in 2 locations

src/Tokens/Element.php 2 locations

@@ 222-229 (lines=8) @@
219
                break;
220
221
            case 'int': // integer
222
                if ($this->attributes[$name] === true) {
223
                    if ($this->configuration->get('clean-strategy') !== Configuration::CLEAN_STRATEGY_LENIENT) {
224
                        $logger->debug('Within ' . $this . ', the value for the attribute "' . $name . '" is required to be an positive, non-zero integer.  The value is invalid, therefore the attribute has been removed.');
225
                        unset($this->attributes[$name]);
226
                    }
227
228
                    break;
229
                }
230
231
                if (!is_int($this->attributes[$name])) {
232
                    $origonalValue = (string) $this->attributes[$name];
@@ 239-243 (lines=5) @@
236
                    }
237
                }
238
239
                if ($this->attributes[$name] <= 0 &&
240
                    $this->configuration->get('clean-strategy') !== Configuration::CLEAN_STRATEGY_LENIENT) {
241
                    $logger->debug('Within ' . $this . ', the value for the attribute "' . $name . '" is required to be an positive, non-zero integer.  The value is invalid, therefore the attribute has been removed.');
242
                    unset($this->attributes[$name]);
243
                }
244
245
                break;
246