|
@@ -53,7 +53,7 @@ discard block |
|
|
block discarded – undo |
|
53
|
53
|
{ |
|
54
|
54
|
unset($this->driver); |
|
55
|
55
|
|
|
56
|
|
- $class = '\Micro\Db\Drivers\\' . ucfirst(substr($dsn, 0, strpos($dsn, ':'))) . 'Connection'; |
|
|
56
|
+ $class = '\Micro\Db\Drivers\\'.ucfirst(substr($dsn, 0, strpos($dsn, ':'))).'Connection'; |
|
57
|
57
|
|
|
58
|
58
|
$this->driver = new $class($dsn, $config, $options); |
|
59
|
59
|
} |
|
@@ -72,7 +72,7 @@ discard block |
|
|
block discarded – undo |
|
72
|
72
|
public function __call($name, array $arguments = []) |
|
73
|
73
|
{ |
|
74
|
74
|
if (!method_exists($this->driver, $name)) { |
|
75
|
|
- throw new \BadMethodCallException('Method `' . $name . '` not found in connection driver `' . get_class($this->driver) . '`'); |
|
|
75
|
+ throw new \BadMethodCallException('Method `'.$name.'` not found in connection driver `'.get_class($this->driver).'`'); |
|
76
|
76
|
} |
|
77
|
77
|
|
|
78
|
78
|
return call_user_func_array([$this->driver, $name], $arguments); |
Please login to merge, or discard this patch.