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

Commit

Permalink
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/Storage/Adapter/Memcached.php
Expand Up @@ -475,7 +475,7 @@ protected function internalRemoveItems(array & $normalizedKeys)
*/
protected function internalIncrementItem(& $normalizedKey, & $value)
{
$value = (int)$value;
$value = (int) $value;
$newValue = $this->memcached->increment($normalizedKey, $value);

if ($newValue === false) {
Expand Down
4 changes: 2 additions & 2 deletions src/Storage/Adapter/MemoryOptions.php
Expand Up @@ -66,7 +66,7 @@ public function getMemoryLimit()
// By default use half of PHP's memory limit if possible
$memoryLimit = $this->normalizeMemoryLimit(ini_get('memory_limit'));
if ($memoryLimit >= 0) {
$this->memoryLimit = (int)($memoryLimit / 2);
$this->memoryLimit = (int) ($memoryLimit / 2);
} else {
// disable memory limit
$this->memoryLimit = 0;
Expand All @@ -86,7 +86,7 @@ public function getMemoryLimit()
protected function normalizeMemoryLimit($value)
{
if (is_numeric($value)) {
return (int)$value;
return (int) $value;
}

if (!preg_match('/(\-?\d+)\s*(\w*)/', ini_get('memory_limit'), $matches)) {
Expand Down
4 changes: 2 additions & 2 deletions src/Storage/Adapter/WinCache.php
Expand Up @@ -412,7 +412,7 @@ protected function internalIncrementItem(& $normalizedKey, & $value)
$options = $this->getOptions();
$prefix = $options->getNamespace() . $options->getNamespaceSeparator();
$internalKey = $prefix . $normalizedKey;
return wincache_ucache_inc($internalKey, (int)$value);
return wincache_ucache_inc($internalKey, (int) $value);
}

/**
Expand All @@ -428,7 +428,7 @@ protected function internalDecrementItem(& $normalizedKey, & $value)
$options = $this->getOptions();
$prefix = $options->getNamespace() . $options->getNamespaceSeparator();
$internalKey = $prefix . $normalizedKey;
return wincache_ucache_dec($internalKey, (int)$value);
return wincache_ucache_dec($internalKey, (int) $value);
}

/* status */
Expand Down
2 changes: 1 addition & 1 deletion src/Storage/Adapter/ZendServerDisk.php
Expand Up @@ -153,7 +153,7 @@ protected function zdcStore($internalKey, $value, $ttl)
*/
protected function zdcFetch($internalKey)
{
return zend_disk_cache_fetch((string)$internalKey);
return zend_disk_cache_fetch((string) $internalKey);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Storage/Adapter/ZendServerShm.php
Expand Up @@ -110,7 +110,7 @@ protected function zdcStore($internalKey, $value, $ttl)
*/
protected function zdcFetch($internalKey)
{
return zend_shm_cache_fetch((string)$internalKey);
return zend_shm_cache_fetch((string) $internalKey);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/StorageFactory.php
Expand Up @@ -73,7 +73,7 @@ public static function factory($cfg)
$adapterOptions = array_merge($adapterOptions, $cfg['options']);
}

$adapter = static::adapterFactory((string)$adapterName, $adapterOptions);
$adapter = static::adapterFactory((string) $adapterName, $adapterOptions);

// add plugins
if (isset($cfg['plugins'])) {
Expand Down

0 comments on commit e9406c0

Please sign in to comment.