Skip to content

Commit 3b88118

Browse files
authored
Merge pull request #3 from PackageFactory/analysis-D2K299
Apply fixes from StyleCI
2 parents 08bf719 + 38535c1 commit 3b88118

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

Classes/Eel/ColorBuilder.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function hex(string $hex): ?ColorHelper
5959
$red = (int) hexdec($matches['red'].$matches['red']);
6060
$green = (int) hexdec($matches['green'].$matches['green']);
6161
$blue = (int) hexdec($matches['blue'].$matches['blue']);
62-
$alpha = (int) hexdec(isset($matches['alpha']) ? $matches['alpha'].$matches['alpha'] : "ff");
62+
$alpha = (int) hexdec(isset($matches['alpha']) ? $matches['alpha'].$matches['alpha'] : 'ff');
6363

6464
return new ColorHelper(
6565
new RgbaColor($red, $green, $blue, $alpha)
@@ -68,7 +68,7 @@ public function hex(string $hex): ?ColorHelper
6868
$red = (int) hexdec($matches['red']);
6969
$green = (int) hexdec($matches['green']);
7070
$blue = (int) hexdec($matches['blue']);
71-
$alpha = (int) hexdec($matches['alpha'] ?? "ff");
71+
$alpha = (int) hexdec($matches['alpha'] ?? 'ff');
7272

7373
return new ColorHelper(
7474
new RgbaColor($red, $green, $blue, $alpha)
@@ -91,7 +91,7 @@ public function css(string $colorString): ?ColorHelper
9191
$red = (int) hexdec($matches['red'].$matches['red']);
9292
$green = (int) hexdec($matches['green'].$matches['green']);
9393
$blue = (int) hexdec($matches['blue'].$matches['blue']);
94-
$alpha = (int) hexdec(isset($matches['alpha']) ? $matches['alpha'].$matches['alpha'] : "ff");
94+
$alpha = (int) hexdec(isset($matches['alpha']) ? $matches['alpha'].$matches['alpha'] : 'ff');
9595

9696
return new ColorHelper(
9797
new RgbaColor($red, $green, $blue, $alpha)
@@ -100,7 +100,7 @@ public function css(string $colorString): ?ColorHelper
100100
$red = (int) hexdec($matches['red']);
101101
$green = (int) hexdec($matches['green']);
102102
$blue = (int) hexdec($matches['blue']);
103-
$alpha = (int) hexdec($matches['alpha'] ? $matches['alpha'] : "ff");
103+
$alpha = (int) hexdec($matches['alpha'] ? $matches['alpha'] : 'ff');
104104

105105
return new ColorHelper(
106106
new RgbaColor($red, $green, $blue, $alpha)

Classes/Eel/ColorHelper.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ public function hex(): string
6464

6565
/**
6666
* @param ColorHelper $color
67-
* @param int $weight
67+
* @param int $weight
68+
*
6869
* @return ColorHelper
6970
*/
7071
public function mix(self $color, int $weight = 50): self

0 commit comments

Comments
 (0)