src/Controller/Base.php
protected function checkDimensions($iWidth, $iHeight)
    {
        $oCdn = Factory::service('Cdn', 'nails/module-cdn');
        if (!$oCdn->isPermittedDimension($iWidth, $iHeight)) {
            if (Environment::not(Environment::ENV_PROD)) {
                throw new PermittedDimensionException(
                    'Transformation of image to ' . $iWidth . 'x' . $iHeight . ' is not permitted'
                );
            } else {
                show404();
            }
        }
    }
protected function checkDimensions($iWidth, $iHeight)
    {
        $oCdn = Factory::service('Cdn', 'nails/module-cdn');
        if (!$oCdn->isPermittedDimension($iWidth, $iHeight)) {
            if (Environment::not(Environment::ENV_PROD)) {
                throw new PermittedDimensionException(
                    'Transformation of image to ' . $iWidth . 'x' . $iHeight . ' is not permitted'
                );
            } else {
                show404();
            }
        }
    }
protected function checkDimensions ( $ iWidth , $ iHeight ) { $ oCdn = Factory :: service ( 'Cdn' , 'nails/module-cdn' ) ; if ( ! $ oCdn -> isPermittedDimension ( $ iWidth , $ iHeight ) ) { if ( Environment :: not ( Environment :: ENV_PROD ) ) { throw new PermittedDimensionException ( 'Transformation of image to ' . $ iWidth . 'x' . $ iHeight . ' is not permitted' ) ; } else { show404 ( ) ; } } }
Determines if the requested dimensions can be satisfied, throws an exception
on non-production environments

@param $iWidth
@param $iHeight

@throws PermittedDimensionException
Determines if the requested dimensions can be satisfied throws an exception on non - production environments