| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 39 | public function makeImageUpload($label, $name, $value = null, $required = true, array $options = []) { |
||
| 40 | $data = []; |
||
| 41 | $data['value'] = $value; |
||
| 42 | $data['name'] = $name; |
||
| 43 | $data['label'] = $label; |
||
| 44 | $data['required'] = $required; |
||
| 45 | $data['encrypt'] = isset($options['encrypt'])?$options['encrypt']:true; |
||
| 46 | @$data['resizeWidth'] = $options['resize_width']; |
||
| 47 | @$data['resizeHeight'] = $options['resize_height']; |
||
| 48 | return view("crudbooster::html_helper.image_uploader.index", $data); |
||
| 49 | } |
||
| 51 | } |