@@ -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 |
@@ -107,7 +107,7 @@ |
||
107 | 107 | * @param array $query |
108 | 108 | * @param array $attributes |
109 | 109 | * @param int $deleted |
110 | - * @param mixed $limit |
|
110 | + * @param integer $limit |
|
111 | 111 | * |
112 | 112 | * @return Response |
113 | 113 | */ |
@@ -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 |
@@ -93,11 +93,11 @@ discard block |
||
93 | 93 | case 'github_request_url': |
94 | 94 | case 'github_request_timeout': |
95 | 95 | case 'github_request_useragent': |
96 | - $this->{$option} = (string) $value; |
|
96 | + $this->{$option} = (string)$value; |
|
97 | 97 | |
98 | 98 | break; |
99 | 99 | case 'github_request_timeout': |
100 | - $this->github_request_timeout = (int) $value; |
|
100 | + $this->github_request_timeout = (int)$value; |
|
101 | 101 | |
102 | 102 | break; |
103 | 103 | case 'formats': |
@@ -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 |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | ->setHeader('Content-Type', 'application/octet-stream') |
65 | 65 | ->setHeader('Content-Transfer-Encoding', 'binary') |
66 | 66 | ->setOutputFormat(null) |
67 | - ->setBody(function () use ($url) { |
|
67 | + ->setBody(function() use ($url) { |
|
68 | 68 | $stream = fopen($url, 'r'); |
69 | 69 | while (!feof($stream)) { |
70 | 70 | echo fread($stream, 8192); |
@@ -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 |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | ->store(); |
98 | 98 | |
99 | 99 | return (new Response())->setCode(201)->setBody([ |
100 | - 'id' => (string) $session->getId(), |
|
100 | + 'id' => (string)$session->getId(), |
|
101 | 101 | 'wopi_url' => $this->app->getWopiUrl(), |
102 | 102 | 'access_token' => $member->getAccessToken(), |
103 | 103 | 'access_token_ttl' => ($member->getTTL()->toDateTime()->format('U') * 1000), |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | ->store(); |
139 | 139 | |
140 | 140 | return (new Response())->setCode(200)->setBody([ |
141 | - 'id' => (string) $session->getId(), |
|
141 | + 'id' => (string)$session->getId(), |
|
142 | 142 | 'wopi_url' => $this->app->getWopiUrl(), |
143 | 143 | 'access_token' => $member->getAccessToken(), |
144 | 144 | 'access_token_ttl' => ($member->getTTL()->toDateTime()->format('U') * 1000), |