Fixed codestyle (removed extra lines)

This commit is contained in:
Andrey
2013-07-08 15:20:47 +02:00
parent ea1364a499
commit 17a1ab9def
2 changed files with 0 additions and 5 deletions

View File

@@ -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();

View File

@@ -57,7 +57,6 @@ class OrderRepository extends EntityRepository
*
* @return integer
*/
public function countTotalOrders(array $baseIds = array())
{
$dql = 'SELECT distinct o.id