Code Duplication    Length = 9-13 lines in 3 locations

src/Tokens/Attribute.php 3 locations

@@ 191-199 (lines=9) @@
188
        return true;
189
    }
190
191
    private function cleanAttributeBoolean(Configuration $configuration, Element $element, LoggerInterface $logger)
192
    {
193
        if ($this->value !== true) {
194
            $logger->debug('Within ' . $element . ', the attribute "' . $this->name . '" is a boolean attribute.  The value has been removed.');
195
            $this->value = true;
196
        }
197
198
        return true;
199
    }
200
201
    private function cleanAttributeInteger(Configuration $configuration, Element $element, LoggerInterface $logger)
202
    {
@@ 230-239 (lines=10) @@
227
        return true;
228
    }
229
230
    private function cleanAttributeString(Configuration $configuration, Element $element, LoggerInterface $logger)
231
    {
232
        if ($this->value === true) {
233
            $logger->debug('Within ' . $element . ', the attribute "' . $this->name . '" requires a string value.  The value is invalid, therefore the attribute has been removed.');
234
235
            return false;
236
        }
237
238
        return true;
239
    }
240
241
    private function cleanAttributeUri(Configuration $configuration, Element $element, LoggerInterface $logger)
242
    {
@@ 241-253 (lines=13) @@
238
        return true;
239
    }
240
241
    private function cleanAttributeUri(Configuration $configuration, Element $element, LoggerInterface $logger)
242
    {
243
        // Check for empty attribute.
244
        if ($this->value === true) {
245
            $logger->debug('Within ' . $element . ', the attribute "' . $this->name . '" requires a URI.  The value is invalid, therefore the attribute has been removed.');
246
247
            return false;
248
        }
249
250
        /// @todo
251
252
        return true;
253
    }
254
255
    public function __toString()
256
    {