Code style.

This commit is contained in:
David Molineus
2015-01-20 17:43:41 +01:00
parent 8ddfdc753b
commit a5cee7a2b3
2 changed files with 11 additions and 5 deletions

View File

@@ -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) {

View File

@@ -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)
{ {