Conditions | 3 |
Paths | 3 |
Total Lines | 9 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
19 | public function __construct($logFilePath) |
||
20 | { |
||
21 | $this->logFilePath = $logFilePath; |
||
22 | $pathParts = explode('/', $logFilePath); |
||
23 | if (count($pathParts) > 1) { |
||
24 | unset($pathParts[count($pathParts) - 1]); |
||
25 | $this->logFileDir = implode('/', $pathParts); |
||
26 | if (!file_exists($this->logFileDir)) { |
||
27 | mkdir($this->logFileDir); |
||
28 | } |
||
37 |