Completed
Branch dev (bc6e47)
by Raffael
02:23
created
src/app/Balloon.App.Preview/Preview.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/Balloon.App.Preview/Hook.php 2 patches
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
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
      * @param string $recursion
67 67
      * @param bool   $recursion_first
68 68
      */
69
-    public function preDeleteFile(File $node, bool $force, ?string $recursion, bool $recursion_first): void
69
+    public function preDeleteFile(File $node, bool $force, ?string $recursion, bool $recursion_first) : void
70 70
     {
71 71
         if (true === $force) {
72 72
             try {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,6 @@
 block discarded – undo
12 12
 
13 13
 namespace Balloon\App\Preview;
14 14
 
15
-use Balloon\Exception;
16 15
 use Balloon\Filesystem\Node\File;
17 16
 use Balloon\Hook\AbstractHook;
18 17
 use MongoDB\GridFS\Exception\FileNotFoundException;
Please login to merge, or discard this patch.
src/app/Balloon.App.Preview/Database/Delta/Installation.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/Balloon.App.Preview/Database/Delta/PreviewIntoApp.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/Balloon.App.Office/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/app/Balloon.App.Office/Document.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/Balloon.App.Office/Api/v1/Session.php 1 patch
Spacing   +3 added lines, -3 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
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
      *
88 88
      * @return Response
89 89
      */
90
-    public function post(?string $id = null, ?string $p = null): Response
90
+    public function post(?string $id = null, ?string $p = null) : Response
91 91
     {
92 92
         $node = $this->fs->getNode($id, $p, File::class);
93 93
         $document = new Document($this->fs->getDatabase(), $node);
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
                 ->store();
100 100
 
101 101
         return (new Response())->setCode(201)->setBody([
102
-            'id' => (string) $session->getId(),
102
+            'id' => (string)$session->getId(),
103 103
             'access_token' => $member->getAccessToken(),
104 104
             'access_token_ttl' => ($member->getTTL()->toDateTime()->format('U') * 1000),
105 105
         ]);
Please login to merge, or discard this patch.
src/app/Balloon.App.Office/App/Http.php 1 patch
Spacing   +4 added lines, -4 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
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
      *
85 85
      * @return AppInterface
86 86
      */
87
-    public function setOptions(?Iterable $config = null): AppInterface
87
+    public function setOptions(?Iterable $config = null) : AppInterface
88 88
     {
89 89
         if (null === $config) {
90 90
             return $this;
@@ -93,11 +93,11 @@  discard block
 block discarded – undo
93 93
         foreach ($config as $option => $value) {
94 94
             switch ($option) {
95 95
                 case 'loleaflet':
96
-                    $this->loleaflet = (string) $value;
96
+                    $this->loleaflet = (string)$value;
97 97
 
98 98
                 break;
99 99
                 case 'token_ttl':
100
-                    $this->token_ttl = (int) $value;
100
+                    $this->token_ttl = (int)$value;
101 101
 
102 102
                 break;
103 103
                 default:
Please login to merge, or discard this patch.
src/app/Balloon.App.Office/Template.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -85,6 +85,6 @@
 block discarded – undo
85 85
     protected function getTemplate(): string
86 86
     {
87 87
         return __DIR__.DIRECTORY_SEPARATOR.'assets'
88
-          .DIRECTORY_SEPARATOR.'template.'.$this->type;
88
+            .DIRECTORY_SEPARATOR.'template.'.$this->type;
89 89
     }
90 90
 }
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.