also looking at this
meemalabs/laravel-media-converter
Apply fixes from StyleCI
#28
7 files
+47
-44
| @@ -25,7 +25,7 @@ class MediaConvert implements Converter | ||
| 25 | 25 | /** |
| 26 | 26 | * Construct converter. |
| 27 | 27 | * |
| 28 | * @param \Aws\MediaConvert\MediaConvertClient $client | |
| 28 | * @param \Aws\MediaConvert\MediaConvertClient $client | |
| 29 | 29 | */ |
| 30 | 30 | public function __construct(MediaConvertClient $client) |
| 31 | 31 | { |
| @@ -54,8 +54,8 @@ class MediaConvert implements Converter | ||
| 54 | 54 | /** |
| 55 | 55 | * Sets the path of the file input. |
| 56 | 56 | * |
| 57 | * @param string $path - represents the S3 path, e.g path/to/file.mp4 | |
| 58 | * @param string|null $bucket - reference to the S3 Bucket name. Defaults to config value. | |
| 57 | * @param string $path - represents the S3 path, e.g path/to/file.mp4 | |
| 58 | * @param string|null $bucket - reference to the S3 Bucket name. Defaults to config value. | |
| 59 | 59 | * @return \Meema\MediaConverter\Converters\MediaConvert |
| 60 | 60 | */ |
| 61 | 61 | public function path(string $path, $bucket = null): MediaConvert |
| @@ -80,12 +80,12 @@ class MediaConvert implements Converter | ||
| 80 | 80 | /** |
| 81 | 81 | * Sets the settings required to generate the proper amount of thumbnails. |
| 82 | 82 | * |
| 83 | * @param int $framerateNumerator | |
| 84 | * @param int $framerateDenominator | |
| 85 | * @param int $maxCaptures | |
| 86 | * @param int|null $width | |
| 87 | * @param string|null $nameModifier | |
| 88 | * @param int $imageQuality | |
| 83 | * @param int $framerateNumerator | |
| 84 | * @param int $framerateDenominator | |
| 85 | * @param int $maxCaptures | |
| 86 | * @param int|null $width | |
| 87 | * @param string|null $nameModifier | |
| 88 | * @param int $imageQuality | |
| 89 | 89 | * @return \Meema\MediaConverter\Converters\MediaConvert |
| 90 | 90 | */ |
| 91 | 91 | public function withThumbnails(int $framerateNumerator, int $framerateDenominator, int $maxCaptures, $width = null, $nameModifier = null, $imageQuality = 80): MediaConvert |
| @@ -111,8 +111,8 @@ class MediaConvert implements Converter | ||
| 111 | 111 | /** |
| 112 | 112 | * Sets the S3 path & executes the job. |
| 113 | 113 | * |
| 114 | * @param string $s3Path | |
| 115 | * @param string|null $s3bucket | |
| 114 | * @param string $s3Path | |
| 115 | * @param string|null $s3bucket | |
| 116 | 116 | * @return \Meema\MediaConverter\Converters\MediaConvert |
| 117 | 117 | */ |
| 118 | 118 | public function saveTo(string $s3Path, $s3bucket = null): MediaConvert |
| @@ -128,7 +128,7 @@ class MediaConvert implements Converter | ||
| 128 | 128 | /** |
| 129 | 129 | * Cancels an active job. |
| 130 | 130 | * |
| 131 | * @param string $id | |
| 131 | * @param string $id | |
| 132 | 132 | * @return \Aws\Result |
| 133 | 133 | */ |
| 134 | 134 | public function cancelJob(string $id) |
| @@ -141,9 +141,9 @@ class MediaConvert implements Converter | ||
| 141 | 141 | /** |
| 142 | 142 | * Creates a new job based on the settings passed. |
| 143 | 143 | * |
| 144 | * @param array $settings | |
| 145 | * @param array $metaData | |
| 146 | * @param int $priority | |
| 144 | * @param array $settings | |
| 145 | * @param array $metaData | |
| 146 | * @param int $priority | |
| 147 | 147 | * @return \Aws\Result |
| 148 | 148 | */ |
| 149 | 149 | public function createJob(array $settings = [], array $metaData = [], array $tags = [], int $priority = 0) |
| @@ -166,7 +166,7 @@ class MediaConvert implements Converter | ||
| 166 | 166 | /** |
| 167 | 167 | * Gets the job. |
| 168 | 168 | * |
| 169 | * @param string $id | |
| 169 | * @param string $id | |
| 170 | 170 | * @return \Aws\Result |
| 171 | 171 | */ |
| 172 | 172 | public function getJob(string $id) |
| @@ -179,7 +179,7 @@ class MediaConvert implements Converter | ||
| 179 | 179 | /** |
| 180 | 180 | * Lists all of the jobs based on your options provided. |
| 181 | 181 | * |
| 182 | * @param array $options | |
| 182 | * @param array $options | |
| 183 | 183 | * @return \Aws\Result |
| 184 | 184 | */ |
| 185 | 185 | public function listJobs(array $options) |
| @@ -202,8 +202,8 @@ class MediaConvert implements Converter | ||
| 202 | 202 | /** |
| 203 | 203 | * Sets the S3 input file path. |
| 204 | 204 | * |
| 205 | * @param string $path | |
| 206 | * @param string|null $bucket | |
| 205 | * @param string $path | |
| 206 | * @param string|null $bucket | |
| 207 | 207 | */ |
| 208 | 208 | protected function setFileInput(string $path, $bucket = null) |
| 209 | 209 | { |