| @@ 187-198 (lines=12) @@ | ||
| 184 | // no break |
|
| 185 | ||
| 186 | case static::PATH: |
|
| 187 | case static::DIRECTORY: |
|
| 188 | $directory = $this->getDirectory(); |
|
| 189 | ||
| 190 | if ($result !== '' && $directory !== '' && substr($directory, 0, 1) !== static::DELIMITER_PATH) { |
|
| 191 | $result .= static::DELIMITER_PATH; |
|
| 192 | } |
|
| 193 | ||
| 194 | $result .= $directory; |
|
| 195 | ||
| 196 | if ($end === static::DIRECTORY) { |
|
| 197 | break; |
|
| 198 | } |
|
| 199 | ||
| 200 | // no break |
|
| 201 | ||
| @@ 202-213 (lines=12) @@ | ||
| 199 | ||
| 200 | // no break |
|
| 201 | ||
| 202 | case static::FILE: |
|
| 203 | $file = $this->getFile(); |
|
| 204 | ||
| 205 | if ($result !== '' && substr($result, -1) !== static::DELIMITER_PATH && $file !== '') { |
|
| 206 | $result .= static::DELIMITER_PATH; |
|
| 207 | } |
|
| 208 | ||
| 209 | $result .= $this->getFile(); |
|
| 210 | ||
| 211 | if ($end === static::FILE || $end === static::PATH) { |
|
| 212 | break; |
|
| 213 | } |
|
| 214 | ||
| 215 | // no break |
|
| 216 | ||