Completed
Pull Request — master (#52)
by
unknown
03:05
created
src/app/Office/src/lib/Rest/v1/Wopi/Document.php 2 patches
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,6 @@
 block discarded – undo
24 24
      * Get by access token
25 25
      *
26 26
      * @param  string $id
27
-     * @param  string $access_token
28 27
      * @return Session
29 28
      */
30 29
     protected function parseId(string $id): 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
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
     public function getContents(string $id, string $access_token): void
127 127
     {
128 128
         $session = Session::getByAccessToken($this->fs, $this->parseId($id), $access_token);
129
-        $stream =  $session->getDocument()->get();
129
+        $stream = $session->getDocument()->get();
130 130
 
131 131
         while (!feof($stream)) {
132 132
             echo fread($stream, 8192);
Please login to merge, or discard this patch.
src/app/Office/src/lib/Session.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
      * @param   Document $document
68 68
      * @param   int $ttl
69 69
      * @param   array $session
70
-     * @return  void
70
+     * @return  Member
71 71
      */
72 72
     public function __construct(Filesystem $fs, Document $document, int $ttl=3600, $session=[])
73 73
     {
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
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
      * @param   User $user
61 61
      * @param   int $ttl
62 62
      * @param   Session $session
63
-     * @return  void
63
+     * @return  Member
64 64
      */
65 65
     public function __construct(User $user, $ttl=3600, ?Session $session=null)
66 66
     {
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/Auth.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
     /**
63 63
      * Authenticate
64 64
      *
65
-     * @param   array|AdapterInterface|Config $adapters
65
+     * @param   Config $adapters
66 66
      * @return  bool
67 67
      */
68 68
     public function requireOne($adapters): bool
@@ -290,7 +290,7 @@  discard block
 block discarded – undo
290 290
     /**
291 291
      * Get attribute sync cache
292 292
      *
293
-     * @return array
293
+     * @return integer
294 294
      */
295 295
     public function getAttributeSyncCache(): int
296 296
     {
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 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
@@ -250,25 +250,25 @@  discard block
 block discarded – undo
250 250
 
251 251
                 switch ($value['type']) {
252 252
                     case 'array':
253
-                         $arr =  (array)$data[$value['attr']];
253
+                         $arr = (array)$data[$value['attr']];
254 254
                           unset($arr['count']);
255 255
                           $attrs[$attr] = $arr;
256 256
                     break;
257 257
                         
258 258
                     case 'string':
259
-                         $attrs[$attr]  = (string)$store;
259
+                         $attrs[$attr] = (string)$store;
260 260
                     break;
261 261
                                             
262 262
                     case 'int':
263
-                         $attrs[$attr]  = (int)$store;
263
+                         $attrs[$attr] = (int)$store;
264 264
                     break;
265 265
                                             
266 266
                     case 'bool':
267
-                         $attrs[$attr]  = (bool)$store;
267
+                         $attrs[$attr] = (bool)$store;
268 268
                     break;
269 269
                     
270 270
                     case 'binary':
271
-                         $attrs[$attr]  = new Binary($store, Binary::TYPE_GENERIC);
271
+                         $attrs[$attr] = new Binary($store, Binary::TYPE_GENERIC);
272 272
                     break;
273 273
                     
274 274
                     default:
Please login to merge, or discard this patch.
src/lib/Balloon/Auth/Adapter/Basic/Db.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
      * Set options
69 69
      *
70 70
      * @param   Iterable
71
-     * @return  Ldap
71
+     * @return  Db
72 72
      */
73 73
     public function setOptions(?Iterable $config): Db
74 74
     {
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.
src/lib/Balloon/Auth/Adapter/None.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
     /**
28 28
      * Initialize
29 29
      *
30
-     * @param  Iterable $config
30
+     * @param  Config $config
31 31
      * @param  Logger $logger
32 32
      * @return void
33 33
      */
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
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
      * @param  Logger $logger
32 32
      * @return void
33 33
      */
34
-    public function __construct(?Iterable $config, Logger $logger)
34
+    public function __construct(? Iterable $config, Logger $logger)
35 35
     {
36 36
     }
37 37
 
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
      *
42 42
      * @return int
43 43
      */
44
-    public function getAttributeSyncCache(): int
44
+    public function getAttributeSyncCache() : int
45 45
     {
46 46
         return -1;
47 47
     }
Please login to merge, or discard this patch.
src/lib/Balloon/Bootstrap/AbstractBootstrap.php 2 patches
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -93,7 +93,6 @@
 block discarded – undo
93 93
      * Init bootstrap
94 94
      *
95 95
      * @param   Composer $composer
96
-     * @param   Config $router
97 96
      * @return  void
98 97
      */
99 98
     public function __construct(Composer $composer, Config $config)
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/Bootstrap/AbstractCore.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -138,7 +138,7 @@
 block discarded – undo
138 138
     /**
139 139
      * Set error handler
140 140
      *
141
-     * @return Core
141
+     * @return AbstractCore
142 142
      */
143 143
     protected function setErrorHandler()
144 144
     {
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
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
      *
46 46
      * @var Config
47 47
      */
48
-    protected $option_log ;
48
+    protected $option_log;
49 49
 
50 50
 
51 51
     /**
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
      */
143 143
     protected function setErrorHandler()
144 144
     {
145
-        set_error_handler(function ($errno, $errstr, $errfile, $errline) {
145
+        set_error_handler(function($errno, $errstr, $errfile, $errline) {
146 146
             $msg = $errstr." in ".$errfile.":".$errline;
147 147
             switch ($errno) {
148 148
                 case E_ERROR:
Please login to merge, or discard this patch.
src/lib/Balloon/Config/ConfigInterface.php 2 patches
Doc Comments   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
     /**
30 30
      * Get entire simplexml
31 31
      *
32
-     * @return mixed
32
+     * @return \SimpleXMLElement
33 33
      */
34 34
     public function getRaw();
35 35
 
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
      * Get from config
39 39
      *
40 40
      * @param   string $name
41
-     * @return  mixed
41
+     * @return  \SimpleXMLElement
42 42
      */
43 43
     public function __get(string $name);
44 44
 
@@ -55,7 +55,6 @@  discard block
 block discarded – undo
55 55
     /**
56 56
      * Get native config format as config instance
57 57
      *
58
-     * @param   mixed $config
59 58
      * @return  Config
60 59
      */
61 60
     public function map($native=null): Config;
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
@@ -58,5 +58,5 @@  discard block
 block discarded – undo
58 58
      * @param   mixed $config
59 59
      * @return  Config
60 60
      */
61
-    public function map($native=null): Config;
61
+    public function map($native = null): Config;
62 62
 }
Please login to merge, or discard this patch.