src/Service/Cdn.php
public static function getCropQuadrant($sOrientation)
    {
        switch ($sOrientation) {
            case 'PORTRAIT':
                $sCropQuadrant = defined('APP_CDN_CROP_QUADRANT_PORTRAIT') ? APP_CDN_CROP_QUADRANT_PORTRAIT : 'C';
                break;

            case 'LANDSCAPE':
                $sCropQuadrant = defined('APP_CDN_CROP_QUADRANT_LANDSCAPE') ? APP_CDN_CROP_QUADRANT_LANDSCAPE : 'C';
                break;

            default:
                $sCropQuadrant = 'C';
                break;
        }

        return strtoupper($sCropQuadrant);
    }
public static function getCropQuadrant($sOrientation)
    {
        switch ($sOrientation) {
            case 'PORTRAIT':
                $sCropQuadrant = defined('APP_CDN_CROP_QUADRANT_PORTRAIT') ? APP_CDN_CROP_QUADRANT_PORTRAIT : 'C';
                break;

            case 'LANDSCAPE':
                $sCropQuadrant = defined('APP_CDN_CROP_QUADRANT_LANDSCAPE') ? APP_CDN_CROP_QUADRANT_LANDSCAPE : 'C';
                break;

            default:
                $sCropQuadrant = 'C';
                break;
        }

        return strtoupper($sCropQuadrant);
    }
public static function getCropQuadrant ( $ sOrientation ) { switch ( $ sOrientation ) { case 'PORTRAIT' : $ sCropQuadrant = defined ( 'APP_CDN_CROP_QUADRANT_PORTRAIT' ) ? APP_CDN_CROP_QUADRANT_PORTRAIT : 'C' ; break ; case 'LANDSCAPE' : $ sCropQuadrant = defined ( 'APP_CDN_CROP_QUADRANT_LANDSCAPE' ) ? APP_CDN_CROP_QUADRANT_LANDSCAPE : 'C' ; break ; default : $ sCropQuadrant = 'C' ; break ; } return strtoupper ( $ sCropQuadrant ) ; }
Returns the crop quadrant being used for the orientation

@param string $sOrientation The image's orientation

@return string
Returns the crop quadrant being used for the orientation