From 436cf889013bb5942412d5c6d2f124eb761d3362 Mon Sep 17 00:00:00 2001 From: David Molineus Date: Wed, 5 Oct 2016 15:11:31 +0200 Subject: [PATCH] Code style fixes. --- .../Contao/Leaflet/Frontend/AbstractMapHybrid.php | 7 ++++++- src/Netzmacht/Contao/Leaflet/Mapper/OptionsBuilder.php | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/Netzmacht/Contao/Leaflet/Frontend/AbstractMapHybrid.php b/src/Netzmacht/Contao/Leaflet/Frontend/AbstractMapHybrid.php index f616c55..795fcee 100644 --- a/src/Netzmacht/Contao/Leaflet/Frontend/AbstractMapHybrid.php +++ b/src/Netzmacht/Contao/Leaflet/Frontend/AbstractMapHybrid.php @@ -54,7 +54,7 @@ abstract class AbstractMapHybrid extends AbstractHybrid * @param TemplateFactory $templateFactory Template factory. * @param Translator $translator Translator. * @param MapProvider $mapProvider Map provider. - * @param \Input $input Input + * @param \Input $input Request Input. * @param \Config $config Config. * @param string $column Column in which the element appears. */ @@ -142,5 +142,10 @@ abstract class AbstractMapHybrid extends AbstractHybrid } } + /** + * Get the component identifier which is used as unique name. + * + * @return string + */ abstract protected function getIdentifier(); } diff --git a/src/Netzmacht/Contao/Leaflet/Mapper/OptionsBuilder.php b/src/Netzmacht/Contao/Leaflet/Mapper/OptionsBuilder.php index 6149fea..1d5458f 100644 --- a/src/Netzmacht/Contao/Leaflet/Mapper/OptionsBuilder.php +++ b/src/Netzmacht/Contao/Leaflet/Mapper/OptionsBuilder.php @@ -237,7 +237,7 @@ class OptionsBuilder if (method_exists($definition, $setter)) { $definition->$setter($value); - } elseif ($definition instanceOf HasOptions) { + } elseif ($definition instanceof HasOptions) { $definition->setOption($option, $value); } }