From 130b9e90071237c2613dd1c7e3dbbf2069114c62 Mon Sep 17 00:00:00 2001 From: David Molineus Date: Fri, 30 Jan 2015 19:59:51 +0100 Subject: [PATCH] Code style. --- src/Netzmacht/Contao/Leaflet/MapService.php | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/Netzmacht/Contao/Leaflet/MapService.php b/src/Netzmacht/Contao/Leaflet/MapService.php index 887cf1d..e4c7ef1 100644 --- a/src/Netzmacht/Contao/Leaflet/MapService.php +++ b/src/Netzmacht/Contao/Leaflet/MapService.php @@ -82,9 +82,9 @@ class MapService /** * Get map definition. * - * @param MapModel|int $mapId The map database id. MapModel accepted as well. - * @param Filter $filter Optional request filter. - * @param string $elementId Optional element id. If none given the mapId or alias is used. + * @param MapModel|int $mapId The map database id. MapModel accepted as well. + * @param Filter $filter Optional request filter. + * @param string $elementId Optional element id. If none given the mapId or alias is used. * * @return Map */ @@ -135,6 +135,9 @@ class MapService * * @return string * @throws \Exception If generating went wrong. + * + * @SuppressWarnings(PHPMD.UnusedFormalParameter) + * @SuppressWarnings(PHPMD.UnusedLocalVariable) */ public function generate( $mapId, @@ -194,7 +197,10 @@ class MapService * @param string $identifier The request identifier. * @param bool $exit Exit if ajax request is detected. * - * @throws \Exception + * @return void + * @throws \RuntimeException IF the input data does not match. + * + * @SuppressWarnings(PHPMD.ExitExpression) */ public function handleAjaxRequest($identifier, $exit = true) {