diff --git a/build.default.properties b/build.default.properties index c08524f..384a373 100644 --- a/build.default.properties +++ b/build.default.properties @@ -1,4 +1,4 @@ phpcs.standard = ${basedir}/vendor/phpcq/coding-standard/phpcs/PhpCodeQuality/ruleset.xml phpmd.ruleset = ${basedir}/vendor/phpcq/coding-standard/phpmd/ruleset.xml -phpcs.excluded = src/Resources/contao/languages,src/Resources/public/js +phpcs.excluded = src/Bundle/Resources/contao/languages,src/Bundle/Resources/public/js phpcpd.excluded = contao diff --git a/src/Frontend/AbstractMapHybrid.php b/src/Frontend/AbstractMapHybrid.php index e4ba0b7..59b6e47 100644 --- a/src/Frontend/AbstractMapHybrid.php +++ b/src/Frontend/AbstractMapHybrid.php @@ -96,7 +96,7 @@ abstract class AbstractMapHybrid extends AbstractHybrid ]; if ($model) { - $href = 'contao/main.php?do=leaflet&table=tl_leaflet_map&act=edit&id=' . $model->id;; + $href = 'contao/main.php?do=leaflet&table=tl_leaflet_map&act=edit&id=' . $model->id; $parameters['wildcard'] = '### LEAFLET MAP ' . $model->title . ' ###'; $parameters['id'] = $model->id; @@ -112,6 +112,8 @@ abstract class AbstractMapHybrid extends AbstractHybrid /** * {@inheritdoc} + * + * @throws \Exception If map could not be created. */ protected function prepareTemplateData(array $data): array {