@@ -84,6 +84,6 @@ |
||
84 | 84 | { |
85 | 85 | $entry = $this->container->get('entryManager')->create($request->getParsedBody()); |
86 | 86 | |
87 | - return $this->ok($this->container->get('entrySerializer')->serialize($entry), [], 201); |
|
87 | + return $this->ok($this->container->get('entrySerializer')->serialize($entry), [ ], 201); |
|
88 | 88 | } |
89 | 89 | } |
@@ -42,7 +42,7 @@ |
||
42 | 42 | */ |
43 | 43 | protected function execute(InputInterface $input, OutputInterface $output) : int |
44 | 44 | { |
45 | - $flags = JSON_UNESCAPED_SLASHES|JSON_UNESCAPED_UNICODE; |
|
45 | + $flags = JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE; |
|
46 | 46 | |
47 | 47 | $output->writeln(json_encode($this->container->get('openapi')->toArray(), $flags)); |
48 | 48 |
@@ -3,8 +3,8 @@ |
||
3 | 3 | use DI\Container; |
4 | 4 | use DI\ContainerBuilder; |
5 | 5 | |
6 | -return (function () : Container { |
|
7 | - $env = $_ENV['APP_ENV'] ?? 'dev'; |
|
6 | +return (function() : Container { |
|
7 | + $env = $_ENV[ 'APP_ENV' ] ?? 'dev'; |
|
8 | 8 | |
9 | 9 | $builder = new ContainerBuilder(); |
10 | 10 | $builder->useAutowiring(true); |
@@ -5,7 +5,7 @@ |
||
5 | 5 | chdir(__DIR__ . '/..'); |
6 | 6 | |
7 | 7 | // enables strict development mode... |
8 | -set_error_handler(function ($code, $message, $file, $line) { |
|
8 | +set_error_handler(function($code, $message, $file, $line) { |
|
9 | 9 | throw new ErrorException($message, 0, $code, $file, $line); |
10 | 10 | }); |
11 | 11 |
@@ -83,12 +83,12 @@ |
||
83 | 83 | $limit = 10; |
84 | 84 | $offset = 0; |
85 | 85 | |
86 | - if (!empty($q['limit'])) { |
|
87 | - $limit = (int) $q['limit']; |
|
86 | + if (!empty($q[ 'limit' ])) { |
|
87 | + $limit = (int) $q[ 'limit' ]; |
|
88 | 88 | } |
89 | 89 | |
90 | - if (!empty($q['offset'])) { |
|
91 | - $offset = (int) $q['offset']; |
|
90 | + if (!empty($q[ 'offset' ])) { |
|
91 | + $offset = (int) $q[ 'offset' ]; |
|
92 | 92 | } |
93 | 93 | |
94 | 94 | $entries = $this->container->get('entryManager')->getList($limit, $offset); |