src/Manipulators/Flip.php
public function run(Image $image)
    {
        if ($flip = $this->getFlip()) {
            if ($flip === 'both') {
                return $image->flip('h')->flip('v');
            }

            return $image->flip($flip);
        }

        return $image;
    }
public function run(Image $image)
    {
        if ($flip = $this->getFlip()) {
            if ($flip === 'both') {
                return $image->flip('h')->flip('v');
            }

            return $image->flip($flip);
        }

        return $image;
    }
public function run ( Image $ image ) { if ( $ flip = $ this -> getFlip ( ) ) { if ( $ flip === 'both' ) { return $ image -> flip ( 'h' ) -> flip ( 'v' ) ; } return $ image -> flip ( $ flip ) ; } return $ image ; }
Perform flip image manipulation.
@param  Image $image The source image.
@return Image The manipulated image.
Perform flip image manipulation .