1 | <?php |
||
2 | |||
3 | declare(strict_types=1); |
||
4 | |||
5 | namespace ClickHouseDB\Exception; |
||
6 | |||
7 | use LogicException; |
||
8 | |||
9 | class QueryException extends LogicException implements ClickHouseException |
||
0 ignored issues
–
show
introduced
by
![]() |
|||
10 | { |
||
11 | protected $requestDetails = []; |
||
0 ignored issues
–
show
Equals sign not aligned with surrounding assignments; expected 2 spaces but found 1 space
This check looks for multiple assignments in successive lines of code. It will report an issue if the operators are not in a straight line. To visualize $a = "a";
$ab = "ab";
$abc = "abc";
will produce issues in the first and second line, while this second example $a = "a";
$ab = "ab";
$abc = "abc";
will produce no issues. ![]() |
|||
12 | protected $responseDetails = []; |
||
0 ignored issues
–
show
|
|||
13 | |||
14 | 1 | public static function cannotInsertEmptyValues() : self |
|
0 ignored issues
–
show
|
|||
15 | { |
||
16 | 1 | return new self('Inserting empty values array is not supported in ClickHouse'); |
|
17 | } |
||
18 | |||
19 | public static function noResponse() : self |
||
0 ignored issues
–
show
|
|||
20 | { |
||
21 | return new self('No response returned'); |
||
22 | } |
||
23 | |||
24 | 1 | public function setRequestDetails(array $requestDetails) |
|
0 ignored issues
–
show
|
|||
25 | { |
||
26 | 1 | $this->requestDetails = $requestDetails; |
|
27 | 1 | } |
|
28 | |||
29 | public function getRequestDetails(): array |
||
0 ignored issues
–
show
|
|||
30 | { |
||
31 | return $this->requestDetails; |
||
32 | } |
||
33 | |||
34 | 1 | public function setResponseDetails(array $responseDetails) |
|
0 ignored issues
–
show
|
|||
35 | { |
||
36 | 1 | $this->responseDetails = $responseDetails; |
|
37 | 1 | } |
|
38 | |||
39 | public function getResponseDetails(): array |
||
0 ignored issues
–
show
|
|||
40 | { |
||
41 | return $this->responseDetails; |
||
42 | } |
||
43 | } |
||
44 |