Skip to content

Commit

Permalink
Dev: Formating
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Nov 30, 2016
1 parent 76bab5e commit d7e54f2
Showing 1 changed file with 4 additions and 8 deletions.
Expand Up @@ -30,14 +30,11 @@ public function run()
$this->render('selector');

// Render the modal for each action
foreach($this->aActions as $key => $aAction)
{
foreach($this->aActions as $key => $aAction) {
// Not all action require a modal (eg: downloads, etc)
if( isset($aAction['actionType']) && $aAction['actionType']=='modal')
{
if( isset($aAction['actionType']) && $aAction['actionType']=='modal') {
// Modal type define the view to render in views/modal
if ($this->isView($aAction['modalType']))
{
if ($this->isView($aAction['modalType'])) {
//TODO: common view for all modal types.
$this->render(
'modals/'.$aAction['modalType'],array(
Expand All @@ -46,8 +43,7 @@ public function run()
)
);
}
else
{
else {
// We could rather raise an exception.
$this->render('unknown_modal_type');
}
Expand Down

0 comments on commit d7e54f2

Please sign in to comment.