@@ -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 | * Saito - The Threaded Web Forum |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | |
| 60 | 60 | $this->get('api/v2/bookmarks'); |
| 61 | 61 | |
| 62 | - $response = json_decode((string)$this->_response->getBody(), true); |
|
| 62 | + $response = json_decode((string) $this->_response->getBody(), true); |
|
| 63 | 63 | |
| 64 | 64 | $this->assertNotEmpty($response['data'][0]['attributes']['threadline_html']); |
| 65 | 65 | $response = Hash::remove($response, 'data.{n}.attributes.threadline_html'); |
@@ -209,7 +209,7 @@ discard block |
||
| 209 | 209 | $this->assertTrue($this->Bookmarks->exists(['entry_id' => 4, 'user_id' => 3])); |
| 210 | 210 | |
| 211 | 211 | $this->assertResponseCode(200); |
| 212 | - $response = json_decode((string)$this->_response->getBody(), true); |
|
| 212 | + $response = json_decode((string) $this->_response->getBody(), true); |
|
| 213 | 213 | $expected = [ |
| 214 | 214 | 'data' => [ |
| 215 | 215 | 'id' => 6, |
@@ -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 | * Saito - The Threaded Web Forum |
@@ -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 | * Saito - The Threaded Web Forum |
@@ -5,7 +5,7 @@ |
||
| 5 | 5 | Router::plugin( |
| 6 | 6 | 'Bookmarks', |
| 7 | 7 | ['path' => '/api/v2'], |
| 8 | - function ($routes) { |
|
| 8 | + function($routes) { |
|
| 9 | 9 | $routes->setExtensions(['json']); |
| 10 | 10 | $routes->resources('Bookmarks'); |
| 11 | 11 | } |
@@ -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 | * Saito - The Threaded Web Forum |
@@ -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 | * Saito - The Threaded Web Forum |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | */ |
| 85 | 85 | public function edit($id) |
| 86 | 86 | { |
| 87 | - $id = (int)$id; |
|
| 87 | + $id = (int) $id; |
|
| 88 | 88 | $bookmark = $this->getBookmark($id); |
| 89 | 89 | |
| 90 | 90 | $this->Bookmarks->patchEntity( |
@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | */ |
| 110 | 110 | public function delete($id) |
| 111 | 111 | { |
| 112 | - $id = (int)$id; |
|
| 112 | + $id = (int) $id; |
|
| 113 | 113 | $bookmark = $this->getBookmark($id); |
| 114 | 114 | if (!$this->Bookmarks->delete($bookmark)) { |
| 115 | 115 | throw new GenericApiException('The bookmark could not be deleted.'); |
@@ -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 | * Saito - The Threaded Web Forum |
@@ -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 | * Saito - The Threaded Web Forum |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | $this->_loginUser(1); |
| 43 | 43 | $source = 2; |
| 44 | 44 | |
| 45 | - $readPostings = function () use ($source) { |
|
| 45 | + $readPostings = function() use ($source) { |
|
| 46 | 46 | $read = []; |
| 47 | 47 | $read['all'] = $this->Entries->find()->all()->count(); |
| 48 | 48 | $read['source'] = $this->Entries->find() |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | $source = 2; |
| 79 | 79 | $target = 4; |
| 80 | 80 | |
| 81 | - $readPostings = function () use ($source, $target) { |
|
| 81 | + $readPostings = function() use ($source, $target) { |
|
| 82 | 82 | $read = []; |
| 83 | 83 | $read['all'] = $this->Entries->find()->all()->count(); |
| 84 | 84 | $read['source'] = $this->Entries->find() |