| Conditions | 4 |
| Paths | 4 |
| Total Lines | 14 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 77 | public static function guessType( |
||
| 78 | $value, |
||
| 79 | /*# int */ $suggestType = self::PARAM_STR |
||
| 80 | )/*# : int */ { |
||
| 81 | if (is_null($value)) { |
||
| 82 | return self::PARAM_NULL; |
||
| 83 | } elseif (is_int($value)) { |
||
| 84 | return self::PARAM_INT; |
||
| 85 | } elseif (is_bool($value)) { |
||
| 86 | return self::PARAM_BOOL; |
||
| 87 | } else { |
||
| 88 | return $suggestType; |
||
| 89 | } |
||
| 90 | } |
||
| 91 | } |
||
| 92 |