Completed
Push — master ( b39ab9...700033 )
by Mahmoud
03:11
created
app/Port/View/Loaders/ViewsLoaderTrait.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -40,6 +40,9 @@
 block discarded – undo
40 40
         }
41 41
     }
42 42
 
43
+    /**
44
+     * @param string $directory
45
+     */
43 46
     private function loadConfigs($directory)
44 47
     {
45 48
         if (File::isDirectory($directory)) {
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -3,8 +3,6 @@
 block discarded – undo
3 3
 namespace App\Port\Provider\Traits;
4 4
 
5 5
 use App;
6
-use DB;
7
-use Log;
8 6
 
9 7
 /**
10 8
  * Class AutoRegisterServiceProvidersTrait.
Please login to merge, or discard this patch.
app/Port/Provider/Loaders/ProvidersLoaderTrait.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -3,8 +3,6 @@
 block discarded – undo
3 3
 namespace App\Port\Provider\Traits;
4 4
 
5 5
 use App;
6
-use DB;
7
-use Log;
8 6
 
9 7
 /**
10 8
  * Class AutoRegisterServiceProvidersTrait.
Please login to merge, or discard this patch.
app/Port/Factory/Loaders/FactoriesLoaderTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
app/Port/Console/Loaders/ConsolesLoaderTrait.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use App;
6 6
 use App\Port\Butler\Portals\Facade\PortButler;
7
-use DB;
8 7
 use File;
9 8
 
10 9
 /**
Please login to merge, or discard this patch.
app/Port/Middleware/Loaders/MiddlewaresLoaderTrait.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -4,8 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use App;
6 6
 use App\Port\Middleware\PortKernel;
7
-use DB;
8
-use File;
9 7
 
10 8
 /**
11 9
  * Class MiddlewaresLoaderTrait.
Please login to merge, or discard this patch.
app/Port/Foundation/Traits/QueryDebuggerTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
     public function runQueryDebugger($log = true, $terminal = false)
26 26
     {
27 27
         if (Config::get('database.query_debugging')) {
28
-            DB::listen(function ($event) use ($terminal, $log) {
28
+            DB::listen(function($event) use ($terminal, $log) {
29 29
                 $fullQuery = vsprintf(str_replace(['%', '?'], ['%%', '%s'], $event->sql), $event->bindings);
30 30
 
31 31
                 $text = $event->connectionName . ' (' . $event->time . '): ' . $fullQuery;
Please login to merge, or discard this patch.
app/Port/Foundation/Traits/FractalTrait.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
 
35 35
         // if DataArray `\League\Fractal\Serializer\DataArraySerializer` do noting since it's set by default by the Dingo API
36 36
         if ($serializerName !== 'DataArray') {
37
-            app('Dingo\Api\Transformer\Factory')->setAdapter(function () use ($serializerName) {
37
+            app('Dingo\Api\Transformer\Factory')->setAdapter(function() use ($serializerName) {
38 38
                 switch ($serializerName) {
39 39
                     case 'JsonApi':
40 40
                         $serializer = new \League\Fractal\Serializer\JsonApiSerializer(Config::get('api.domain'));
Please login to merge, or discard this patch.
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -4,10 +4,7 @@
 block discarded – undo
4 4
 
5 5
 use App;
6 6
 use App\Port\Exception\Exceptions\UnsupportedFractalSerializerException;
7
-use DB;
8
-use File;
9 7
 use Illuminate\Support\Facades\Config;
10
-use Log;
11 8
 
12 9
 /**
13 10
  * Class FractalTrait.
Please login to merge, or discard this patch.
app/Port/Broadcast/Providers/BroadcastServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
         /*
26 26
          * Authenticate the user's personal channel...
27 27
          */
28
-        Broadcast::channel('App.User.*', function ($user, $userId) {
28
+        Broadcast::channel('App.User.*', function($user, $userId) {
29 29
             return (int)$user->id === (int)$userId;
30 30
         });
31 31
     }
Please login to merge, or discard this patch.
app/Containers/User/Data/Factories/UserFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@
 block discarded – undo
3 3
 use App\Containers\User\Models\User;
4 4
 
5 5
 // User
6
-$factory->define(User::class, function (Faker\Generator $faker) {
6
+$factory->define(User::class, function(Faker\Generator $faker) {
7 7
     return [
8 8
         'name'              => $faker->name,
9 9
         'email'             => $faker->email,
Please login to merge, or discard this patch.