Passed
Push — master ( bf9d3e...c219b3 )
by Nasrul Hazim
01:49
created
src/Database/Schema/macros/foreign-keys.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -30,9 +30,9 @@
 block discarded – undo
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)
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Database/Schema/macros/acceptance.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
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
     ]);
Please login to merge, or discard this patch.