@@ -35,7 +35,7 @@ |
||
35 | 35 | $line = $e->getLine(); |
36 | 36 | } |
37 | 37 | if($level){ |
38 | - Logger::$level($message, $context +['@file'=>$file, '@line'=>$line]); |
|
38 | + Logger::$level($message, $context +['@file'=>$file, '@line'=>$line]); |
|
39 | 39 | } |
40 | 40 | throw $e; |
41 | 41 | } |
@@ -67,10 +67,10 @@ discard block |
||
67 | 67 | */ |
68 | 68 | |
69 | 69 | static public function connect(Application $app, |
70 | - $dsn, |
|
71 | - $username, |
|
72 | - $password, |
|
73 | - $options = []) |
|
70 | + $dsn, |
|
71 | + $username, |
|
72 | + $password, |
|
73 | + $options = []) |
|
74 | 74 | { |
75 | 75 | $options += [ |
76 | 76 | \PDO::ATTR_ERRMODE =>\PDO::ERRMODE_EXCEPTION, |
@@ -165,7 +165,7 @@ discard block |
||
165 | 165 | return $this->connection; |
166 | 166 | } |
167 | 167 | /** |
168 | - * Splice sql use raw string(without escaping) |
|
168 | + * Splice sql use raw string(without escaping) |
|
169 | 169 | * for example: |
170 | 170 | * where('time>?', 'now()') => " WHERE time > 'now()' " |
171 | 171 | * where('time>?', Sql::raw('now()')) => " WHERE time > now() " |
@@ -54,7 +54,7 @@ |
||
54 | 54 | |
55 | 55 | $res = array_pop($this->waitResults); |
56 | 56 | if(isset($res[1])){ |
57 | - \PhpBoot\abort(new RpcException($res['reason'])); |
|
57 | + \PhpBoot\abort(new RpcException($res['reason'])); |
|
58 | 58 | }else{ |
59 | 59 | return $res[0]; |
60 | 60 | } |
@@ -234,10 +234,10 @@ discard block |
||
234 | 234 | * @return RefSchemaObject |
235 | 235 | */ |
236 | 236 | public function makeTempSchema(Application $app, |
237 | - ControllerContainer $controller, |
|
238 | - $action, |
|
239 | - Route $route, |
|
240 | - array $arr, $suffix) |
|
237 | + ControllerContainer $controller, |
|
238 | + $action, |
|
239 | + Route $route, |
|
240 | + array $arr, $suffix) |
|
241 | 241 | { |
242 | 242 | $className = self::getShortClassName($controller->getClassName()); |
243 | 243 | $name = $className . ucfirst($action) . $suffix; |
@@ -293,10 +293,10 @@ discard block |
||
293 | 293 | * @return RefSchemaObject |
294 | 294 | */ |
295 | 295 | public function getRefSchema(Application $app, |
296 | - ControllerContainer $controller, |
|
297 | - $action, |
|
298 | - Route $route, |
|
299 | - EntityContainer $container) |
|
296 | + ControllerContainer $controller, |
|
297 | + $action, |
|
298 | + Route $route, |
|
299 | + EntityContainer $container) |
|
300 | 300 | { |
301 | 301 | $name = $container->getClassName(); |
302 | 302 | if (!isset($this->definitions[$name])) { |
@@ -444,10 +444,10 @@ discard block |
||
444 | 444 | * @return ArraySchemaObject |
445 | 445 | */ |
446 | 446 | public function getArraySchema(Application $app, |
447 | - ControllerContainer $controller, |
|
448 | - $action, |
|
449 | - Route $route, |
|
450 | - ArrayContainer $container) |
|
447 | + ControllerContainer $controller, |
|
448 | + $action, |
|
449 | + Route $route, |
|
450 | + ArrayContainer $container) |
|
451 | 451 | { |
452 | 452 | $schema = new ArraySchemaObject(); |
453 | 453 | $itemContainer = $container->getContainer(); |
@@ -30,7 +30,6 @@ |
||
30 | 30 | } |
31 | 31 | /** |
32 | 32 | * update('table')->set(['a'=>1]) => "UPDATE table SET a=1" |
33 | - |
|
34 | 33 | * update('table')->set('a=?',1) => "UPDATE table SET a=1" |
35 | 34 | * @param array|string $expr |
36 | 35 | * @param mixed $_ |
@@ -119,7 +119,7 @@ |
||
119 | 119 | } |
120 | 120 | class ValuesImpl |
121 | 121 | { |
122 | - static public function values(Context $context, array $values){ |
|
122 | + static public function values(Context $context, array $values){ |
|
123 | 123 | $params = []; |
124 | 124 | $stubs = []; |
125 | 125 | foreach ($values as $v){ |