/var/www/flurhymez/vendor/intervention/image/src/Intervention/Image/Commands
NameSizeModeActions
AbstractCommand.php14800644editdlrm
Argument.php57120644editdlrm
ChecksumCommand.php6090644editdlrm
CircleCommand.php9250644editdlrm
EllipseCommand.php10020644editdlrm
ExifCommand.php19640644editdlrm
IptcCommand.php31150644editdlrm
LineCommand.php9680644editdlrm
OrientateCommand.php9590644editdlrm
PolygonCommand.php12940644editdlrm
PsrResponseCommand.php12060644editdlrm
RectangleCommand.php10180644editdlrm
ResponseCommand.php5600644editdlrm
StreamCommand.php10230644editdlrm
TextCommand.php8310644editdlrm
Edit: /var/www/flurhymez/vendor/intervention/image/src/Intervention/Image/Commands/PolygonCommand.php (1294B)
argument(0)->type('array')->required()->value(); $callback = $this->argument(1)->type('closure')->value(); $vertices_count = count($points); // check if number if coordinates is even if ($vertices_count % 2 !== 0) { throw new InvalidArgumentException( "The number of given polygon vertices must be even." ); } if ($vertices_count < 6) { throw new InvalidArgumentException( "You must have at least 3 points in your array." ); } $polygon_classname = sprintf('\Intervention\Image\%s\Shapes\PolygonShape', $image->getDriver()->getDriverName()); $polygon = new $polygon_classname($points); if ($callback instanceof Closure) { $callback($polygon); } $polygon->applyToImage($image); return true; } }