Fix phpcs warning
This commit is contained in:
parent
8301e24261
commit
f5e29d6c86
@ -146,7 +146,8 @@ class Categories extends DolibarrApi
|
|||||||
{
|
{
|
||||||
$i=0;
|
$i=0;
|
||||||
$num = $db->num_rows($result);
|
$num = $db->num_rows($result);
|
||||||
while ($i < min($num, ($limit <= 0 ? $num : $limit)))
|
$min = min($num, ($limit <= 0 ? $num : $limit));
|
||||||
|
while ($i < $min)
|
||||||
{
|
{
|
||||||
$obj = $db->fetch_object($result);
|
$obj = $db->fetch_object($result);
|
||||||
$category_static = new Categorie($db);
|
$category_static = new Categorie($db);
|
||||||
@ -232,7 +233,8 @@ class Categories extends DolibarrApi
|
|||||||
{
|
{
|
||||||
$i=0;
|
$i=0;
|
||||||
$num = $db->num_rows($result);
|
$num = $db->num_rows($result);
|
||||||
while ($i < min($num, ($limit <= 0 ? $num : $limit)))
|
$min = min($num, ($limit <= 0 ? $num : $limit));
|
||||||
|
while ($i < $min)
|
||||||
{
|
{
|
||||||
$obj = $db->fetch_object($result);
|
$obj = $db->fetch_object($result);
|
||||||
$category_static = new Categorie($db);
|
$category_static = new Categorie($db);
|
||||||
|
|||||||
@ -147,7 +147,8 @@ class CategoryApi extends DolibarrApi
|
|||||||
{
|
{
|
||||||
$i=0;
|
$i=0;
|
||||||
$num = $db->num_rows($result);
|
$num = $db->num_rows($result);
|
||||||
while ($i < min($num, ($limit <= 0 ? $num : $limit)))
|
$min = min($num, ($limit <= 0 ? $num : $limit));
|
||||||
|
while ($i < $min)
|
||||||
{
|
{
|
||||||
$obj = $db->fetch_object($result);
|
$obj = $db->fetch_object($result);
|
||||||
$category_static = new Categorie($db);
|
$category_static = new Categorie($db);
|
||||||
@ -228,7 +229,8 @@ class CategoryApi extends DolibarrApi
|
|||||||
{
|
{
|
||||||
$i=0;
|
$i=0;
|
||||||
$num = $db->num_rows($result);
|
$num = $db->num_rows($result);
|
||||||
while ($i < min($num, ($limit <= 0 ? $num : $limit)))
|
$min = min($num, ($limit <= 0 ? $num : $limit));
|
||||||
|
while ($i < $min)
|
||||||
{
|
{
|
||||||
$obj = $db->fetch_object($result);
|
$obj = $db->fetch_object($result);
|
||||||
$category_static = new Categorie($db);
|
$category_static = new Categorie($db);
|
||||||
|
|||||||
@ -147,7 +147,8 @@ class AgendaEvents extends DolibarrApi
|
|||||||
if ($result)
|
if ($result)
|
||||||
{
|
{
|
||||||
$num = $db->num_rows($result);
|
$num = $db->num_rows($result);
|
||||||
while ($i < min($num, ($limit <= 0 ? $num : $limit)))
|
$min = min($num, ($limit <= 0 ? $num : $limit));
|
||||||
|
while ($i < $min)
|
||||||
{
|
{
|
||||||
$obj = $db->fetch_object($result);
|
$obj = $db->fetch_object($result);
|
||||||
$actioncomm_static = new ActionComm($db);
|
$actioncomm_static = new ActionComm($db);
|
||||||
|
|||||||
@ -148,7 +148,8 @@ class Proposals extends DolibarrApi
|
|||||||
if ($result)
|
if ($result)
|
||||||
{
|
{
|
||||||
$num = $db->num_rows($result);
|
$num = $db->num_rows($result);
|
||||||
while ($i < min($num, ($limit <= 0 ? $num : $limit)))
|
$min = min($num, ($limit <= 0 ? $num : $limit));
|
||||||
|
while ($i < $min)
|
||||||
{
|
{
|
||||||
$obj = $db->fetch_object($result);
|
$obj = $db->fetch_object($result);
|
||||||
$propal_static = new Propal($db);
|
$propal_static = new Propal($db);
|
||||||
|
|||||||
@ -163,7 +163,8 @@ class CommandeApi extends DolibarrApi
|
|||||||
{
|
{
|
||||||
$i=0;
|
$i=0;
|
||||||
$num = $db->num_rows($result);
|
$num = $db->num_rows($result);
|
||||||
while ($i < min($num, ($limit <= 0 ? $num : $limit)))
|
$min = min($num, ($limit <= 0 ? $num : $limit));
|
||||||
|
while ($i < $min)
|
||||||
{
|
{
|
||||||
$obj = $db->fetch_object($result);
|
$obj = $db->fetch_object($result);
|
||||||
$commande_static = new Commande($db);
|
$commande_static = new Commande($db);
|
||||||
|
|||||||
@ -152,7 +152,8 @@ class Orders extends DolibarrApi
|
|||||||
if ($result)
|
if ($result)
|
||||||
{
|
{
|
||||||
$num = $db->num_rows($result);
|
$num = $db->num_rows($result);
|
||||||
while ($i < min($num, ($limit <= 0 ? $num : $limit)))
|
$min = min($num, ($limit <= 0 ? $num : $limit));
|
||||||
|
while ($i < $min)
|
||||||
{
|
{
|
||||||
$obj = $db->fetch_object($result);
|
$obj = $db->fetch_object($result);
|
||||||
$commande_static = new Commande($db);
|
$commande_static = new Commande($db);
|
||||||
|
|||||||
@ -98,8 +98,8 @@ class BankAccounts extends DolibarrApi
|
|||||||
|
|
||||||
if ($result) {
|
if ($result) {
|
||||||
$num = $this->db->num_rows($result);
|
$num = $this->db->num_rows($result);
|
||||||
$minnum = min($num, ($limit <= 0 ? $num : $limit));
|
$min = min($num, ($limit <= 0 ? $num : $limit));
|
||||||
for ($i = 0; $i < $minnum; $i++) {
|
for ($i = 0; $i < $min; $i++) {
|
||||||
$obj = $this->db->fetch_object($result);
|
$obj = $this->db->fetch_object($result);
|
||||||
$account = new Account($this->db);
|
$account = new Account($this->db);
|
||||||
if ($account->fetch($obj->rowid) > 0) {
|
if ($account->fetch($obj->rowid) > 0) {
|
||||||
|
|||||||
@ -161,7 +161,8 @@ class InvoiceApi extends DolibarrApi
|
|||||||
{
|
{
|
||||||
$i=0;
|
$i=0;
|
||||||
$num = $db->num_rows($result);
|
$num = $db->num_rows($result);
|
||||||
while ($i < min($num, ($limit <= 0 ? $num : $limit)))
|
$min = min($num, ($limit <= 0 ? $num : $limit));
|
||||||
|
while ($i < $min)
|
||||||
{
|
{
|
||||||
$obj = $db->fetch_object($result);
|
$obj = $db->fetch_object($result);
|
||||||
$invoice_static = new Facture($db);
|
$invoice_static = new Facture($db);
|
||||||
|
|||||||
@ -155,7 +155,8 @@ class Invoices extends DolibarrApi
|
|||||||
{
|
{
|
||||||
$i=0;
|
$i=0;
|
||||||
$num = $db->num_rows($result);
|
$num = $db->num_rows($result);
|
||||||
while ($i < min($num, ($limit <= 0 ? $num : $limit)))
|
$min = min($num, ($limit <= 0 ? $num : $limit));
|
||||||
|
while ($i < $min)
|
||||||
{
|
{
|
||||||
$obj = $db->fetch_object($result);
|
$obj = $db->fetch_object($result);
|
||||||
$invoice_static = new Facture($db);
|
$invoice_static = new Facture($db);
|
||||||
|
|||||||
@ -134,7 +134,8 @@ class ExpenseReports extends DolibarrApi
|
|||||||
if ($result)
|
if ($result)
|
||||||
{
|
{
|
||||||
$num = $db->num_rows($result);
|
$num = $db->num_rows($result);
|
||||||
while ($i < min($num, ($limit <= 0 ? $num : $limit)))
|
$min = min($num, ($limit <= 0 ? $num : $limit));
|
||||||
|
while ($i < $min)
|
||||||
{
|
{
|
||||||
$obj = $db->fetch_object($result);
|
$obj = $db->fetch_object($result);
|
||||||
$expensereport_static = new ExpenseReport($db);
|
$expensereport_static = new ExpenseReport($db);
|
||||||
|
|||||||
@ -155,7 +155,8 @@ class SupplierInvoices extends DolibarrApi
|
|||||||
{
|
{
|
||||||
$i = 0;
|
$i = 0;
|
||||||
$num = $db->num_rows($result);
|
$num = $db->num_rows($result);
|
||||||
while ($i < min($num, ($limit <= 0 ? $num : $limit)))
|
$min = min($num, ($limit <= 0 ? $num : $limit));
|
||||||
|
while ($i < $min)
|
||||||
{
|
{
|
||||||
$obj = $db->fetch_object($result);
|
$obj = $db->fetch_object($result);
|
||||||
$invoice_static = new FactureFournisseur($db);
|
$invoice_static = new FactureFournisseur($db);
|
||||||
|
|||||||
@ -149,7 +149,8 @@ class ProductApi extends DolibarrApi
|
|||||||
{
|
{
|
||||||
$i=0;
|
$i=0;
|
||||||
$num = $db->num_rows($result);
|
$num = $db->num_rows($result);
|
||||||
while ($i < min($num, ($limit <= 0 ? $num : $limit)))
|
$min = min($num, ($limit <= 0 ? $num : $limit));
|
||||||
|
while ($i < $min)
|
||||||
{
|
{
|
||||||
$obj = $db->fetch_object($result);
|
$obj = $db->fetch_object($result);
|
||||||
$product_static = new Product($db);
|
$product_static = new Product($db);
|
||||||
@ -235,7 +236,8 @@ class ProductApi extends DolibarrApi
|
|||||||
{
|
{
|
||||||
$i=0;
|
$i=0;
|
||||||
$num = $db->num_rows($result);
|
$num = $db->num_rows($result);
|
||||||
while ($i < min($num, ($limit <= 0 ? $num : $limit)))
|
$min = min($num, ($limit <= 0 ? $num : $limit));
|
||||||
|
while ($i < $min)
|
||||||
{
|
{
|
||||||
$obj = $db->fetch_object($result);
|
$obj = $db->fetch_object($result);
|
||||||
$product_static = new Product($db);
|
$product_static = new Product($db);
|
||||||
|
|||||||
@ -146,7 +146,8 @@ class Products extends DolibarrApi
|
|||||||
if ($result)
|
if ($result)
|
||||||
{
|
{
|
||||||
$num = $db->num_rows($result);
|
$num = $db->num_rows($result);
|
||||||
while ($i < min($num, ($limit <= 0 ? $num : $limit)))
|
$min = min($num, ($limit <= 0 ? $num : $limit));
|
||||||
|
while ($i < $min)
|
||||||
{
|
{
|
||||||
$obj = $db->fetch_object($result);
|
$obj = $db->fetch_object($result);
|
||||||
$product_static = new Product($db);
|
$product_static = new Product($db);
|
||||||
|
|||||||
@ -133,7 +133,8 @@ class StockMovements extends DolibarrApi
|
|||||||
{
|
{
|
||||||
$i=0;
|
$i=0;
|
||||||
$num = $db->num_rows($result);
|
$num = $db->num_rows($result);
|
||||||
while ($i < min($num, ($limit <= 0 ? $num : $limit)))
|
$min = min($num, ($limit <= 0 ? $num : $limit));
|
||||||
|
while ($i < $min)
|
||||||
{
|
{
|
||||||
$obj = $db->fetch_object($result);
|
$obj = $db->fetch_object($result);
|
||||||
$stockmovement_static = new MouvementStock($db);
|
$stockmovement_static = new MouvementStock($db);
|
||||||
|
|||||||
@ -131,7 +131,8 @@ class Warehouses extends DolibarrApi
|
|||||||
{
|
{
|
||||||
$i=0;
|
$i=0;
|
||||||
$num = $db->num_rows($result);
|
$num = $db->num_rows($result);
|
||||||
while ($i < min($num, ($limit <= 0 ? $num : $limit)))
|
$min = min($num, ($limit <= 0 ? $num : $limit));
|
||||||
|
while ($i < $min)
|
||||||
{
|
{
|
||||||
$obj = $db->fetch_object($result);
|
$obj = $db->fetch_object($result);
|
||||||
$warehouse_static = new Entrepot($db);
|
$warehouse_static = new Entrepot($db);
|
||||||
|
|||||||
@ -153,7 +153,8 @@ class Projects extends DolibarrApi
|
|||||||
if ($result)
|
if ($result)
|
||||||
{
|
{
|
||||||
$num = $db->num_rows($result);
|
$num = $db->num_rows($result);
|
||||||
while ($i < min($num, ($limit <= 0 ? $num : $limit)))
|
$min = min($num, ($limit <= 0 ? $num : $limit));
|
||||||
|
while ($i < $min)
|
||||||
{
|
{
|
||||||
$obj = $db->fetch_object($result);
|
$obj = $db->fetch_object($result);
|
||||||
$project_static = new Project($db);
|
$project_static = new Project($db);
|
||||||
|
|||||||
@ -160,7 +160,8 @@ class Tasks extends DolibarrApi
|
|||||||
if ($result)
|
if ($result)
|
||||||
{
|
{
|
||||||
$num = $db->num_rows($result);
|
$num = $db->num_rows($result);
|
||||||
while ($i < min($num, ($limit <= 0 ? $num : $limit)))
|
$min = min($num, ($limit <= 0 ? $num : $limit));
|
||||||
|
while ($i < $min)
|
||||||
{
|
{
|
||||||
$obj = $db->fetch_object($result);
|
$obj = $db->fetch_object($result);
|
||||||
$task_static = new Task($db);
|
$task_static = new Task($db);
|
||||||
|
|||||||
@ -153,7 +153,8 @@ class Contacts extends DolibarrApi
|
|||||||
if ($result)
|
if ($result)
|
||||||
{
|
{
|
||||||
$num = $db->num_rows($result);
|
$num = $db->num_rows($result);
|
||||||
while ($i < min($num, ($limit <= 0 ? $num : $limit)))
|
$min = min($num, ($limit <= 0 ? $num : $limit));
|
||||||
|
while ($i < $min)
|
||||||
{
|
{
|
||||||
$obj = $db->fetch_object($result);
|
$obj = $db->fetch_object($result);
|
||||||
$contact_static = new Contact($db);
|
$contact_static = new Contact($db);
|
||||||
|
|||||||
@ -167,7 +167,8 @@ class ContactApi extends DolibarrApi
|
|||||||
{
|
{
|
||||||
$i = 0;
|
$i = 0;
|
||||||
$num = $db->num_rows($result);
|
$num = $db->num_rows($result);
|
||||||
while ($i < min($num, ($limit <= 0 ? $num : $limit)))
|
$min = min($num, ($limit <= 0 ? $num : $limit));
|
||||||
|
while ($i < $min)
|
||||||
{
|
{
|
||||||
$obj = $db->fetch_object($result);
|
$obj = $db->fetch_object($result);
|
||||||
$contact_static = new Contact($db);
|
$contact_static = new Contact($db);
|
||||||
|
|||||||
@ -214,7 +214,8 @@ class ThirdpartyApi extends DolibarrApi
|
|||||||
{
|
{
|
||||||
$i = 0;
|
$i = 0;
|
||||||
$num = $db->num_rows($result);
|
$num = $db->num_rows($result);
|
||||||
while ($i < min($num, ($limit <= 0 ? $num : $limit)))
|
$min = min($num, ($limit <= 0 ? $num : $limit));
|
||||||
|
while ($i < $min)
|
||||||
{
|
{
|
||||||
$obj = $db->fetch_object($result);
|
$obj = $db->fetch_object($result);
|
||||||
$soc_static = new Societe($db);
|
$soc_static = new Societe($db);
|
||||||
|
|||||||
@ -156,7 +156,8 @@ class Thirdparties extends DolibarrApi
|
|||||||
if ($result)
|
if ($result)
|
||||||
{
|
{
|
||||||
$num = $db->num_rows($result);
|
$num = $db->num_rows($result);
|
||||||
while ($i < min($num, ($limit <= 0 ? $num : $limit)))
|
$min = min($num, ($limit <= 0 ? $num : $limit));
|
||||||
|
while ($i < $min)
|
||||||
{
|
{
|
||||||
$obj = $db->fetch_object($result);
|
$obj = $db->fetch_object($result);
|
||||||
$soc_static = new Societe($db);
|
$soc_static = new Societe($db);
|
||||||
|
|||||||
@ -106,7 +106,8 @@ class Users extends DolibarrApi
|
|||||||
if ($result)
|
if ($result)
|
||||||
{
|
{
|
||||||
$num = $db->num_rows($result);
|
$num = $db->num_rows($result);
|
||||||
while ($i < min($num, ($limit <= 0 ? $num : $limit)))
|
$min = min($num, ($limit <= 0 ? $num : $limit));
|
||||||
|
while ($i < $min)
|
||||||
{
|
{
|
||||||
$obj = $db->fetch_object($result);
|
$obj = $db->fetch_object($result);
|
||||||
$user_static = new User($db);
|
$user_static = new User($db);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user