src/Service/Cdn.php
public static function getCachePath(
        $sBucket,
        $sObject,
        $sExtension,
        $sCropMethod,
        $sOrientation,
        $iWidth,
        $iHeight
    ) {
        $sCropQuadrant = static::getCropQuadrant($sOrientation);
        return implode(
                '-',
                array_filter([
                    $sBucket,
                    substr($sObject, 0, strrpos($sObject, '.')),
                    strtoupper($sCropMethod),
                    $iWidth . 'x' . $iHeight,
                    $sCropQuadrant !== 'C' ? $sCropQuadrant : '',
                ])
            ) . '.' . trim($sExtension, '.');
    }
public static function getCachePath(
        $sBucket,
        $sObject,
        $sExtension,
        $sCropMethod,
        $sOrientation,
        $iWidth,
        $iHeight
    ) {
        $sCropQuadrant = static::getCropQuadrant($sOrientation);
        return implode(
                '-',
                array_filter([
                    $sBucket,
                    substr($sObject, 0, strrpos($sObject, '.')),
                    strtoupper($sCropMethod),
                    $iWidth . 'x' . $iHeight,
                    $sCropQuadrant !== 'C' ? $sCropQuadrant : '',
                ])
            ) . '.' . trim($sExtension, '.');
    }
public static function getCachePath ( $ sBucket , $ sObject , $ sExtension , $ sCropMethod , $ sOrientation , $ iWidth , $ iHeight ) { $ sCropQuadrant = static :: getCropQuadrant ( $ sOrientation ) ; return implode ( '-' , array_filter ( [ $ sBucket , substr ( $ sObject , 0 , strrpos ( $ sObject , '.' ) ) , strtoupper ( $ sCropMethod ) , $ iWidth . 'x' . $ iHeight , $ sCropQuadrant !== 'C' ? $ sCropQuadrant : '' , ] ) ) . '.' . trim ( $ sExtension , '.' ) ; }
Generate the name of the cache file for the image

@param string  $sBucket     The bucket slug
@param string  $sObject     The name on disk
@param string  $sExtension  The file extension
@param string  $sCropMethod The crop method
@param integer $iWidth      The width
@param integer $iHeight     The height

@return string
Generate the name of the cache file for the image