@@ -44,7 +44,7 @@ |
||
| 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 | } |
@@ -16,7 +16,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 81 | 81 | } |
| 82 | 82 | |
| 83 | 83 | $table = self::getTableForeignKey($fieldName); |
| 84 | - if (! $table) { |
|
| 84 | + if (!$table) { |
|
| 85 | 85 | return false; |
| 86 | 86 | } |
| 87 | 87 | |