@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | public function debugDatabaseQueries($log = true, $terminal = false) |
29 | 29 | { |
30 | 30 | if (Config::get('database.query_debugging')) { |
31 | - DB::listen(function ($event) use ($terminal, $log) { |
|
31 | + DB::listen(function($event) use ($terminal, $log) { |
|
32 | 32 | $fullQuery = vsprintf(str_replace(['%', '?'], ['%%', '%s'], $event->sql), $event->bindings); |
33 | 33 | |
34 | 34 | $text = $event->connectionName . ' (' . $event->time . '): ' . $fullQuery; |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | |
87 | 87 | // if DataArray `\League\Fractal\Serializer\DataArraySerializer` do noting since it's set by default by the Dingo API |
88 | 88 | if ($serializerName !== 'DataArray') { |
89 | - app('Dingo\Api\Transformer\Factory')->setAdapter(function () use ($serializerName) { |
|
89 | + app('Dingo\Api\Transformer\Factory')->setAdapter(function() use ($serializerName) { |
|
90 | 90 | switch ($serializerName) { |
91 | 91 | case 'JsonApi': |
92 | 92 | $serializer = new \League\Fractal\Serializer\JsonApiSerializer(Config::get('api.domain')); |
@@ -23,7 +23,7 @@ |
||
23 | 23 | { |
24 | 24 | $newFactoriesPath = '/app/Port/Factory/Factories'; |
25 | 25 | |
26 | - App::singleton(Factory::class, function ($app) use ($newFactoriesPath) { |
|
26 | + App::singleton(Factory::class, function($app) use ($newFactoriesPath) { |
|
27 | 27 | $faker = $app->make(Generator::class); |
28 | 28 | |
29 | 29 | return Factory::construct($faker, base_path() . $newFactoriesPath); |