@@ -221,10 +221,10 @@ |
||
221 | 221 | { |
222 | 222 | $mail = new Message(); |
223 | 223 | $mail->setBody($body) |
224 | - ->setFrom($this->user->getAttributes()['mail'], $this->user->getAttributes()['username']) |
|
225 | - ->setSubject($subject) |
|
226 | - ->setTo($this->user->getAttributes()['mail'], 'Undisclosed Recipients') |
|
227 | - ->setBcc($receiver); |
|
224 | + ->setFrom($this->user->getAttributes()['mail'], $this->user->getAttributes()['username']) |
|
225 | + ->setSubject($subject) |
|
226 | + ->setTo($this->user->getAttributes()['mail'], 'Undisclosed Recipients') |
|
227 | + ->setBcc($receiver); |
|
228 | 228 | $this->async->addJob(Mail::class, $mail->toString()); |
229 | 229 | |
230 | 230 | return (new Response())->setCode(202); |
@@ -49,8 +49,8 @@ |
||
49 | 49 | $this->db->storage->updateOne( |
50 | 50 | ['_id' => $object['_id']], |
51 | 51 | [ |
52 | - '$unset' => ['sharelink' => 1], |
|
53 | - '$set' => ['app.Balloon\App\Sharelink' => $object['sharelink']], |
|
52 | + '$unset' => ['sharelink' => 1], |
|
53 | + '$set' => ['app.Balloon\App\Sharelink' => $object['sharelink']], |
|
54 | 54 | ] |
55 | 55 | ); |
56 | 56 | } |
@@ -73,7 +73,6 @@ discard block |
||
73 | 73 | /** |
74 | 74 | * Constructor. |
75 | 75 | * |
76 | - * @param Database $db |
|
77 | 76 | * @param LoggerInterface $logger |
78 | 77 | */ |
79 | 78 | public function __construct(SocketFactory $factory, LoggerInterface $logger, ?Iterable $config = null) |
@@ -131,7 +130,7 @@ discard block |
||
131 | 130 | * |
132 | 131 | * @param File $file |
133 | 132 | * |
134 | - * @return array |
|
133 | + * @return File |
|
135 | 134 | */ |
136 | 135 | public function scan(File $file): array |
137 | 136 | { |
@@ -50,7 +50,6 @@ |
||
50 | 50 | /** |
51 | 51 | * Constructor. |
52 | 52 | * |
53 | - * @param App $app |
|
54 | 53 | * @param Async $async |
55 | 54 | * @param LoggerInterface $logger |
56 | 55 | * @param GetOpt $getopt |
@@ -72,8 +72,7 @@ discard block |
||
72 | 72 | /** |
73 | 73 | * Constructor. |
74 | 74 | * |
75 | - * @param Elasticsarch $es |
|
76 | - * @param Storage $storage |
|
75 | + * @param Elasticsearch $es |
|
77 | 76 | * @param Server $server |
78 | 77 | * @param NodeAttributeDecorator $decorator |
79 | 78 | * @param LoggerInterface $logger |
@@ -439,7 +438,6 @@ discard block |
||
439 | 438 | /** |
440 | 439 | * Add or update blob. |
441 | 440 | * |
442 | - * @param File $node |
|
443 | 441 | * |
444 | 442 | * @return bool |
445 | 443 | */ |
@@ -480,8 +478,6 @@ discard block |
||
480 | 478 | * Prepare references update. |
481 | 479 | * |
482 | 480 | * @param array $references |
483 | - * @param array $new_references |
|
484 | - * @param array $new_share_references |
|
485 | 481 | * |
486 | 482 | * @return array |
487 | 483 | */ |
@@ -554,7 +550,6 @@ discard block |
||
554 | 550 | /** |
555 | 551 | * Update blob. |
556 | 552 | * |
557 | - * @param File $file |
|
558 | 553 | * @param array $meta |
559 | 554 | * |
560 | 555 | * @return bool |
@@ -341,7 +341,7 @@ |
||
341 | 341 | } |
342 | 342 | |
343 | 343 | $this->logger->debug('elasticsarch blob document ['.$result['_id'].'] has no references left, remove completely', [ |
344 | - 'category' => get_class($this), |
|
344 | + 'category' => get_class($this), |
|
345 | 345 | ]); |
346 | 346 | |
347 | 347 | return $this->deleteBlob($result['_id']); |
@@ -271,7 +271,7 @@ discard block |
||
271 | 271 | protected function addShare(Collection $collection): bool |
272 | 272 | { |
273 | 273 | $that = $this; |
274 | - $collection->doRecursiveAction(function ($node) use ($that) { |
|
274 | + $collection->doRecursiveAction(function($node) use ($that) { |
|
275 | 275 | if ($node instanceof Collection) { |
276 | 276 | $that->addShare($node); |
277 | 277 | } else { |
@@ -292,7 +292,7 @@ discard block |
||
292 | 292 | protected function deleteShare(Collection $collection): bool |
293 | 293 | { |
294 | 294 | $that = $this; |
295 | - $collection->doRecursiveAction(function ($node) use ($that) { |
|
295 | + $collection->doRecursiveAction(function($node) use ($that) { |
|
296 | 296 | if ($node instanceof Collection) { |
297 | 297 | $that->deleteShare($node); |
298 | 298 | } else { |
@@ -75,7 +75,7 @@ |
||
75 | 75 | |
76 | 76 | $this->logger->info('new group ['.$result.'] created', [ |
77 | 77 | 'category' => get_class($this), |
78 | - ]); |
|
78 | + ]); |
|
79 | 79 | |
80 | 80 | return true; |
81 | 81 | } |
@@ -49,7 +49,7 @@ |
||
49 | 49 | 'foreignField' => '_id', |
50 | 50 | 'localField' => 'history.storage._id', |
51 | 51 | 'as' => 'blob', |
52 | - ]], |
|
52 | + ]], |
|
53 | 53 | ]); |
54 | 54 | |
55 | 55 | foreach ($cursor as $object) { |
@@ -113,10 +113,10 @@ |
||
113 | 113 | $body->addPart($html); |
114 | 114 | |
115 | 115 | $mail = (new Message()) |
116 | - ->setSubject($message->getSubject($receiver)) |
|
117 | - ->setBody($body) |
|
118 | - ->setTo($address) |
|
119 | - ->setEncoding('UTF-8'); |
|
116 | + ->setSubject($message->getSubject($receiver)) |
|
117 | + ->setBody($body) |
|
118 | + ->setTo($address) |
|
119 | + ->setEncoding('UTF-8'); |
|
120 | 120 | |
121 | 121 | if (null === $sender) { |
122 | 122 | $mail->setFrom($this->sender_address, $this->sender_name); |
@@ -40,7 +40,7 @@ |
||
40 | 40 | * Cli. |
41 | 41 | * |
42 | 42 | * @param LoggerInterface $logger |
43 | - * @param Getopt $getopt |
|
43 | + * @param GetOpt $getopt |
|
44 | 44 | * @param ContainerInterface $container |
45 | 45 | */ |
46 | 46 | public function __construct(LoggerInterface $logger, GetOpt $getopt, ContainerInterface $container) |
@@ -171,7 +171,7 @@ |
||
171 | 171 | */ |
172 | 172 | protected function setExceptionHandler(): self |
173 | 173 | { |
174 | - set_exception_handler(function ($e) { |
|
174 | + set_exception_handler(function($e) { |
|
175 | 175 | $this->logger->emergency('uncaught exception: '.$e->getMessage(), [ |
176 | 176 | 'category' => get_class($this), |
177 | 177 | 'exception' => $e, |