@@ -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 |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | * |
| 66 | 66 | * @return Log |
| 67 | 67 | */ |
| 68 | - public function setOptions(? Iterable $config = null): self |
|
| 68 | + public function setOptions(? Iterable $config = null) : self |
|
| 69 | 69 | { |
| 70 | 70 | if (null === $config) { |
| 71 | 71 | return $this; |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | /** |
| 107 | 107 | * {@inheritdoc} |
| 108 | 108 | */ |
| 109 | - public function injectAdapter($adapter, ?string $name = null): AdapterAwareInterface |
|
| 109 | + public function injectAdapter($adapter, ?string $name = null) : AdapterAwareInterface |
|
| 110 | 110 | { |
| 111 | 111 | if (!($adapter instanceof AdapterInterface)) { |
| 112 | 112 | throw new Exception('adapter needs to implement AdapterInterface'); |
@@ -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 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | /** |
| 6 | 6 | * Balloon |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | * |
| 34 | 34 | * @return AdapterInterface |
| 35 | 35 | */ |
| 36 | - public function setOptions(? Iterable $config = null): AdapterInterface |
|
| 36 | + public function setOptions(? Iterable $config = null) : AdapterInterface |
|
| 37 | 37 | { |
| 38 | 38 | if (null === $config) { |
| 39 | 39 | $this->resource = fopen($this->file, 'a'); |
@@ -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 |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | * |
| 79 | 79 | * @return AdapterInterface |
| 80 | 80 | */ |
| 81 | - public function setOptions(? Iterable $config = null): AdapterInterface |
|
| 81 | + public function setOptions(? Iterable $config = null) : AdapterInterface |
|
| 82 | 82 | { |
| 83 | 83 | if (null === $config) { |
| 84 | 84 | return $this; |
@@ -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 |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | * |
| 43 | 43 | * @return AdapterInterface |
| 44 | 44 | */ |
| 45 | - public function setOptions(? Iterable $config = null): AdapterInterface |
|
| 45 | + public function setOptions(? Iterable $config = null) : AdapterInterface |
|
| 46 | 46 | { |
| 47 | 47 | if (null === $config) { |
| 48 | 48 | return $this; |
@@ -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 = (string) $value; |
|
| 64 | + $this->facility = (string)$value; |
|
| 65 | 65 | unset($config[$option]); |
| 66 | 66 | |
| 67 | 67 | break; |
@@ -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 |