Completed
Push — refactor ( b1bacf...888b68 )
by Paul
04:15 queued 01:47
created
src/Elphin/IcoFileLoader/Ico.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -453,7 +453,7 @@
 block discarded – undo
453 453
      * @param int      $red    Red component
454 454
      * @param int      $green  Green component
455 455
      * @param int      $blue   Blue component
456
-     * @param int      $alphpa Alpha channel
456
+     * @param int      $alpha Alpha channel
457 457
      *
458 458
      * @return int Color index
459 459
      **/
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
          **/
108 108
         for ($i = 0; $i < count($this->formats); ++$i) {
109 109
             $icodata = unpack(
110
-                'LSize/LWidth/LHeight/SPlanes/SBitCount/LCompression/LImageSize/'.
110
+                'LSize/LWidth/LHeight/SPlanes/SBitCount/LCompression/LImageSize/' .
111 111
                 'LXpixelsPerM/LYpixelsPerM/LColorsUsed/LColorsImportant',
112 112
                 substr($data, $this->formats[$i]['FileOffset'])
113 113
             );
@@ -230,9 +230,9 @@  discard block
 block discarded – undo
230 230
     public function setBackground($red = 255, $green = 255, $blue = 255)
231 231
     {
232 232
         if (is_string($red) && preg_match('/^\#[0-9a-f]{6}$/', $red)) {
233
-            $green = hexdec($red[3].$red[4]);
234
-            $blue = hexdec($red[5].$red[6]);
235
-            $red = hexdec($red[1].$red[2]);
233
+            $green = hexdec($red[3] . $red[4]);
234
+            $blue = hexdec($red[5] . $red[6]);
235
+            $red = hexdec($red[1] . $red[2]);
236 236
         }
237 237
 
238 238
         $this->bgcolor = [$red, $green, $blue];
Please login to merge, or discard this patch.