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

Commit

Permalink
Merge pull request zendframework/zendframework#5114 in master
Browse files Browse the repository at this point in the history
  • Loading branch information
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/Storage/Adapter/MemcachedResourceManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ protected function normalizeServer(& $server)

// array('host' => <host>[, 'port' => <port>[, 'weight' => <weight>]])
if (!isset($server[0]) && isset($server['host'])) {
$host = (string)$server['host'];
$host = (string) $server['host'];
$port = isset($server['port']) ? (int) $server['port'] : $port;
$weight = isset($server['weight']) ? (int) $server['weight'] : $weight;
}
Expand All @@ -513,7 +513,7 @@ protected function normalizeServer(& $server)
$query = null;
parse_str($server['query'], $query);
if (isset($query['weight'])) {
$weight = (int)$query['weight'];
$weight = (int) $query['weight'];
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/Storage/Adapter/RedisResourceManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ public function setDatabase($id, $database)
{
if (!$this->hasResource($id)) {
return $this->setResource($id, array(
'database' => (int)$database,
'database' => (int) $database,
));
}

Expand Down Expand Up @@ -533,7 +533,7 @@ public function getMajorVersion($id)
}

$resource = & $this->resources[$id];
return (int)$resource['version'];
return (int) $resource['version'];
}

/**
Expand Down
4 changes: 2 additions & 2 deletions src/Storage/Adapter/XCacheOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public function getNamespaceSeparator()
*/
public function setAdminUser($adminUser)
{
$adminUser = ($adminUser === null) ? null : (string)$adminUser;
$adminUser = ($adminUser === null) ? null : (string) $adminUser;
if ($this->adminUser !== $adminUser) {
$this->triggerOptionEvent('admin_user', $adminUser);
$this->adminUser = $adminUser;
Expand Down Expand Up @@ -126,7 +126,7 @@ public function getAdminAuth()
*/
public function setAdminPass($adminPass)
{
$adminPass = ($adminPass === null) ? null : (string)$adminPass;
$adminPass = ($adminPass === null) ? null : (string) $adminPass;
if ($this->adminPass !== $adminPass) {
$this->triggerOptionEvent('admin_pass', $adminPass);
$this->adminPass = $adminPass;
Expand Down
2 changes: 1 addition & 1 deletion test/Storage/Adapter/RedisTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ public function testGetCapabilitiesTtl()
$redisResource = new RedisResource();
$redisResource->connect($host, $port);
$info = $redisResource->info();
$majorVersion = (int)$info['redis_version'];
$majorVersion = (int) $info['redis_version'];

$this->assertEquals($majorVersion, $this->_options->getResourceManager()->getMajorVersion($this->_options->getResourceId()));

Expand Down

0 comments on commit 54f7675

Please sign in to comment.