fix modules cs

This commit is contained in:
Manuel Raynaud
2014-03-11 15:43:48 +01:00
parent 33f2b56080
commit 4391e6334b
4 changed files with 7 additions and 11 deletions

View File

@@ -25,9 +25,6 @@ namespace Front\Controller;
use Propel\Runtime\Exception\PropelException;
use Thelia\Cart\CartTrait;
use Thelia\Controller\Front\BaseFrontController;
use Thelia\Core\Event\PdfEvent;
use Thelia\Core\HttpFoundation\Response;
use Thelia\Core\Template\TemplateHelper;
use Thelia\Core\Translation\Translator;
use Thelia\Exception\TheliaProcessException;
use Thelia\Form\Exception\FormValidationException;
@@ -202,7 +199,7 @@ class OrderController extends BaseFrontController
if (null !== $placedOrder && null !== $placedOrder->getId()) {
/* order has been placed */
if($orderEvent->hasResponse()) {
if ($orderEvent->hasResponse()) {
return $orderEvent->getResponse();
} else {
$this->redirect(URL::getInstance()->absoluteUrl($this->getRoute('order.placed', array('order_id' => $orderEvent->getPlacedOrder()->getId()))));
@@ -263,6 +260,7 @@ class OrderController extends BaseFrontController
{
/* check customer */
$this->checkAuth();
return $this->generateOrderPdf($order_id, ConfigQuery::read('pdf_invoice_file', 'invoice'));
}
@@ -270,6 +268,7 @@ class OrderController extends BaseFrontController
{
/* check customer */
$this->checkAuth();
return $this->generateOrderPdf($order_id, ConfigQuery::read('pdf_delivery_file', 'delivery'));
}
@@ -286,5 +285,4 @@ class OrderController extends BaseFrontController
return $this->render('ajax/order-delivery-module-list', $args);
}
}