@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /** |
6 | 6 | * Balloon |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /** |
6 | 6 | * Balloon |
@@ -215,7 +215,7 @@ discard block |
||
215 | 215 | */ |
216 | 216 | protected function _format(string $message, string $format, string $date_format, string $level, array $context = []): string |
217 | 217 | { |
218 | - $parsed = preg_replace_callback('/(\{(([a-z]\.*)+)\})/', function ($match) use ($message, $level, $date_format, $context) { |
|
218 | + $parsed = preg_replace_callback('/(\{(([a-z]\.*)+)\})/', function($match) use ($message, $level, $date_format, $context) { |
|
219 | 219 | $key = ''; |
220 | 220 | $context = array_merge($this->context, $context); |
221 | 221 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /** |
6 | 6 | * Balloon |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /** |
6 | 6 | * Balloon |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /** |
6 | 6 | * Balloon |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | foreach ($config as $option => $value) { |
45 | 45 | switch ($option) { |
46 | 46 | case 'file': |
47 | - $this->file = (string) $value; |
|
47 | + $this->file = (string)$value; |
|
48 | 48 | unset($config[$option]); |
49 | 49 | |
50 | 50 | break; |
@@ -74,6 +74,6 @@ discard block |
||
74 | 74 | |
75 | 75 | $result = fwrite($this->resource, $message."\n"); |
76 | 76 | |
77 | - return (bool) $result; |
|
77 | + return (bool)$result; |
|
78 | 78 | } |
79 | 79 | } |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /** |
6 | 6 | * Balloon |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | switch ($option) { |
89 | 89 | case 'date_format': |
90 | 90 | case 'format': |
91 | - $this->{$option} = (string) $value; |
|
91 | + $this->{$option} = (string)$value; |
|
92 | 92 | |
93 | 93 | break; |
94 | 94 | case 'level': |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | throw new Exception('log level must be a number'); |
97 | 97 | } |
98 | 98 | |
99 | - $this->level = (int) $value; |
|
99 | + $this->level = (int)$value; |
|
100 | 100 | |
101 | 101 | break; |
102 | 102 | default: |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /** |
6 | 6 | * Balloon |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /** |
6 | 6 | * Balloon |
@@ -51,17 +51,17 @@ discard block |
||
51 | 51 | foreach ($config as $option => $value) { |
52 | 52 | switch ($option) { |
53 | 53 | case 'ident': |
54 | - $this->ident = (string) $value; |
|
54 | + $this->ident = (string)$value; |
|
55 | 55 | unset($config[$option]); |
56 | 56 | |
57 | 57 | break; |
58 | 58 | case 'option': |
59 | - $this->option = (int) (string) $value; |
|
59 | + $this->option = (int)(string)$value; |
|
60 | 60 | unset($config[$option]); |
61 | 61 | |
62 | 62 | break; |
63 | 63 | case 'facility': |
64 | - $this->facility = (int) (string) $value; |
|
64 | + $this->facility = (int)(string)$value; |
|
65 | 65 | unset($config[$option]); |
66 | 66 | |
67 | 67 | break; |