src/Silvestra/Component/Media/Extension/Image/GdImageCropper.php
private function getBox(array $coordinates)
    {
        $height = abs($coordinates['y1'] - $coordinates['y2']);
        $width = abs($coordinates['x1'] - $coordinates['x2']);

        return new Box($width, $height);
    }
private function getBox(array $coordinates)
    {
        $height = abs($coordinates['y1'] - $coordinates['y2']);
        $width = abs($coordinates['x1'] - $coordinates['x2']);

        return new Box($width, $height);
    }
private function getBox ( array $ coordinates ) { $ height = abs ( $ coordinates [ 'y1' ] - $ coordinates [ 'y2' ] ) ; $ width = abs ( $ coordinates [ 'x1' ] - $ coordinates [ 'x2' ] ) ; return new Box ( $ width , $ height ) ; }
Get box.

@param array $coordinates

@return Box
Get box .