@@ -44,7 +44,7 @@ |
||
44 | 44 | */ |
45 | 45 | public function __construct(array $tokens = [], $count = -1) |
46 | 46 | { |
47 | - if (! empty($tokens)) { |
|
47 | + if (!empty($tokens)) { |
|
48 | 48 | $this->tokens = $tokens; |
49 | 49 | $this->count = $count === -1 ? count($tokens) : $count; |
50 | 50 | } |
@@ -32,7 +32,7 @@ |
||
32 | 32 | */ |
33 | 33 | public static function build($component, array $options = []) |
34 | 34 | { |
35 | - if (! $component instanceof WithKeyword) { |
|
35 | + if (!$component instanceof WithKeyword) { |
|
36 | 36 | throw new RuntimeException('Can not build a component that is not a WithKeyword'); |
37 | 37 | } |
38 | 38 |
@@ -21,7 +21,6 @@ |
||
21 | 21 | |
22 | 22 | /** |
23 | 23 | * `WITH` statement. |
24 | - |
|
25 | 24 | * WITH [RECURSIVE] query_name [ (column_name [,...]) ] AS (SELECT ...) [, ...] |
26 | 25 | */ |
27 | 26 | class WithStatement extends Statement |
@@ -37,6 +37,4 @@ |
||
37 | 37 | |
38 | 38 | $this->assertEquals(<<<SQL |
39 | 39 | SELECT * FROM categories |
40 | -SQL, $parser->statements[1]->build()); |
|
41 | - } |
|
42 | -} |
|
40 | +SQL, $parser->statements |
|
43 | 41 | \ No newline at end of file |
@@ -37,6 +37,4 @@ |
||
37 | 37 | |
38 | 38 | $this->assertEquals(<<<SQL |
39 | 39 | SELECT * FROM categories |
40 | -SQL, $parser->statements[1]->build()); |
|
41 | - } |
|
42 | -} |
|
40 | +SQL, $parser->statements |
|
43 | 41 | \ No newline at end of file |
@@ -37,6 +37,4 @@ |
||
37 | 37 | |
38 | 38 | $this->assertEquals(<<<SQL |
39 | 39 | SELECT * FROM categories |
40 | -SQL, $parser->statements[1]->build()); |
|
41 | - } |
|
42 | -} |
|
40 | +SQL, $parser->statements |
|
43 | 41 | \ No newline at end of file |
@@ -37,6 +37,4 @@ |
||
37 | 37 | |
38 | 38 | $this->assertEquals(<<<SQL |
39 | 39 | SELECT * FROM categories |
40 | -SQL, $parser->statements[1]->build()); |
|
41 | - } |
|
42 | -} |
|
40 | +SQL, $parser->statements |
|
43 | 41 | \ No newline at end of file |
@@ -37,6 +37,4 @@ |
||
37 | 37 | |
38 | 38 | $this->assertEquals(<<<SQL |
39 | 39 | SELECT * FROM categories |
40 | -SQL, $parser->statements[1]->build()); |
|
41 | - } |
|
42 | -} |
|
40 | +SQL, $parser->statements |
|
43 | 41 | \ No newline at end of file |