@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | $unexpectedFields = self::checkIfMagicSetterContainsIsSameAsClassModel($tableFields, $associative1DArray); |
| 53 | 53 | |
| 54 | 54 | if (count($unexpectedFields) > 0) { |
| 55 | - throw TableFieldUndefinedException::reportUnknownTableField($unexpectedFields,"needs to be created as a table field"); |
|
| 55 | + throw TableFieldUndefinedException::reportUnknownTableField($unexpectedFields, "needs to be created as a table field"); |
|
| 56 | 56 | } |
| 57 | 57 | |
| 58 | 58 | unset($associative1DArray[0]); |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | { |
| 78 | 78 | $insertQuery = 'INSERT INTO '.$tableName; |
| 79 | 79 | |
| 80 | - $TableValues = implode(',',array_keys($associative1DArray)); |
|
| 80 | + $TableValues = implode(',', array_keys($associative1DArray)); |
|
| 81 | 81 | |
| 82 | 82 | foreach ($associative1DArray as $field => $value) { |
| 83 | 83 | $FormValues[] = "'".trim(addslashes($value))."'"; |
@@ -85,8 +85,8 @@ discard block |
||
| 85 | 85 | |
| 86 | 86 | $splittedTableValues = implode(',', $FormValues); |
| 87 | 87 | |
| 88 | - $insertQuery.= ' ('.$TableValues.')'; |
|
| 89 | - $insertQuery.= ' VALUES ('.$splittedTableValues.')'; |
|
| 88 | + $insertQuery .= ' ('.$TableValues.')'; |
|
| 89 | + $insertQuery .= ' VALUES ('.$splittedTableValues.')'; |
|
| 90 | 90 | |
| 91 | 91 | $executeQuery = $dbConn->exec($insertQuery); |
| 92 | 92 | |
@@ -215,7 +215,7 @@ discard block |
||
| 215 | 215 | $unexpectedFields = []; |
| 216 | 216 | |
| 217 | 217 | foreach ($userSetterArray as $key => $val) { |
| 218 | - if (!in_array($key,$tableColumn)) { |
|
| 218 | + if (!in_array($key, $tableColumn)) { |
|
| 219 | 219 | $unexpectedFields[] = $key; |
| 220 | 220 | } |
| 221 | 221 | } |
@@ -231,11 +231,11 @@ discard block |
||
| 231 | 231 | */ |
| 232 | 232 | public function prepareUpdateQuery($sql) |
| 233 | 233 | { |
| 234 | - $splittedQuery = explode(",",$sql); |
|
| 234 | + $splittedQuery = explode(",", $sql); |
|
| 235 | 235 | |
| 236 | 236 | array_pop($splittedQuery); |
| 237 | 237 | |
| 238 | - $mergeData = implode(",",$splittedQuery); |
|
| 238 | + $mergeData = implode(",", $splittedQuery); |
|
| 239 | 239 | |
| 240 | 240 | return $mergeData; |
| 241 | 241 | |