|
@@ -53,10 +53,10 @@ discard block |
|
|
block discarded – undo |
|
53
|
53
|
*/ |
|
54
|
54
|
public function setDriver($dsn, array $config = [], array $options = []) |
|
55
|
55
|
{ |
|
56
|
|
- $class = '\Micro\Db\Drivers\\' . ucfirst(substr($dsn, 0, strpos($dsn, ':'))) . 'Driver'; |
|
|
56
|
+ $class = '\Micro\Db\Drivers\\'.ucfirst(substr($dsn, 0, strpos($dsn, ':'))).'Driver'; |
|
57
|
57
|
|
|
58
|
58
|
if (!class_exists($class)) { |
|
59
|
|
- throw new Exception('DB driver `' . $class . '` not supported'); |
|
|
59
|
+ throw new Exception('DB driver `'.$class.'` not supported'); |
|
60
|
60
|
} |
|
61
|
61
|
|
|
62
|
62
|
unset($this->driver); |
|
@@ -78,7 +78,7 @@ discard block |
|
|
block discarded – undo |
|
78
|
78
|
public function __call($name, array $arguments = []) |
|
79
|
79
|
{ |
|
80
|
80
|
if (!method_exists($this->driver, $name)) { |
|
81
|
|
- throw new \BadMethodCallException('Method `' . $name . '` not found in connection driver `' . get_class($this->driver) . '`'); |
|
|
81
|
+ throw new \BadMethodCallException('Method `'.$name.'` not found in connection driver `'.get_class($this->driver).'`'); |
|
82
|
82
|
} |
|
83
|
83
|
|
|
84
|
84
|
return call_user_func_array([$this->driver, $name], $arguments); |
Please login to merge, or discard this patch.