Passed
Pull Request — master (#6)
by
unknown
01:52
created
src/AutoRepresentations.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Filter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -87,9 +87,9 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.
src/Export.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,6 +79,6 @@
 block discarded – undo
79 79
             }
80 80
         }
81 81
 
82
-        return str_replace('\\','/', $path);
82
+        return str_replace('\\', '/', $path);
83 83
     }
84 84
 }
Please login to merge, or discard this patch.
src/helpers.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
61 61
      * @param string|null $save_path
62 62
      * @return string
63 63
      */
64
-    function hls(string $input_path,  string $save_path = null, callable $on = null)
64
+    function hls(string $input_path, string $save_path = null, callable $on = null)
65 65
     {
66 66
         $format = new X264();
67 67
 
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
     }
83 83
 }
84 84
 
85
-if (! function_exists('round_to_even')) {
85
+if (!function_exists('round_to_even')) {
86 86
     /**
87 87
      * Round a number to nearest even number
88 88
      *
Please login to merge, or discard this patch.
src/Traits/Formats.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.