@@ -208,7 +208,7 @@ |
||
| 208 | 208 | * (PHP 5 >= 5.4.0)<br/> |
| 209 | 209 | * Specify data which should be serialized to JSON |
| 210 | 210 | * @link http://php.net/manual/en/jsonserializable.jsonserialize.php |
| 211 | - * @return mixed data which can be serialized by <b>json_encode</b>, |
|
| 211 | + * @return string data which can be serialized by <b>json_encode</b>, |
|
| 212 | 212 | * which is a value of any type other than a resource. |
| 213 | 213 | */ |
| 214 | 214 | function jsonSerialize() |
@@ -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 | } |