@@ -10,19 +10,20 @@ class VAT
1010 *
1111 * @return double|float|integer
1212 */
13- public static function include ( $ numberExcluding = 0.0 , $ vatPercentage = 0 ) {
13+ public static function include ( $ numberExcluding , $ vatPercentage ) {
1414 return $ numberExcluding * ( 1 + ( $ vatPercentage / 100 ) );
1515 }
1616
1717 /**
1818 * $vatPercentage must be between 0 and 100.
1919 *
20- * @param float $numberIncluding
20+ * @param float
21+
2122 * @param integer $vatPercentage
2223 *
2324 * @return double|float|integer
2425 */
25- public static function exclude ( $ numberIncluding = 0.0 , $ vatPercentage = 0 ) {
26+ public static function exclude ( $ numberIncluding , $ vatPercentage ) {
2627 return $ numberIncluding * static ::getReverseVatAsFloat ( $ vatPercentage );
2728 }
2829
@@ -38,7 +39,7 @@ public static function exclude( $numberIncluding = 0.0, $vatPercentage = 0 ) {
3839 *
3940 * @return double|float|integer
4041 */
41- public static function amount ( $ numberIncluding = 0.0 , $ vatPercentage = 0 ) {
42+ public static function amount ( $ numberIncluding , $ vatPercentage ) {
4243 return $ numberIncluding * static ::getVatAsFloat ( $ numberIncluding , $ vatPercentage );
4344 }
4445
@@ -52,7 +53,7 @@ public static function amount( $numberIncluding = 0.0, $vatPercentage = 0 ) {
5253 *
5354 * @return double|float|integer
5455 */
55- public static function percentage ( $ numberIncluding = 0.0 , $ numberExcluding = 0.0 ) {
56+ public static function percentage ( $ numberIncluding , $ numberExcluding ) {
5657 return $ numberIncluding / $ numberExcluding - 1 ;
5758 }
5859
@@ -69,12 +70,11 @@ public static function getReverseVatAsFloat( $vatPercentage ) {
6970 }
7071
7172 /**
72- * @param float $numberIncluding
7373 * @param $vatPercentage
7474 *
7575 * @return float|int
7676 */
77- protected static function getVatAsFloat ( $ numberIncluding = 0.0 , $ vatPercentage ) {
77+ protected static function getVatAsFloat ( $ vatPercentage ) {
7878 return 1 - static ::getReverseVatAsFloat ($ vatPercentage );
7979 }
8080}
0 commit comments