From d890470c60c2e4a0cfd4ceaf9b66472b43ffd5e5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Aur=C3=A9lie?= <aurelie@creads.org>
Date: Fri, 22 Jul 2022 15:25:44 +0200
Subject: [PATCH] Fixing return typo annotation in rotateImage method

---
 src/PHPThumb/GD.php | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/src/PHPThumb/GD.php b/src/PHPThumb/GD.php
index 193e749..08dbb54 100644
--- a/src/PHPThumb/GD.php
+++ b/src/PHPThumb/GD.php
@@ -106,7 +106,7 @@ public function __construct($fileName, $options = array(), array $plugins = arra
                 break;
         }
 
-        $this->currentDimensions = array (
+        $this->currentDimensions = array(
             'width'  => imagesx($this->oldImage),
             'height' => imagesy($this->oldImage)
         );
@@ -427,7 +427,6 @@ public function adaptiveResizePercent($width, $height, $percent = 50)
             // Image is landscape
             $maxCropX = $this->currentDimensions['width'] - $this->maxWidth;
             $cropX    = intval(($percent / 100) * $maxCropX);
-
         } elseif ($this->currentDimensions['height'] > $this->maxHeight) {
             // Image is portrait
             $maxCropY = $this->currentDimensions['height'] - $this->maxHeight;
@@ -594,7 +593,7 @@ public function adaptiveResizeQuadrant($width, $height, $quadrant = 'C')
     public function resizePercent($percent = 0)
     {
         if (!is_numeric($percent)) {
-            throw new \InvalidArgumentException ('$percent must be numeric');
+            throw new \InvalidArgumentException('$percent must be numeric');
         }
 
         $this->percent = intval($percent);
@@ -745,7 +744,7 @@ public function crop($startX, $startY, $cropWidth, $cropHeight)
      * Rotates image either 90 degrees clockwise or counter-clockwise
      *
      * @param string $direction
-     * @retunrn \PHPThumb\GD
+     * @return \PHPThumb\GD
      */
     public function rotateImage($direction = 'CW')
     {
@@ -975,9 +974,9 @@ public function setOptions(array $options = array())
                 'jpegQuality'           => 100,
                 'correctPermissions'    => false,
                 'preserveAlpha'         => true,
-                'alphaMaskColor'        => array (255, 255, 255),
+                'alphaMaskColor'        => array(255, 255, 255),
                 'preserveTransparency'  => true,
-                'transparencyMaskColor' => array (0, 0, 0),
+                'transparencyMaskColor' => array(0, 0, 0),
                 'interlace'             => null
             );
         } else { // otherwise, let's use what we've got already