@@ -30,9 +30,9 @@ |
||
30 | 30 | return $schema; |
31 | 31 | }); |
32 | 32 | |
33 | - DefaultBlueprint::macro('addNullableForeign', function($table, $fk, $bigInteger = false) { |
|
34 | - return $this->addForeign($table, ['nullable' => true, 'fk' => $fk, 'bigInteger' => $bigInteger])->comment('Nullable FK for ' . $table); |
|
35 | - }); |
|
33 | + DefaultBlueprint::macro('addNullableForeign', function($table, $fk, $bigInteger = false) { |
|
34 | + return $this->addForeign($table, ['nullable' => true, 'fk' => $fk, 'bigInteger' => $bigInteger])->comment('Nullable FK for ' . $table); |
|
35 | + }); |
|
36 | 36 | |
37 | 37 | DefaultBlueprint::macro('referenceOn', function($key, $table, $reference = 'id') { |
38 | 38 | return $this->foreign($key) |
@@ -23,7 +23,7 @@ |
||
23 | 23 | $schema->nullable(); |
24 | 24 | } |
25 | 25 | |
26 | - if (! isset($options['no_reference'])) { |
|
26 | + if ( ! isset($options['no_reference'])) { |
|
27 | 27 | $this->referenceOn($fk, $table, $reference); |
28 | 28 | } |
29 | 29 |
@@ -29,7 +29,7 @@ |
||
29 | 29 | |
30 | 30 | DefaultBlueprint::macro('by', function($table, $key = null, $nullable = true, $bigInteger = false, $suffix = '_by') { |
31 | 31 | return $this->addForeign($table, [ |
32 | - 'fk' => (! is_null($key) ? $key . $suffix : null), |
|
32 | + 'fk' => ( ! is_null($key) ? $key . $suffix : null), |
|
33 | 33 | 'nullable' => $nullable, |
34 | 34 | 'bigInteger' => $bigInteger, |
35 | 35 | ]); |