| Conditions | 4 |
| Paths | 4 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 4 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 14 | public function get_image_file($size) |
||
| 15 | { |
||
| 16 | if ($this->file($size)) { |
||
|
|
|||
| 17 | return $this->file($size); |
||
| 18 | } |
||
| 19 | |||
| 20 | // not found? lets cycle through all the images and see if anything was submitted, and use that instead |
||
| 21 | foreach (config('blogetc.image_sizes') as $image_size_name => $image_size_info) { |
||
| 22 | if ($this->file($image_size_name)) { |
||
| 23 | return $this->file($image_size_name); |
||
| 24 | } |
||
| 28 |