![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/ledger.corals.io/vendor/league/glide/src/Manipulators/ |
<?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; } } }