| Conditions | 5 |
| Paths | 7 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 30 | protected function escape( string $operator, string $type, $value ) |
||
| 31 | { |
||
| 32 | $value = $this->translateValue( $this->getName(), $value, $type ); |
||
| 33 | |||
| 34 | switch( $type ) |
||
| 35 | { |
||
| 36 | case 'bool': |
||
| 37 | case 'boolean': |
||
| 38 | case \Aimeos\Base\DB\Statement\Base::PARAM_BOOL: |
||
| 39 | return ( $value ? "'t'" : "'f'" ); break; |
||
|
|
|||
| 40 | } |
||
| 41 | |||
| 42 | return parent::escape( $operator, $type, $value ); |
||
| 43 | } |
||
| 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.