Test Failed
Push — master ( e18acf...2713a2 )
by Marcio
12:48
created
src/Ballybran/Helpers/Log/FileLogger.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Ballybran/Helpers/Stdlib/CreateFiles.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -14,10 +14,10 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.