From 7d573bce1d69f33a01f84acf43256caab17e4498 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Doursenaud?= Date: Fri, 5 Jul 2013 16:45:27 +0200 Subject: [PATCH] PSR-0 coding style --- htdocs/product/stock/replenish.php | 16 ++++++++-------- htdocs/product/stock/replenishorders.php | 13 +++++-------- 2 files changed, 13 insertions(+), 16 deletions(-) diff --git a/htdocs/product/stock/replenish.php b/htdocs/product/stock/replenish.php index 14285d753ef..6530ed05f3b 100644 --- a/htdocs/product/stock/replenish.php +++ b/htdocs/product/stock/replenish.php @@ -41,7 +41,6 @@ $result=restrictedArea($user,'produit|service'); //checks if a product has been ordered - $action = GETPOST('action','alpha'); $sref = GETPOST('sref', 'alpha'); $snom = GETPOST('snom', 'alpha'); @@ -137,8 +136,8 @@ if ($action == 'order') { header('Location: replenishorders.php'); exit; } - } - if ($box == 0){ + } + if ($box == 0) { setEventMessage($langs->trans('SelectProduct'), 'warnings'); } } @@ -423,9 +422,9 @@ if ($resql) { //virtual stock to compute the stock to buy value $stocktobuy = max($objp->desiredstock - $stock - $ordered, 0); $disabled = ''; - if($ordered > 0) { + if ($ordered > 0) { $picto = img_picto('','tick'); - if($ordered + $stock >= $objp->desiredstock) { + if ($ordered + $stock >= $objp->desiredstock) { $disabled = 'disabled="disabled"'; } } else { @@ -519,10 +518,11 @@ if ($resql) { $db->free($resql); echo '