Skip to content

Commit 54b0576

Browse files
committed
- PSR2 standards, removal of getters and setters, documentation improvement.
1 parent 03008f9 commit 54b0576

File tree

1 file changed

+3
-25
lines changed

1 file changed

+3
-25
lines changed

src/AssetManager/Service/AssetFilterManager.php

Lines changed: 3 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ class AssetFilterManager implements ServiceLocatorAwareInterface, MimeResolverAw
2828

2929
/**
3030
*
31-
* @var array Filters already instanced
31+
* @var Filters[] Filters already instanced
3232
*/
3333

34-
protected $filterInstances;
34+
protected $filterInstances = array();
3535

3636
/**
3737
* Construct the AssetFilterManager
@@ -42,7 +42,6 @@ class AssetFilterManager implements ServiceLocatorAwareInterface, MimeResolverAw
4242
public function __construct(array $config = array())
4343
{
4444
$this->setConfig($config);
45-
$this->setFilterInstances(array());
4645
}
4746

4847
/**
@@ -156,8 +155,7 @@ protected function ensureByFilter(AssetInterface $asset, $filter)
156155
if (!array_key_exists($filterClass, $this->filterInstances)) {
157156
$filterInstance = new $filterClass;
158157
$this->filterInstances[$filterClass] = $filterInstance;
159-
}
160-
else {
158+
} else {
161159
$filterInstance = $this->filterInstances[$filterClass];
162160
}
163161

@@ -195,24 +193,4 @@ public function setServiceLocator(ServiceLocatorInterface $serviceLocator)
195193
{
196194
$this->serviceLocator = $serviceLocator;
197195
}
198-
199-
/**
200-
* Returns the array of filter instances
201-
*
202-
* @return array
203-
*/
204-
public function getFilterInstances() {
205-
return $this->filterInstances;
206-
}
207-
208-
/**
209-
* Sets the array of filter instances
210-
*
211-
* @param array $filterInstances
212-
*/
213-
public function setFilterInstances($filterInstances) {
214-
$this->filterInstances = $filterInstances;
215-
}
216-
217-
218196
}

0 commit comments

Comments
 (0)