| Conditions | 3 |
| Paths | 3 |
| Total Lines | 17 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 38 | protected function initFormattingAttributes(\SimpleXMLElement $node) |
||
| 39 | { |
||
| 40 | $this->formattingOptions = new ArrayList(); |
||
| 41 | |||
| 42 | /** @var \SimpleXMLElement $attribute */ |
||
| 43 | foreach ($node->attributes() as $attribute) { |
||
| 44 | |||
| 45 | /** @var string $name */ |
||
| 46 | $name = (string) $attribute->getName(); |
||
| 47 | $value = (string) $attribute; |
||
| 48 | |||
| 49 | if (in_array($name, self::$formattingAttributes)) { |
||
| 50 | $this->formattingOptions->add($name, $value); |
||
| 51 | continue; |
||
| 52 | } |
||
| 53 | } |
||
| 54 | } |
||
| 55 | |||
| 80 | } |
The PSR-2 coding standard requires that all properties in a class have their visibility explicitly declared. If you declare a property using
the property is implicitly global.
To learn more about the PSR-2, please see the PHP-FIG site on the PSR-2.