Code Duplication    Length = 11-11 lines in 3 locations

src/Tokens/Attribute.php 3 locations

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