Skip to content

Commit

Permalink
Removing unneeded string cast before casting to an integer in Int Rule.
Browse files Browse the repository at this point in the history
  • Loading branch information
rdohms committed May 25, 2012
1 parent 66ef7e8 commit e202635
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Rules/Int.php
Expand Up @@ -5,10 +5,10 @@
/**
* Int Rule
* Converts content into an Int
*
*
* @package DMS
* @subpackage Filter
*
*
* @Annotation
*/
class Int extends Rule
Expand All @@ -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.