@@ -72,7 +72,7 @@ |
||
| 72 | 72 | |
| 73 | 73 | $representations[] = $this->addRepresentation($kilobitrate, $width, $height); |
| 74 | 74 | |
| 75 | - $heights = array_filter(static::heights, function ($value) use ($height) { |
|
| 75 | + $heights = array_filter(static::heights, function($value) use ($height) { |
|
| 76 | 76 | return $value < $height; |
| 77 | 77 | }); |
| 78 | 78 | |
@@ -70,7 +70,7 @@ |
||
| 70 | 70 | $filter[] = "-hls_segment_filename"; |
| 71 | 71 | $filter[] = $dirname . "/" . $filename . "_" . $representation->getHeight() . "p_%04d.ts"; |
| 72 | 72 | |
| 73 | - if(($hls_key_info_file = $media->getHlsKeyInfoFile()) !== ""){ |
|
| 73 | + if (($hls_key_info_file = $media->getHlsKeyInfoFile()) !== "") { |
|
| 74 | 74 | $filter[] = "-hls_key_info_file"; |
| 75 | 75 | $filter[] = $hls_key_info_file; |
| 76 | 76 | } |
@@ -78,7 +78,7 @@ |
||
| 78 | 78 | */ |
| 79 | 79 | public function setFormat($format) |
| 80 | 80 | { |
| 81 | - if(!$format instanceof Video){ |
|
| 81 | + if (!$format instanceof Video) { |
|
| 82 | 82 | throw new Exception("Sorry! the format must be inherited from 'AYazdanpanah\FFMpegStreaming\Format\Video'"); |
| 83 | 83 | } |
| 84 | 84 | |
@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | use AYazdanpanah\FFMpegStreaming\Format\HEVC; |
| 22 | 22 | use AYazdanpanah\FFMpegStreaming\Format\X264; |
| 23 | 23 | |
| 24 | -if (! function_exists('dash')) { |
|
| 24 | +if (!function_exists('dash')) { |
|
| 25 | 25 | /** |
| 26 | 26 | * Auto generate dash MPD file |
| 27 | 27 | * |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | } |
| 53 | 53 | } |
| 54 | 54 | |
| 55 | -if (! function_exists('hls')) { |
|
| 55 | +if (!function_exists('hls')) { |
|
| 56 | 56 | /** |
| 57 | 57 | * Auto generate HLS M3U8 file |
| 58 | 58 | * |