Passed
Push — master ( a9f547...49cca7 )
by Raffael
04:18
created
src/lib/Filesystem/Node/AbstractNode.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -1044,6 +1044,7 @@
 block discarded – undo
1044 1044
 
1045 1045
     /**
1046 1046
      * Duplicate name with a uniqid within name.
1047
+     * @param string $name
1047 1048
      */
1048 1049
     protected function getDuplicateName(?string $name = null, ?string $class = null): string
1049 1050
     {
Please login to merge, or discard this patch.
src/lib/Filesystem/Node/AttributeDecorator.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
     /**
59 59
      * Init.
60 60
      *
61
-     * @param Decorator $role_decorator
61
+     * @param RoleAttributeDecorator $role_decorator
62 62
      */
63 63
     public function __construct(Server $server, Acl $acl, RoleAttributeDecorator $role_decorator)
64 64
     {
Please login to merge, or discard this patch.
src/lib/Filesystem/Node/Collection.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -255,7 +255,7 @@  discard block
 block discarded – undo
255 255
     /**
256 256
      * Get real id (reference).
257 257
      *
258
-     * @return ObjectId
258
+     * @return ObjectId|null
259 259
      */
260 260
     public function getRealId(): ?ObjectId
261 261
     {
@@ -752,7 +752,7 @@  discard block
 block discarded – undo
752 752
      * @param string $name
753 753
      * @param string $data
754 754
      *
755
-     * @return File
755
+     * @return string
756 756
      */
757 757
     public function createFile($name, $data = null): String
758 758
     {
Please login to merge, or discard this patch.
src/lib/Filesystem/Node/File.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -628,7 +628,7 @@  discard block
 block discarded – undo
628 628
      *
629 629
      * @param string $path
630 630
      *
631
-     * @return bool
631
+     * @return string
632 632
      */
633 633
     protected function verifyFile(?string $path, bool $new = false): string
634 634
     {
@@ -762,7 +762,7 @@  discard block
 block discarded – undo
762 762
     /**
763 763
      * Finalize put request.
764 764
      *
765
-     * @param resource|string $file
765
+     * @param string|null $file
766 766
      *
767 767
      * @return File
768 768
      */
Please login to merge, or discard this patch.
src/lib/Server.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -195,6 +195,7 @@
 block discarded – undo
195 195
 
196 196
     /**
197 197
      * Filesystem factory.
198
+     * @param User $user
198 199
      */
199 200
     public function getFilesystem(?User $user = null): Filesystem
200 201
     {
Please login to merge, or discard this patch.
src/lib/Server/AttributeDecorator.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -92,13 +92,13 @@  discard block
 block discarded – undo
92 92
         }
93 93
 
94 94
         return [
95
-            'created' => function ($role) use ($attributes) {
95
+            'created' => function($role) use ($attributes) {
96 96
                 return $attributes['created']->toDateTime()->format('c');
97 97
             },
98
-            'changed' => function ($role) use ($attributes) {
98
+            'changed' => function($role) use ($attributes) {
99 99
                 return $attributes['changed']->toDateTime()->format('c');
100 100
             },
101
-            'deleted' => function ($role) use ($attributes) {
101
+            'deleted' => function($role) use ($attributes) {
102 102
                 if (false === $attributes['deleted']) {
103 103
                     return null;
104 104
                 }
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
             'username' => (string) $attributes['username'],
145 145
             'name' => (string) $attributes['username'],
146 146
             'namespace' => isset($attributes['namespace']) ? (string) $attributes['namespace'] : null,
147
-            'mail' => function ($role) use ($attributes, $user) {
147
+            'mail' => function($role) use ($attributes, $user) {
148 148
                 if (!isset($attributes['mail'])) {
149 149
                     return null;
150 150
                 }
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
                 return null;
157 157
             },
158 158
             'locale' => isset($attributes['locale']) ? (string) $attributes['locale'] : null,
159
-            'quota' => function ($role) use ($attributes, $user) {
159
+            'quota' => function($role) use ($attributes, $user) {
160 160
                 if ($attributes['_id'] == $user->getId() || $user->isAdmin()) {
161 161
                     return $role->getQuotaUsage();
162 162
                 }
Please login to merge, or discard this patch.
src/app/Balloon.App.Notification/TemplateHandler.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@
 block discarded – undo
101 101
                 break;
102 102
                 default:
103 103
                     throw new InvalidArgumentException('invalid option '.$option.' given');
104
-             }
104
+                }
105 105
         }
106 106
 
107 107
         return $this;
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
      */
220 220
     protected function decorate(string $template, array $context): string
221 221
     {
222
-        return preg_replace_callback('/\{([^}\.]*)\}/', function ($match) use ($context) {
222
+        return preg_replace_callback('/\{([^}\.]*)\}/', function($match) use ($context) {
223 223
             $key = $match[1];
224 224
 
225 225
             if (isset($context[$key])) {
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
     {
236 236
         $decorator = $this->decorator;
237 237
 
238
-        return preg_replace_callback('/(\{node\.(([a-z]\.*)+)\})/', function ($match) use ($node, $decorator) {
238
+        return preg_replace_callback('/(\{node\.(([a-z]\.*)+)\})/', function($match) use ($node, $decorator) {
239 239
             $key = explode('.', $match[2]);
240 240
             $key = array_shift($key);
241 241
             $attrs = $decorator->decorate($node, [$key]);
@@ -251,7 +251,7 @@  discard block
 block discarded – undo
251 251
     {
252 252
         $role_decorator = $this->role_decorator;
253 253
 
254
-        return preg_replace_callback('/(\{user\.(([a-z]\.*)+)\})/', function ($match) use ($user, $role_decorator) {
254
+        return preg_replace_callback('/(\{user\.(([a-z]\.*)+)\})/', function($match) use ($user, $role_decorator) {
255 255
             $key = explode('.', $match[2]);
256 256
             $key = array_shift($key);
257 257
             $attrs = $role_decorator->decorate($user, [$key]);
Please login to merge, or discard this patch.
src/app/Balloon.App.Notification/Adapter/Mail.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -114,10 +114,10 @@
 block discarded – undo
114 114
         $body->setParts([$html, $plain]);
115 115
 
116 116
         $mail = (new Message())
117
-          ->setSubject($message->getSubject($receiver))
118
-          ->setBody($body)
119
-          ->setTo($address)
120
-          ->setEncoding('UTF-8');
117
+            ->setSubject($message->getSubject($receiver))
118
+            ->setBody($body)
119
+            ->setTo($address)
120
+            ->setEncoding('UTF-8');
121 121
 
122 122
         $type = $mail->getHeaders()->get('Content-Type');
123 123
         $type->setType('multipart/alternative');
Please login to merge, or discard this patch.
src/app/Balloon.App.Elasticsearch/NodeAttributeDecorator.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
             'directory' => $node instanceof Collection,
57 57
             'meta' => $node->getMetaAttributes(),
58 58
             'size' => $node->getSize(),
59
-            'parent' => function ($node, $requested) use ($attributes) {
59
+            'parent' => function($node, $requested) use ($attributes) {
60 60
                 $parent = $node->getParent();
61 61
 
62 62
                 if (null === $parent || $parent->isRoot()) {
@@ -69,14 +69,14 @@  discard block
 block discarded – undo
69 69
             'shared' => (string) $attributes['shared'],
70 70
             'created' => $attributes['created']->toDateTime()->format('c'),
71 71
             'changed' => $attributes['changed']->toDateTime()->format('c'),
72
-            'deleted' => function ($node, $requested) use ($attributes) {
72
+            'deleted' => function($node, $requested) use ($attributes) {
73 73
                 if (!$attributes['deleted']) {
74 74
                     return null;
75 75
                 }
76 76
 
77 77
                 return $attributes['deleted']->toDateTime()->format('c');
78 78
             },
79
-            'destroy' => function ($node, $requested) use ($attributes) {
79
+            'destroy' => function($node, $requested) use ($attributes) {
80 80
                 if (!$attributes['destroy']) {
81 81
                     return null;
82 82
                 }
Please login to merge, or discard this patch.