Completed
Pull Request — master (#6)
by Jonathan
16:01 queued 06:12
created
database/migrations/2018_04_15_000011_create_tabs_table.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
      */
17 17
     public function up()
18 18
     {
19
-        Schema::create($this->tablePrefix . 'tabs', function (Blueprint $table) {
19
+        Schema::create($this->tablePrefix.'tabs', function(Blueprint $table) {
20 20
             $table->increments('id');
21 21
             $table->unsignedInteger('module_id');
22 22
             $table->string('label');
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
 
28 28
             // Foreign keys
29 29
             $table->foreign('module_id')
30
-                    ->references('id')->on($this->tablePrefix . 'modules')
30
+                    ->references('id')->on($this->tablePrefix.'modules')
31 31
                     ->onDelete('cascade');
32 32
         });
33 33
     }
@@ -39,6 +39,6 @@  discard block
 block discarded – undo
39 39
      */
40 40
     public function down()
41 41
     {
42
-        Schema::dropIfExists($this->tablePrefix . 'tabs');
42
+        Schema::dropIfExists($this->tablePrefix.'tabs');
43 43
     }
44 44
 }
Please login to merge, or discard this patch.
database/migrations/2018_04_15_000015_create_filters_table.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
      */
14 14
     public function up()
15 15
     {
16
-        Schema::create($this->tablePrefix . 'filters', function (Blueprint $table) {
16
+        Schema::create($this->tablePrefix.'filters', function(Blueprint $table) {
17 17
             $table->increments('id');
18 18
             $table->unsignedInteger('module_id');
19 19
             $table->unsignedInteger('domain_id')->nullable();
@@ -29,11 +29,11 @@  discard block
 block discarded – undo
29 29
 
30 30
             // Foreign keys
31 31
             $table->foreign('module_id')
32
-                    ->references('id')->on($this->tablePrefix . 'modules')
32
+                    ->references('id')->on($this->tablePrefix.'modules')
33 33
                     ->onDelete('cascade');
34 34
 
35 35
             $table->foreign('domain_id')
36
-                    ->references('id')->on($this->tablePrefix . 'domains')
36
+                    ->references('id')->on($this->tablePrefix.'domains')
37 37
                     ->onDelete('cascade');
38 38
 
39 39
             $table->foreign('user_id')
@@ -49,6 +49,6 @@  discard block
 block discarded – undo
49 49
      */
50 50
     public function down()
51 51
     {
52
-        Schema::dropIfExists($this->tablePrefix . 'filters');
52
+        Schema::dropIfExists($this->tablePrefix.'filters');
53 53
     }
54 54
 }
Please login to merge, or discard this patch.
database/migrations/2018_04_15_000021_add_default_data.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
         $user->first_name = null;
60 60
         $user->last_name = 'Admin';
61 61
         $user->email = '[email protected]';
62
-        $user->password = Hash::make( 'admin');
62
+        $user->password = Hash::make('admin');
63 63
         $user->is_admin = true;
64 64
         $user->domain_id = Domain::first()->id;
65 65
         $user->save();
Please login to merge, or discard this patch.
database/migrations/2018_04_15_000020_create_home_structure.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
         $module->name = 'home';
32 32
         $module->icon = 'home';
33 33
         $module->model_class = null;
34
-        $module->data = ["package" => "uccello/uccello", "menu" => 'uccello.index', "mandatory" => true];
34
+        $module->data = [ "package" => "uccello/uccello", "menu" => 'uccello.index', "mandatory" => true ];
35 35
         $module->save();
36 36
 
37 37
         return $module;
Please login to merge, or discard this patch.
database/migrations/2018_04_15_000001_create_domains_table.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
      */
14 14
     public function up()
15 15
     {
16
-        Schema::create($this->tablePrefix . 'domains', function (Blueprint $table) {
16
+        Schema::create($this->tablePrefix.'domains', function(Blueprint $table) {
17 17
             $table->increments('id');
18 18
             $table->string('name');
19 19
             $table->string('slug');
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
 
26 26
             // Foreign keys
27 27
             $table->foreign('parent_id')
28
-                    ->references('id')->on($this->tablePrefix . 'domains');
28
+                    ->references('id')->on($this->tablePrefix.'domains');
29 29
         });
30 30
     }
31 31
 
@@ -36,6 +36,6 @@  discard block
 block discarded – undo
36 36
      */
37 37
     public function down()
38 38
     {
39
-        Schema::dropIfExists($this->tablePrefix . 'domains');
39
+        Schema::dropIfExists($this->tablePrefix.'domains');
40 40
     }
41 41
 }
Please login to merge, or discard this patch.
database/migrations/2018_04_15_000014_create_fields_table.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
      */
14 14
     public function up()
15 15
     {
16
-        Schema::create($this->tablePrefix . 'fields', function (Blueprint $table) {
16
+        Schema::create($this->tablePrefix.'fields', function(Blueprint $table) {
17 17
             $table->increments('id');
18 18
             $table->unsignedInteger('module_id')->comment('Decrease queries');
19 19
             $table->unsignedInteger('block_id');
@@ -26,18 +26,18 @@  discard block
 block discarded – undo
26 26
 
27 27
             // Foreign keys
28 28
             $table->foreign('module_id')
29
-                ->references('id')->on($this->tablePrefix . 'modules')
29
+                ->references('id')->on($this->tablePrefix.'modules')
30 30
                 ->onDelete('cascade');
31 31
 
32 32
             $table->foreign('block_id')
33
-                    ->references('id')->on($this->tablePrefix . 'blocks')
33
+                    ->references('id')->on($this->tablePrefix.'blocks')
34 34
                     ->onDelete('cascade');
35 35
 
36 36
             $table->foreign('uitype_id')
37
-                    ->references('id')->on($this->tablePrefix . 'uitypes');
37
+                    ->references('id')->on($this->tablePrefix.'uitypes');
38 38
 
39 39
             $table->foreign('displaytype_id')
40
-                    ->references('id')->on($this->tablePrefix . 'displaytypes');
40
+                    ->references('id')->on($this->tablePrefix.'displaytypes');
41 41
         });
42 42
     }
43 43
 
@@ -48,6 +48,6 @@  discard block
 block discarded – undo
48 48
      */
49 49
     public function down()
50 50
     {
51
-        Schema::dropIfExists($this->tablePrefix . 'fields');
51
+        Schema::dropIfExists($this->tablePrefix.'fields');
52 52
     }
53 53
 }
Please login to merge, or discard this patch.
database/migrations/2018_04_15_000006_create_profiles_roles_table.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
      */
14 14
     public function up()
15 15
     {
16
-        Schema::create($this->tablePrefix . 'profiles_roles', function (Blueprint $table) {
16
+        Schema::create($this->tablePrefix.'profiles_roles', function(Blueprint $table) {
17 17
             $table->increments('id');
18 18
             $table->unsignedInteger('profile_id');
19 19
             $table->unsignedInteger('role_id');
@@ -21,15 +21,15 @@  discard block
 block discarded – undo
21 21
 
22 22
             // Foreign keys
23 23
             $table->foreign('profile_id')
24
-                    ->references('id')->on($this->tablePrefix . 'profiles')
24
+                    ->references('id')->on($this->tablePrefix.'profiles')
25 25
                     ->onDelete('cascade');
26 26
 
27 27
             $table->foreign('role_id')
28
-                    ->references('id')->on($this->tablePrefix . 'roles')
28
+                    ->references('id')->on($this->tablePrefix.'roles')
29 29
                     ->onDelete('cascade');
30 30
 
31 31
             // Unique keys
32
-            $table->unique(['profile_id', 'role_id']);
32
+            $table->unique([ 'profile_id', 'role_id' ]);
33 33
         });
34 34
     }
35 35
 
@@ -40,6 +40,6 @@  discard block
 block discarded – undo
40 40
      */
41 41
     public function down()
42 42
     {
43
-        Schema::dropIfExists($this->tablePrefix . 'profiles_roles');
43
+        Schema::dropIfExists($this->tablePrefix.'profiles_roles');
44 44
     }
45 45
 }
Please login to merge, or discard this patch.
database/migrations/2018_04_15_000024_create_links_table.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
      */
17 17
     public function up()
18 18
     {
19
-        Schema::create($this->tablePrefix . 'links', function (Blueprint $table) {
19
+        Schema::create($this->tablePrefix.'links', function(Blueprint $table) {
20 20
             $table->increments('id');
21 21
             $table->unsignedInteger('module_id');
22 22
             $table->string('label');
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 
30 30
             // Foreign keys
31 31
             $table->foreign('module_id')
32
-                    ->references('id')->on($this->tablePrefix . 'modules')
32
+                    ->references('id')->on($this->tablePrefix.'modules')
33 33
                     ->onDelete('cascade');
34 34
         });
35 35
     }
@@ -41,6 +41,6 @@  discard block
 block discarded – undo
41 41
      */
42 42
     public function down()
43 43
     {
44
-        Schema::dropIfExists($this->tablePrefix . 'links');
44
+        Schema::dropIfExists($this->tablePrefix.'links');
45 45
     }
46 46
 }
Please login to merge, or discard this patch.
database/migrations/2018_04_15_000002_create_modules_table.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
      */
14 14
     public function up()
15 15
     {
16
-        Schema::create($this->tablePrefix . 'modules', function (Blueprint $table) {
16
+        Schema::create($this->tablePrefix.'modules', function(Blueprint $table) {
17 17
             $table->increments('id');
18 18
             $table->string('name');
19 19
             $table->string('icon')->nullable();
@@ -30,6 +30,6 @@  discard block
 block discarded – undo
30 30
      */
31 31
     public function down()
32 32
     {
33
-        Schema::dropIfExists($this->tablePrefix . 'modules');
33
+        Schema::dropIfExists($this->tablePrefix.'modules');
34 34
     }
35 35
 }
Please login to merge, or discard this patch.