mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-09-25 05:51:46 +02:00
cs fix
This commit is contained in:
@@ -7,7 +7,7 @@ class Pool
|
||||
|
||||
private $instances = array();
|
||||
private $class;
|
||||
|
||||
|
||||
public function __construct($class)
|
||||
{
|
||||
$this->class = $class;
|
||||
@@ -26,5 +26,4 @@ class Pool
|
||||
{
|
||||
$this->instances[] = $instance;
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace DesignPatterns\Creational\Pool;
|
||||
|
||||
use DesignPatterns\Creational\Pool\Pool;
|
||||
|
||||
class TestWorker
|
||||
{
|
||||
|
||||
@@ -27,4 +25,3 @@ class PoolTest extends \PHPUnit_Framework_TestCase
|
||||
$this->assertEquals(1, $pool->get()->id);
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -49,5 +49,4 @@ class Processor
|
||||
{
|
||||
return array_pop($this->waitingQueue);
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -17,5 +17,4 @@ class Worker
|
||||
// and when it's done, execute callback
|
||||
call_user_func($callback, $this);
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -41,5 +41,4 @@ class SimpleFactoryTest extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
$this->factory->createVehicle('car');
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user