Conditions | 4 |
Paths | 4 |
Total Lines | 16 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
57 | public function __toString() |
||
58 | { |
||
59 | if ($this->isCategory(LineInterface::CATEGORY_URI)) { |
||
60 | return $this->value; |
||
61 | } |
||
62 | |||
63 | if (is_bool($this->value)) { |
||
64 | if ($this->value) { |
||
65 | return $this->tag; |
||
66 | } |
||
67 | |||
68 | return ''; |
||
69 | } |
||
70 | |||
71 | return sprintf('%s:%s', $this->tag, $this->value); |
||
72 | } |
||
73 | |||
83 |