Completed
Push — master ( 4d2ce9...45ef2c )
by Maarten
01:25
created
src/Http/Controllers/RelationsController.php 2 patches
Unused Use Statements   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -3,16 +3,16 @@
 block discarded – undo
3 3
 namespace Mtolhuys\LaravelSchematics\Http\Controllers;
4 4
 
5 5
 use Illuminate\Contracts\Routing\ResponseFactory;
6
-use Mtolhuys\LaravelSchematics\Actions\Relation\DeleteRelationAction;
7
-use Mtolhuys\LaravelSchematics\Actions\Relation\CreateRelationAction;
6
+use Illuminate\Routing\Controller;
7
+use Illuminate\Support\Facades\Cache;
8 8
 use Mtolhuys\LaravelSchematics\Actions\Migration\CreateMigrationAction;
9 9
 use Mtolhuys\LaravelSchematics\Actions\Migration\DeleteMigrationAction;
10
+use Mtolhuys\LaravelSchematics\Actions\Relation\CreateRelationAction;
11
+use Mtolhuys\LaravelSchematics\Actions\Relation\DeleteRelationAction;
10 12
 use Mtolhuys\LaravelSchematics\Http\Requests\CreateRelationRequest;
11 13
 use Mtolhuys\LaravelSchematics\Http\Requests\DeleteRelationRequest;
12
-use Symfony\Component\HttpFoundation\Response;
13
-use Illuminate\Support\Facades\Cache;
14
-use Illuminate\Routing\Controller;
15 14
 use ReflectionException;
15
+use Symfony\Component\HttpFoundation\Response;
16 16
 
17 17
 class RelationsController extends Controller
18 18
 {
Please login to merge, or discard this patch.
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
     }
52 52
 
53 53
     /**
54
-     * @param $request
54
+     * @param CreateRelationRequest $request
55 55
      */
56 56
     public function createOptional($request)
57 57
     {
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
 
65 65
     /**
66 66
      * @param $option
67
-     * @return mixed
67
+     * @return CreateMigrationAction
68 68
      */
69 69
     private function getCreateAction($option)
70 70
     {
Please login to merge, or discard this patch.
src/Actions/Migration/DeleteMigrationAction.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,8 +2,8 @@
 block discarded – undo
2 2
 
3 3
 namespace Mtolhuys\LaravelSchematics\Actions\Migration;
4 4
 
5
-use Illuminate\Support\Str;
6 5
 use Illuminate\Support\Facades\File;
6
+use Illuminate\Support\Str;
7 7
 use Mtolhuys\LaravelSchematics\Http\Requests\DeleteRelationRequest;
8 8
 use Mtolhuys\LaravelSchematics\Models\Migration;
9 9
 use Mtolhuys\LaravelSchematics\Services\ClassReader;
Please login to merge, or discard this patch.
src/Http/Controllers/SchematicsController.php 1 patch
Unused Use Statements   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -2,18 +2,18 @@
 block discarded – undo
2 2
 
3 3
 namespace Mtolhuys\LaravelSchematics\Http\Controllers;
4 4
 
5
-use Mtolhuys\LaravelSchematics\Models\Migration;
6
-use Mtolhuys\LaravelSchematics\Services\RelationMapper;
7
-use Mtolhuys\LaravelSchematics\Services\ModelMapper;
8 5
 use Illuminate\Contracts\Routing\ResponseFactory;
9
-use Symfony\Component\HttpFoundation\Response;
10 6
 use Illuminate\Contracts\View\Factory;
11
-use Illuminate\Support\Facades\Schema;
12
-use Illuminate\Support\Facades\Cache;
13 7
 use Illuminate\Routing\Controller;
8
+use Illuminate\Support\Facades\Cache;
14 9
 use Illuminate\Support\Facades\DB;
10
+use Illuminate\Support\Facades\Schema;
15 11
 use Illuminate\View\View;
12
+use Mtolhuys\LaravelSchematics\Models\Migration;
13
+use Mtolhuys\LaravelSchematics\Services\ModelMapper;
14
+use Mtolhuys\LaravelSchematics\Services\RelationMapper;
16 15
 use ReflectionException;
16
+use Symfony\Component\HttpFoundation\Response;
17 17
 
18 18
 class SchematicsController extends Controller
19 19
 {
Please login to merge, or discard this patch.
src/Services/RelationMapper.php 1 patch
Unused Use Statements   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,9 +4,8 @@
 block discarded – undo
4 4
 
5 5
 use Illuminate\Database\Eloquent\Relations\Relation;
6 6
 
7
-use ReflectionException;
8
-use Illuminate\Support\Collection;
9 7
 use ReflectionClass;
8
+use ReflectionException;
10 9
 use ReflectionMethod;
11 10
 
12 11
 class RelationMapper extends ClassReader
Please login to merge, or discard this patch.
src/Actions/Migration/CreateMigrationAction.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
     }
41 41
 
42 42
     /**
43
-     * @param $request
43
+     * @param CreateRelationRequest $request
44 44
      * @return bool|int
45 45
      */
46 46
     private function createRelationMigration($request)
Please login to merge, or discard this patch.
Unused Use Statements   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -2,11 +2,11 @@
 block discarded – undo
2 2
 
3 3
 namespace Mtolhuys\LaravelSchematics\Actions\Migration;
4 4
 
5
-use Illuminate\Support\Str;
6
-use Illuminate\Support\Facades\File;
7 5
 use Illuminate\Support\Facades\Artisan;
8
-use Mtolhuys\LaravelSchematics\Services\RuleParser;
6
+use Illuminate\Support\Facades\File;
7
+use Illuminate\Support\Str;
9 8
 use Mtolhuys\LaravelSchematics\Http\Requests\CreateRelationRequest;
9
+use Mtolhuys\LaravelSchematics\Services\RuleParser;
10 10
 
11 11
 class CreateMigrationAction
12 12
 {
Please login to merge, or discard this patch.