@@ -144,7 +144,7 @@ discard block |
||
| 144 | 144 | $table->addColumn($columnName, $type, $options); |
| 145 | 145 | |
| 146 | 146 | if ($index) { |
| 147 | - $table->addIndex([ $columnName ]); |
|
| 147 | + $table->addIndex([$columnName]); |
|
| 148 | 148 | } |
| 149 | 149 | } |
| 150 | 150 | |
@@ -225,7 +225,7 @@ discard block |
||
| 225 | 225 | } |
| 226 | 226 | } |
| 227 | 227 | |
| 228 | - $select->execute([ 'id' => $record->getZohoId() ]); |
|
| 228 | + $select->execute(['id' => $record->getZohoId()]); |
|
| 229 | 229 | $result = $select->fetch(\PDO::FETCH_ASSOC); |
| 230 | 230 | if ($result === false) { |
| 231 | 231 | $data['id'] = $record->getZohoId(); |
@@ -237,7 +237,7 @@ discard block |
||
| 237 | 237 | $listener->onInsert($data, $dao); |
| 238 | 238 | } |
| 239 | 239 | } else { |
| 240 | - $identifier = ['id' => $record->getZohoId() ]; |
|
| 240 | + $identifier = ['id' => $record->getZohoId()]; |
|
| 241 | 241 | $types['id'] = 'string'; |
| 242 | 242 | |
| 243 | 243 | $this->connection->update($tableName, $data, $identifier, $types); |
@@ -270,7 +270,7 @@ discard block |
||
| 270 | 270 | */ |
| 271 | 271 | private function getTableName(AbstractZohoDao $dao) { |
| 272 | 272 | $tableName = $this->prefix.$dao->getPluralModuleName(); |
| 273 | - $tableName= s($tableName)->upperCamelize()->underscored(); |
|
| 273 | + $tableName = s($tableName)->upperCamelize()->underscored(); |
|
| 274 | 274 | return (string) $tableName; |
| 275 | 275 | } |
| 276 | 276 | } |