Completed
Push — master ( 4a18b9...935137 )
by Mahmoud
03:49
created
app/Port/Provider/Traits/PortServiceProviderTrait.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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'));
Please login to merge, or discard this patch.