@@ -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