@@ -101,9 +101,9 @@ discard block |
||
101 | 101 | $obj = new SelectRule(new Context($this->connection)); |
102 | 102 | if($column0 == null){ |
103 | 103 | $args = ['*']; |
104 | - }elseif(is_array($column0)){ |
|
104 | + } elseif(is_array($column0)){ |
|
105 | 105 | $args = $column0; |
106 | - }else{ |
|
106 | + } else{ |
|
107 | 107 | $args = func_get_args(); |
108 | 108 | } |
109 | 109 | foreach ($args as &$arg){ |
@@ -170,7 +170,7 @@ discard block |
||
170 | 170 | $res = $callback($this); |
171 | 171 | $this->getConnection()->commit() or \PhpBoot\abort('commit failed'); |
172 | 172 | return $res; |
173 | - }catch (\Exception $e){ |
|
173 | + } catch (\Exception $e){ |
|
174 | 174 | $this->getConnection()->rollBack(); |
175 | 175 | Logger::warning('commit failed with '.get_class($e).' '.$e->getMessage()); |
176 | 176 | throw $e; |