Completed
Pull Request — master (#52)
by
unknown
03:05
created
src/app/Office/src/lib/Plugin/Office.php 2 patches
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -11,8 +11,6 @@
 block discarded – undo
11 11
 
12 12
 namespace Balloon\App\Office\Plugin;
13 13
 
14
-use Balloon\Exception;
15
-use Balloon\Logger;
16 14
 use Balloon\Config;
17 15
 use Balloon\Plugin\AbstractPlugin;
18 16
 use Balloon\Auth\Adapter\None as AuthNone;
Please login to merge, or discard this 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/app/Office/src/lib/Rest/v1/Document.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,6 @@
 block discarded – undo
11 11
 
12 12
 namespace Balloon\App\Office\Rest\v1;
13 13
 
14
-use Balloon\Exception;
15 14
 use Balloon\Controller;
16 15
 use Balloon\App\Office\Document as OfficeDoc;
17 16
 use Balloon\App\Office\Template;
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 /**
5 5
  * Balloon
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
      * @param   string $p
47 47
      * @return  Response
48 48
      */
49
-    public function get(?string $id=null, ?string $p=null): Response
49
+    public function get(? string $id = null, ? string $p = null) : Response
50 50
     {
51 51
         $node     = $this->fs->getNode($id, $p, 'File');
52 52
         $document = new OfficeDoc($this->fs->getDatabase(), $node);
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
      * @param   int $conflict
119 119
      * @return  Response
120 120
      */
121
-    public function put(string $name, string $type, ?string $collection=null, array $attributes=[], int $conflict=0): Response
121
+    public function put(string $name, string $type, ? string $collection = null, array $attributes = [], int $conflict = 0) : Response
122 122
     {
123 123
         $parent = $this->fs->getNode($collection, null, 'Collection', false, true);
124 124
         $tpl    = new Template($type);
Please login to merge, or discard this patch.
src/app/Office/src/lib/Session.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,6 @@
 block discarded – undo
11 11
 
12 12
 namespace Balloon\App\Office;
13 13
 
14
-use Balloon\Config;
15 14
 use Balloon\User;
16 15
 use Balloon\Filesystem;
17 16
 use \MongoDB\BSON\ObjectId;
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 /**
5 5
  * Balloon
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
      * @param   array $session
70 70
      * @return  void
71 71
      */
72
-    public function __construct(Filesystem $fs, Document $document, int $ttl=3600, $session=[])
72
+    public function __construct(Filesystem $fs, Document $document, int $ttl = 3600, $session = [])
73 73
     {
74 74
         $this->user = $fs->getUser();
75 75
         $this->fs   = $fs;
Please login to merge, or discard this patch.
src/app/Office/src/lib/Session/Member.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,6 @@
 block discarded – undo
11 11
 
12 12
 namespace Balloon\App\Office\Session;
13 13
 
14
-use Balloon\Config;
15 14
 use Balloon\User;
16 15
 use Balloon\Logger;
17 16
 use Balloon\Filesystem;
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 /**
5 5
  * Balloon
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
      * @param   Session $session
63 63
      * @return  void
64 64
      */
65
-    public function __construct(User $user, $ttl=3600, ?Session $session=null)
65
+    public function __construct(User $user, $ttl = 3600, ? Session $session = null)
66 66
     {
67 67
         $this->user = $user;
68 68
 
Please login to merge, or discard this patch.
src/lib/Balloon/App/AppInterface.php 2 patches
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -17,8 +17,6 @@
 block discarded – undo
17 17
 use Balloon\Auth;
18 18
 use Balloon\Filesystem;
19 19
 use Balloon\Config;
20
-use Balloon\Queue;
21
-use Balloon\Plugin;
22 20
 
23 21
 interface AppInterface
24 22
 {
Please login to merge, or discard this 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/Balloon/App/Share.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,6 @@
 block discarded – undo
14 14
 use Balloon\Exception;
15 15
 use Balloon\Config;
16 16
 use Balloon\App;
17
-use Balloon\Filesystem;
18 17
 use Balloon\Filesystem\Node\Collection;
19 18
 use Balloon\Http\Response;
20 19
 use Balloon\Http\Router\Route;
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 /**
5 5
  * Balloon
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
     public function start()
55 55
     {
56 56
         if (isset($_GET['t']) && !empty($_GET['t'])) {
57
-            $token    = $_GET['t'];
57
+            $token = $_GET['t'];
58 58
             if (isset($_GET['download'])) {
59 59
                 $download = (bool)$_GET['download'];
60 60
             } else {
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
                 }
92 92
 
93 93
                 if ($download === true || preg_match('#html#', $mime)) {
94
-                    header('Content-Disposition: attachment; filename*=UTF-8\'\'' .rawurlencode($name));
94
+                    header('Content-Disposition: attachment; filename*=UTF-8\'\''.rawurlencode($name));
95 95
                     header('Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0');
96 96
                     header('Content-Type: application/octet-stream');
97 97
                     header('Content-Length: '.$node->getSize());
Please login to merge, or discard this patch.
src/lib/Balloon/App/Webdav.php 2 patches
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -11,11 +11,8 @@
 block discarded – undo
11 11
 
12 12
 namespace Balloon\App;
13 13
 
14
-use Balloon\Exception;
15 14
 use Balloon\App;
16
-use Balloon\Filesystem;
17 15
 use Balloon\Auth;
18
-use Balloon\User;
19 16
 use \Sabre\DAV;
20 17
 use Balloon\Http\Router\Route;
21 18
 
Please login to merge, or discard this 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/Balloon/Auth/Adapter/AdapterInterface.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,6 @@
 block discarded – undo
11 11
 
12 12
 namespace Balloon\Auth\Adapter;
13 13
 
14
-use Balloon\Config;
15 14
 use \Psr\Log\LoggerInterface as Logger;
16 15
 
17 16
 interface AdapterInterface
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 /**
5 5
  * Balloon
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
      * @param   Logger $logger
24 24
      * @return  void
25 25
      */
26
-    public function __construct(?Iterable $config, Logger $logger);
26
+    public function __construct(? Iterable $config, Logger $logger);
27 27
 
28 28
 
29 29
     /**
Please login to merge, or discard this patch.
src/lib/Balloon/Auth/Adapter/Basic/Db.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,6 @@
 block discarded – undo
12 12
 namespace Balloon\Auth\Adapter\Basic;
13 13
 
14 14
 use \Psr\Log\LoggerInterface as Logger;
15
-use Balloon\Config;
16 15
 use Balloon\Auth\Adapter\AdapterInterface;
17 16
 use \MongoDB\Database;
18 17
 
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 /**
5 5
  * Balloon
@@ -57,9 +57,9 @@  discard block
 block discarded – undo
57 57
      * @param   Logger $logger
58 58
      * @return  void
59 59
      */
60
-    public function __construct(?Iterable $config, Logger $logger)
60
+    public function __construct(? Iterable $config, Logger $logger)
61 61
     {
62
-        $this->logger  = $logger;
62
+        $this->logger = $logger;
63 63
         $this->setOptions($config);
64 64
     }
65 65
 
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
      * @param   Iterable
71 71
      * @return  Ldap
72 72
      */
73
-    public function setOptions(?Iterable $config): Db
73
+    public function setOptions(? Iterable $config) : Db
74 74
     {
75 75
         if ($config === null) {
76 76
             return $this;
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
             return false;
198 198
         }
199 199
 
200
-        $this->identity  = $username;
200
+        $this->identity = $username;
201 201
         return true;
202 202
     }
203 203
 
Please login to merge, or discard this patch.