@@ -49,8 +49,8 @@ |
||
49 | 49 | $this->db->storage->updateOne( |
50 | 50 | ['_id' => $object['_id']], |
51 | 51 | [ |
52 | - '$unset' => ['sharelink' => 1], |
|
53 | - '$set' => ['app.Balloon\App\Sharelink' => $object['sharelink']], |
|
52 | + '$unset' => ['sharelink' => 1], |
|
53 | + '$set' => ['app.Balloon\App\Sharelink' => $object['sharelink']], |
|
54 | 54 | ] |
55 | 55 | ); |
56 | 56 | } |
@@ -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 |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | if (empty($set['expiration'])) { |
69 | 69 | unset($set['expiration']); |
70 | 70 | } else { |
71 | - $set['expiration'] = (int) $set['expiration']; |
|
71 | + $set['expiration'] = (int)$set['expiration']; |
|
72 | 72 | } |
73 | 73 | } |
74 | 74 | |
@@ -160,7 +160,7 @@ discard block |
||
160 | 160 | } |
161 | 161 | |
162 | 162 | if (isset($attributes['expiration']) && !empty($attributes['expiration'])) { |
163 | - $time = (int) $attributes['expiration']; |
|
163 | + $time = (int)$attributes['expiration']; |
|
164 | 164 | if ($time < time()) { |
165 | 165 | throw new Exception\LinkExpired('link is expired'); |
166 | 166 | } |