Completed
Branch master (08b17b)
by Raffael
11:28 queued 07:31
created
src/app/Balloon.App.Notification/Hook/Subscription.php 3 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
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)
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,6 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /**
6 6
  * balloon
Please login to merge, or discard this patch.
src/app/Balloon.App.Notification/TemplateHandler.php 2 patches
Doc Comments   +2 added lines, -7 removed lines patch added patch discarded remove patch
@@ -218,8 +218,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
      */
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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]);
Please login to merge, or discard this patch.
src/lib/Filesystem/EventAttributeDecorator.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /**
6 6
  * balloon
Please login to merge, or discard this patch.
src/lib/Hook.php 2 patches
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,6 @@
 block discarded – undo
44 44
     /**
45 45
      * Inject hook.
46 46
      *
47
-     * @param HookInterface $adapter
48 47
      *
49 48
      * @return Hook
50 49
      */
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /**
6 6
  * balloon
Please login to merge, or discard this patch.
src/lib/Auth/Adapter/Basic/Db.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /**
6 6
  * balloon
Please login to merge, or discard this patch.
src/lib/Filesystem/Acl/Exception/Forbidden.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /**
6 6
  * balloon
Please login to merge, or discard this patch.
src/lib/Filesystem/Acl/Exception.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /**
6 6
  * balloon
Please login to merge, or discard this patch.
src/lib/Filesystem/Exception.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /**
6 6
  * balloon
Please login to merge, or discard this patch.
src/lib/Filesystem/Storage.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /**
6 6
  * balloon
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,6 @@
 block discarded – undo
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
Please login to merge, or discard this patch.