From e2026359d2b3290d8d3f6fde48978ebdbfdd3304 Mon Sep 17 00:00:00 2001 From: Rafael Dohms Date: Fri, 25 May 2012 22:55:35 +0200 Subject: [PATCH] Removing unneeded string cast before casting to an integer in Int Rule. --- Rules/Int.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Rules/Int.php b/Rules/Int.php index 32303b1..e70875d 100644 --- a/Rules/Int.php +++ b/Rules/Int.php @@ -5,10 +5,10 @@ /** * Int Rule * Converts content into an Int - * + * * @package DMS * @subpackage Filter - * + * * @Annotation */ class Int extends Rule @@ -18,7 +18,7 @@ class Int extends Rule */ public function applyFilter($value) { - return (int) ((string) $value); + return (int) ($value); } } \ No newline at end of file