Permalink
Browse files

Move typecasts to RHS of assignment

  • Loading branch information...
1 parent 9ad8882 commit b10538278ec0a9eb301f83c88bd7505236c93063 @rmccue rmccue committed Apr 2, 2010
Showing with 3 additions and 3 deletions.
  1. +3 −3 simplepie.class.php
View
@@ -3818,16 +3818,16 @@ public function get_enclosures()
$temp = explode(':', $this->sanitize($duration_parent[0]['data'], SIMPLEPIE_CONSTRUCT_TEXT));
if (sizeof($temp) > 0)
{
- (int) $seconds = array_pop($temp);
+ $seconds = (int) array_pop($temp);
}
if (sizeof($temp) > 0)
{
- (int) $minutes = array_pop($temp);
+ $minutes = (int) array_pop($temp);
$seconds += $minutes * 60;
}
if (sizeof($temp) > 0)
{
- (int) $hours = array_pop($temp);
+ $hours = (int) array_pop($temp);
$seconds += $hours * 3600;
}
unset($temp);

0 comments on commit b105382

Please sign in to comment.