src/Manipulators/Filter.php
public function run(Image $image)
    {
        if ($this->filt === 'greyscale') {
            return $this->runGreyscaleFilter($image);
        }

        if ($this->filt === 'sepia') {
            return $this->runSepiaFilter($image);
        }

        return $image;
    }
public function run(Image $image)
    {
        if ($this->filt === 'greyscale') {
            return $this->runGreyscaleFilter($image);
        }

        if ($this->filt === 'sepia') {
            return $this->runSepiaFilter($image);
        }

        return $image;
    }
public function run ( Image $ image ) { if ( $ this -> filt === 'greyscale' ) { return $ this -> runGreyscaleFilter ( $ image ) ; } if ( $ this -> filt === 'sepia' ) { return $ this -> runSepiaFilter ( $ image ) ; } return $ image ; }
Perform filter image manipulation.
@param  Image $image The source image.
@return Image The manipulated image.
Perform filter image manipulation .