Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Merge pull request zendframework/zendframework#4099 from samsonasik/f…
Browse files Browse the repository at this point in the history
…ix/cast.bool

fix (bool) casting : add space and use (bool) instead of (boolean) to cast
  • Loading branch information
weierophinney committed Mar 28, 2013
2 parents 15a07b7 + 804d878 commit a86dfd3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/File/Rename.php
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ protected function _convertOptions($options)
break;

case 'randomize' :
$files['randomize'] = (boolean) $value;
$files['randomize'] = (bool) $value;
break;

default:
Expand Down
6 changes: 3 additions & 3 deletions src/File/RenameUpload.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public function getTarget()
*/
public function setUseUploadName($flag = true)
{
$this->options['use_upload_name'] = (boolean) $flag;
$this->options['use_upload_name'] = (bool) $flag;
return $this;
}

Expand Down Expand Up @@ -117,7 +117,7 @@ public function getUseUploadExtension()
*/
public function setOverwrite($flag = true)
{
$this->options['overwrite'] = (boolean) $flag;
$this->options['overwrite'] = (bool) $flag;
return $this;
}

Expand All @@ -135,7 +135,7 @@ public function getOverwrite()
*/
public function setRandomize($flag = true)
{
$this->options['randomize'] = (boolean) $flag;
$this->options['randomize'] = (bool) $flag;
return $this;
}

Expand Down

0 comments on commit a86dfd3

Please sign in to comment.