| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 3 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | 1 | public function getParsedSql() |
|
| 17 | { |
||
| 18 | 1 | if ($this->parsedSql === null) { |
|
| 19 | 1 | if($this->isFile()){ |
|
| 20 | 1 | $parser = new PHPSQLParser($this->getContents()); |
|
| 21 | 1 | $this->parsedSql = $parser->parsed; |
|
| 22 | }else{ |
||
| 23 | 1 | $this->parsedSql = false; |
|
| 24 | } |
||
| 25 | } |
||
| 26 | |||
| 27 | 1 | return $this->parsedSql; |
|
| 28 | } |
||
| 29 | } |
||
| 30 |