Passed
Push — master ( c46f01...e18231 )
by Amin
02:58
created
src/StreamingAnalytics.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
             ->getMedia()
62 62
             ->getAllStreams();
63 63
 
64
-        foreach ($streams as $key => $stream){
64
+        foreach ($streams as $key => $stream) {
65 65
             $streams[$key] = $stream->all();
66 66
         }
67 67
 
@@ -75,10 +75,10 @@  discard block
 block discarded – undo
75 75
     {
76 76
         $metadata["qualities"] = $this->getQualities();
77 77
 
78
-        $format_class =  explode("\\" ,get_class($this->export->getFormat()));
78
+        $format_class = explode("\\", get_class($this->export->getFormat()));
79 79
         $metadata["format"] = end($format_class);
80 80
 
81
-        $export_class =  explode("\\" ,get_class($this->export));
81
+        $export_class = explode("\\", get_class($this->export));
82 82
         $metadata["streaming_technique"] = end($export_class);
83 83
 
84 84
         if ($this->export instanceof DASH) {
@@ -112,8 +112,8 @@  discard block
 block discarded – undo
112 112
         $metadata["dir_path_to_video"] = pathinfo($video_path)["dirname"];
113 113
         $metadata["basename_of_video"] = pathinfo($video_path)["basename"];
114 114
         $metadata["extension_of_video"] = pathinfo($video_path)["extension"];
115
-        $metadata["mime_content_type_of_video"] = !is_file($video_path)?:mime_content_type($video_path);
116
-        $metadata["size_of_video"] = !is_file($video_path)?:filesize($video_path);
115
+        $metadata["mime_content_type_of_video"] = !is_file($video_path) ?: mime_content_type($video_path);
116
+        $metadata["size_of_video"] = !is_file($video_path) ?: filesize($video_path);
117 117
 
118 118
         $stream_path = $this->export->getPathInfo();
119 119
         $metadata["dir_path_to_stream"] = $stream_path["dirname"];
Please login to merge, or discard this patch.
src/KeyInfo.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -84,6 +84,6 @@
 block discarded – undo
84 84
      */
85 85
     private function generateIV(): string
86 86
     {
87
-        return $this->openssl->reset()->addCommand(['rand', '-hex' ,'16'])->run();
87
+        return $this->openssl->reset()->addCommand(['rand', '-hex', '16'])->run();
88 88
     }
89 89
 }
90 90
\ No newline at end of file
Please login to merge, or discard this patch.
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($this->side_values, function ($value) use ($height) {
75
+        $heights = array_filter($this->side_values, function($value) use ($height) {
76 76
             return $value < $height;
77 77
         });
78 78
 
Please login to merge, or discard this patch.
src/AWS.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
      */
29 29
     public function __construct(array $config)
30 30
     {
31
-        $this->s3 = new S3Client($config);;
31
+        $this->s3 = new S3Client($config); ;
32 32
     }
33 33
 
34 34
     /**
Please login to merge, or discard this patch.
src/Helper.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -131,7 +131,9 @@  discard block
 block discarded – undo
131 131
     public static function moveDir(string $source, string $destination)
132 132
     {
133 133
         foreach (scandir($source) as $file) {
134
-            if (in_array($file, [".", ".."])) continue;
134
+            if (in_array($file, [".", ".."])) {
135
+                continue;
136
+            }
135 137
             if (copy($source . $file, $destination . $file)) {
136 138
                 unlink($source . $file);
137 139
             }
@@ -153,7 +155,9 @@  discard block
 block discarded – undo
153 155
         }
154 156
 
155 157
         foreach (scandir($dir) as $item) {
156
-            if (in_array($item, [".", ".."])) continue;
158
+            if (in_array($item, [".", ".."])) {
159
+                continue;
160
+            }
157 161
             if (!static::deleteDirectory($dir . DIRECTORY_SEPARATOR . $item)) {
158 162
                 return false;
159 163
             }
Please login to merge, or discard this patch.
src/FileManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
      * @param string $method
41 41
      * @param array $options
42 42
      */
43
-    public function __construct(string $url,  string $method = "GET", $options = [])
43
+    public function __construct(string $url, string $method = "GET", $options = [])
44 44
     {
45 45
         $this->client = new Client();
46 46
         $this->url = $url;
Please login to merge, or discard this patch.