Passed
Push — master ( 22c209...7abc17 )
by Iman
06:33
created
src/helpers/DbInspector.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
     {
45 45
         $colObj = \DB::getDoctrineSchemaManager()->listTableColumns($table)[$colName];
46 46
         if(!$colObj){
47
-           return ;
47
+            return ;
48 48
         }
49 49
         return !$colObj->getNotnull();
50 50
     }
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
      */
17 17
     public static function findPK($table)
18 18
     {
19
-        if (! $table) {
19
+        if (!$table) {
20 20
             return 'id';
21 21
         }
22 22
 
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
 
28 28
         $primaryKey = self::findPKname($table);
29 29
 
30
-        if (! $primaryKey) {
30
+        if (!$primaryKey) {
31 31
             return 'id';
32 32
         }
33 33
         CbCache::put('table_'.$table, 'primaryKey', $primaryKey);
@@ -43,8 +43,8 @@  discard block
 block discarded – undo
43 43
     public static function isNullableColumn($table, $colName)
44 44
     {
45 45
         $colObj = \DB::getDoctrineSchemaManager()->listTableColumns($table)[$colName];
46
-        if(!$colObj){
47
-           return ;
46
+        if (!$colObj) {
47
+           return;
48 48
         }
49 49
         return !$colObj->getNotnull();
50 50
     }
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
         }
82 82
 
83 83
         $table = self::getTableForeignKey($fieldName);
84
-        if (! $table) {
84
+        if (!$table) {
85 85
             return false;
86 86
         }
87 87
 
Please login to merge, or discard this patch.