From 2097de0f37f7721ce799c30acf997d5ce6e2dbc9 Mon Sep 17 00:00:00 2001 From: Romain Neutron Date: Wed, 25 Apr 2012 12:45:52 +0200 Subject: [PATCH] Remove unnecessary cast --- lib/classes/p4field.class.php | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/lib/classes/p4field.class.php b/lib/classes/p4field.class.php index cb7b97074d..a734f9cda2 100644 --- a/lib/classes/p4field.class.php +++ b/lib/classes/p4field.class.php @@ -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'); + } }