mirror of
https://github.com/netzmacht/contao-leaflet-maps.git
synced 2026-03-03 10:38:14 +01:00
Fix code style.
This commit is contained in:
@@ -11,7 +11,6 @@
|
||||
|
||||
namespace Netzmacht\Contao\Leaflet\Mapper\Control;
|
||||
|
||||
|
||||
use Netzmacht\Contao\Leaflet\Mapper\DefinitionMapper;
|
||||
use Netzmacht\Contao\Leaflet\Model\ControlModel;
|
||||
use Netzmacht\LeafletPHP\Definition;
|
||||
@@ -20,6 +19,11 @@ use Netzmacht\LeafletPHP\Definition\Type\LatLngBounds;
|
||||
use Netzmacht\LeafletPHP\Plugins\Loading\LoadingControl;
|
||||
use Netzmacht\LeafletPHP\Plugins\Loading\SpinJsLoadingControl;
|
||||
|
||||
/**
|
||||
* Class LoadingControlMapper maps the control model to the loading control definition.
|
||||
*
|
||||
* @package Netzmacht\Contao\Leaflet\Mapper\Control
|
||||
*/
|
||||
class LoadingControlMapper extends AbstractControlMapper
|
||||
{
|
||||
/**
|
||||
@@ -77,7 +81,7 @@ class LoadingControlMapper extends AbstractControlMapper
|
||||
}
|
||||
}
|
||||
|
||||
if ($definition instanceof LoadingControl && !$definition->isSeparate() && $model->zoomControl ) {
|
||||
if ($definition instanceof LoadingControl && !$definition->isSeparate() && $model->zoomControl) {
|
||||
// Only assign if zoom control is activated and part of the map.
|
||||
$control = ControlModel::findOneBy(
|
||||
array('active=1', 'type=?', 'pid=?', 'id=?'),
|
||||
|
||||
Reference in New Issue
Block a user