@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | public function debugDatabaseQueries($log = true, $terminal = false) |
28 | 28 | { |
29 | 29 | if (Config::get('database.query_debugging')) { |
30 | - DB::listen(function ($event) use ($terminal, $log) { |
|
30 | + DB::listen(function($event) use ($terminal, $log) { |
|
31 | 31 | $fullQuery = vsprintf(str_replace(['%', '?'], ['%%', '%s'], $event->sql), $event->bindings); |
32 | 32 | |
33 | 33 | $text = $event->connectionName . ' (' . $event->time . '): ' . $fullQuery; |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | */ |
51 | 51 | public function changeTheDefaultDatabaseModelsFactoriesPath($customPath) |
52 | 52 | { |
53 | - $this->app->singleton(\Illuminate\Database\Eloquent\Factory::class, function ($app) use ($customPath) { |
|
53 | + $this->app->singleton(\Illuminate\Database\Eloquent\Factory::class, function($app) use ($customPath) { |
|
54 | 54 | $faker = $app->make(\Faker\Generator::class); |
55 | 55 | |
56 | 56 | return \Illuminate\Database\Eloquent\Factory::construct($faker, base_path() . $customPath); |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | $allServiceProviders[] = PortButler::buildMainServiceProvider($containersNamespace, $containerName); |
82 | 82 | } |
83 | 83 | |
84 | - return array_unique($allServiceProviders) ? : []; |
|
84 | + return array_unique($allServiceProviders) ?: []; |
|
85 | 85 | } |
86 | 86 | |
87 | 87 | /** |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | |
117 | 117 | // if DataArray `\League\Fractal\Serializer\DataArraySerializer` do noting since it's set by default by the Dingo API |
118 | 118 | if ($serializerName !== 'DataArray') { |
119 | - app('Dingo\Api\Transformer\Factory')->setAdapter(function () use ($serializerName) { |
|
119 | + app('Dingo\Api\Transformer\Factory')->setAdapter(function() use ($serializerName) { |
|
120 | 120 | switch ($serializerName) { |
121 | 121 | case 'JsonApi': |
122 | 122 | $serializer = new \League\Fractal\Serializer\JsonApiSerializer(Config::get('api.domain')); |