Code Duplication    Length = 11-11 lines in 4 locations

src/Tokens/Attribute.php 4 locations

@@ 135-145 (lines=11) @@
132
133
        // Validate value types.
134
        switch ($attributeType) {
135
        case 'boo': // boolean
136
            $cleanResult = $this->cleanAttributeBoolean(
137
                $configuration,
138
                $element,
139
                $logger
140
            );
141
            if ($configuration->get('clean-strategy') !== Configuration::CLEAN_STRATEGY_LENIENT) {
142
                return $cleanResult;
143
            }
144
145
            break;
146
147
        case 'int': // integer
148
            $cleanResult = $this->cleanAttributeInteger(
@@ 147-157 (lines=11) @@
144
145
            break;
146
147
        case 'int': // integer
148
            $cleanResult = $this->cleanAttributeInteger(
149
                $configuration,
150
                $element,
151
                $logger
152
            );
153
            if ($configuration->get('clean-strategy') !== Configuration::CLEAN_STRATEGY_LENIENT) {
154
                return $cleanResult;
155
            }
156
157
            break;
158
159
        case 'str': // string
160
            $cleanResult = $this->cleanAttributeString(
@@ 159-169 (lines=11) @@
156
157
            break;
158
159
        case 'str': // string
160
            $cleanResult = $this->cleanAttributeString(
161
                $configuration,
162
                $element,
163
                $logger
164
            );
165
            if ($configuration->get('clean-strategy') !== Configuration::CLEAN_STRATEGY_LENIENT) {
166
                return $cleanResult;
167
            }
168
169
            break;
170
171
        case 'uri': // URI
172
            $cleanResult = $this->cleanAttributeUri(
@@ 171-181 (lines=11) @@
168
169
            break;
170
171
        case 'uri': // URI
172
            $cleanResult = $this->cleanAttributeUri(
173
                $configuration,
174
                $element,
175
                $logger
176
            );
177
            if ($configuration->get('clean-strategy') !== Configuration::CLEAN_STRATEGY_LENIENT) {
178
                return $cleanResult;
179
            }
180
181
            break;
182
        }
183
184
        return true;