@@ -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 |
@@ -694,7 +694,7 @@ discard block |
||
| 694 | 694 | * @param string $path |
| 695 | 695 | * @param bool $new |
| 696 | 696 | * |
| 697 | - * @return bool |
|
| 697 | + * @return string |
|
| 698 | 698 | */ |
| 699 | 699 | protected function verifyFile(?string $path, bool $new = false): string |
| 700 | 700 | { |
@@ -827,7 +827,7 @@ discard block |
||
| 827 | 827 | /** |
| 828 | 828 | * Finalize put request. |
| 829 | 829 | * |
| 830 | - * @param resource|string $file |
|
| 830 | + * @param string|null $file |
|
| 831 | 831 | * @param bool $new |
| 832 | 832 | * @param array $attributes |
| 833 | 833 | * |
@@ -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 |
@@ -45,14 +45,14 @@ discard block |
||
| 45 | 45 | * @param array |
| 46 | 46 | **/ |
| 47 | 47 | protected $temp_files = [ |
| 48 | - '/^\._(.*)$/', // OS/X resource forks |
|
| 49 | - '/^.DS_Store$/', // OS/X custom folder settings |
|
| 48 | + '/^\._(.*)$/', // OS/X resource forks |
|
| 49 | + '/^.DS_Store$/', // OS/X custom folder settings |
|
| 50 | 50 | '/^desktop.ini$/', // Windows custom folder settings |
| 51 | - '/^Thumbs.db$/', // Windows thumbnail cache |
|
| 52 | - '/^.(.*).swpx$/', // ViM temporary files |
|
| 53 | - '/^.(.*).swx$/', // ViM temporary files |
|
| 54 | - '/^.(.*).swp$/', // ViM temporary files |
|
| 55 | - '/^\.dat(.*)$/', // Smultron seems to create these |
|
| 51 | + '/^Thumbs.db$/', // Windows thumbnail cache |
|
| 52 | + '/^.(.*).swpx$/', // ViM temporary files |
|
| 53 | + '/^.(.*).swx$/', // ViM temporary files |
|
| 54 | + '/^.(.*).swp$/', // ViM temporary files |
|
| 55 | + '/^\.dat(.*)$/', // Smultron seems to create these |
|
| 56 | 56 | '/^~lock.(.*)#$/', // Windows 7 lockfiles |
| 57 | 57 | ]; |
| 58 | 58 | |
@@ -108,14 +108,13 @@ |
||
| 108 | 108 | * |
| 109 | 109 | * @param bool $reference |
| 110 | 110 | * |
| 111 | - * @return ObjectId |
|
| 111 | + * @return ObjectId|null |
|
| 112 | 112 | */ |
| 113 | 113 | public function getShareId(bool $reference = false): ?ObjectId; |
| 114 | 114 | |
| 115 | 115 | /** |
| 116 | 116 | * Get share node. |
| 117 | 117 | * |
| 118 | - * @param bool $reference |
|
| 119 | 118 | * |
| 120 | 119 | * @return Collection |
| 121 | 120 | */ |
@@ -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 |
@@ -75,7 +75,7 @@ |
||
| 75 | 75 | /** |
| 76 | 76 | * Constructor. |
| 77 | 77 | * |
| 78 | - * @param Elasticsarch $es |
|
| 78 | + * @param Elasticsearch $es |
|
| 79 | 79 | * @param Storage $storage |
| 80 | 80 | * @param Server $server |
| 81 | 81 | * @param NodeAttributeDecorator $decorator |
@@ -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 |
@@ -353,7 +353,7 @@ discard block |
||
| 353 | 353 | $content = base64_encode(stream_get_contents($node->get())); |
| 354 | 354 | |
| 355 | 355 | $metadata = $meta['metadata']; |
| 356 | - array_walk_recursive($metadata, function (&$value) { $value = (string) $value; }); |
|
| 356 | + array_walk_recursive($metadata, function(&$value) { $value = (string) $value; }); |
|
| 357 | 357 | |
| 358 | 358 | $params = [ |
| 359 | 359 | 'index' => $this->es->getIndex(), |
@@ -173,7 +173,7 @@ discard block |
||
| 173 | 173 | /** |
| 174 | 174 | * Configure cli logger. |
| 175 | 175 | * |
| 176 | - * @return Cli |
|
| 176 | + * @return Console |
|
| 177 | 177 | */ |
| 178 | 178 | protected function configureLogger(?int $level = null): self |
| 179 | 179 | { |
@@ -264,7 +264,6 @@ discard block |
||
| 264 | 264 | /** |
| 265 | 265 | * Start. |
| 266 | 266 | * |
| 267 | - * @param array $options |
|
| 268 | 267 | * |
| 269 | 268 | * @return bool |
| 270 | 269 | */ |
@@ -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 |