| Conditions | 5 |
| Paths | 16 |
| Total Lines | 7 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 5 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 22 | 7 | public function setData(array $params = []): self |
|
| 23 | { |
||
| 24 | 7 | $this->createThumb = isset($params['create_thumb']) ? boolval(intval(strval($params['create_thumb']))) : $this->createThumb; |
|
| 25 | 7 | $this->wantLimitSize = isset($params['want_limit_size']) ? boolval(intval(strval($params['want_limit_size']))) : $this->wantLimitSize; |
|
| 26 | 7 | $this->wantLimitExt = isset($params['want_limit_ext']) ? boolval(intval(strval($params['want_limit_ext']))) : $this->wantLimitExt; |
|
| 27 | 7 | $this->defaultExt = !empty($params['default_ext']) ? strval($params['default_ext']) : $this->defaultExt; |
|
| 28 | 7 | return $this; |
|
| 29 | } |
||
| 51 |