-
-
Notifications
You must be signed in to change notification settings - Fork 145
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5052 from Gustry/php-cs-fixer-master
Fix PHP-CS-Fixer on master, due to recent merge
- Loading branch information
Showing
2 changed files
with
27 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 26 additions & 26 deletions
52
lizmap/modules/filter/classes/filterDockable.listener.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,35 @@ | ||
<?php | ||
|
||
class filterDockableListener extends jEventListener | ||
class filterDockableListener extends jEventListener | ||
{ | ||
private function checkConfig($event, $dock) | ||
{ | ||
private function checkConfig($event, $dock) | ||
{ | ||
$project = $event->getParam('project'); | ||
$repository = $event->getParam('repository'); | ||
$project = $event->getParam('project'); | ||
$repository = $event->getParam('repository'); | ||
|
||
// Check config | ||
jClasses::inc('filter~filterConfig'); | ||
$dv = new filterConfig($event->repository, $event->project); | ||
// Check config | ||
jClasses::inc('filter~filterConfig'); | ||
$dv = new filterConfig($event->repository, $event->project); | ||
|
||
if ($dv->getStatus()) { | ||
if ($dv->getStatus()) { | ||
|
||
// Use template filterConfig | ||
$assign = array(); | ||
$content = array('filter~filter_'.$dock, $assign); | ||
$dock = new lizmapMapDockItem( | ||
'filter', | ||
jLocale::get('filter~filter.dock.title'), | ||
$content, | ||
15, | ||
null, // fait via getMapAdditions | ||
null | ||
); | ||
$event->add($dock); | ||
} | ||
// Use template filterConfig | ||
$assign = array(); | ||
$content = array('filter~filter_'.$dock, $assign); | ||
$dock = new lizmapMapDockItem( | ||
'filter', | ||
jLocale::get('filter~filter.dock.title'), | ||
$content, | ||
15, | ||
null, // fait via getMapAdditions | ||
null | ||
); | ||
$event->add($dock); | ||
} | ||
} | ||
|
||
public function onmapDockable($event) | ||
{ | ||
$this->checkConfig($event, 'dock'); | ||
} | ||
public function onmapDockable($event) | ||
{ | ||
$this->checkConfig($event, 'dock'); | ||
} | ||
} |