Skip to content

Commit

Permalink
Added change requests from @olivervogel
Browse files Browse the repository at this point in the history
  • Loading branch information
gammalogic authored and olivervogel committed Jun 9, 2024
1 parent 216f4cf commit 56a92c7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/Drivers/Gd/Modifiers/DrawBezierModifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public function apply(ImageInterface $image): ImageInterface
* @param float $t
* @return array{'x': float, 'y': float}
*/
public function calculateQuadraticBezierInterpolationPoint(float $t = 0.05): array
private function calculateQuadraticBezierInterpolationPoint(float $t = 0.05): array
{
$remainder = 1 - $t;
$control_point_1_multiplier = $remainder * $remainder;
Expand All @@ -112,7 +112,7 @@ public function calculateQuadraticBezierInterpolationPoint(float $t = 0.05): arr
* @param float $t
* @return array{'x': float, 'y': float}
*/
public function calculateCubicBezierInterpolationPoint(float $t = 0.05): array
private function calculateCubicBezierInterpolationPoint(float $t = 0.05): array
{
$remainder = 1 - $t;
$t_squared = $t * $t;
Expand Down Expand Up @@ -144,7 +144,7 @@ public function calculateCubicBezierInterpolationPoint(float $t = 0.05): array
* @throws GeometryException
* @return array{0: array<mixed>, 1: array<mixed>}
*/
public function calculateBezierPoints(): array
private function calculateBezierPoints(): array
{
if ($this->drawable->count() !== 3 && $this->drawable->count() !== 4) {
throw new GeometryException('You must specify either 3 or 4 points to create a bezier curve');
Expand Down
2 changes: 1 addition & 1 deletion src/Interfaces/ImageInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,7 @@ public function drawLine(callable $init): self;
/**
* Draw a bezier curve on the current image
*
* @link
* @link https://image.intervention.io/v3/modifying/drawing#draw-bezier-curves
* @param callable $init
* @throws RuntimeException
* @return ImageInterface
Expand Down

0 comments on commit 56a92c7

Please sign in to comment.