Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

fix (bool) casting : add space and use (bool) instead of (boolean) to cast #4099

Closed
wants to merge 1 commit into from

2 participants

@samsonasik

No description provided.

@weierophinney

Merging this against develop, as it builds consistency with #4098 -- which I chose to merge against develop.

@ghost Unknown referenced this pull request from a commit
@weierophinney weierophinney Merge branch 'hotfix/4099' into develop
Close #4099
ad78145
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
View
2  library/Zend/Cache/Storage/Adapter/XCacheOptions.php
@@ -100,7 +100,7 @@ public function getAdminUser()
*/
public function setAdminAuth($adminAuth)
{
- $adminAuth = (boolean)$adminAuth;
+ $adminAuth = (bool) $adminAuth;
if ($this->adminAuth !== $adminAuth) {
$this->triggerOptionEvent('admin_auth', $adminAuth);
$this->adminAuth = $adminAuth;
View
2  library/Zend/Code/Generator/DocBlockGenerator.php
@@ -198,7 +198,7 @@ public function getTags()
*/
public function setWordWrap($value)
{
- $this->wordwrap = (boolean) $value;
+ $this->wordwrap = (bool) $value;
return $this;
}
View
2  library/Zend/Console/Console.php
@@ -157,7 +157,7 @@ public static function isConsole()
public static function overrideIsConsole($flag)
{
if(null != $flag) {
- $flag = (bool)$flag;
+ $flag = (bool) $flag;
}
static::$isConsole = $flag;
}
View
2  library/Zend/Crypt/Password/Bcrypt.php
@@ -182,7 +182,7 @@ public function getSalt()
*/
public function setBackwardCompatibility($value)
{
- $this->backwardCompatibility = (boolean) $value;
+ $this->backwardCompatibility = (bool) $value;
return $this;
}
View
2  library/Zend/Filter/File/Rename.php
@@ -225,7 +225,7 @@ protected function _convertOptions($options)
break;
case 'randomize' :
- $files['randomize'] = (boolean) $value;
+ $files['randomize'] = (bool) $value;
break;
default:
View
6 library/Zend/Filter/File/RenameUpload.php
@@ -79,7 +79,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;
}
@@ -97,7 +97,7 @@ public function getUseUploadName()
*/
public function setOverwrite($flag = true)
{
- $this->options['overwrite'] = (boolean) $flag;
+ $this->options['overwrite'] = (bool) $flag;
return $this;
}
@@ -115,7 +115,7 @@ public function getOverwrite()
*/
public function setRandomize($flag = true)
{
- $this->options['randomize'] = (boolean) $flag;
+ $this->options['randomize'] = (bool) $flag;
return $this;
}
View
2  library/Zend/Test/PHPUnit/Controller/AbstractControllerTestCase.php
@@ -104,7 +104,7 @@ public function getUseConsoleRequest()
*/
public function setUseConsoleRequest($boolean)
{
- $this->useConsoleRequest = (boolean) $boolean;
+ $this->useConsoleRequest = (bool) $boolean;
return $this;
}
Something went wrong with that request. Please try again.