forked from Snck3rs/contao-leaflet-maps
Code style.
This commit is contained in:
@@ -33,8 +33,13 @@ class ReferenceLayerMapper extends AbstractLayerMapper
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function handle($model, DefinitionMapper $mapper, LatLngBounds $bounds = null, $elementId = null, Definition $parent = null)
|
||||
{
|
||||
public function handle(
|
||||
$model,
|
||||
DefinitionMapper $mapper,
|
||||
LatLngBounds $bounds = null,
|
||||
$elementId = null,
|
||||
Definition $parent = null
|
||||
) {
|
||||
$reference = LayerModel::findByPk($model->reference);
|
||||
|
||||
if (!$reference || !$reference->active) {
|
||||
|
||||
@@ -12,7 +12,6 @@
|
||||
namespace Netzmacht\Contao\Leaflet\Mapper;
|
||||
|
||||
use Netzmacht\Contao\Leaflet\Model\ControlModel;
|
||||
use Netzmacht\Contao\Leaflet\Model\LayerModel;
|
||||
use Netzmacht\Contao\Leaflet\Model\MapModel;
|
||||
use Netzmacht\LeafletPHP\Definition;
|
||||
use Netzmacht\LeafletPHP\Definition\Control;
|
||||
@@ -160,8 +159,10 @@ class MapMapper extends AbstractMapper
|
||||
/**
|
||||
* Build map bounds calculations.
|
||||
*
|
||||
* @param Map $map The map being built.
|
||||
* @param MapModel $model The map model.
|
||||
* @param Map $map The map being built.
|
||||
* @param MapModel $model The map model.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
private function buildBoundsCalculation(Map $map, MapModel $model)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user