| Total Complexity | 5 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | class PgSQL extends SQL |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * Escapes the value so it can be inserted into a SQL statement |
||
| 24 | * |
||
| 25 | * @param string $operator Operator used for the expression |
||
| 26 | * @param string $type Type constant |
||
| 27 | * @param mixed $value Value that the variable or column should be compared to |
||
| 28 | * @return double|string|integer Escaped value |
||
| 29 | */ |
||
| 30 | protected function escape( string $operator, string $type, $value ) |
||
| 45 |
The
breakstatement is not necessary if it is preceded for example by areturnstatement:If you would like to keep this construct to be consistent with other
casestatements, you can safely mark this issue as a false-positive.