Completed
Pull Request — master (#77)
by Mauro
03:08
created
app/Port/Migrations/Loaders/MigrationsLoaderTrait.php 2 patches
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.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
 
50 50
     private function loadMigrations($directory)
51 51
     {
52
-        App::afterResolving('migrator', function ($migrator) use ($directory) {
52
+        App::afterResolving('migrator', function($migrator) use ($directory) {
53 53
             foreach ((array)$directory as $path) {
54 54
                 $migrator->path($path);
55 55
             }
Please login to merge, or discard this patch.
Port/Queue/Data/Migrations/2016_11_30_174443_create_failed_jobs_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
      */
14 14
     public function up()
15 15
     {
16
-        Schema::create('failed_jobs', function (Blueprint $table) {
16
+        Schema::create('failed_jobs', function(Blueprint $table) {
17 17
             $table->increments('id');
18 18
             $table->text('connection');
19 19
             $table->text('queue');
Please login to merge, or discard this patch.
app/Port/Routes/Loaders/RoutesLoaderTrait.php 3 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@
 block discarded – undo
113 113
     /**
114 114
      * @param \Symfony\Component\Finder\SplFileInfo $file
115 115
      *
116
-     * @return  mixed
116
+     * @return  string
117 117
      */
118 118
     private function getRouteFileNameWithoutExtension(SplFileInfo $file)
119 119
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,6 @@
 block discarded – undo
7 7
 use Illuminate\Routing\Router as LaravelRouter;
8 8
 use Illuminate\Support\Facades\Config;
9 9
 use Illuminate\Support\Facades\File;
10
-use Route;
11 10
 use Symfony\Component\Finder\SplFileInfo;
12 11
 
13 12
 /**
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
                 $apiVersionNumber = $this->getRouteFileVersionNumber($fileNameWithoutExtension);
55 55
 
56 56
                 $this->apiRouter->version('v' . $apiVersionNumber,
57
-                    function (DingoApiRouter $router) use ($file, $containerPath, $containersNamespace) {
57
+                    function(DingoApiRouter $router) use ($file, $containerPath, $containersNamespace) {
58 58
 
59 59
                         $router->group([
60 60
                             // Routes Namespace
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
                             'limit'      => Config::get('api.limit'),
66 66
                             // The API limit expiry time.
67 67
                             'expires'    => Config::get('api.limit_expires'),
68
-                        ], function ($router) use ($file) {
68
+                        ], function($router) use ($file) {
69 69
 
70 70
                             require $file->getPathname();
71 71
 
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
             foreach ($files as $file) {
97 97
                 $this->webRouter->group([
98 98
                     'namespace' => $containersNamespace . '\\Containers\\' . basename($containerPath) . '\\Controllers',
99
-                ], function (LaravelRouter $router) use ($file) {
99
+                ], function(LaravelRouter $router) use ($file) {
100 100
                     require $file->getPathname();
101 101
                 });
102 102
             }
Please login to merge, or discard this patch.
app/Port/HashId/Traits/HashIdTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
     public function runEndpointsHashedIdsDecoder()
21 21
     {
22 22
         if (Config::get('hello.hash-id')) {
23
-            Route::bind('id', function ($id, $route) {
23
+            Route::bind('id', function($id, $route) {
24 24
                 return Hashids::decode($id)[0];
25 25
             });
26 26
         }
Please login to merge, or discard this patch.
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.