Commit 3973dd51 authored by Stefan Busemann's avatar Stefan Busemann
Browse files

[BUGFIX] remove unused variables

parent a4fa835f
......@@ -44,7 +44,7 @@ class FeatureController extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionControll
public function listFeaturesAction()
{
if ($this->settings['featurearea'] != "") {
if ($this->settings['featurearea'] != '') {
$featureArea = $this->featureAreaRepository->findByUid((int)$this->settings['featurearea']);
$this->view->assign('featureArea', $featureArea);
}
......@@ -62,7 +62,7 @@ class FeatureController extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionControll
{
$features = [];
$ids = explode(',', $this->settings['feature']);
foreach ($ids as $key => $id) {
foreach ($ids as $id) {
$features[$id] = $this->featureRepository->findByUid((int)$id);
}
$this->view->assign('features', $features);
......@@ -77,11 +77,10 @@ class FeatureController extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionControll
{
$featureAreas = [];
$ids = explode(',', $this->settings['featureArea']);
foreach ($ids as $key => $id) {
foreach ($ids as $id) {
$featureAreas[$id] = $this->featureAreaRepository->findByUid((int)$id);
}
$this->view->assign('featureAreas', $featureAreas);
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment