Passed
Push — master ( 62b981...b05b09 )
by Iman
03:56
created
src/helpers/DbInspector.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -15,11 +15,11 @@  discard block
 block discarded – undo
15 15
      */
16 16
     public static function findPK(string $table): string
17 17
     {
18
-        if (! $table) {
18
+        if (!$table) {
19 19
             return 'id';
20 20
         }
21 21
 
22
-        return cache()->remember('CrudBooster_pk_'.$table, 10, function () use ($table) {
22
+        return cache()->remember('CrudBooster_pk_'.$table, 10, function() use ($table) {
23 23
             return self::findPKname($table) ?: 'id';
24 24
         });
25 25
     }
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
     private static function findPKname($table)
32 32
     {
33 33
         $cols = \DB::getDoctrineSchemaManager()->listTableDetails($table)->getPrimaryKey()->getColumns();
34
-        if (! empty($cols)) {
34
+        if (!empty($cols)) {
35 35
             return $cols[0];
36 36
         }
37 37
     }
@@ -44,11 +44,11 @@  discard block
 block discarded – undo
44 44
     public static function isNullableColumn($table, $colName)
45 45
     {
46 46
         $colObj = \DB::getDoctrineSchemaManager()->listTableColumns($table)[$colName];
47
-        if (! $colObj) {
47
+        if (!$colObj) {
48 48
             return;
49 49
         }
50 50
 
51
-        return ! $colObj->getNotnull();
51
+        return !$colObj->getNotnull();
52 52
     }
53 53
 
54 54
     /**
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
      */
77 77
     public static function isForeignKey($fieldName)
78 78
     {
79
-        return Cache::rememberForever('crudbooster_isForeignKey_'.$fieldName, function () use ($fieldName) {
79
+        return Cache::rememberForever('crudbooster_isForeignKey_'.$fieldName, function() use ($fieldName) {
80 80
             $table = self::getTableForeignKey($fieldName);
81 81
             return ($table && Schema::hasTable($table));
82 82
         });
Please login to merge, or discard this patch.