ok

Mini Shell

Direktori : /home2/selectio/public_html/myclassicfit.com/vendor/league/glide/src/Manipulators/
Upload File :
Current File : /home2/selectio/public_html/myclassicfit.com/vendor/league/glide/src/Manipulators/Flip.php

<?php

namespace League\Glide\Manipulators;

use Intervention\Image\Image;

/**
 * @property string $flip
 */
class Flip extends BaseManipulator
{
    /**
     * Perform flip image manipulation.
     *
     * @param Image $image The source image.
     *
     * @return Image The manipulated image.
     */
    public function run(Image $image)
    {
        if ($flip = $this->getFlip()) {
            if ('both' === $flip) {
                return $image->flip('h')->flip('v');
            }

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

        return $image;
    }

    /**
     * Resolve flip.
     *
     * @return string The resolved flip.
     */
    public function getFlip()
    {
        if (in_array($this->flip, ['h', 'v', 'both'], true)) {
            return $this->flip;
        }
    }
}

Zerion Mini Shell 1.0