| @@ 739-744 (lines=6) @@ | ||
| 736 | // Passed report file is a file in the current directory. |
|
| 737 | $this->values['reportFile'] = getcwd().'/'.basename($this->values['reportFile']); |
|
| 738 | } else { |
|
| 739 | if ($dir{0} === '/') { |
|
| 740 | // An absolute path. |
|
| 741 | $dir = PHP_CodeSniffer::realpath($dir); |
|
| 742 | } else { |
|
| 743 | $dir = PHP_CodeSniffer::realpath(getcwd().'/'.$dir); |
|
| 744 | } |
|
| 745 | ||
| 746 | if ($dir !== false) { |
|
| 747 | // Report file path is relative. |
|
| @@ 780-785 (lines=6) @@ | ||
| 777 | // Passed report file is a filename in the current directory. |
|
| 778 | $output = getcwd().'/'.basename($output); |
|
| 779 | } else { |
|
| 780 | if ($dir{0} === '/') { |
|
| 781 | // An absolute path. |
|
| 782 | $dir = PHP_CodeSniffer::realpath($dir); |
|
| 783 | } else { |
|
| 784 | $dir = PHP_CodeSniffer::realpath(getcwd().'/'.$dir); |
|
| 785 | } |
|
| 786 | ||
| 787 | if ($dir !== false) { |
|
| 788 | // Report file path is relative. |
|