Conditions | 2 |
Paths | 3 |
Total Lines | 12 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 2 |
Changes | 2 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
19 | 3 | public function buildQueryAst(string $path): Tree |
|
20 | { |
||
21 | try { |
||
22 | 3 | $queryAst = new Tree; |
|
23 | $this |
||
24 | 3 | ->ll1ParserFactory |
|
25 | 3 | ->createParser($path, $queryAst) |
|
26 | 3 | ->run(); |
|
27 | |||
28 | 2 | return $queryAst; |
|
29 | 1 | } catch (Throwable $e) { |
|
30 | 1 | throw new Exception\QueryAstNotBuiltException($path, $e); |
|
31 | } |
||
34 |