Refactor
This commit is contained in:
parent
5ee24ceb23
commit
49a85afc06
|
@ -877,14 +877,11 @@ SQL;
|
||||||
|
|
||||||
public function getShowDays()
|
public function getShowDays()
|
||||||
{
|
{
|
||||||
$showDays = CcShowDaysQuery::create()->filterByDbShowId($this->getId())->find();
|
$showDays = CcShowDaysQuery::create()->filterByDbShowId(
|
||||||
|
$this->getId())->find();
|
||||||
$days = array();
|
return array_map( function($showDay) {
|
||||||
foreach ($showDays as $showDay) {
|
return $showDay->getDbDay();
|
||||||
array_push($days, $showDay->getDbDay());
|
}, $showDays);
|
||||||
}
|
|
||||||
|
|
||||||
return $days;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Only used for shows that aren't repeating.
|
/* Only used for shows that aren't repeating.
|
||||||
|
|
Loading…
Reference in New Issue