@@ -30,8 +30,10 @@ |
||
| 30 | 30 | $worlds->rewind(); |
| 31 | 31 | if ($worlds->valid()): |
| 32 | 32 | return $worlds->current(); |
| 33 | - else: |
|
| 33 | + else { |
|
| 34 | + : |
|
| 34 | 35 | throw new WorldNotFoundException("Could not find product world with ID or slug '$id_or_slug'"); |
| 36 | + } |
|
| 35 | 37 | endif; |
| 36 | 38 | } |
| 37 | 39 | |