| Conditions | 3 |
| Paths | 2 |
| Total Lines | 16 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 81 | public function setError( |
||
| 82 | /*# string */ $message = '', |
||
| 83 | /*# string */ $code = '' |
||
| 84 | )/*# : bool */ { |
||
| 85 | $this->error = (string) $message; |
||
| 86 | |||
| 87 | // zero ? |
||
| 88 | $zcode = (string) $code; |
||
| 89 | if ($this->zero_empty && '' === str_replace('0', '', $zcode)) { |
||
| 90 | $this->error_code = ''; |
||
| 91 | } else { |
||
| 92 | $this->error_code = $zcode; |
||
| 93 | } |
||
| 94 | |||
| 95 | return false; |
||
| 96 | } |
||
| 97 | |||
| 108 |