src/Manipulators/Border.php
public function run(Image $image)
    {
        if ($border = $this->getBorder($image)) {
            list($width, $color, $method) = $border;

            if ($method === 'overlay') {
                return $this->runOverlay($image, $width, $color);
            }

            if ($method === 'shrink') {
                return $this->runShrink($image, $width, $color);
            }

            if ($method === 'expand') {
                return $this->runExpand($image, $width, $color);
            }
        }

        return $image;
    }
public function run(Image $image)
    {
        if ($border = $this->getBorder($image)) {
            list($width, $color, $method) = $border;

            if ($method === 'overlay') {
                return $this->runOverlay($image, $width, $color);
            }

            if ($method === 'shrink') {
                return $this->runShrink($image, $width, $color);
            }

            if ($method === 'expand') {
                return $this->runExpand($image, $width, $color);
            }
        }

        return $image;
    }
public function run ( Image $ image ) { if ( $ border = $ this -> getBorder ( $ image ) ) { list ( $ width , $ color , $ method ) = $ border ; if ( $ method === 'overlay' ) { return $ this -> runOverlay ( $ image , $ width , $ color ) ; } if ( $ method === 'shrink' ) { return $ this -> runShrink ( $ image , $ width , $ color ) ; } if ( $ method === 'expand' ) { return $ this -> runExpand ( $ image , $ width , $ color ) ; } } return $ image ; }
Perform border image manipulation.
@param  Image $image The source image.
@return Image The manipulated image.
Perform border image manipulation .