@@ -61,8 +61,8 @@ discard block |
||
| 61 | 61 | $this->quotedTable = $driver->quoteIdentifier($table); |
| 62 | 62 | $this->table = $this->unquotedTable = $table; |
| 63 | 63 | } else { |
| 64 | - $this->quotedTable = ( isset($table['schema']) ? "{$driver->quoteIdentifier($table["schema"])}." : "") . $driver->quoteIdentifier($table["table"]); |
|
| 65 | - $this->unquotedTable = (isset($table['schema']) ? "{$table['schema']}." : "") . $table['table']; |
|
| 64 | + $this->quotedTable = (isset($table['schema']) ? "{$driver->quoteIdentifier($table["schema"])}." : "").$driver->quoteIdentifier($table["table"]); |
|
| 65 | + $this->unquotedTable = (isset($table['schema']) ? "{$table['schema']}." : "").$table['table']; |
|
| 66 | 66 | $this->table = $table['table']; |
| 67 | 67 | $this->schema = $table['schema']; |
| 68 | 68 | } |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | */ |
| 81 | 81 | public function getDescription() { |
| 82 | 82 | return Cache::read( |
| 83 | - (new \ReflectionClass($this))->getName() . '::desc', function() { |
|
| 83 | + (new \ReflectionClass($this))->getName().'::desc', function() { |
|
| 84 | 84 | return new ModelDescription($this); |
| 85 | 85 | } |
| 86 | 86 | ); |
@@ -18,11 +18,11 @@ |
||
| 18 | 18 | $this->container = $container; |
| 19 | 19 | $this->dbContext = $container->resolve(\ntentan\atiaa\DbContext::class); |
| 20 | 20 | $this->container->bind(interfaces\ModelJoinerInterface::class) |
| 21 | - ->to(Resolver::class); |
|
| 21 | + ->to(Resolver::class); |
|
| 22 | 22 | $this->container->bind(interfaces\TableNameResolverInterface::class) |
| 23 | - ->to(Resolver::class); |
|
| 23 | + ->to(Resolver::class); |
|
| 24 | 24 | $this->container->bind(interfaces\ModelClassResolverInterface::class) |
| 25 | - ->to(Resolver::class); |
|
| 25 | + ->to(Resolver::class); |
|
| 26 | 26 | self::$instance = $this; |
| 27 | 27 | } |
| 28 | 28 | |
@@ -67,7 +67,7 @@ |
||
| 67 | 67 | } |
| 68 | 68 | |
| 69 | 69 | public static function getInstance() { |
| 70 | - if(self::$instance === null) throw new NibiiException("A context has not yet been initialized"); |
|
| 70 | + if (self::$instance === null) throw new NibiiException("A context has not yet been initialized"); |
|
| 71 | 71 | return self::$instance; |
| 72 | 72 | } |
| 73 | 73 | |