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

Commit

Permalink
Merge branch 'master', remote-tracking branch 'upstream/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
Show file tree
Hide file tree
Showing 47 changed files with 16 additions and 167 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
10 changes: 3 additions & 7 deletions test/Pattern/CallbackCacheTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Cache
*/

namespace ZendTest\Cache\Pattern;
Expand All @@ -24,11 +23,11 @@ class TestCallbackCache

public static function bar()
{
++self::$fooCounter;
++static::$fooCounter;
$args = func_get_args();

echo 'foobar_output('.implode(', ', $args) . ') : ' . self::$fooCounter;
return 'foobar_return('.implode(', ', $args) . ') : ' . self::$fooCounter;
echo 'foobar_output('.implode(', ', $args) . ') : ' . static::$fooCounter;
return 'foobar_return('.implode(', ', $args) . ') : ' . static::$fooCounter;
}

public static function emptyMethod() {}
Expand All @@ -53,9 +52,6 @@ function bar()
}

/**
* @category Zend
* @package Zend_Cache
* @subpackage UnitTests
* @group Zend_Cache
*/
class CallbackCacheTest extends CommonPatternTest
Expand Down
4 changes: 0 additions & 4 deletions test/Pattern/CaptureCacheTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,13 @@
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Cache
*/

namespace ZendTest\Cache\Pattern;

use Zend\Cache;

/**
* @category Zend
* @package Zend_Cache
* @subpackage UnitTests
* @group Zend_Cache
*/
class CaptureCacheTest extends CommonPatternTest
Expand Down
10 changes: 3 additions & 7 deletions test/Pattern/ClassCacheTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Cache
*/

namespace ZendTest\Cache\Pattern;
Expand All @@ -24,21 +23,18 @@ class TestClassCache

public static function bar()
{
++self::$fooCounter;
++static::$fooCounter;
$args = func_get_args();

echo 'foobar_output('.implode(', ', $args) . ') : ' . self::$fooCounter;
return 'foobar_return('.implode(', ', $args) . ') : ' . self::$fooCounter;
echo 'foobar_output('.implode(', ', $args) . ') : ' . static::$fooCounter;
return 'foobar_return('.implode(', ', $args) . ') : ' . static::$fooCounter;
}

public static function emptyMethod() {}

}

/**
* @category Zend
* @package Zend_Cache
* @subpackage UnitTests
* @group Zend_Cache
*/
class ClassCacheTest extends CommonPatternTest
Expand Down
4 changes: 0 additions & 4 deletions test/Pattern/CommonPatternTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,13 @@
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Cache
*/

namespace ZendTest\Cache\Pattern;

use Zend\Cache;

/**
* @category Zend
* @package Zend_Cache
* @subpackage UnitTests
* @group Zend_Cache
*/
class CommonPatternTest extends \PHPUnit_Framework_TestCase
Expand Down
10 changes: 3 additions & 7 deletions test/Pattern/ObjectCacheTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Cache
*/

namespace ZendTest\Cache\Pattern;
Expand All @@ -26,11 +25,11 @@ class TestObjectCache

public function bar()
{
++self::$fooCounter;
++static::$fooCounter;
$args = func_get_args();

echo 'foobar_output('.implode(', ', $args) . ') : ' . self::$fooCounter;
return 'foobar_return('.implode(', ', $args) . ') : ' . self::$fooCounter;
echo 'foobar_output('.implode(', ', $args) . ') : ' . static::$fooCounter;
return 'foobar_return('.implode(', ', $args) . ') : ' . static::$fooCounter;
}

public function __invoke()
Expand All @@ -43,9 +42,6 @@ public function emptyMethod() {}
}

/**
* @category Zend
* @package Zend_Cache
* @subpackage UnitTests
* @group Zend_Cache
*/
class ObjectCacheTest extends CommonPatternTest
Expand Down
4 changes: 0 additions & 4 deletions test/Pattern/OutputCacheTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,13 @@
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Cache
*/

namespace ZendTest\Cache\Pattern;

use Zend\Cache;

/**
* @category Zend
* @package Zend_Cache
* @subpackage UnitTests
* @group Zend_Cache
*/
class OutputCacheTest extends CommonPatternTest
Expand Down
4 changes: 0 additions & 4 deletions test/PatternFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,13 @@
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Cache
*/

namespace ZendTest\Cache;

use Zend\Cache;

/**
* @category Zend
* @package Zend_Cache
* @subpackage UnitTests
* @group Zend_Cache
*/
class PatternFactoryTest extends \PHPUnit_Framework_TestCase
Expand Down
4 changes: 0 additions & 4 deletions test/Service/StorageCacheAbstractServiceFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Cache
*/

namespace ZendTest\Cache\Service;
Expand All @@ -14,9 +13,6 @@
use Zend\ServiceManager\ServiceManager;

/**
* @category Zend
* @package Zend_Cache
* @subpackage UnitTests
* @group Zend_Cache
*/
class StorageCacheAbstractServiceFactoryTest extends \PHPUnit_Framework_TestCase
Expand Down
4 changes: 0 additions & 4 deletions test/Service/StorageCacheFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Cache
*/

namespace ZendTest\Cache\Service;
Expand All @@ -14,9 +13,6 @@
use Zend\ServiceManager\ServiceManager;

/**
* @category Zend
* @package Zend_Cache
* @subpackage UnitTests
* @group Zend_Cache
*/
class StorageCacheFactoryTest extends \PHPUnit_Framework_TestCase
Expand Down
4 changes: 0 additions & 4 deletions test/Storage/Adapter/AbstractAdapterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Cache
*/

namespace ZendTest\Cache\Storage\Adapter;
Expand All @@ -14,9 +13,6 @@
use Zend\Cache\Exception;

/**
* @category Zend
* @package Zend_Cache
* @subpackage UnitTests
* @group Zend_Cache
*/
class AbstractAdapterTest extends \PHPUnit_Framework_TestCase
Expand Down
4 changes: 0 additions & 4 deletions test/Storage/Adapter/AbstractDbaTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,13 @@
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Cache
*/

namespace ZendTest\Cache\Storage\Adapter;

use Zend\Cache;

/**
* @category Zend
* @package Zend_Cache
* @subpackage UnitTests
* @group Zend_Cache
*/
abstract class AbstractDbaTest extends CommonAdapterTest
Expand Down
4 changes: 0 additions & 4 deletions test/Storage/Adapter/AbstractZendServerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Cache
*/

namespace ZendTest\Cache\Storage\Adapter;
Expand All @@ -14,9 +13,6 @@
use Zend\Cache\Storage\Adapter\AbstractZendServer;

/**
* @category Zend
* @package Zend_Cache
* @subpackage UnitTests
* @group Zend_Cache
*/
class AbstractZendServerTest extends \PHPUnit_Framework_TestCase
Expand Down
4 changes: 0 additions & 4 deletions test/Storage/Adapter/ApcTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,13 @@
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Cache
*/

namespace ZendTest\Cache\Storage\Adapter;

use Zend\Cache;

/**
* @category Zend
* @package Zend_Cache
* @subpackage UnitTests
* @group Zend_Cache
*/
class ApcTest extends CommonAdapterTest
Expand Down
4 changes: 0 additions & 4 deletions test/Storage/Adapter/CommonAdapterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Cache
*/

namespace ZendTest\Cache\Storage\Adapter;
Expand All @@ -29,9 +28,6 @@
*/

/**
* @category Zend
* @package Zend_Cache
* @subpackage UnitTests
* @group Zend_Cache
*/
abstract class CommonAdapterTest extends \PHPUnit_Framework_TestCase
Expand Down
4 changes: 0 additions & 4 deletions test/Storage/Adapter/DbaDb2Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,13 @@
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Cache
*/

namespace ZendTest\Cache\Storage\Adapter;

use Zend\Cache;

/**
* @category Zend
* @package Zend_Cache
* @subpackage UnitTests
* @group Zend_Cache
*/
class DbaDb2Test extends AbstractDbaTest
Expand Down
4 changes: 0 additions & 4 deletions test/Storage/Adapter/DbaDb3Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,13 @@
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Cache
*/

namespace ZendTest\Cache\Storage\Adapter;

use Zend\Cache;

/**
* @category Zend
* @package Zend_Cache
* @subpackage UnitTests
* @group Zend_Cache
*/
class DbaDb3Test extends AbstractDbaTest
Expand Down
Loading

0 comments on commit bf16f63

Please sign in to comment.