From 17a1ab9def7fa11a24c12b346e05459d0fd59502 Mon Sep 17 00:00:00 2001 From: Andrey Date: Mon, 8 Jul 2013 15:20:47 +0200 Subject: [PATCH] Fixed codestyle (removed extra lines) --- lib/Alchemy/Phrasea/Controller/Prod/Orders.php | 4 ---- lib/Doctrine/Repositories/OrderRepository.php | 1 - 2 files changed, 5 deletions(-) diff --git a/lib/Alchemy/Phrasea/Controller/Prod/Orders.php b/lib/Alchemy/Phrasea/Controller/Prod/Orders.php index 9a200ada82..e1ac07be22 100644 --- a/lib/Alchemy/Phrasea/Controller/Prod/Orders.php +++ b/lib/Alchemy/Phrasea/Controller/Prod/Orders.php @@ -357,7 +357,6 @@ class Orders implements ControllerProviderInterface try { if ($n > 0) { - $order->setTodo($order->getTodo() - $n); $app['EM']->persist($order); $app['EM']->flush(); @@ -403,7 +402,6 @@ class Orders implements ControllerProviderInterface { $success = false; $order = $app['EM']->getRepository('Entities\Order')->find($order_id); - $order = $app['EM']->getRepository('Entities\Order')->find($order_id); if (null === $order) { throw new NotFoundHttpException('Order not found'); } @@ -411,7 +409,6 @@ class Orders implements ControllerProviderInterface $n = 0; foreach ($order->getElements() as $orderElement) { if (in_array($orderElement->getId(), $request->request->get('elements', array()))) { - $orderElement->setOrderMasterId($app['authentication']->getUser()->get_id()); $orderElement->setDeny(true); @@ -424,7 +421,6 @@ class Orders implements ControllerProviderInterface try { if ($n > 0) { - $order->setTodo($order->getTodo() - $n); $app['EM']->persist($order); $app['EM']->flush(); diff --git a/lib/Doctrine/Repositories/OrderRepository.php b/lib/Doctrine/Repositories/OrderRepository.php index 948973de00..23b10b0025 100644 --- a/lib/Doctrine/Repositories/OrderRepository.php +++ b/lib/Doctrine/Repositories/OrderRepository.php @@ -57,7 +57,6 @@ class OrderRepository extends EntityRepository * * @return integer */ - public function countTotalOrders(array $baseIds = array()) { $dql = 'SELECT distinct o.id