@@ -72,7 +72,7 @@ |
||
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 |
@@ -28,7 +28,7 @@ |
||
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 | /** |
@@ -38,7 +38,7 @@ discard block |
||
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 |
||
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 |
@@ -131,7 +131,9 @@ discard block |
||
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 |
||
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 | } |
@@ -38,7 +38,7 @@ discard block |
||
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 |
||
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 |