@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | */ |
| 50 | 50 | public function write($message, string $type = null) |
| 51 | 51 | { |
| 52 | - if ($this->handle = fopen(getcwd() . DS. DIR_STORAGE.$this->filename, 'a')) { |
|
| 52 | + if ($this->handle = fopen(getcwd() . DS . DIR_STORAGE . $this->filename, 'a')) { |
|
| 53 | 53 | if (is_array($message) && $type == 'A') { |
| 54 | 54 | foreach ($message as $key => $value) { |
| 55 | 55 | fwrite($this->handle, date('Y-m-d G:i:s') . ' - ' . print_r($key . " -> " . $value, true) . "\n"); |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | |
| 73 | 73 | fclose($this->handle); |
| 74 | 74 | if ($this->filename == true) { |
| 75 | - chmod(getcwd() . DS. DIR_STORAGE.$this->filename, 0755); |
|
| 75 | + chmod(getcwd() . DS . DIR_STORAGE . $this->filename, 0755); |
|
| 76 | 76 | } |
| 77 | 77 | } |
| 78 | 78 | |
@@ -14,10 +14,10 @@ |
||
| 14 | 14 | private function createWritableFolder($file) |
| 15 | 15 | { |
| 16 | 16 | $currPath = ''; |
| 17 | - $path = explode( "/" , $file ); |
|
| 18 | - $currPath .= trim( $path[0] ); |
|
| 19 | - if($currPath != '.' && $currPath != '/' ) { |
|
| 20 | - @mkdir( DIR_STORAGE.$currPath , 0777 , true ); |
|
| 17 | + $path = explode("/", $file); |
|
| 18 | + $currPath .= trim($path[0]); |
|
| 19 | + if ($currPath != '.' && $currPath != '/') { |
|
| 20 | + @mkdir(DIR_STORAGE . $currPath, 0777, true); |
|
| 21 | 21 | } |
| 22 | 22 | |
| 23 | 23 | } |