@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | { |
22 | 22 | public static function getGCD($numberA, $numberB) |
23 | 23 | { |
24 | - if (! self::isInteger($numberA) | ! self::isInteger($numberB)) { |
|
24 | + if ( ! self::isInteger($numberA) | ! self::isInteger($numberB)) { |
|
25 | 25 | throw new \InvalidArgumentException( |
26 | 26 | "GCD number must be an integer" |
27 | 27 | ); |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | return true; |
48 | 48 | } elseif (is_numeric($var)) { |
49 | 49 | // cast to string first |
50 | - return ctype_digit((string)$var); |
|
50 | + return ctype_digit((string) $var); |
|
51 | 51 | } |
52 | 52 | return false; |
53 | 53 | } |