Skip to content
This repository has been archived by the owner on Jan 30, 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 6 changed files with 4 additions and 21 deletions.
8 changes: 4 additions & 4 deletions src/Rand.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ public static function getBytes($length, $strong = false)
*/
public static function getAlternativeGenerator()
{
if (!is_null(self::$generator)) {
return self::$generator;
if (!is_null(static::$generator)) {
return static::$generator;
}
if (!class_exists('RandomLib\\Factory')) {
throw new Exception\RuntimeException(
Expand All @@ -90,8 +90,8 @@ public static function getAlternativeGenerator()
'HashTiming',
'Zend\Math\Source\HashTiming'
);
self::$generator = $factory->getMediumStrengthGenerator();
return self::$generator;
static::$generator = $factory->getMediumStrengthGenerator();
return static::$generator;
}

/**
Expand Down
1 change: 0 additions & 1 deletion test/BigInteger/Adapter/AbstractTestCase.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_Math
*/

namespace ZendTest\Math\BigInteger\Adapter;
Expand Down
4 changes: 0 additions & 4 deletions test/BigInteger/Adapter/BcmathTest.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_Math
*/

namespace ZendTest\Math\BigInteger\Adapter;

use Zend\Math\BigInteger\Adapter\Bcmath;

/**
* @category Zend
* @package Zend_Math_BigInteger
* @subpackage UnitTests
* @group Zend_Crypt
*/
class BcmathTest extends AbstractTestCase
Expand Down
4 changes: 0 additions & 4 deletions test/BigInteger/Adapter/GmpTest.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_Math
*/

namespace ZendTest\Math\BigInteger\Adapter;

use Zend\Math\BigInteger\Adapter\Gmp;

/**
* @category Zend
* @package Zend_Math_BigInteger
* @subpackage UnitTests
* @group Zend_Crypt
*/
class GmpTest extends AbstractTestCase
Expand Down
4 changes: 0 additions & 4 deletions test/BigInteger/BigIntegerTest.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_Math
*/

namespace ZendTest\Math\BigInteger;
Expand All @@ -15,9 +14,6 @@
use Zend\Math\BigInteger\Adapter\AdapterInterface;

/**
* @category Zend
* @package Zend_Math_BigInteger
* @subpackage UnitTests
* @group Zend_Math
*/
class BigIntegerTest extends \PHPUnit_Framework_TestCase
Expand Down
4 changes: 0 additions & 4 deletions test/RandTest.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_Math
*/

namespace ZendTest\Math;
Expand All @@ -15,9 +14,6 @@
use RandomLib;

/**
* @category Zend
* @package Zend_Math
* @subpackage UnitTests
* @group Zend_Math
*/
class RandTest extends \PHPUnit_Framework_TestCase
Expand Down

0 comments on commit fe1b9af

Please sign in to comment.