@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | public function debugDatabaseQueries($log = true, $terminal = false) |
30 | 30 | { |
31 | 31 | if (Config::get('database.query_debugging')) { |
32 | - DB::listen(function ($event) use ($terminal, $log) { |
|
32 | + DB::listen(function($event) use ($terminal, $log) { |
|
33 | 33 | $fullQuery = vsprintf(str_replace(['%', '?'], ['%%', '%s'], $event->sql), $event->bindings); |
34 | 34 | |
35 | 35 | $text = $event->connectionName . ' (' . $event->time . '): ' . $fullQuery; |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | */ |
53 | 53 | public function changeTheDefaultDatabaseModelsFactoriesPath($customPath) |
54 | 54 | { |
55 | - App::singleton(\Illuminate\Database\Eloquent\Factory::class, function ($app) use ($customPath) { |
|
55 | + App::singleton(\Illuminate\Database\Eloquent\Factory::class, function($app) use ($customPath) { |
|
56 | 56 | $faker = $app->make(\Faker\Generator::class); |
57 | 57 | |
58 | 58 | return \Illuminate\Database\Eloquent\Factory::construct($faker, base_path() . $customPath); |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | $allServiceProviders[] = PortButler::buildMainServiceProvider($containersNamespace, $containerName); |
76 | 76 | } |
77 | 77 | |
78 | - return array_unique($allServiceProviders) ? : []; |
|
78 | + return array_unique($allServiceProviders) ?: []; |
|
79 | 79 | } |
80 | 80 | |
81 | 81 | /** |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | |
105 | 105 | if (File::isDirectory($containerMigrationDirectory)) { |
106 | 106 | |
107 | - App::afterResolving('migrator', function ($migrator) use ($containerMigrationDirectory) { |
|
107 | + App::afterResolving('migrator', function($migrator) use ($containerMigrationDirectory) { |
|
108 | 108 | foreach ((array)$containerMigrationDirectory as $path) { |
109 | 109 | $migrator->path($path); |
110 | 110 | } |
@@ -201,7 +201,7 @@ discard block |
||
201 | 201 | |
202 | 202 | // if DataArray `\League\Fractal\Serializer\DataArraySerializer` do noting since it's set by default by the Dingo API |
203 | 203 | if ($serializerName !== 'DataArray') { |
204 | - app('Dingo\Api\Transformer\Factory')->setAdapter(function () use ($serializerName) { |
|
204 | + app('Dingo\Api\Transformer\Factory')->setAdapter(function() use ($serializerName) { |
|
205 | 205 | switch ($serializerName) { |
206 | 206 | case 'JsonApi': |
207 | 207 | $serializer = new \League\Fractal\Serializer\JsonApiSerializer(Config::get('api.domain')); |
@@ -234,7 +234,7 @@ discard block |
||
234 | 234 | ->registerMiddlewareGroups($middlewareGroups); |
235 | 235 | |
236 | 236 | // Registering Route Middleware's |
237 | - foreach ($routeMiddlewares as $key => $routeMiddleware){ |
|
237 | + foreach ($routeMiddlewares as $key => $routeMiddleware) { |
|
238 | 238 | $this->app['router']->middleware($key, $routeMiddleware); |
239 | 239 | } |
240 | 240 |