| Conditions | 6 |
| Paths | 7 |
| Total Lines | 17 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | public function update($input) { |
||
| 12 | if($this->isProtected()) return false; |
||
| 13 | |||
| 14 | $input = trim($input); |
||
| 15 | |||
| 16 | $value = is_null($this->local) ? $this->default : $this->local; |
||
| 17 | if($value == $input) return false; |
||
| 18 | |||
| 19 | if($input && !file_exists($input)) { |
||
| 20 | $this->error = true; |
||
| 21 | $this->input = $input; |
||
| 22 | return false; |
||
| 23 | } |
||
| 24 | |||
| 25 | $this->local = $input; |
||
| 26 | return true; |
||
| 27 | } |
||
| 28 | } |
||
| 29 |