@@ -90,14 +90,14 @@ discard block |
||
| 90 | 90 | public function getPrimary(string $prefix, string $table): string |
| 91 | 91 | { |
| 92 | 92 | if (!empty($this->cacheStore) && empty($this->primaryKeys)) { |
| 93 | - $this->primaryKeys = (array)$this->cacheStore->get($this->getSource() . '/keys'); |
|
| 93 | + $this->primaryKeys = (array)$this->cacheStore->get($this->getSource().'/keys'); |
|
| 94 | 94 | } |
| 95 | 95 | |
| 96 | 96 | if (!empty($this->primaryKeys) && array_key_exists($table, $this->primaryKeys)) { |
| 97 | 97 | return $this->primaryKeys[$table]; |
| 98 | 98 | } |
| 99 | 99 | |
| 100 | - if (!$this->hasTable($prefix . $table)) { |
|
| 100 | + if (!$this->hasTable($prefix.$table)) { |
|
| 101 | 101 | throw new DriverException( |
| 102 | 102 | "Unable to fetch table primary key, no such table '{$prefix}{$table}' exists" |
| 103 | 103 | ); |
@@ -113,7 +113,7 @@ discard block |
||
| 113 | 113 | |
| 114 | 114 | //Caching |
| 115 | 115 | if (!empty($this->cacheStore)) { |
| 116 | - $this->cacheStore->set($this->getSource() . '/keys', $this->primaryKeys); |
|
| 116 | + $this->cacheStore->set($this->getSource().'/keys', $this->primaryKeys); |
|
| 117 | 117 | } |
| 118 | 118 | |
| 119 | 119 | return $this->primaryKeys[$table]; |
@@ -128,7 +128,7 @@ discard block |
||
| 128 | 128 | { |
| 129 | 129 | return $this->factory->make( |
| 130 | 130 | PostgresQuery::class, |
| 131 | - ['driver' => $this, 'compiler' => $this->queryCompiler($prefix),] + $parameters |
|
| 131 | + ['driver' => $this, 'compiler' => $this->queryCompiler($prefix), ] + $parameters |
|
| 132 | 132 | ); |
| 133 | 133 | } |
| 134 | 134 | |