Completed
Push — master ( 336f0f...d33990 )
by Amin
03:58 queued 01:36
created
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/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.
src/MediaInfo/Streams/StreamCollection.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
      */
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
 
Please login to merge, or discard this patch.
src/Export.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,12 +60,12 @@
 block discarded – undo
60 60
             $this->getFilter()
61 61
         );
62 62
 
63
-        try{
63
+        try {
64 64
             $this->media->save(
65 65
                 $this->getFormat(),
66 66
                 $path
67 67
             );
68
-        }catch (ExceptionInterface $e){
68
+        } catch (ExceptionInterface $e) {
69 69
             throw new RuntimeException(sprintf(
70 70
                 "There was an error saving files: \n\n reason: \n %s",
71 71
                 $e->getMessage()
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
                 $this->getFormat(),
66 66
                 $path
67 67
             );
68
-        }catch (ExceptionInterface $e){
68
+        } catch (ExceptionInterface $e){
69 69
             throw new RuntimeException(sprintf(
70 70
                 "There was an error saving files: \n\n reason: \n %s",
71 71
                 $e->getMessage()
Please login to merge, or discard this patch.
src/FFMpeg.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,9 +43,9 @@
 block discarded – undo
43 43
             throw new InvalidArgumentException("There is no file in this path: " . $path);
44 44
         }
45 45
 
46
-        try{
46
+        try {
47 47
             return new Media($this->ffmpeg->open($path), $path, $is_tmp);
48
-        }catch (ExceptionInterface $e){
48
+        } catch (ExceptionInterface $e) {
49 49
             throw new RuntimeException(sprintf("There was an error opening this file: \n\n reason: \n %s", $e->getMessage()));
50 50
         }
51 51
     }
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
 
46 46
         try{
47 47
             return new Media($this->ffmpeg->open($path), $path, $is_tmp);
48
-        }catch (ExceptionInterface $e){
48
+        } catch (ExceptionInterface $e){
49 49
             throw new RuntimeException(sprintf("There was an error opening this file: \n\n reason: \n %s", $e->getMessage()));
50 50
         }
51 51
     }
Please login to merge, or discard this patch.
src/FileManager.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -185,7 +185,9 @@  discard block
 block discarded – undo
185 185
     {
186 186
         static::makeDir($destination);
187 187
         foreach (scandir($source) as $file) {
188
-            if (in_array($file, [".", ".."])) continue;
188
+            if (in_array($file, [".", ".."])) {
189
+                continue;
190
+            }
189 191
             if (copy($source . $file, $destination . $file)) {
190 192
                 unlink($source . $file);
191 193
             }
@@ -207,7 +209,9 @@  discard block
 block discarded – undo
207 209
         }
208 210
 
209 211
         foreach (scandir($dir) as $item) {
210
-            if (in_array($item, [".", ".."])) continue;
212
+            if (in_array($item, [".", ".."])) {
213
+                continue;
214
+            }
211 215
             if (!static::deleteDirectory($dir . DIRECTORY_SEPARATOR . $item)) {
212 216
                 return false;
213 217
             }
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
@@ -142,7 +142,7 @@
 block discarded – undo
142 142
 
143 143
         $h = $this->getDimensions()[1];
144 144
 
145
-        $this->side_values = array_values(array_filter($this->side_values, function ($height) use ($h) {
145
+        $this->side_values = array_values(array_filter($this->side_values, function($height) use ($h) {
146 146
             return $height < $h;
147 147
         }));
148 148
     }
Please login to merge, or discard this patch.