@@ -91,7 +91,7 @@ |
||
| 91 | 91 | return $wb_controller->config($block_id); |
| 92 | 92 | } |
| 93 | 93 | catch (MvcException $ex) { |
| 94 | - if($ex->getHttpCode() != 200) throw $ex; |
|
| 94 | + if ($ex->getHttpCode() != 200) throw $ex; |
|
| 95 | 95 | return; |
| 96 | 96 | } |
| 97 | 97 | } |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | public function index(PageController $parent_controller, Tree $tree, $block_id, $template) { |
| 46 | 46 | $view_bag = new ViewBag(); |
| 47 | 47 | |
| 48 | - if($parent_controller && $tree) { |
|
| 48 | + if ($parent_controller && $tree) { |
|
| 49 | 49 | |
| 50 | 50 | $view_bag->set('tree', $tree); |
| 51 | 51 | $view_bag->set('indi', $parent_controller->getSignificantIndividual()); |
@@ -64,22 +64,22 @@ discard block |
||
| 64 | 64 | '); |
| 65 | 65 | |
| 66 | 66 | if (Auth::isAdmin()) { |
| 67 | - $title='<a class="icon-admin" title="'.I18N::translate('Configure').'" href="block_edit.php?block_id='.$block_id.'&ged=' . $tree->getNameHtml() . '&ctype=gedcom"></a>'; |
|
| 67 | + $title = '<a class="icon-admin" title="'.I18N::translate('Configure').'" href="block_edit.php?block_id='.$block_id.'&ged='.$tree->getNameHtml().'&ctype=gedcom"></a>'; |
|
| 68 | 68 | } else { |
| 69 | - $title=''; |
|
| 69 | + $title = ''; |
|
| 70 | 70 | } |
| 71 | - $title .='<span dir="auto">'.$tree->getTitleHtml().'</span>'; |
|
| 71 | + $title .= '<span dir="auto">'.$tree->getTitleHtml().'</span>'; |
|
| 72 | 72 | |
| 73 | 73 | $piwik_enabled = $this->module->getBlockSetting($block_id, 'piwik_enabled', false); |
| 74 | 74 | $view_bag->set('piwik_enabled', $piwik_enabled); |
| 75 | - if($piwik_enabled) { |
|
| 75 | + if ($piwik_enabled) { |
|
| 76 | 76 | $parent_controller->addInlineJavascript( |
| 77 | 77 | '$("#piwik_stats") |
| 78 | 78 | .load("module.php?mod='.$this->module->getName().'&mod_action=Piwik&block_id='.$block_id.'");' |
| 79 | 79 | ); |
| 80 | 80 | } |
| 81 | 81 | |
| 82 | - $content = ViewFactory::make('WelcomeBlock', $this, new BaseController(), $view_bag)->getHtmlPartial(); |
|
| 82 | + $content = ViewFactory::make('WelcomeBlock', $this, new BaseController(), $view_bag)->getHtmlPartial(); |
|
| 83 | 83 | |
| 84 | 84 | if ($template) { |
| 85 | 85 | return Theme::theme()->formatBlock($id, $title, $class, $content); |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | */ |
| 99 | 99 | public function config($block_id = null) { |
| 100 | 100 | |
| 101 | - if(empty($block_id)) throw new MvcException(404); |
|
| 101 | + if (empty($block_id)) throw new MvcException(404); |
|
| 102 | 102 | |
| 103 | 103 | if (Filter::postBool('save') && Filter::checkCsrf()) { |
| 104 | 104 | $this->module->setBlockSetting($block_id, 'piwik_enabled', Filter::postBool('piwik_enabled')); |