Completed
Push — master ( d9ca78...e2f2ea )
by Askupa
01:23
created
Number.php 1 patch
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -19,16 +19,28 @@
 block discarded – undo
19 19
         return \is_float($num);
20 20
     }
21 21
     
22
+    /**
23
+     * @param integer $num
24
+     * @param integer $limit
25
+     */
22 26
     static function less_than( $num, $limit )
23 27
     {
24 28
         return self::is_numeric($num) && $num < $limit;
25 29
     }
26 30
     
31
+    /**
32
+     * @param integer $num
33
+     * @param integer $limit
34
+     */
27 35
     static function greater_than( $num, $limit )
28 36
     {
29 37
         return self::is_numeric($num) && $num > $limit;
30 38
     }
31 39
     
40
+    /**
41
+     * @param integer $min
42
+     * @param integer $max
43
+     */
32 44
     static function in_range( $num, $min, $max, $inclusive = false )
33 45
     {
34 46
         if($inclusive)
Please login to merge, or discard this patch.
Strings.php 1 patch
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -4,16 +4,28 @@
 block discarded – undo
4 4
 
5 5
 class Strings
6 6
 {
7
+    /**
8
+     * @param string $str
9
+     * @param integer $length
10
+     */
7 11
     static function length_less_than( $str, $length )
8 12
     {
9 13
         return strlen($str) < $length;
10 14
     }
11 15
     
16
+    /**
17
+     * @param string $str
18
+     * @param integer $length
19
+     */
12 20
     static function length_greater_than( $str, $length )
13 21
     {
14 22
         return strlen($str) > $length;
15 23
     }
16 24
     
25
+    /**
26
+     * @param string $str
27
+     * @param string $regex
28
+     */
17 29
     static function match( $str, $regex )
18 30
     {
19 31
         return preg_match($regex, $str) === 1;
Please login to merge, or discard this patch.