@@ -84,8 +84,8 @@ discard block |
||
84 | 84 | $this->table = $table['table']; |
85 | 85 | $this->schema = $table['schema']; |
86 | 86 | } |
87 | - $this->quotedTable = ($this->schema ? "{$driver->quoteIdentifier($this->schema)}." : "") . $driver->quoteIdentifier($this->table); |
|
88 | - $this->unquotedTable = ($this->schema ? "{$this->schema}." : "") . $this->table; |
|
87 | + $this->quotedTable = ($this->schema ? "{$driver->quoteIdentifier($this->schema)}." : "").$driver->quoteIdentifier($this->table); |
|
88 | + $this->unquotedTable = ($this->schema ? "{$this->schema}." : "").$this->table; |
|
89 | 89 | $this->adapter->setModel($this, $this->quotedTable); |
90 | 90 | $this->initialized = true; |
91 | 91 | } |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | { |
105 | 105 | $this->initialize(); |
106 | 106 | return $this->context->getCache()->read( |
107 | - "{$this->className}::desc", function () { |
|
107 | + "{$this->className}::desc", function() { |
|
108 | 108 | return $this->context->getModelDescription($this); |
109 | 109 | } |
110 | 110 | ); |
@@ -32,8 +32,8 @@ discard block |
||
32 | 32 | $valueFields[] = ":{$field}"; |
33 | 33 | } |
34 | 34 | |
35 | - return "INSERT INTO " . $table . |
|
36 | - " (" . implode(", ", $quotedFields) . ") VALUES (" . implode(', ', $valueFields) . ")"; |
|
35 | + return "INSERT INTO ".$table. |
|
36 | + " (".implode(", ", $quotedFields).") VALUES (".implode(', ', $valueFields).")"; |
|
37 | 37 | } |
38 | 38 | |
39 | 39 | public function getBulkUpdateQuery($data, $parameters) |
@@ -76,10 +76,10 @@ discard block |
||
76 | 76 | } |
77 | 77 | } |
78 | 78 | |
79 | - return "UPDATE " . |
|
80 | - $model->getDBStoreInformation()['quoted_table'] . |
|
81 | - " SET " . implode(', ', $valueFields) . |
|
82 | - " WHERE " . implode(' AND ', $conditions); |
|
79 | + return "UPDATE ". |
|
80 | + $model->getDBStoreInformation()['quoted_table']. |
|
81 | + " SET ".implode(', ', $valueFields). |
|
82 | + " WHERE ".implode(' AND ', $conditions); |
|
83 | 83 | } |
84 | 84 | |
85 | 85 | public function getSelectQuery($parameters) |
@@ -127,7 +127,7 @@ |
||
127 | 127 | |
128 | 128 | public function getSorts() |
129 | 129 | { |
130 | - return count($this->sorts) ? " ORDER BY " . implode(", ", $this->sorts) : null; |
|
130 | + return count($this->sorts) ? " ORDER BY ".implode(", ", $this->sorts) : null; |
|
131 | 131 | } |
132 | 132 | |
133 | 133 | public function addFilter($field, $values = null) |
@@ -113,7 +113,7 @@ |
||
113 | 113 | public function describe($model, $relationships) |
114 | 114 | { |
115 | 115 | return new ModelDescription( |
116 | - $this->driver->describeTable($table)[$table], $relationships, function ($type) { |
|
116 | + $this->driver->describeTable($table)[$table], $relationships, function($type) { |
|
117 | 117 | return $this->mapDataTypes($type); |
118 | 118 | } |
119 | 119 | ); |