@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | /** |
| 6 | 6 | * balloon |
@@ -140,8 +140,8 @@ discard block |
||
| 140 | 140 | 'BaseFileName' => $attrs['name'], |
| 141 | 141 | 'Size' => $doc->getSize(), |
| 142 | 142 | 'Version' => $attrs['version'], |
| 143 | - 'OwnerId' => (string) $doc->getNode()->getOwner(), |
|
| 144 | - 'UserId' => (string) $this->user->getId(), |
|
| 143 | + 'OwnerId' => (string)$doc->getNode()->getOwner(), |
|
| 144 | + 'UserId' => (string)$this->user->getId(), |
|
| 145 | 145 | 'UserFriendlyName' => $this->user->getUsername(), |
| 146 | 146 | 'UserCanWrite' => true, |
| 147 | 147 | 'PostMessageOrigin' => null, |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | /** |
| 6 | 6 | * balloon |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | /** |
| 6 | 6 | * balloon |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | /** |
| 6 | 6 | * balloon |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | /** |
| 6 | 6 | * balloon |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | /** |
| 6 | 6 | * balloon |
@@ -105,11 +105,11 @@ discard block |
||
| 105 | 105 | switch ($option) { |
| 106 | 106 | case 'loleaflet': |
| 107 | 107 | case 'wopi_url': |
| 108 | - $this->{$option} = (string) $value; |
|
| 108 | + $this->{$option} = (string)$value; |
|
| 109 | 109 | |
| 110 | 110 | break; |
| 111 | 111 | case 'token_ttl': |
| 112 | - $this->token_ttl = (int) $value; |
|
| 112 | + $this->token_ttl = (int)$value; |
|
| 113 | 113 | |
| 114 | 114 | break; |
| 115 | 115 | default: |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | /** |
| 6 | 6 | * balloon |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | /** |
| 6 | 6 | * balloon |
@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | ->store(); |
| 101 | 101 | |
| 102 | 102 | return (new Response())->setCode(201)->setBody([ |
| 103 | - 'id' => (string) $session->getId(), |
|
| 103 | + 'id' => (string)$session->getId(), |
|
| 104 | 104 | 'wopi_url' => $this->app->getWopiUrl(), |
| 105 | 105 | 'access_token' => $member->getAccessToken(), |
| 106 | 106 | 'access_token_ttl' => ($member->getTTL()->toDateTime()->format('U') * 1000), |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | /** |
| 6 | 6 | * balloon |
@@ -94,10 +94,10 @@ discard block |
||
| 94 | 94 | |
| 95 | 95 | foreach ($document->getSessions() as $session) { |
| 96 | 96 | $sessions[] = [ |
| 97 | - 'id' => (string) $session['_id'], |
|
| 97 | + 'id' => (string)$session['_id'], |
|
| 98 | 98 | 'created' => $session['_id']->getTimestamp(), |
| 99 | 99 | 'user' => [ |
| 100 | - 'id' => (string) $session['user'], |
|
| 100 | + 'id' => (string)$session['user'], |
|
| 101 | 101 | 'name' => $this->server->getUserById($session['user'])->getUsername(), |
| 102 | 102 | ], |
| 103 | 103 | ]; |
@@ -165,6 +165,6 @@ discard block |
||
| 165 | 165 | $tpl = new Template($type); |
| 166 | 166 | $result = $parent->addFile($name, $tpl->get(), $attributes); |
| 167 | 167 | |
| 168 | - return (new Response())->setCode(201)->setBody((string) $result->getId()); |
|
| 168 | + return (new Response())->setCode(201)->setBody((string)$result->getId()); |
|
| 169 | 169 | } |
| 170 | 170 | } |