Completed
Branch dev (bc6e47)
by Raffael
02:23
created
src/lib/Filesystem/Acl/Exception.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 /**
5 5
  * Balloon
Please login to merge, or discard this patch.
src/lib/Filesystem/Storage/Adapter/Gridfs.php 1 patch
Spacing   +5 added lines, -5 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
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
 
87 87
         $ref = $exists['metadata']['ref'];
88 88
 
89
-        if ($key = array_search((string) $file->getId(), array_column($ref, 'id'), true)) {
89
+        if ($key = array_search((string)$file->getId(), array_column($ref, 'id'), true)) {
90 90
             unset($ref[$key]);
91 91
         }
92 92
 
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
      *
173 173
      * @return array
174 174
      */
175
-    protected function getFileById(ObjectId $id): ?array
175
+    protected function getFileById(ObjectId $id): ? array
176 176
     {
177 177
         return $this->gridfs->findOne(['_id' => $id]);
178 178
     }
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
      *
185 185
      * @return array
186 186
      */
187
-    protected function getFileByHash(string $hash): ?array
187
+    protected function getFileByHash(string $hash): ? array
188 188
     {
189 189
         return $this->gridfs->findOne(['md5' => $hash]);
190 190
     }
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
             $meta['share_ref'] = [];
216 216
         }
217 217
 
218
-        set_time_limit((int) ($file->getSize() / 15339168));
218
+        set_time_limit((int)($file->getSize() / 15339168));
219 219
         $id = new ObjectId();
220 220
 
221 221
         //somehow mongo-connector does not catch metadata when set during uploadFromStream()
Please login to merge, or discard this patch.
src/lib/Filesystem/Storage.php 1 patch
Spacing   +5 added lines, -5 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
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
      *
84 84
      * @return AdapterInterface
85 85
      */
86
-    public function injectAdapter($adapter, ?string $name = null): AdapterAwareInterface
86
+    public function injectAdapter($adapter, ?string $name = null) : AdapterAwareInterface
87 87
     {
88 88
         if (!($adapter instanceof AdapterInterface)) {
89 89
             throw new Exception('adapter needs to implement AdapterInterface');
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
      *
155 155
      * @return bool
156 156
      */
157
-    public function hasFile(File $file, array $attributes, ?string $adapter = null): bool
157
+    public function hasFile(File $file, array $attributes, ?string $adapter = null) : bool
158 158
     {
159 159
         if (null === $adapter) {
160 160
             $adapter = 'gridfs';
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
      *
172 172
      * @return array
173 173
      */
174
-    public function getFileMeta(File $file, array $attributes, ?string $adapter = null): array
174
+    public function getFileMeta(File $file, array $attributes, ?string $adapter = null) : array
175 175
     {
176 176
         if (null === $adapter) {
177 177
             $adapter = 'gridfs';
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
      *
190 190
      * @return bool
191 191
      */
192
-    public function deleteFile(File $file, array $attributes, ?string $adapter = null): bool
192
+    public function deleteFile(File $file, array $attributes, ?string $adapter = null) : bool
193 193
     {
194 194
         if (null === $adapter) {
195 195
             $adapter = 'gridfs';
Please login to merge, or discard this patch.
src/lib/Exception/NotFound.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 /**
5 5
  * Balloon
Please login to merge, or discard this patch.
src/lib/Exception/InvalidArgument.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 /**
5 5
  * Balloon
Please login to merge, or discard this patch.
src/lib/Exception/Conflict.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 /**
5 5
  * Balloon
Please login to merge, or discard this patch.
src/lib/Exception/InsufficientStorage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 /**
5 5
  * Balloon
Please login to merge, or discard this patch.
src/lib/Bootstrap/Exception.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 /**
5 5
  * Balloon
Please login to merge, or discard this patch.
src/lib/Bootstrap/Http.php 1 patch
Spacing   +2 added lines, -2 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
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
      */
83 83
     protected function setExceptionHandler(): self
84 84
     {
85
-        set_exception_handler(function ($e) {
85
+        set_exception_handler(function($e) {
86 86
             $this->container->get(LoggerInterface::class)->emergency('uncaught exception: '.$e->getMessage(), [
87 87
                 'category' => get_class($this),
88 88
                 'exception' => $e,
Please login to merge, or discard this patch.