@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | /** |
5 | 5 | * Balloon |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | /** |
5 | 5 | * Balloon |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | /** |
5 | 5 | * Balloon |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | /** |
5 | 5 | * Balloon |
@@ -1,5 +1,5 @@ discard block |
||
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 |
||
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 |
||
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(); |
@@ -66,7 +66,7 @@ |
||
66 | 66 | protected function getTemplate(): string |
67 | 67 | { |
68 | 68 | return dirname(__FILE__).DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'assets' |
69 | - .DIRECTORY_SEPARATOR.'template.'.$this->type; |
|
69 | + .DIRECTORY_SEPARATOR.'template.'.$this->type; |
|
70 | 70 | } |
71 | 71 | |
72 | 72 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | /** |
5 | 5 | * Balloon |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | /** |
5 | 5 | * Balloon |