@@ -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 |
@@ -110,15 +110,15 @@ discard block |
||
| 110 | 110 | |
| 111 | 111 | switch ($value['type']) { |
| 112 | 112 | case 'string': |
| 113 | - $attributes[$attr] = (string) $value['value']; |
|
| 113 | + $attributes[$attr] = (string)$value['value']; |
|
| 114 | 114 | |
| 115 | 115 | break; |
| 116 | 116 | case 'int': |
| 117 | - $attributes[$attr] = (int) $value['value']; |
|
| 117 | + $attributes[$attr] = (int)$value['value']; |
|
| 118 | 118 | |
| 119 | 119 | break; |
| 120 | 120 | case 'bool': |
| 121 | - $attributes[$attr] = (bool) $value['value']; |
|
| 121 | + $attributes[$attr] = (bool)$value['value']; |
|
| 122 | 122 | |
| 123 | 123 | break; |
| 124 | 124 | case 'binary': |
@@ -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 |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | */ |
| 87 | 87 | public static function isValidTimestamp(string $timestamp): bool |
| 88 | 88 | { |
| 89 | - return ((string) (int) $timestamp === $timestamp) |
|
| 89 | + return ((string)(int)$timestamp === $timestamp) |
|
| 90 | 90 | && ($timestamp <= PHP_INT_MAX) |
| 91 | 91 | && ($timestamp >= ~PHP_INT_MAX); |
| 92 | 92 | } |
@@ -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 |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | foreach ($config as $option => $value) { |
| 49 | 49 | switch ($option) { |
| 50 | 50 | case 'db': |
| 51 | - $this->db = (string) $value; |
|
| 51 | + $this->db = (string)$value; |
|
| 52 | 52 | |
| 53 | 53 | break; |
| 54 | 54 | default: |
@@ -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 |
@@ -155,7 +155,7 @@ discard block |
||
| 155 | 155 | throw new Exception('soffice option must be a path to an executable office suite'); |
| 156 | 156 | } |
| 157 | 157 | |
| 158 | - $this->soffice = (string) $value; |
|
| 158 | + $this->soffice = (string)$value; |
|
| 159 | 159 | |
| 160 | 160 | break; |
| 161 | 161 | case 'tmp': |
@@ -163,7 +163,7 @@ discard block |
||
| 163 | 163 | throw new Exception('tmp option must be a writable directory'); |
| 164 | 164 | } |
| 165 | 165 | |
| 166 | - $this->tmp = (string) $value; |
|
| 166 | + $this->tmp = (string)$value; |
|
| 167 | 167 | |
| 168 | 168 | break; |
| 169 | 169 | case 'timeout': |
@@ -171,11 +171,11 @@ discard block |
||
| 171 | 171 | throw new Exception('timeout option must be a number'); |
| 172 | 172 | } |
| 173 | 173 | |
| 174 | - $this->timeout = (string) $value; |
|
| 174 | + $this->timeout = (string)$value; |
|
| 175 | 175 | |
| 176 | 176 | break; |
| 177 | 177 | case 'preview_max_size': |
| 178 | - $this->preview_max_size = (int) $value; |
|
| 178 | + $this->preview_max_size = (int)$value; |
|
| 179 | 179 | |
| 180 | 180 | break; |
| 181 | 181 | default: |
@@ -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 |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | foreach ($config as $option => $value) { |
| 95 | 95 | switch ($option) { |
| 96 | 96 | case 'preview_max_size': |
| 97 | - $this->preview_max_size = (int) $value; |
|
| 97 | + $this->preview_max_size = (int)$value; |
|
| 98 | 98 | |
| 99 | 99 | break; |
| 100 | 100 | default: |
@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | */ |
| 111 | 111 | public function match(File $file): bool |
| 112 | 112 | { |
| 113 | - return (bool) preg_match($this->match_convert, $file->getContentType()); |
|
| 113 | + return (bool)preg_match($this->match_convert, $file->getContentType()); |
|
| 114 | 114 | } |
| 115 | 115 | |
| 116 | 116 | /** |
@@ -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 @@ |
||
| 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 |