Passed
Pull Request — master (#11)
by Karel
29:26 queued 20:45
created
database/migrations/2019_10_16_225750_add_order_field_to_pages_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::table('pages', function (Blueprint $table) {
16
+        Schema::table('pages', function(Blueprint $table) {
17 17
             $table->integer('order')->default(1)->after('page');
18 18
         });
19 19
     }
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
      */
26 26
     public function down()
27 27
     {
28
-        Schema::table('pages', function (Blueprint $table) {
28
+        Schema::table('pages', function(Blueprint $table) {
29 29
             $table->dropColumn('order');
30 30
         });
31 31
     }
Please login to merge, or discard this patch.
database/migrations/2020_04_16_162350_add_redirect_field_to_roles_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::table('roles', function (Blueprint $table) {
16
+        Schema::table('roles', function(Blueprint $table) {
17 17
             $table->string('redirect')->default('dashboard')->after('guard_name');
18 18
         });
19 19
     }
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
      */
26 26
     public function down()
27 27
     {
28
-        Schema::table('roles', function (Blueprint $table) {
28
+        Schema::table('roles', function(Blueprint $table) {
29 29
             $table->dropColumn('redirect');
30 30
         });
31 31
     }
Please login to merge, or discard this patch.
database/migrations/2017_08_11_074006_create_chck_menu_items_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(config('menu.table_prefix').config('menu.table_name_items'), function (Blueprint $table) {
16
+        Schema::create(config('menu.table_prefix') . config('menu.table_name_items'), function(Blueprint $table) {
17 17
             $table->increments('id');
18 18
             $table->string('label');
19 19
             $table->string('link');
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
             $table->integer('depth')->default(0);
25 25
             $table->timestamps();
26 26
 
27
-            $table->foreign('menu')->references('id')->on(config('menu.table_prefix').config('menu.table_name_menus'))
27
+            $table->foreign('menu')->references('id')->on(config('menu.table_prefix') . config('menu.table_name_menus'))
28 28
             ->onDelete('cascade')
29 29
             ->onUpdate('cascade');
30 30
         });
@@ -37,6 +37,6 @@  discard block
 block discarded – undo
37 37
      */
38 38
     public function down()
39 39
     {
40
-        Schema::dropIfExists(config('menu.table_prefix').config('menu.table_name_items'));
40
+        Schema::dropIfExists(config('menu.table_prefix') . config('menu.table_name_items'));
41 41
     }
42 42
 }
Please login to merge, or discard this patch.
migrations/2021_08_26_140550_add_soft_deletes_to_repeaters_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::table('repeaters', function (Blueprint $table) {
16
+        Schema::table('repeaters', function(Blueprint $table) {
17 17
             $table->softDeletes();
18 18
         });
19 19
     }
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
      */
26 26
     public function down()
27 27
     {
28
-        Schema::table('repeaters', function (Blueprint $table) {
28
+        Schema::table('repeaters', function(Blueprint $table) {
29 29
             $table->dropSoftDeletes();
30 30
         });
31 31
     }
Please login to merge, or discard this patch.
migrations/2018_01_01_000001_add_active_token_field_to_users_table.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -14,13 +14,13 @@  discard block
 block discarded – undo
14 14
     public function up()
15 15
     {
16 16
         if (!Schema::hasColumn('users', 'token')) {
17
-            Schema::table('users', function (Blueprint $table) {
17
+            Schema::table('users', function(Blueprint $table) {
18 18
                 $table->string('token', 24)->unique()->after('remember_token');
19 19
             });
20 20
         }
21 21
 
22 22
         if (!Schema::hasColumn('users', 'active')) {
23
-            Schema::table('users', function (Blueprint $table) {
23
+            Schema::table('users', function(Blueprint $table) {
24 24
                 $table->tinyInteger('active')->default(0)->after('token');
25 25
             });
26 26
         }
@@ -34,13 +34,13 @@  discard block
 block discarded – undo
34 34
     public function down()
35 35
     {
36 36
         if (Schema::hasColumn('users', 'token')) {
37
-            Schema::table('users', function (Blueprint $table) {
37
+            Schema::table('users', function(Blueprint $table) {
38 38
                 $table->dropColumn('token');
39 39
             });
40 40
         }
41 41
 
42 42
         if (Schema::hasColumn('users', 'active')) {
43
-            Schema::table('users', function (Blueprint $table) {
43
+            Schema::table('users', function(Blueprint $table) {
44 44
                 $table->dropColumn('active');
45 45
             });
46 46
         }
Please login to merge, or discard this patch.
database/migrations/2017_08_11_073824_create_chck_menus_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(config('menu.table_prefix').config('menu.table_name_menus'), function (Blueprint $table) {
16
+        Schema::create(config('menu.table_prefix') . config('menu.table_name_menus'), function(Blueprint $table) {
17 17
             $table->increments('id');
18 18
             $table->string('name');
19 19
             $table->timestamps();
@@ -27,6 +27,6 @@  discard block
 block discarded – undo
27 27
      */
28 28
     public function down()
29 29
     {
30
-        Schema::dropIfExists(config('menu.table_prefix').config('menu.table_name_menus'));
30
+        Schema::dropIfExists(config('menu.table_prefix') . config('menu.table_name_menus'));
31 31
     }
32 32
 }
Please login to merge, or discard this patch.
database/migrations/2020_04_16_171110_add_roles_field_to_pages_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::table('pages', function (Blueprint $table) {
16
+        Schema::table('pages', function(Blueprint $table) {
17 17
             $table->string('roles')->nullable()->default(null)->after('active');
18 18
         });
19 19
     }
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
      */
26 26
     public function down()
27 27
     {
28
-        Schema::table('pages', function (Blueprint $table) {
28
+        Schema::table('pages', function(Blueprint $table) {
29 29
             $table->dropColumn('roles');
30 30
         });
31 31
     }
Please login to merge, or discard this patch.
migrations/2020_12_07_140740_add_lang_field_to_page_blocks_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::table('page_blocks', function (Blueprint $table) {
16
+        Schema::table('page_blocks', function(Blueprint $table) {
17 17
             $table->string('lang')->nullable()->default(null)->after('order');
18 18
         });
19 19
     }
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
      */
26 26
     public function down()
27 27
     {
28
-        Schema::table('page_blocks', function (Blueprint $table) {
28
+        Schema::table('page_blocks', function(Blueprint $table) {
29 29
             $table->dropColumn('lang');
30 30
         });
31 31
     }
Please login to merge, or discard this patch.
src/Controllers/Auth/ResetPasswordController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
 
39 39
     protected function redirectTo()
40 40
     {
41
-        return '/'.Auth::user()->roles()->first()->redirect;
41
+        return '/' . Auth::user()->roles()->first()->redirect;
42 42
     }
43 43
 
44 44
     /**
Please login to merge, or discard this patch.