public static function getResponsiveWidthStep($width, $widths)
    {
        foreach ($widths as $cachedWidth) {
            if ($width <= $cachedWidth) {
                return $cachedWidth;
            }
        }
        return end($widths);
    }
public static function getResponsiveWidthStep($width, $widths)
    {
        foreach ($widths as $cachedWidth) {
            if ($width <= $cachedWidth) {
                return $cachedWidth;
            }
        }
        return end($widths);
    }
public static function getResponsiveWidthStep ( $ width , $ widths ) { foreach ( $ widths as $ cachedWidth ) { if ( $ width <= $ cachedWidth ) { return $ cachedWidth ; } } return end ( $ widths ) ; }
Returns next supported image-width
Returns next supported image - width