From 13eec4ba2e95b0e257c801c28d97b6953382f6c7 Mon Sep 17 00:00:00 2001 From: David Molineus Date: Wed, 11 Oct 2017 11:53:32 +0200 Subject: [PATCH] Code style. --- build.default.properties | 2 +- src/Frontend/AbstractMapHybrid.php | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) 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 {