Passed
Push — master ( 3d397a...3f0190 )
by Andrey
12:15
created
migrations/2020_06_04_000001_modify_roles_table_add_is_root_column.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,14 +6,14 @@
 block discarded – undo
6 6
 {
7 7
     public function up()
8 8
     {
9
-        $this->table($this->roles, function (Blueprint $table) {
9
+        $this->table($this->roles, function(Blueprint $table) {
10 10
             $table->boolean('is_root')->default(false)->after('name');
11 11
         });
12 12
     }
13 13
 
14 14
     public function down()
15 15
     {
16
-        $this->table($this->roles, function (Blueprint $table) {
16
+        $this->table($this->roles, function(Blueprint $table) {
17 17
             $table->dropColumn('is_root');
18 18
         });
19 19
     }
Please login to merge, or discard this patch.
2020_06_04_000002_modify_roles_and_permissions_tables_remove_timestamps.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,14 +18,14 @@
 block discarded – undo
18 18
 
19 19
     protected function dropTimestamps(string $table)
20 20
     {
21
-        $this->table($table, function (Blueprint $table) {
21
+        $this->table($table, function(Blueprint $table) {
22 22
             $table->dropTimestamps();
23 23
         });
24 24
     }
25 25
 
26 26
     protected function createTimestamps(string $table)
27 27
     {
28
-        $this->table($table, function (Blueprint $table) {
28
+        $this->table($table, function(Blueprint $table) {
29 29
             $table->timestamps();
30 30
         });
31 31
     }
Please login to merge, or discard this patch.
2020_06_04_000003_modify_roles_and_permissions_table_optimize_indexes.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
 
19 19
     protected function optimizeIndexes(string $table, string $first_key, string $second_key)
20 20
     {
21
-        $this->table($table, function (Blueprint $table) use ($first_key, $second_key) {
21
+        $this->table($table, function(Blueprint $table) use ($first_key, $second_key) {
22 22
             $table->dropPrimary([$first_key, $second_key]);
23 23
 
24 24
             $table->index($first_key);
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
 
28 28
     protected function revertIndexes(string $table, string $first_key, string $second_key)
29 29
     {
30
-        $this->table($table, function (Blueprint $table) use ($first_key, $second_key) {
30
+        $this->table($table, function(Blueprint $table) use ($first_key, $second_key) {
31 31
             $table->dropIndex($first_key);
32 32
 
33 33
             $table->primary([$first_key, $second_key]);
Please login to merge, or discard this patch.
migrations/2019_04_22_115951_create_roles_and_permissions_tables.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
 
25 25
     protected function createTable(string $table)
26 26
     {
27
-        $this->create($table, function (Blueprint $table) {
27
+        $this->create($table, function(Blueprint $table) {
28 28
             $table->bigIncrements('id');
29 29
             $table->string('name')->unique();
30 30
             $table->timestamps();
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 
34 34
     protected function createPivot(string $table, string $first_table, string $second_table, string $first_key, string $second_key)
35 35
     {
36
-        $this->create($table, function (Blueprint $table) use ($first_table, $second_table, $first_key, $second_key) {
36
+        $this->create($table, function(Blueprint $table) use ($first_table, $second_table, $first_key, $second_key) {
37 37
             $table->unsignedBigInteger($first_key);
38 38
             $table->unsignedBigInteger($second_key);
39 39
 
Please login to merge, or discard this patch.