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