@@ -228,10 +228,10 @@ discard block |
||
228 | 228 | * @return RefSchemaObject |
229 | 229 | */ |
230 | 230 | public function makeTempSchema(Application $app, |
231 | - ControllerContainer $controller, |
|
232 | - $action, |
|
233 | - Route $route, |
|
234 | - array $arr) |
|
231 | + ControllerContainer $controller, |
|
232 | + $action, |
|
233 | + Route $route, |
|
234 | + array $arr) |
|
235 | 235 | { |
236 | 236 | $className = self::getShortClassName($controller->getClassName()); |
237 | 237 | $name = $className . ucfirst($action) . 'Res'; |
@@ -287,10 +287,10 @@ discard block |
||
287 | 287 | * @return RefSchemaObject |
288 | 288 | */ |
289 | 289 | public function getRefSchema(Application $app, |
290 | - ControllerContainer $controller, |
|
291 | - $action, |
|
292 | - Route $route, |
|
293 | - EntityContainer $container) |
|
290 | + ControllerContainer $controller, |
|
291 | + $action, |
|
292 | + Route $route, |
|
293 | + EntityContainer $container) |
|
294 | 294 | { |
295 | 295 | $name = $container->getClassName(); |
296 | 296 | if (!isset($this->definitions[$name])) { |
@@ -424,10 +424,10 @@ discard block |
||
424 | 424 | * @return ArraySchemaObject |
425 | 425 | */ |
426 | 426 | public function getArraySchema(Application $app, |
427 | - ControllerContainer $controller, |
|
428 | - $action, |
|
429 | - Route $route, |
|
430 | - ArrayContainer $container) |
|
427 | + ControllerContainer $controller, |
|
428 | + $action, |
|
429 | + Route $route, |
|
430 | + ArrayContainer $container) |
|
431 | 431 | { |
432 | 432 | $schema = new ArraySchemaObject(); |
433 | 433 | $itemContainer = $container->getContainer(); |
@@ -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 | } |