|
@@ 729-733 (lines=5) @@
|
| 726 |
|
$this->values['reportFile'] = substr($arg, 12); |
| 727 |
|
|
| 728 |
|
$dir = dirname($this->values['reportFile']); |
| 729 |
|
if (is_dir($dir) === false) { |
| 730 |
|
echo 'ERROR: The specified report file path "'.$this->values['reportFile'].'" points to a non-existent directory'.PHP_EOL.PHP_EOL; |
| 731 |
|
$this->printUsage(); |
| 732 |
|
exit(2); |
| 733 |
|
} |
| 734 |
|
|
| 735 |
|
if ($dir === '.') { |
| 736 |
|
// Passed report file is a file in the current directory. |
|
@@ 753-757 (lines=5) @@
|
| 750 |
|
} |
| 751 |
|
}//end if |
| 752 |
|
|
| 753 |
|
if (is_dir($this->values['reportFile']) === true) { |
| 754 |
|
echo 'ERROR: The specified report file path "'.$this->values['reportFile'].'" is a directory'.PHP_EOL.PHP_EOL; |
| 755 |
|
$this->printUsage(); |
| 756 |
|
exit(2); |
| 757 |
|
} |
| 758 |
|
} else if (substr($arg, 0, 13) === 'report-width=') { |
| 759 |
|
$this->values['reportWidth'] = $this->_validateReportWidth(substr($arg, 13)); |
| 760 |
|
} else if (substr($arg, 0, 7) === 'report=' |