From 751fcdeb59e8880c59b2e85794008d9081f1fc36 Mon Sep 17 00:00:00 2001 From: Julien Chanseaume Date: Sat, 3 May 2014 07:12:06 +0200 Subject: [PATCH] php cs fixer --- core/lib/Thelia/Core/Template/Loop/Content.php | 7 ++----- core/lib/Thelia/Form/SeoFieldsTrait.php | 1 - local/modules/Front/Controller/SitemapController.php | 10 ++++++++-- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/core/lib/Thelia/Core/Template/Loop/Content.php b/core/lib/Thelia/Core/Template/Loop/Content.php index 1d112df25..377737088 100644 --- a/core/lib/Thelia/Core/Template/Loop/Content.php +++ b/core/lib/Thelia/Core/Template/Loop/Content.php @@ -223,9 +223,6 @@ class Content extends BaseI18nLoop implements PropelSearchLoopInterface ->set("VISIBLE" , $content->getVisible()) ; - - - $loopResult->addRow($this->findNextPrev($loopResultRow, $content, $defaultFolderId)); } @@ -234,8 +231,8 @@ class Content extends BaseI18nLoop implements PropelSearchLoopInterface } /** - * @param LoopResultRow $loopResultRow - * @param \Thelia\Model\Content $content + * @param LoopResultRow $loopResultRow + * @param \Thelia\Model\Content $content * @param $defaultFolderId * @return LoopResultRow */ diff --git a/core/lib/Thelia/Form/SeoFieldsTrait.php b/core/lib/Thelia/Form/SeoFieldsTrait.php index d0af736bf..cb64ad6c0 100644 --- a/core/lib/Thelia/Form/SeoFieldsTrait.php +++ b/core/lib/Thelia/Form/SeoFieldsTrait.php @@ -12,7 +12,6 @@ namespace Thelia\Form; -use Symfony\Component\Validator\Constraints\NotBlank; use Thelia\Core\Translation\Translator; /** diff --git a/local/modules/Front/Controller/SitemapController.php b/local/modules/Front/Controller/SitemapController.php index f82b72c13..df339c5bb 100644 --- a/local/modules/Front/Controller/SitemapController.php +++ b/local/modules/Front/Controller/SitemapController.php @@ -25,7 +25,14 @@ use Thelia\Model\LangQuery; * Controller uses to generate sitemap.xml * * A default cache of 2 hours is used to avoid attack. You can flush cache if you have `ADMIN` role and pass flush=1 in - * query parameter. + * query string parameter. + * + * You can generate sitemap according to specific language and/or specific context (catalog/content). You have to + * use ```lang``` and ```context``` query string parameters to do so. If a language is not used in website or if the + * context is not supported the page not found is displayed. + * + * {url}/sitemap?lang=fr&context=catalog will generate a sitemap for catalog (categories and products) + * for french language. * * @package Front\Controller * @author Julien Chanséaume @@ -140,7 +147,6 @@ class SitemapController extends BaseFrontController { ->findOneByCode($lang); return (null !== $lang); - } } \ No newline at end of file