Passed
Push — main ( 852296...87f7f4 )
by Sammy
24:08 queued 22:40
created
FileSystem.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
 
15 15
     public function path_to($filename)
16 16
     {
17
-        return $this->root_path . '/' . $filename;
17
+        return $this->root_path.'/'.$filename;
18 18
     }
19 19
 
20 20
     public function filenames($regex = null): array
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
             return [];
24 24
         }
25 25
 
26
-        $filenames = self::preg_scandir($this->root_path, $regex);// ID_SEQUENCENUMBER.ext
26
+        $filenames = self::preg_scandir($this->root_path, $regex); // ID_SEQUENCENUMBER.ext
27 27
         if (!is_null($filenames)) {
28 28
             sort($filenames);
29 29
         }
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
         if (is_link($path)) {
68 68
             $res = readlink($path);
69 69
             if ($res === false) {
70
-                throw new \Exception('readlink failed on ' . $path);
70
+                throw new \Exception('readlink failed on '.$path);
71 71
             }
72 72
 
73 73
             $path = $res;
@@ -146,6 +146,6 @@  discard block
 block discarded – undo
146 146
 
147 147
     public static function server_info()
148 148
     {
149
-        return 'PHP ' . PHP_VERSION . ' | OS ' . PHP_OS_FAMILY . ' (' . PHP_OS . ') | SAPI ' . PHP_SAPI . ' | GENESIS ' . date('Y-m-d h:i:s');
149
+        return 'PHP '.PHP_VERSION.' | OS '.PHP_OS_FAMILY.' ('.PHP_OS.') | SAPI '.PHP_SAPI.' | GENESIS '.date('Y-m-d h:i:s');
150 150
     }
151 151
 }
Please login to merge, or discard this patch.
FilePath.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
 
20 20
     public function __toString()
21 21
     {
22
-        return '' . $this->filepath;
22
+        return ''.$this->filepath;
23 23
     }
24 24
 
25 25
     public function dir(): string
Please login to merge, or discard this patch.
Text/INI.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,9 +11,9 @@
 block discarded – undo
11 11
 
12 12
         if (is_array(current($array))) { // with sections
13 13
             foreach ($array as $section => $data) {
14
-                $ret .= PHP_EOL . PHP_EOL . self::section($section);
14
+                $ret .= PHP_EOL.PHP_EOL.self::section($section);
15 15
                 foreach ($data as $key => $value) {
16
-                    $ret .= PHP_EOL . self::line($key, $value);
16
+                    $ret .= PHP_EOL.self::line($key, $value);
17 17
                 }
18 18
             }
19 19
         } else { // no section
Please login to merge, or discard this patch.
File.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
     public function __construct($path_to_file, $mode = 'r')
17 17
     {
18 18
         if (!FileSystem::exists($path_to_file) && self::requires_existing_file($mode)) {
19
-            throw new \Exception('FILE_MUST_ALREADY_EXIST (' . $this->filepath() . ', ' . $this->mode . ')');
19
+            throw new \Exception('FILE_MUST_ALREADY_EXIST ('.$this->filepath().', '.$this->mode.')');
20 20
         }
21 21
 
22 22
         $this->filepath = new FilePath($path_to_file);
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
     {
28 28
         $this->pointer = fopen($this->filepath, $this->mode);
29 29
         if ($this->pointer === false) {
30
-            throw new \Exception('FILE_OPEN_FAILURE (' . $this->filepath() . ', ' . $this->mode . ')');
30
+            throw new \Exception('FILE_OPEN_FAILURE ('.$this->filepath().', '.$this->mode.')');
31 31
         }
32 32
         return $this->pointer;
33 33
     }
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
         }
45 45
 
46 46
         if (fclose($this->pointer) === false) {
47
-            throw new \Exception('FILE_CLOSE_FAILURE (' . $this->filepath() . ', ' . $this->mode . ')');
47
+            throw new \Exception('FILE_CLOSE_FAILURE ('.$this->filepath().', '.$this->mode.')');
48 48
         }
49 49
 
50 50
         return true;
@@ -58,12 +58,12 @@  discard block
 block discarded – undo
58 58
     public function set_content($content)
59 59
     {
60 60
         if (is_writable($this->filepath) !== true && self::requires_existing_file($this->mode)) {
61
-            throw new \Exception('FILE_IS_NOT_WRITABLE (' . $this->filepath() . ', ' . $this->mode . ')');
61
+            throw new \Exception('FILE_IS_NOT_WRITABLE ('.$this->filepath().', '.$this->mode.')');
62 62
         }
63 63
 
64 64
         $this->open();
65 65
         if (fwrite($this->pointer, $content) === false) {
66
-            throw new \Exception('FILE_WRITE_FAILURE (' . $this->filepath() . ', ' . $this->mode . ')');
66
+            throw new \Exception('FILE_WRITE_FAILURE ('.$this->filepath().', '.$this->mode.')');
67 67
         }
68 68
         $this->close();
69 69
     }
Please login to merge, or discard this patch.