@@ -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 |
@@ -148,7 +148,7 @@ |
||
| 148 | 148 | * @param ObjectId $session_id |
| 149 | 149 | * @param string $access_token |
| 150 | 150 | * |
| 151 | - * @return Session |
|
| 151 | + * @return Session|null |
|
| 152 | 152 | */ |
| 153 | 153 | public static function getByAccessToken(Server $server, ObjectId $session_id, string $access_token): self |
| 154 | 154 | { |
@@ -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 |
@@ -35,7 +35,6 @@ |
||
| 35 | 35 | /** |
| 36 | 36 | * Constructor. |
| 37 | 37 | * |
| 38 | - * @param App $app |
|
| 39 | 38 | * @param Server $server |
| 40 | 39 | */ |
| 41 | 40 | public function __construct(PreviewCreator $preview, Server $server) |
@@ -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 |
@@ -31,8 +31,6 @@ |
||
| 31 | 31 | /** |
| 32 | 32 | * Constructor. |
| 33 | 33 | * |
| 34 | - * @param Router $router |
|
| 35 | - * @param Hook $hook |
|
| 36 | 34 | */ |
| 37 | 35 | public function __construct(Database $db, LoggerInterface $logger, Converter $converter) |
| 38 | 36 | { |
@@ -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 |
@@ -32,8 +32,7 @@ |
||
| 32 | 32 | * Create result. |
| 33 | 33 | * |
| 34 | 34 | * @param string $path |
| 35 | - * @param resource $stream |
|
| 36 | - * @param null|mixed $resource |
|
| 35 | + * @param resource $resource |
|
| 37 | 36 | */ |
| 38 | 37 | public function __construct(string $path, $resource = null) |
| 39 | 38 | { |
@@ -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 |
@@ -29,7 +29,6 @@ |
||
| 29 | 29 | /** |
| 30 | 30 | * Delete file. |
| 31 | 31 | * |
| 32 | - * @param string $id |
|
| 33 | 32 | * @param array $attributes |
| 34 | 33 | * |
| 35 | 34 | * @return bool |
@@ -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 |
@@ -424,8 +424,8 @@ |
||
| 424 | 424 | ]; |
| 425 | 425 | |
| 426 | 426 | $node->getFilesystem()->getDatabase()->delta->updateMany([ |
| 427 | - 'node' => [ |
|
| 428 | - '$in' => $toset, |
|
| 427 | + 'node' => [ |
|
| 428 | + '$in' => $toset, |
|
| 429 | 429 | ], |
| 430 | 430 | ], $action); |
| 431 | 431 | |
@@ -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 |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | public function preCopyFile( |
| 117 | 117 | File $node, |
| 118 | 118 | Collection $parent, |
| 119 | - int $conflict, |
|
| 119 | + int $conflict, |
|
| 120 | 120 | ?string $recursion, |
| 121 | 121 | bool $recursion_first |
| 122 | 122 | ): void { |
@@ -129,7 +129,7 @@ discard block |
||
| 129 | 129 | File $node, |
| 130 | 130 | Collection $parent, |
| 131 | 131 | File $new_node, |
| 132 | - int $conflict, |
|
| 132 | + int $conflict, |
|
| 133 | 133 | ?string $recursion, |
| 134 | 134 | bool $recursion_first |
| 135 | 135 | ): void { |
@@ -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 |
@@ -206,7 +206,7 @@ discard block |
||
| 206 | 206 | public function preCopyFile( |
| 207 | 207 | File $node, |
| 208 | 208 | Collection $parent, |
| 209 | - int $conflict, |
|
| 209 | + int $conflict, |
|
| 210 | 210 | ?string $recursion, |
| 211 | 211 | bool $recursion_first |
| 212 | 212 | ): void; |
@@ -227,7 +227,7 @@ discard block |
||
| 227 | 227 | File $node, |
| 228 | 228 | Collection $parent, |
| 229 | 229 | File $new_node, |
| 230 | - int $conflict, |
|
| 230 | + int $conflict, |
|
| 231 | 231 | ?string $recursion, |
| 232 | 232 | bool $recursion_first |
| 233 | 233 | ): void; |
@@ -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 |