Fixed style

This commit is contained in:
Dominik Liebler
2016-04-07 08:59:31 +02:00
parent d9d3f12132
commit 3fcf860cf3
3 changed files with 7 additions and 3 deletions

View File

@@ -12,7 +12,7 @@ class FlyweightFactory
{
/**
* Associative store for flyweight objects
*
*
* @var Array
*/
private $pool = array();
@@ -28,6 +28,7 @@ class FlyweightFactory
if (!array_key_exists($name, $this->pool)) {
$this->pool[$name] = new CharacterFlyweight($name);
}
return $this->pool[$name];
}
@@ -36,6 +37,6 @@ class FlyweightFactory
*/
public function totalNumber()
{
return sizeof($this->pool);
return count($this->pool);
}
}