public static function availableSizes() {
            $r = [];
            foreach ((new ReflectionClass(ThumbnailSize::class))->getMethods() as $m) {
                if (preg_match('~^w[0-9]+h[0-9]+$~', $m->getName())) {
                    $r[] = $m->getName();
                }
            };

            return $r;
        }
public static function availableSizes() {
            $r = [];
            foreach ((new ReflectionClass(ThumbnailSize::class))->getMethods() as $m) {
                if (preg_match('~^w[0-9]+h[0-9]+$~', $m->getName())) {
                    $r[] = $m->getName();
                }
            };

            return $r;
        }
public static function availableSizes ( ) { $ r = [ ] ; foreach ( ( new ReflectionClass ( ThumbnailSize :: class ) ) -> getMethods ( ) as $ m ) { if ( preg_match ( '~^w[0-9]+h[0-9]+$~' , $ m -> getName ( ) ) ) { $ r [ ] = $ m -> getName ( ) ; } } ; return $ r ; }
Return a list ov available thumbnail sizes

@author Art <a.molcanovas@gmail.com>
@return array
Return a list ov available thumbnail sizes