| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 74 | 2 | public function getStatement() |
|
| 75 | { |
||
| 76 | 2 | $arguments = $this->arguments; |
|
| 77 | |||
| 78 | 2 | foreach ($arguments as $key => $arg) |
|
| 79 | { |
||
| 80 | 2 | if (is_string($arg)) |
|
| 81 | 2 | $arguments[$key] = "'$arg'"; |
|
| 82 | } |
||
| 83 | |||
| 84 | 2 | $arguments = implode(", ", array_values($arguments)); |
|
| 85 | |||
| 86 | 2 | return $this->function . '(' . $arguments . ')'; |
|
| 87 | } |
||
| 88 | } |