Completed
Pull Request — master (#90)
by
unknown
02:52
created
src/lib/Balloon/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/Balloon/Http.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/app/Office/src/lib/Rest/v1/Session.php 1 patch
Spacing   +4 added lines, -4 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
@@ -63,12 +63,12 @@  discard block
 block discarded – undo
63 63
      * @param   string $p
64 64
      * @return  Response
65 65
      */
66
-    public function post(?string $id=null, ?string $p=null): Response
66
+    public function post(?string $id = null, ?string $p = null) : Response
67 67
     {
68 68
         $node     = $this->fs->getNode($id, $p, 'File');
69 69
         $document = new Document($this->fs->getDatabase(), $node);
70 70
     
71
-        $session= new WopiSession($this->fs, $document, (int)$this->config->apps->Office->config->token_ttl);
71
+        $session = new WopiSession($this->fs, $document, (int)$this->config->apps->Office->config->token_ttl);
72 72
         $member = new Member($this->fs->getUser(), (int)$this->config->apps->Office->config->token_ttl);
73 73
         $session->join($member)
74 74
                 ->store();
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
      */
108 108
     public function postJoin(string $id): Response
109 109
     {
110
-        $session= WopiSession::getSessionById($this->fs, $this->parseId($id));
110
+        $session = WopiSession::getSessionById($this->fs, $this->parseId($id));
111 111
         $member = new Member($this->fs->getUser(), (int)$this->config->apps->Office->config->token_ttl);
112 112
         $session->join($member)
113 113
                 ->store();
Please login to merge, or discard this patch.
src/lib/Balloon/Preview/AbstractPreview.php 1 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
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
      */
35 35
     public function __construct(Logger $logger, ?Iterable $config)
36 36
     {
37
-        $this->logger  = $logger;
37
+        $this->logger = $logger;
38 38
         $this->setOptions($config);
39 39
     }
40 40
 }
Please login to merge, or discard this patch.
src/lib/Balloon/Ldap.php 1 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
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
      *
86 86
      * @var bool
87 87
      */
88
-    protected $tls=false;
88
+    protected $tls = false;
89 89
 
90 90
 
91 91
     /**
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
      * @param  Iterable $config
152 152
      * @return Ldap
153 153
      */
154
-    public function setOptions(?Iterable $config): Ldap
154
+    public function setOptions(?Iterable $config) : Ldap
155 155
     {
156 156
         if ($config === null) {
157 157
             return $this;
Please login to merge, or discard this patch.
src/lib/Balloon/Plugin/CleanTemp.php 1 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
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
      * @param  Iterable $config
47 47
      * @return PluginInterface
48 48
      */
49
-    public function setOptions(?Iterable $config): PluginInterface
49
+    public function setOptions(?Iterable $config) : PluginInterface
50 50
     {
51 51
         if ($config === null) {
52 52
             return $this;
Please login to merge, or discard this patch.
src/lib/Balloon/Plugin/LdapAutoShare.php 1 patch
Spacing   +4 added lines, -4 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
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
      * @param  Iterable $config
59 59
      * @return PluginInterface
60 60
      */
61
-    public function setOptions(?Iterable $config): PluginInterface
61
+    public function setOptions(?Iterable $config) : PluginInterface
62 62
     {
63 63
         if ($config === null) {
64 64
             return $this;
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
                 'category' => get_class($this),
101 101
             ]);
102 102
 
103
-            $result =  $this->_findShare($share);
103
+            $result = $this->_findShare($share);
104 104
             $shares = array_merge_recursive($shares, $result);
105 105
         }
106 106
         
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
                 'category' => get_class($this),
122 122
             ]);
123 123
             
124
-            $owner  = new User($owner, $this->logger, $this->fs, true);
124
+            $owner = new User($owner, $this->logger, $this->fs, true);
125 125
             $this->fs->setUser($owner);
126 126
             $root = $this->fs->getRoot();
127 127
  
Please login to merge, or discard this patch.
src/lib/Balloon/Rest/v1/Admin/User.php 1 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
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
      * @param   string $uid
39 39
      * @return  Response
40 40
      */
41
-    public function head(?string $uid=null, ?string $uname=null): Response
41
+    public function head(?string $uid = null, ?string $uname = null) : Response
42 42
     {
43 43
         $result = $this->_getUser($uid, $uname);
44 44
         return (new Response())->setCode(204);
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
      * @param   int $soft
72 72
      * @return  Response
73 73
      */
74
-    public function postQuota(int $hard, int $soft, ?string $uid=null, ?string $uname=null): Response
74
+    public function postQuota(int $hard, int $soft, ?string $uid = null, ?string $uname = null) : Response
75 75
     {
76 76
         $result = $this->_getUser($uid, $uname)
77 77
             ->setHardQuota($hard)
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
      * @param   bool $force
116 116
      * @return  Response
117 117
      */
118
-    public function delete(?string $uid=null, ?string $uname=null, bool $force=false): Response
118
+    public function delete(?string $uid = null, ?string $uname = null, bool $force = false) : Response
119 119
     {
120 120
         $user = $this->_getUser($uid, $uname);
121 121
 
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
      * @param   string $uid
151 151
      * @return  Response
152 152
      */
153
-    public function postUndelete(?string $uid=null, ?string $uname=null): Response
153
+    public function postUndelete(?string $uid = null, ?string $uname = null) : Response
154 154
     {
155 155
         $this->_getUser($uid, $uname)->undelete();
156 156
         return (new Response())->setCode(204);
Please login to merge, or discard this patch.