@@ -62,7 +62,7 @@ |
||
| 62 | 62 | $t = $this->getItems(); |
| 63 | 63 | $c = $this->count(); |
| 64 | 64 | |
| 65 | - return (function () use ($t, $c) { |
|
| 65 | + return (function() use ($t, $c) { |
|
| 66 | 66 | $i = 0; |
| 67 | 67 | |
| 68 | 68 | while ($i < $c) { |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | public function fetch(int $id): ?CustomPage |
| 38 | 38 | { |
| 39 | 39 | /** @var CustomPage|null $fetch */ |
| 40 | - $fetch = $this->_get('api/pages/page' . $id); |
|
| 40 | + $fetch = $this->_get('api/pages/page'.$id); |
|
| 41 | 41 | return $fetch; |
| 42 | 42 | } |
| 43 | 43 | |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | public function update(int $id, array $data): ?CustomPage |
| 65 | 65 | { |
| 66 | 66 | /** @var CustomPage|null $post */ |
| 67 | - $post = $this->_post('api/pages/page/' . $id, $data); |
|
| 67 | + $post = $this->_post('api/pages/page/'.$id, $data); |
|
| 68 | 68 | return $post; |
| 69 | 69 | } |
| 70 | 70 | |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | public function fetch(int $id): ?Collection |
| 23 | 23 | { |
| 24 | 24 | /** @var Collection|null $fetch */ |
| 25 | - $fetch = $this->_get('api/collections/collection' . $id); |
|
| 25 | + $fetch = $this->_get('api/collections/collection'.$id); |
|
| 26 | 26 | return $fetch; |
| 27 | 27 | } |
| 28 | 28 | |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | public function update(int $id, array $data): ?Collection |
| 50 | 50 | { |
| 51 | 51 | /** @var Collection|null $post */ |
| 52 | - $post = $this->_post('api/collections/collection/' . $id, $data); |
|
| 52 | + $post = $this->_post('api/collections/collection/'.$id, $data); |
|
| 53 | 53 | return $post; |
| 54 | 54 | } |
| 55 | 55 | |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | */ |
| 62 | 62 | public function delete(int $id): bool |
| 63 | 63 | { |
| 64 | - return $this->_delete('api/collections/collection/' . $id); |
|
| 64 | + return $this->_delete('api/collections/collection/'.$id); |
|
| 65 | 65 | } |
| 66 | 66 | |
| 67 | 67 | /** |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | if (!$date) return null; |
| 10 | 10 | |
| 11 | 11 | try { |
| 12 | - $date = new \DateTime($date . ' CET'); |
|
| 12 | + $date = new \DateTime($date.' CET'); |
|
| 13 | 13 | return $date; |
| 14 | 14 | } catch (Exception $e) { |
| 15 | 15 | error_log($e); |