Completed
Push — master ( e18231...8c2386 )
by Amin
02:57
created
src/StreamingAnalytics.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
 
64 64
         $streams = $media_info->all();
65 65
 
66
-        foreach ($streams as $key => $stream){
66
+        foreach ($streams as $key => $stream) {
67 67
             $streams[$key] = $stream->all();
68 68
         }
69 69
 
@@ -77,10 +77,10 @@  discard block
 block discarded – undo
77 77
     {
78 78
         $metadata["qualities"] = $this->getQualities();
79 79
 
80
-        $format_class =  explode("\\" ,get_class($this->export->getFormat()));
80
+        $format_class = explode("\\", get_class($this->export->getFormat()));
81 81
         $metadata["format"] = end($format_class);
82 82
 
83
-        $export_class =  explode("\\" ,get_class($this->export));
83
+        $export_class = explode("\\", get_class($this->export));
84 84
         $metadata["streaming_technique"] = end($export_class);
85 85
 
86 86
         if ($this->export instanceof DASH) {
@@ -114,8 +114,8 @@  discard block
 block discarded – undo
114 114
         $metadata["dir_path_to_video"] = pathinfo($video_path)["dirname"];
115 115
         $metadata["basename_of_video"] = pathinfo($video_path)["basename"];
116 116
         $metadata["extension_of_video"] = pathinfo($video_path)["extension"];
117
-        $metadata["mime_content_type_of_video"] = !is_file($video_path)?:mime_content_type($video_path);
118
-        $metadata["size_of_video"] = !is_file($video_path)?:filesize($video_path);
117
+        $metadata["mime_content_type_of_video"] = !is_file($video_path) ?: mime_content_type($video_path);
118
+        $metadata["size_of_video"] = !is_file($video_path) ?: filesize($video_path);
119 119
 
120 120
         $stream_path = $this->export->getPathInfo();
121 121
         $metadata["dir_path_to_stream"] = $stream_path["dirname"];
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
@@ -153,7 +153,7 @@
 block discarded – undo
153 153
      * @return mixed
154 154
      * @throws Exception
155 155
      */
156
-    public function saveToS3(array $config, string $dest, string $path = null, bool $analyse =true)
156
+    public function saveToS3(array $config, string $dest, string $path = null, bool $analyse = true)
157 157
     {
158 158
         list($results, $tmp_dir) = $this->saveToTemporaryFolder($path, $analyse);
159 159
         sleep(1);
Please login to merge, or discard this patch.
src/MediaInfo/MediaInfo.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
         $streams = $media_info["media"]["track"];
33 33
         $stream_collection = [];
34 34
 
35
-        foreach ($streams as $stream){
35
+        foreach ($streams as $stream) {
36 36
             $stream_collection[] = new Stream($stream);
37 37
         }
38 38
 
Please login to merge, or discard this patch.
src/MediaInfo/Streams/StreamCollection.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
      */
39 39
     public function audios()
40 40
     {
41
-        $audios = array_filter($this->streams, function (Stream $stream) {
41
+        $audios = array_filter($this->streams, function(Stream $stream) {
42 42
             return $stream->isAudio();
43 43
         });
44 44
 
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
      */
51 51
     public function videos()
52 52
     {
53
-        $videos =  array_filter($this->streams, function (Stream $stream) {
53
+        $videos = array_filter($this->streams, function(Stream $stream) {
54 54
             return $stream->isVideo();
55 55
         });
56 56
 
@@ -62,8 +62,8 @@  discard block
 block discarded – undo
62 62
      */
63 63
     public function general()
64 64
     {
65
-        foreach ($this->streams as $stream){
66
-            if ($stream instanceof Stream && $stream->get('@type') === "General"){
65
+        foreach ($this->streams as $stream) {
66
+            if ($stream instanceof Stream && $stream->get('@type') === "General") {
67 67
                 return $stream;
68 68
             }
69 69
         }
Please login to merge, or discard this patch.
src/MediaInfo/Streams/Stream.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
             $attr = array($attr);
39 39
         }
40 40
 
41
-        $out = array_filter($this->stream, function ($key) use ($attr) {
41
+        $out = array_filter($this->stream, function($key) use ($attr) {
42 42
             return in_array($key, $attr) || current($attr) === "*";
43 43
         }, ARRAY_FILTER_USE_KEY);
44 44
 
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
             $attr = array($attr);
57 57
         }
58 58
 
59
-        $out = array_filter($this->stream, function ($key) use ($attr) {
59
+        $out = array_filter($this->stream, function($key) use ($attr) {
60 60
             return !in_array($key, $attr);
61 61
         }, ARRAY_FILTER_USE_KEY);
62 62
 
Please login to merge, or discard this patch.