Remove unnecessary cast

This commit is contained in:
Romain Neutron
2012-04-25 12:45:52 +02:00
parent caed8c4b90
commit 2097de0f37

View File

@@ -3,18 +3,18 @@
class p4field
{
public static function isyes($v)
{
$v = mb_strtolower(trim((string) $v));
public static function isyes($v)
{
$v = mb_strtolower(trim($v));
return($v == '1' || $v == 'y' || $v == 'yes' || $v == 'o' || $v == 'oui' || $v == 'on' || $v == 'true');
}
return($v == '1' || $v == 'y' || $v == 'yes' || $v == 'o' || $v == 'oui' || $v == 'on' || $v == 'true');
}
public static function isno($v)
{
$v = mb_strtolower(trim((string) $v));
public static function isno($v)
{
$v = mb_strtolower(trim($v));
return($v == '0' || $v == 'n' || $v == 'no' || $v == 'non' || $v = 'off' || $v == 'false');
}
return($v == '0' || $v == 'n' || $v == 'no' || $v == 'non' || $v = 'off' || $v == 'false');
}
}