@@ -122,15 +122,15 @@ |
||
122 | 122 | |
123 | 123 | foreach ($output->streams as $stream) { |
124 | 124 | if (isset($stream->width)) { |
125 | - $meta['width'] = (int)$stream->width; |
|
125 | + $meta['width'] = (int) $stream->width; |
|
126 | 126 | } |
127 | 127 | |
128 | 128 | if (isset($stream->height)) { |
129 | - $meta['height'] = (int)$stream->height; |
|
129 | + $meta['height'] = (int) $stream->height; |
|
130 | 130 | } |
131 | 131 | |
132 | 132 | if (isset($stream->duration)) { |
133 | - $meta['duration'] = (int)$stream->duration; |
|
133 | + $meta['duration'] = (int) $stream->duration; |
|
134 | 134 | } |
135 | 135 | |
136 | 136 | if (isset($stream->tags->rotate)) { |
@@ -92,8 +92,8 @@ |
||
92 | 92 | $size = $this->image->getSize(); |
93 | 93 | |
94 | 94 | return [ |
95 | - 'width' => (int)$size->getWidth(), |
|
96 | - 'height' => (int)$size->getHeight(), |
|
95 | + 'width' => (int) $size->getWidth(), |
|
96 | + 'height' => (int) $size->getHeight(), |
|
97 | 97 | ]; |
98 | 98 | } |
99 | 99 |
@@ -599,12 +599,12 @@ discard block |
||
599 | 599 | $unit = substr($number, -1); |
600 | 600 | |
601 | 601 | if (!array_key_exists($unit, $units)) { |
602 | - return (int)$number; |
|
602 | + return (int) $number; |
|
603 | 603 | } |
604 | 604 | |
605 | - $number = (float)$number * $units[$unit]; |
|
605 | + $number = (float) $number * $units[$unit]; |
|
606 | 606 | |
607 | - return (int)$number; |
|
607 | + return (int) $number; |
|
608 | 608 | } |
609 | 609 | |
610 | 610 | /** |
@@ -730,7 +730,7 @@ discard block |
||
730 | 730 | */ |
731 | 731 | protected function outputToObject(): object |
732 | 732 | { |
733 | - $output = (object)$this->output; |
|
733 | + $output = (object) $this->output; |
|
734 | 734 | |
735 | 735 | if ($this->camelCaseResponse) { |
736 | 736 | $output->mimeType = $output->mime_type; |
@@ -93,11 +93,11 @@ |
||
93 | 93 | throw new Exception('stream name [' . $name . '] should be an alpha numeric string'); |
94 | 94 | } |
95 | 95 | |
96 | - if($width <= 0) { |
|
96 | + if ($width <= 0) { |
|
97 | 97 | throw new Exception('width [' . $width . '] should be a positive number'); |
98 | 98 | } |
99 | 99 | |
100 | - if($height <= 0) { |
|
100 | + if ($height <= 0) { |
|
101 | 101 | throw new Exception('height [' . $height . '] should be a positive number'); |
102 | 102 | } |
103 | 103 |