@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | $unexpectedFields = self::filterTheAttributesThatDoesNotBelongToThisClass($tableFields, $associative1DArray); |
| 52 | 52 | |
| 53 | 53 | if (count($unexpectedFields) > 0) { |
| 54 | - throw TableFieldUndefinedException::create($unexpectedFields,"needs to be created as a table field"); |
|
| 54 | + throw TableFieldUndefinedException::create($unexpectedFields, "needs to be created as a table field"); |
|
| 55 | 55 | } |
| 56 | 56 | |
| 57 | 57 | unset($associative1DArray[0]); |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | { |
| 77 | 77 | $insertQuery = 'INSERT INTO '.$tableName; |
| 78 | 78 | |
| 79 | - $TableValues = implode(',',array_keys($associative1DArray)); |
|
| 79 | + $TableValues = implode(',', array_keys($associative1DArray)); |
|
| 80 | 80 | |
| 81 | 81 | foreach ($associative1DArray as $field => $value) { |
| 82 | 82 | $FormValues[] = "'".trim(addslashes($value))."'"; |
@@ -84,8 +84,8 @@ discard block |
||
| 84 | 84 | |
| 85 | 85 | $splittedTableValues = implode(',', $FormValues); |
| 86 | 86 | |
| 87 | - $insertQuery.= ' ('.$TableValues.')'; |
|
| 88 | - $insertQuery.= ' VALUES ('.$splittedTableValues.')'; |
|
| 87 | + $insertQuery .= ' ('.$TableValues.')'; |
|
| 88 | + $insertQuery .= ' VALUES ('.$splittedTableValues.')'; |
|
| 89 | 89 | |
| 90 | 90 | $executeQuery = $dbConn->exec($insertQuery); |
| 91 | 91 | |
@@ -208,7 +208,7 @@ discard block |
||
| 208 | 208 | $unexpectedFields = []; |
| 209 | 209 | |
| 210 | 210 | foreach ($userSetterArray as $key => $val) { |
| 211 | - if (! in_array($key, $tableColumn)) { |
|
| 211 | + if (!in_array($key, $tableColumn)) { |
|
| 212 | 212 | $unexpectedFields[] = $key; |
| 213 | 213 | } |
| 214 | 214 | } |
@@ -224,11 +224,11 @@ discard block |
||
| 224 | 224 | */ |
| 225 | 225 | public function prepareUpdateQuery($sql) |
| 226 | 226 | { |
| 227 | - $splittedQuery = explode(",",$sql); |
|
| 227 | + $splittedQuery = explode(",", $sql); |
|
| 228 | 228 | |
| 229 | 229 | array_pop($splittedQuery); |
| 230 | 230 | |
| 231 | - $mergeData = implode(",",$splittedQuery); |
|
| 231 | + $mergeData = implode(",", $splittedQuery); |
|
| 232 | 232 | |
| 233 | 233 | return $mergeData; |
| 234 | 234 | |