@@ -33,6 +33,6 @@ |
||
33 | 33 | * |
34 | 34 | * @author David Schoenbauer <[email protected]> |
35 | 35 | */ |
36 | -class ExecutionErrorException extends BadRequestException implements SqlExceptionInterface{ |
|
36 | +class ExecutionErrorException extends BadRequestException implements SqlExceptionInterface { |
|
37 | 37 | |
38 | 38 | } |
@@ -32,5 +32,5 @@ |
||
32 | 32 | * |
33 | 33 | * @author David Schoenbauer <[email protected]> |
34 | 34 | */ |
35 | -interface SqlExceptionInterface extends ExceptionInterface{ |
|
35 | +interface SqlExceptionInterface extends ExceptionInterface { |
|
36 | 36 | } |
@@ -33,6 +33,6 @@ |
||
33 | 33 | * |
34 | 34 | * @author David Schoenbauer <[email protected]> |
35 | 35 | */ |
36 | -class EmptyDatasetException extends BadRequestException implements SqlExceptionInterface{ |
|
36 | +class EmptyDatasetException extends BadRequestException implements SqlExceptionInterface { |
|
37 | 37 | |
38 | 38 | } |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | */ |
41 | 41 | class Query { |
42 | 42 | |
43 | - public static function with(){ |
|
43 | + public static function with() { |
|
44 | 44 | return new static(); |
45 | 45 | } |
46 | 46 | |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | * @param WhereStatementInterface $where |
68 | 68 | * @return Delete |
69 | 69 | */ |
70 | - public function delete($table, WhereStatementInterface $where = null){ |
|
70 | + public function delete($table, WhereStatementInterface $where = null) { |
|
71 | 71 | return new Delete($table, $where); |
72 | 72 | } |
73 | 73 | } |
@@ -68,7 +68,7 @@ |
||
68 | 68 | $suffix = $keyPrefix = ($this->getUseParanthesis() ? ")" : ""); |
69 | 69 | |
70 | 70 | return $prefix . implode($keyPrefix . ' ' . $this->getFieldOperator() . ' ' . $keySuffix, array_map(function($key, $value) use ($keySalt) { |
71 | - $saltedKey = $key . "-" .$keySalt; |
|
71 | + $saltedKey = $key . "-" . $keySalt; |
|
72 | 72 | $this->addData($saltedKey, $value); |
73 | 73 | return sprintf('%s = :%s', $key, $saltedKey); |
74 | 74 | }, array_keys($assocArray), array_values($assocArray))) . $suffix; |