|
@@ 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( |
| 191 |
|
'Within ' . $element . ', the attribute "' . $this->name . |
| 192 |
|
'" is a boolean attribute. The value has been removed.' |
| 193 |
|
); |
| 194 |
|
$this->value = true; |
| 195 |
|
} |
| 196 |
|
|
| 197 |
|
return true; |
| 198 |
|
} |
|
@@ 233-242 (lines=10) @@
|
| 230 |
|
return true; |
| 231 |
|
} |
| 232 |
|
|
| 233 |
|
private function cleanAttributeString(Configuration $configuration, Element $element, LoggerInterface $logger) |
| 234 |
|
{ |
| 235 |
|
if ($this->value === true) { |
| 236 |
|
$logger->debug( |
| 237 |
|
'Within ' . $element . ', the attribute "' . $this->name . '" requires a string value. The value is missing, therefore the attribute value is set to the attribute name.' |
| 238 |
|
); |
| 239 |
|
|
| 240 |
|
$this->value = $this->name; |
| 241 |
|
} |
| 242 |
|
|
| 243 |
|
return true; |
| 244 |
|
} |
| 245 |
|
|
|
@@ 246-255 (lines=10) @@
|
| 243 |
|
return true; |
| 244 |
|
} |
| 245 |
|
|
| 246 |
|
private function cleanAttributeUri(Configuration $configuration, Element $element, LoggerInterface $logger) |
| 247 |
|
{ |
| 248 |
|
// Check for empty attribute. |
| 249 |
|
if ($this->value === true) { |
| 250 |
|
$logger->debug( |
| 251 |
|
'Within ' . $element . ', the attribute "' . $this->name . '" requires a URI. The value is invalid, therefore the attribute has been removed.' |
| 252 |
|
); |
| 253 |
|
|
| 254 |
|
return false; |
| 255 |
|
} |
| 256 |
|
|
| 257 |
|
/// @todo |
| 258 |
|
|