Passed
Push — master ( 80001a...1201cf )
by
unknown
03:47
created
migrations/2019_07_09_090117_make_status_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
      */
12 12
     public function up()
13 13
     {
14
-        Schema::create('statuses', function (Blueprint $table) {
14
+        Schema::create('statuses', function(Blueprint $table) {
15 15
             $table->string('id')->primary();
16 16
             $table->string('status');
17 17
             $table->string('optional_reference')->nullable();
Please login to merge, or discard this patch.
src/Providers/ApieLumenServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
     {
27 27
         // fix for PSR requests in Lumen
28 28
         $this->app->extend(
29
-            ServerRequestInterface::class, function (ServerRequestInterface $psrRequest) {
29
+            ServerRequestInterface::class, function(ServerRequestInterface $psrRequest) {
30 30
                 $route = (array) $this->app->make('request')->route();
31 31
                 if (is_array($route[2])) {
32 32
                     foreach ($route[2] as $key => $value) {
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
         );
39 39
 
40 40
         $this->app->bind(
41
-            SwaggerUiController::class, function () {
41
+            SwaggerUiController::class, function() {
42 42
                 $urlGenerator = new \Laravel\Lumen\Routing\UrlGenerator($this->app);
43 43
                 return new SwaggerUiController($urlGenerator, __DIR__ . '/../../resources/open-api.html');
44 44
             }
Please login to merge, or discard this patch.
src/Services/StatusChecks/StatusFromDatabaseRetriever.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
             );
51 51
         }
52 52
         $list = array_map(
53
-            function (Status $statusModel) {
53
+            function(Status $statusModel) {
54 54
                 return $this->convert($statusModel);
55 55
             }, iterator_to_array($statuses)
56 56
         );
Please login to merge, or discard this patch.
src/Exceptions/ApiResourceContextException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
     {
13 13
         parent::__construct(
14 14
             500,
15
-            'Resource ' . $resourceClass . ' misses ' . $options .' option in the ApiResource annotation'
15
+            'Resource ' . $resourceClass . ' misses ' . $options . ' option in the ApiResource annotation'
16 16
         );
17 17
     }
18 18
 }
Please login to merge, or discard this patch.
src/Providers/ApieLaravelServiceProvider.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
         // fix for https://github.com/laravel/framework/issues/30415
38 38
         $this->app->extend(
39 39
             ServerRequestInterface::class,
40
-            function (ServerRequestInterface $psrRequest) {
40
+            function(ServerRequestInterface $psrRequest) {
41 41
                 $route = $this->app->make('request')->route();
42 42
                 if ($route) {
43 43
                     $parameters = $route->parameters();
@@ -53,13 +53,13 @@  discard block
 block discarded – undo
53 53
 
54 54
         $this->app->bind(
55 55
             SwaggerUiController::class,
56
-            function () {
56
+            function() {
57 57
                 $urlGenerator = $this->app->get(UrlGenerator::class);
58 58
                 return new SwaggerUiController($urlGenerator, __DIR__ . '/../../resources/open-api.html');
59 59
             }
60 60
         );
61 61
 
62
-        $this->app->bind(ApiResourceFacadeResponse::class, function () {
62
+        $this->app->bind(ApiResourceFacadeResponse::class, function() {
63 63
             /** @var ServerRequestInterface $request */
64 64
             $request = $this->app->get(ServerRequestInterface::class);
65 65
 
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
 
73 73
     public function registerResourceClass(string $resourceClass)
74 74
     {
75
-        $this->app->bind($resourceClass, function () use ($resourceClass) {
75
+        $this->app->bind($resourceClass, function() use ($resourceClass) {
76 76
             /** @var ServerRequestInterface $request */
77 77
             $request = $this->app->get(ServerRequestInterface::class);
78 78
 
Please login to merge, or discard this patch.
config/apie.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,6 +77,6 @@
 block discarded – undo
77 77
      * @see ApiResource
78 78
      */
79 79
     'resource-config' => [
80
-       /*ApplicationInfo::class => ['retrieveClass' => StatusCheckRetriever::class],*/
80
+        /*ApplicationInfo::class => ['retrieveClass' => StatusCheckRetriever::class],*/
81 81
     ],
82 82
 ];
Please login to merge, or discard this patch.
src/Services/Eloquent/EloquentModelSerializer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
         $modelInstances = $builder->get();
53 53
 
54 54
         return array_map(
55
-            function ($modelInstance) use (&$resourceClass) {
55
+            function($modelInstance) use (&$resourceClass) {
56 56
                 return $this->toResource($modelInstance, $resourceClass);
57 57
             },
58 58
             iterator_to_array($modelInstances)
Please login to merge, or discard this patch.
config/routes-lumen.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,11 +10,11 @@
 block discarded – undo
10 10
 
11 11
 $apieConfig = app('apie.config');
12 12
 
13
-$router->group(['prefix' => $apieConfig['api-url'], 'middleware' => $apieConfig['swagger-ui-test-page-middleware']], function () use ($router) {
13
+$router->group(['prefix' => $apieConfig['api-url'], 'middleware' => $apieConfig['swagger-ui-test-page-middleware']], function() use ($router) {
14 14
     $router->get('/doc.json', ['as' => 'apie.docs', 'uses' => DocsController::class]);
15 15
 });
16 16
 
17
-$router->group(['prefix' => $apieConfig['api-url'], 'middleware' => $apieConfig['apie-middleware']], function () use ($router) {
17
+$router->group(['prefix' => $apieConfig['api-url'], 'middleware' => $apieConfig['apie-middleware']], function() use ($router) {
18 18
     $router->post('/{resource}/', ['as' => 'apie.post', 'uses' => PostController::class]);
19 19
     $router->put('/{resource}/{id}', ['as' => 'apie.put', 'uses' => PutController::class]);
20 20
     $router->get('/{resource}/', ['as' => 'apie.all', 'uses' => GetAllController::class]);
Please login to merge, or discard this patch.
config/routes.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
         'prefix' => $apieConfig['api-url'],
14 14
         'middleware' => $apieConfig['swagger-ui-test-page-middleware']
15 15
     ],
16
-    function () {
16
+    function() {
17 17
         Route::get('/doc.json', DocsController::class)->name('apie.docs');
18 18
     }
19 19
 );
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
         'prefix' => $apieConfig['api-url'],
24 24
         'middleware' => $apieConfig['apie-middleware']
25 25
     ],
26
-    function () {
26
+    function() {
27 27
         Route::post('/{resource}/', PostController::class)->name('apie.post');
28 28
         Route::put('/{resource}/{id}', PutController::class)->name('apie.put');
29 29
         Route::get('/{resource}/', GetAllController::class)->name('apie.all');
Please login to merge, or discard this patch.