Permalink
Browse files

Removing unneeded string cast before casting to an integer in Int Rule.

  • Loading branch information...
1 parent 66ef7e8 commit e2026359d2b3290d8d3f6fde48978ebdbfdd3304 @rdohms committed May 25, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 Rules/Int.php
View
6 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);
}
}

0 comments on commit e202635

Please sign in to comment.