File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -239,6 +239,12 @@ protected static function get_intermediate_size( $size ) {
239239 return array ( null , null );
240240 }
241241
242+ /**
243+ * Retrieves image sizes as a map of size and width, height and tinify meta data
244+ * The first entry will always be '0', aka the original uploaded image.
245+ *
246+ * @return array{string: array{width: int|null, height: int|null, tinify: array{}}} $sizes
247+ */
242248 public function get_sizes () {
243249 if ( is_array ( $ this ->sizes ) ) {
244250 return $ this ->sizes ;
@@ -374,7 +380,7 @@ public function get_resize_options( $size_name ) {
374380 /**
375381 * Retrieves the configured settings for conversion.
376382 *
377- * @return array{ convert: bool, convert_to: string } The conversion options.
383+ * @return array{ convert: bool, convert_to: array{ string} } The conversion options.
378384 */
379385 public function get_conversion_options () {
380386 return array (
You can’t perform that action at this time.
0 commit comments