Completed
Pull Request — master (#6)
by Gilles
04:34
created
src/Number.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -208,7 +208,7 @@
 block discarded – undo
208 208
      * (PHP 5 &gt;= 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()
Please login to merge, or discard this patch.
src/GCD.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.