@@ -71,7 +71,7 @@ |
||
| 71 | 71 | /** |
| 72 | 72 | * @param SampleSearch $sampleSearch |
| 73 | 73 | * |
| 74 | - * @return array |
|
| 74 | + * @return Sample[] |
|
| 75 | 75 | */ |
| 76 | 76 | private function searchResult(SampleSearch $sampleSearch): array |
| 77 | 77 | { |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Chubbyphp\ApiSkeleton\Repository; |
| 6 | 6 | |
@@ -1,7 +1,7 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | return [ |
| 4 | - 'settings' => [ |
|
| 4 | + 'settings' => [ |
|
| 5 | 5 | 'displayErrorDetails' => true, |
| 6 | 6 | 'routerCacheFile' => false, |
| 7 | 7 | ], |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Chubbyphp\ApiSkeleton\ApiHttp; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Chubbyphp\ApiSkeleton\Validation; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Chubbyphp\ApiSkeleton\Validation; |
| 6 | 6 | |
@@ -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 | namespace Chubbyphp\ApiSkeleton; |
| 6 | 6 | |
@@ -21,15 +21,15 @@ discard block |
||
| 21 | 21 | $container->register(new SwiftmailerServiceProvider()); |
| 22 | 22 | |
| 23 | 23 | // extend providers |
| 24 | -$container['api-http.request.languages'] = function () use ($container) { |
|
| 24 | +$container['api-http.request.languages'] = function() use ($container) { |
|
| 25 | 25 | return $container['languages']; |
| 26 | 26 | }; |
| 27 | 27 | |
| 28 | -$container['api-http.response.factory'] = function () { |
|
| 28 | +$container['api-http.response.factory'] = function() { |
|
| 29 | 29 | return new ResponseFactory(); |
| 30 | 30 | }; |
| 31 | 31 | |
| 32 | -$container->extend('translator.providers', function (array $providers) use ($container) { |
|
| 32 | +$container->extend('translator.providers', function(array $providers) use ($container) { |
|
| 33 | 33 | $providers[] = new LocaleTranslationProvider( |
| 34 | 34 | 'de', |
| 35 | 35 | array_replace( |
@@ -55,12 +55,12 @@ discard block |
||
| 55 | 55 | require_once __DIR__.'/services/deserialization.php'; |
| 56 | 56 | |
| 57 | 57 | // error |
| 58 | -$container[ErrorManager::class] = function () use ($container) { |
|
| 58 | +$container[ErrorManager::class] = function() use ($container) { |
|
| 59 | 59 | return new ErrorManager($container['translator']); |
| 60 | 60 | }; |
| 61 | 61 | |
| 62 | 62 | // http |
| 63 | -$container[ContentNegotiator::class] = function () { |
|
| 63 | +$container[ContentNegotiator::class] = function() { |
|
| 64 | 64 | return new ContentNegotiator(); |
| 65 | 65 | }; |
| 66 | 66 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Chubbyphp\ApiSkeleton; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Chubbyphp\ApiSkeleton\Model; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | if (!$loader = @include __DIR__.'/../vendor/autoload.php') { |
| 6 | 6 | die('curl -s http://getcomposer.org/installer | php; php composer.phar install'); |