@@ -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 | |
@@ -87,9 +87,9 @@ |
||
| 87 | 87 | { |
| 88 | 88 | $filter = $this->getDASHFilter(); |
| 89 | 89 | |
| 90 | - if($media->format instanceof X264){ |
|
| 90 | + if ($media->format instanceof X264) { |
|
| 91 | 91 | $filter[] = "-profile:v:0"; |
| 92 | - $filter[] = "main"; |
|
| 92 | + $filter[] = "main"; |
|
| 93 | 93 | } |
| 94 | 94 | |
| 95 | 95 | foreach ($media->getRepresentations() as $key => $representation) { |
@@ -79,6 +79,6 @@ |
||
| 79 | 79 | } |
| 80 | 80 | } |
| 81 | 81 | |
| 82 | - return str_replace('\\','/', $path); |
|
| 82 | + return str_replace('\\', '/', $path); |
|
| 83 | 83 | } |
| 84 | 84 | } |
@@ -81,7 +81,7 @@ |
||
| 81 | 81 | */ |
| 82 | 82 | public function setFormat($format) |
| 83 | 83 | { |
| 84 | - if(!$format instanceof Video){ |
|
| 84 | + if (!$format instanceof Video) { |
|
| 85 | 85 | throw new Exception("Sorry! we only accept formats that inherent from AYazdanpanah\FFMpegStreaming\Format\Video"); |
| 86 | 86 | } |
| 87 | 87 | |
@@ -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 | * |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | * @param string|null $save_path |
| 62 | 62 | * @return string |
| 63 | 63 | */ |
| 64 | - function hls(string $input_path, string $save_path = null, callable $listener = null) |
|
| 64 | + function hls(string $input_path, string $save_path = null, callable $listener = null) |
|
| 65 | 65 | { |
| 66 | 66 | $format = new X264(); |
| 67 | 67 | |