| Conditions | 9 |
| Paths | 128 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 34 | public function make($image, $width, $height = null, $zc = null, $imageName = null) |
||
| 35 | { |
||
| 36 | $sz = ($width ? "?w={$width}" : null); |
||
| 37 | $sz .= (empty($sz) && !empty($height) ? "?h={$width}" : (!empty($sz) && !empty($height) ? "&h={$height}" : null)); |
||
| 38 | $sz .= (!empty($zc) ? "&zc={$zc}" : null); |
||
| 39 | |||
| 40 | if (file_exists("{$this->uploads}/{$image}") && is_file("{$this->uploads}/{$image}")) { |
||
| 41 | return $this->cropper->imgCreate("{$this->uploads}/{$image}{$sz}", $imageName); |
||
| 42 | } |
||
| 43 | |||
| 44 | return $this->cropper->imgCreate("{$image}{$sz}", $imageName); |
||
| 45 | } |
||
| 70 |