@@ 187-195 (lines=9) @@ | ||
184 | return true; |
|
185 | } |
|
186 | ||
187 | private function cleanAttributeBoolean(Configuration $configuration, Element $element, LoggerInterface $logger) |
|
188 | { |
|
189 | if ($this->value !== true) { |
|
190 | $logger->debug('Within ' . $element . ', the attribute "' . $this->name . '" is a boolean attribute. The value has been removed.'); |
|
191 | $this->value = true; |
|
192 | } |
|
193 | ||
194 | return true; |
|
195 | } |
|
196 | ||
197 | private function cleanAttributeInteger(Configuration $configuration, Element $element, LoggerInterface $logger) |
|
198 | { |
|
@@ 226-235 (lines=10) @@ | ||
223 | return true; |
|
224 | } |
|
225 | ||
226 | private function cleanAttributeString(Configuration $configuration, Element $element, LoggerInterface $logger) |
|
227 | { |
|
228 | if ($this->value === true) { |
|
229 | $logger->debug('Within ' . $element . ', the attribute "' . $this->name . '" requires a string value. The value is missing, therefore the attribute value is set to the attribute name.'); |
|
230 | ||
231 | $this->value = $this->name; |
|
232 | } |
|
233 | ||
234 | return true; |
|
235 | } |
|
236 | ||
237 | private function cleanAttributeUri(Configuration $configuration, Element $element, LoggerInterface $logger) |
|
238 | { |
|
@@ 237-246 (lines=10) @@ | ||
234 | return true; |
|
235 | } |
|
236 | ||
237 | private function cleanAttributeUri(Configuration $configuration, Element $element, LoggerInterface $logger) |
|
238 | { |
|
239 | // Check for empty attribute. |
|
240 | if ($this->value === true) { |
|
241 | $logger->debug('Within ' . $element . ', the attribute "' . $this->name . '" requires a URI. The value is invalid, therefore the attribute has been removed.'); |
|
242 | ||
243 | return false; |
|
244 | } |
|
245 | ||
246 | /// @todo |
|
247 | ||
248 | return true; |
|
249 | } |