@@ -69,6 +69,9 @@ |
||
| 69 | 69 | */ |
| 70 | 70 | protected $parent; |
| 71 | 71 | |
| 72 | + /** |
|
| 73 | + * @param string $value |
|
| 74 | + */ |
|
| 72 | 75 | final public static function filterValue($value) |
| 73 | 76 | { |
| 74 | 77 | $value = mb_strtolower($value); |
@@ -153,7 +153,7 @@ |
||
| 153 | 153 | |
| 154 | 154 | public function getValueWithParents($withRoot = false, $useNames = false) |
| 155 | 155 | { |
| 156 | - $parts = [ ($useNames ? $this->getName() : $this->getValue()) ]; |
|
| 156 | + $parts = [($useNames ? $this->getName() : $this->getValue())]; |
|
| 157 | 157 | $item = $this; |
| 158 | 158 | |
| 159 | 159 | while ($item = $item->getParent()) { |
@@ -222,7 +222,7 @@ |
||
| 222 | 222 | */ |
| 223 | 223 | private function findLeaf(NodeInterface $leaf, $value) |
| 224 | 224 | { |
| 225 | - $parts = is_array($value) ? $value : explode($this->shouldUseNames() ? ' | ': '-', $value); |
|
| 225 | + $parts = is_array($value) ? $value : explode($this->shouldUseNames() ? ' | ' : '-', $value); |
|
| 226 | 226 | $value = array_shift($parts); |
| 227 | 227 | |
| 228 | 228 | /* @var NodeInterface $item */ |