@@ -64,7 +64,7 @@ |
||
64 | 64 | /** |
65 | 65 | * Constructor. |
66 | 66 | * |
67 | - * @param Notification $notifier |
|
67 | + * @param Notifier $notifier |
|
68 | 68 | * @param Server $server |
69 | 69 | */ |
70 | 70 | public function __construct(Notifier $notifier, Server $server, TemplateHandler $template, LoggerInterface $logger, ?Iterable $config = null) |
@@ -19,7 +19,6 @@ |
||
19 | 19 | use Balloon\Filesystem\Node\NodeInterface; |
20 | 20 | use Balloon\Hook\AbstractHook; |
21 | 21 | use Balloon\Server; |
22 | -use Balloon\Server\User; |
|
23 | 22 | use InvalidArgumentException; |
24 | 23 | use MongoDB\BSON\UTCDateTime; |
25 | 24 | use Psr\Log\LoggerInterface; |
@@ -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 |
@@ -218,8 +218,6 @@ discard block |
||
218 | 218 | /** |
219 | 219 | * Replace variables. |
220 | 220 | * |
221 | - * @param string $type |
|
222 | - * @param User $user |
|
223 | 221 | */ |
224 | 222 | protected function decorate(string $template): string |
225 | 223 | { |
@@ -229,8 +227,6 @@ discard block |
||
229 | 227 | /** |
230 | 228 | * Replace variables. |
231 | 229 | * |
232 | - * @param string $type |
|
233 | - * @param User $user |
|
234 | 230 | */ |
235 | 231 | protected function decorateNode(string $template, NodeInterface $node): string |
236 | 232 | { |
@@ -248,7 +244,6 @@ discard block |
||
248 | 244 | /** |
249 | 245 | * Replace variables. |
250 | 246 | * |
251 | - * @param string $type |
|
252 | 247 | * @param User $user |
253 | 248 | */ |
254 | 249 | protected function decorateUser(string $template, User $user): string |
@@ -267,9 +262,9 @@ discard block |
||
267 | 262 | /** |
268 | 263 | * Get array value via string path. |
269 | 264 | * |
270 | - * @param iterable $arr |
|
265 | + * @param iterable $array |
|
271 | 266 | * @param string $path |
272 | - * @param string $seperator |
|
267 | + * @param string $separator |
|
273 | 268 | * |
274 | 269 | * @return mixed |
275 | 270 | */ |
@@ -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 |
@@ -227,7 +227,7 @@ discard block |
||
227 | 227 | { |
228 | 228 | $decorator = $this->decorator; |
229 | 229 | |
230 | - return preg_replace_callback('/(\{node\.(([a-z]\.*)+)\})/', function ($match) use ($node, $decorator) { |
|
230 | + return preg_replace_callback('/(\{node\.(([a-z]\.*)+)\})/', function($match) use ($node, $decorator) { |
|
231 | 231 | $key = explode('.', $match[2]); |
232 | 232 | $key = array_shift($key); |
233 | 233 | $attrs = $decorator->decorate($node, [$key]); |
@@ -246,7 +246,7 @@ discard block |
||
246 | 246 | { |
247 | 247 | $role_decorator = $this->role_decorator; |
248 | 248 | |
249 | - return preg_replace_callback('/(\{user\.(([a-z]\.*)+)\})/', function ($match) use ($user, $role_decorator) { |
|
249 | + return preg_replace_callback('/(\{user\.(([a-z]\.*)+)\})/', function($match) use ($user, $role_decorator) { |
|
250 | 250 | $key = explode('.', $match[2]); |
251 | 251 | $key = array_shift($key); |
252 | 252 | $attrs = $role_decorator->decorate($user, [$key]); |
@@ -100,7 +100,7 @@ |
||
100 | 100 | * @param string $attribute |
101 | 101 | * @param Closure $decorator |
102 | 102 | * |
103 | - * @return AttributeDecorator |
|
103 | + * @return EventAttributeDecorator |
|
104 | 104 | */ |
105 | 105 | public function addDecorator(string $attribute, Closure $decorator): self |
106 | 106 | { |
@@ -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 |
@@ -44,7 +44,6 @@ |
||
44 | 44 | /** |
45 | 45 | * Inject hook. |
46 | 46 | * |
47 | - * @param HookInterface $adapter |
|
48 | 47 | * |
49 | 48 | * @return Hook |
50 | 49 | */ |
@@ -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 |
@@ -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 |
@@ -14,7 +14,6 @@ |
||
14 | 14 | use Balloon\Filesystem\Node\File; |
15 | 15 | use Balloon\Filesystem\Node\NodeInterface; |
16 | 16 | use Balloon\Filesystem\Storage\Adapter\AdapterInterface; |
17 | -use Balloon\Filesystem\Storage\Adapter\Gridfs; |
|
18 | 17 | use Psr\Log\LoggerInterface; |
19 | 18 | |
20 | 19 | class Storage |