| @@ 30-34 (lines=5) @@ | ||
| 27 | array_pop($parts); |
|
| 28 | ||
| 29 | $filename = $node->getAttribute('filename'); |
|
| 30 | if (!empty($filename) |
|
| 31 | && false !== strpos($filename, DIRECTORY_SEPARATOR)) { |
|
| 32 | $parts = explode(DIRECTORY_SEPARATOR, realpath($filename)); |
|
| 33 | $filename = implode(DIRECTORY_SEPARATOR, array_splice($parts, -4)); |
|
| 34 | } |
|
| 35 | ||
| 36 | $compiler |
|
| 37 | ->write("/**\n") |
|
| @@ 39-43 (lines=5) @@ | ||
| 36 | array_pop($parts); |
|
| 37 | ||
| 38 | $filename = $node->getAttribute('filename'); |
|
| 39 | if (!empty($filename) |
|
| 40 | && false !== strpos($filename, DIRECTORY_SEPARATOR)) { |
|
| 41 | $parts = explode(DIRECTORY_SEPARATOR, realpath($filename)); |
|
| 42 | $filename = implode(DIRECTORY_SEPARATOR, array_splice($parts, -4)); |
|
| 43 | } |
|
| 44 | ||
| 45 | $compiler |
|
| 46 | ->write("/**\n") |
|