mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-07-31 12:10:10 +02:00
Applied fixes from StyleCI
This commit is contained in:
committed by
StyleCI Bot
parent
3663603b80
commit
fe1f144ec3
@@ -3,7 +3,7 @@
|
||||
namespace DesignPatterns\Structural\Registry;
|
||||
|
||||
/**
|
||||
* class Registry
|
||||
* class Registry.
|
||||
*/
|
||||
abstract class Registry
|
||||
{
|
||||
@@ -15,12 +15,13 @@ abstract class Registry
|
||||
protected static $storedValues = array();
|
||||
|
||||
/**
|
||||
* sets a value
|
||||
* sets a value.
|
||||
*
|
||||
* @param string $key
|
||||
* @param mixed $value
|
||||
*
|
||||
* @static
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public static function set($key, $value)
|
||||
@@ -29,11 +30,12 @@ abstract class Registry
|
||||
}
|
||||
|
||||
/**
|
||||
* gets a value from the registry
|
||||
* gets a value from the registry.
|
||||
*
|
||||
* @param string $key
|
||||
*
|
||||
* @static
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public static function get($key)
|
||||
|
@@ -6,7 +6,6 @@ use DesignPatterns\Structural\Registry\Registry;
|
||||
|
||||
class RegistryTest extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
|
||||
public function testSetAndGetLogger()
|
||||
{
|
||||
Registry::set(Registry::LOGGER, new \StdClass());
|
||||
|
Reference in New Issue
Block a user