@@ -30,12 +30,12 @@ discard block |
||
30 | 30 | |
31 | 31 | $path = config('laravelimage.routePath') . '/' . $dir . $image . '?' . http_build_query($options, '', '&'); |
32 | 32 | |
33 | - if ( ! empty((int) $width)) { |
|
34 | - $path .= '&w=' . (int) $width; |
|
33 | + if ( ! empty((int)$width)) { |
|
34 | + $path .= '&w=' . (int)$width; |
|
35 | 35 | } |
36 | 36 | |
37 | - if ( ! empty((int) $height)) { |
|
38 | - $path .= '&h=' . (int) $height; |
|
37 | + if ( ! empty((int)$height)) { |
|
38 | + $path .= '&h=' . (int)$height; |
|
39 | 39 | } |
40 | 40 | |
41 | 41 | return '<img src="' . asset($path) . '" ' . $this->buildAttributes($attributes) . ' />'; |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | } |
75 | 75 | |
76 | 76 | return $this->image($options[0], $options[1], (isset($options[2]) ? $options[2] : null), |
77 | - (isset($options[3]) ? $options[3] : null), (! empty($options[4]) ? $options[4] : []), |
|
78 | - (! empty($options[5]) ? $options[5] : [])); |
|
77 | + (isset($options[3]) ? $options[3] : null), ( ! empty($options[4]) ? $options[4] : []), |
|
78 | + ( ! empty($options[5]) ? $options[5] : [])); |
|
79 | 79 | } |
80 | 80 | } |