src/Manipulators/Border.php
public function getBorder(Image $image)
    {
        if (!$this->border) {
            return;
        }

        $values = explode(',', $this->border);

        $width = $this->getWidth($image, $this->getDpr(), isset($values[0]) ? $values[0] : null);
        $color = $this->getColor(isset($values[1]) ? $values[1] : null);
        $method = $this->getMethod(isset($values[2]) ? $values[2] : null);

        if ($width) {
            return [$width, $color, $method];
        }
    }
public function getBorder(Image $image)
    {
        if (!$this->border) {
            return;
        }

        $values = explode(',', $this->border);

        $width = $this->getWidth($image, $this->getDpr(), isset($values[0]) ? $values[0] : null);
        $color = $this->getColor(isset($values[1]) ? $values[1] : null);
        $method = $this->getMethod(isset($values[2]) ? $values[2] : null);

        if ($width) {
            return [$width, $color, $method];
        }
    }
public function getBorder ( Image $ image ) { if ( ! $ this -> border ) { return ; } $ values = explode ( ',' , $ this -> border ) ; $ width = $ this -> getWidth ( $ image , $ this -> getDpr ( ) , isset ( $ values [ 0 ] ) ? $ values [ 0 ] : null ) ; $ color = $ this -> getColor ( isset ( $ values [ 1 ] ) ? $ values [ 1 ] : null ) ; $ method = $ this -> getMethod ( isset ( $ values [ 2 ] ) ? $ values [ 2 ] : null ) ; if ( $ width ) { return [ $ width , $ color , $ method ] ; } }
Resolve border amount.
@param  Image  $image The source image.
@return string The resolved border amount.
Resolve border amount .