@@ -20,7 +20,6 @@ |
||
20 | 20 | use Balloon\Filesystem\Node\Collection; |
21 | 21 | use Balloon\Filesystem\Node\File; |
22 | 22 | use Balloon\Server; |
23 | -use Balloon\Server\User; |
|
24 | 23 | use Micro\Http\Response; |
25 | 24 | |
26 | 25 | class Document extends Controller |
@@ -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 |
@@ -12,7 +12,6 @@ |
||
12 | 12 | |
13 | 13 | namespace Balloon\App\Preview; |
14 | 14 | |
15 | -use Balloon\Exception; |
|
16 | 15 | use Balloon\Filesystem\Node\File; |
17 | 16 | use Balloon\Hook\AbstractHook; |
18 | 17 | use MongoDB\GridFS\Exception\FileNotFoundException; |
@@ -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 |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | { |
78 | 78 | $role_decorator = $this->role_decorator; |
79 | 79 | |
80 | - $string = preg_replace_callback('/(\{user\.(([a-z]\.*)+)\})/', function ($match) use ($user, $role_decorator) { |
|
80 | + $string = preg_replace_callback('/(\{user\.(([a-z]\.*)+)\})/', function($match) use ($user, $role_decorator) { |
|
81 | 81 | return $role_decorator->decorate($user, [$match[2]])[$match[2]]; |
82 | 82 | }, $this->{$type}); |
83 | 83 |
@@ -14,7 +14,6 @@ |
||
14 | 14 | use Balloon\App\Notification\NodeMessage; |
15 | 15 | use Balloon\App\Notification\Notifier; |
16 | 16 | use Balloon\App\Notification\TemplateHandler; |
17 | -use Balloon\Async\Mail; |
|
18 | 17 | use Balloon\Filesystem\Node\Collection; |
19 | 18 | use Balloon\Filesystem\Node\NodeInterface; |
20 | 19 | use Balloon\Hook\AbstractHook; |
@@ -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 |
@@ -11,7 +11,6 @@ |
||
11 | 11 | |
12 | 12 | namespace Balloon\Bootstrap; |
13 | 13 | |
14 | -use Balloon\App; |
|
15 | 14 | use Composer\Autoload\ClassLoader as Composer; |
16 | 15 | use ErrorException; |
17 | 16 | use Micro\Container\Container; |
@@ -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 |
@@ -181,7 +181,7 @@ discard block |
||
181 | 181 | */ |
182 | 182 | protected function setErrorHandler(): self |
183 | 183 | { |
184 | - set_error_handler(function ($severity, $message, $file, $line) { |
|
184 | + set_error_handler(function($severity, $message, $file, $line) { |
|
185 | 185 | $log = $message.' in '.$file.':'.$line; |
186 | 186 | |
187 | 187 | if (null === $this->container) { |
@@ -13,7 +13,6 @@ |
||
13 | 13 | |
14 | 14 | use Balloon\Filesystem\Node\File; |
15 | 15 | use Balloon\Filesystem\Storage\Adapter\AdapterInterface; |
16 | -use Balloon\Filesystem\Storage\Adapter\Gridfs; |
|
17 | 16 | use Psr\Log\LoggerInterface; |
18 | 17 | |
19 | 18 | class Storage |
@@ -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 |