Completed
Push — master ( 0cb573...08eb48 )
by
unknown
12s
created
src/Loggers/VarDumpLogger.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
      * @param array $context
17 17
      * @return void
18 18
      */
19
-    public function log($level, string|Stringable $message, array $context = []): void
19
+    public function log($level, string | Stringable $message, array $context = []): void
20 20
     {
21 21
         var_dump([
22 22
             'level' => $level,
Please login to merge, or discard this patch.
src/Loggers/FileLogger.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
      * @return void
29 29
      * @throws Exception
30 30
      */
31
-    public function log($level, string|Stringable $message, array $context = []): void
31
+    public function log($level, string | Stringable $message, array $context = []): void
32 32
     {
33 33
         $this->writeLog($level, $message, $context);
34 34
     }
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
      * @return void
41 41
      * @throws Exception
42 42
      */
43
-    private function writeLog($level, string|Stringable $message, array $context = []): void
43
+    private function writeLog($level, string | Stringable $message, array $context = []): void
44 44
     {
45 45
         if (empty($this->filePath)) {
46 46
             throw new Exception('file path not set');
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
 
49 49
         $logContent = $this->formatLogEntry($level, $message, $context);
50 50
 
51
-        file_put_contents($this->filePath, $logContent, FILE_APPEND );
51
+        file_put_contents($this->filePath, $logContent, FILE_APPEND);
52 52
     }
53 53
 
54 54
     /**
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
      * @param array $context
58 58
      * @return string
59 59
      */
60
-    private function formatLogEntry($level, string|Stringable $message, array $context): string
60
+    private function formatLogEntry($level, string | Stringable $message, array $context): string
61 61
     {
62 62
         return date('Y-m-d H:i:s')
63 63
             . " Level: " . $level . PHP_EOL
Please login to merge, or discard this patch.