Skip to content

Commit 0c2ac3c

Browse files
authored
Merge pull request #2 from LasseRafn/analysis-8QpKep
Apply fixes from StyleCI
2 parents a505059 + 84d7dff commit 0c2ac3c

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

src/Hex.php

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -56,18 +56,18 @@ public function darken($percentage = 0)
5656
return $this->brightnessModifier->adjustBrightness($this->hex, $percentage * -1);
5757
}
5858

59-
/**
60-
* @param integer $percentage
61-
*
62-
* @throws PercentageTooHighException
63-
* @throws PercentageTooLowException
64-
* @throws PercentageIsNotAnInteger
65-
*/
59+
/**
60+
* @param int $percentage
61+
*
62+
* @throws PercentageTooHighException
63+
* @throws PercentageTooLowException
64+
* @throws PercentageIsNotAnInteger
65+
*/
6666
private function validatePercentage($percentage)
6767
{
68-
if( ! is_int($percentage)) {
69-
throw new PercentageIsNotAnInteger("The percentage ({$percentage}) is not an integer.");
70-
}
68+
if (!is_int($percentage)) {
69+
throw new PercentageIsNotAnInteger("The percentage ({$percentage}) is not an integer.");
70+
}
7171

7272
if ($percentage < 0) {
7373
throw new PercentageTooLowException("The percentage ({$percentage}) is below zero (0)");
@@ -78,10 +78,10 @@ private function validatePercentage($percentage)
7878
}
7979
}
8080

81-
/**
82-
* @throws HexTooLongException
83-
* @throws HexTooShortException
84-
*/
81+
/**
82+
* @throws HexTooLongException
83+
* @throws HexTooShortException
84+
*/
8585
private function validateHex()
8686
{
8787
$hex = str_replace('#', '', $this->hex);

0 commit comments

Comments
 (0)