forked from Wavyzz/dolibarr
PSR2.Files.EndFileNewline.TooMany
This commit is contained in:
@@ -220,4 +220,3 @@ for ($s = 0 ; $s < GEN_NUMBER_COMMANDE ; $s++)
|
||||
dol_print_error($db,$object->error);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -96,5 +96,3 @@ for ($s = 0 ; $s < GEN_NUMBER_PRODUIT ; $s++)
|
||||
if ($ret < 0) print "Error $ret - ".$produit->error."\n";
|
||||
else print " OK with ref ".$produit->ref."\n";
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -127,5 +127,3 @@ for ($s = 0 ; $s < GEN_NUMBER_SOCIETE ; $s++)
|
||||
print "Error: ".$soc->error."\n";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -275,4 +275,3 @@ else
|
||||
}
|
||||
|
||||
$db->close();
|
||||
|
||||
|
||||
@@ -390,9 +390,6 @@
|
||||
</rule>
|
||||
<rule ref="PEAR.NamingConventions.ValidVariableName" />
|
||||
|
||||
<rule ref="PSR2.Classes.ClassDeclaration" />
|
||||
<rule ref="PSR2.Methods.FunctionClosingBrace" />
|
||||
|
||||
<!-- This is not in PSR2 -->
|
||||
<rule ref="PEAR.NamingConventions.ValidVariableName.PrivateNoUnderscore">
|
||||
<severity>0</severity>
|
||||
@@ -419,4 +416,8 @@
|
||||
<!-- The closing ?> tag MUST be omitted from files containing only PHP. -->
|
||||
<rule ref="Zend.Files.ClosingTag"/>
|
||||
|
||||
<rule ref="PSR2.Classes.ClassDeclaration" />
|
||||
<rule ref="PSR2.Methods.FunctionClosingBrace" />
|
||||
<rule ref="PSR2.Files.EndFileNewline.TooMany" />
|
||||
|
||||
</ruleset>
|
||||
|
||||
@@ -388,4 +388,3 @@ if ($web)
|
||||
}
|
||||
|
||||
exit;
|
||||
|
||||
|
||||
@@ -874,4 +874,3 @@ function fieldListAccountModel($fieldlist, $obj='', $tabname='', $context='')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -873,4 +873,3 @@ function fieldListAccountingCategories($fieldlist, $obj='', $tabname='', $contex
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -314,4 +314,3 @@ class Lettering extends BookKeeping
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1990,4 +1990,3 @@ function fieldList($fieldlist, $obj='', $tabname='', $context='')
|
||||
|
||||
return $withentity;
|
||||
}
|
||||
|
||||
|
||||
@@ -321,4 +321,3 @@ if (function_exists("ldap_connect"))
|
||||
// End of page
|
||||
llxFooter();
|
||||
$db->close();
|
||||
|
||||
|
||||
@@ -481,4 +481,3 @@ print '</table>';
|
||||
// End of page
|
||||
llxFooter();
|
||||
$db->close();
|
||||
|
||||
|
||||
@@ -1065,4 +1065,3 @@ function fieldList($fieldlist, $obj='', $tabname='', $context='')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -585,4 +585,3 @@ print "</table>\n<br>";
|
||||
// End of page
|
||||
llxFooter();
|
||||
$db->close();
|
||||
|
||||
|
||||
@@ -234,4 +234,3 @@ header("Location: dolibarr_export.php");
|
||||
$time_end = time();
|
||||
|
||||
$db->close();
|
||||
|
||||
|
||||
@@ -163,4 +163,3 @@ header("Location: dolibarr_export.php");
|
||||
$time_end = time();
|
||||
|
||||
$db->close();
|
||||
|
||||
|
||||
@@ -695,4 +695,3 @@ function fieldListWebsites($fieldlist, $obj='', $tabname='', $context='')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -147,4 +147,3 @@ dol_fiche_end();
|
||||
// End of page
|
||||
llxFooter();
|
||||
$db->close();
|
||||
|
||||
|
||||
@@ -221,4 +221,3 @@ print $langs->trans("OnlyActiveElementsAreExposed", DOL_URL_ROOT.'/admin/modules
|
||||
|
||||
llxFooter();
|
||||
$db->close();
|
||||
|
||||
|
||||
@@ -69,5 +69,3 @@ elseif(!empty($newblock)){
|
||||
else{
|
||||
echo 'idontunderstandwhatihavetodo';
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -150,4 +150,3 @@ function printBookmarksList($aDb, $aLangs)
|
||||
|
||||
return $ret;
|
||||
}
|
||||
|
||||
|
||||
@@ -212,5 +212,3 @@ else
|
||||
// End of page
|
||||
llxFooter();
|
||||
$db->close();
|
||||
|
||||
|
||||
|
||||
@@ -139,4 +139,3 @@ class Auth
|
||||
return $ret;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -34,4 +34,3 @@ unset($_SESSION['uid']);
|
||||
|
||||
header('Location: '.DOL_URL_ROOT.'/cashdesk/index.php');
|
||||
exit;
|
||||
|
||||
|
||||
@@ -233,4 +233,3 @@ $_SESSION['serObjFacturation'] = serialize($obj_facturation);
|
||||
//var_dump($_SESSION['serObjFacturation']);
|
||||
header('Location: '.$redirection);
|
||||
exit;
|
||||
|
||||
|
||||
@@ -49,4 +49,3 @@ $conf_nbr_car_listes = 60; // Nombre max de caracteres par ligne dans les listes
|
||||
|
||||
// Add hidden option to force decrease of stock whatever is user setup
|
||||
if (! empty($conf->global->CASHDESK_FORCE_STOCK_ON_BILL)) $conf->global->STOCK_CALCULATE_ON_BILL=1;
|
||||
|
||||
|
||||
@@ -140,4 +140,3 @@ else
|
||||
header('Location: '.DOL_URL_ROOT.'/cashdesk/index.php?err='.urlencode($retour).'&user='.$username.'&socid='.$thirdpartyid.'&warehouseid='.$warehouseid);
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
@@ -25,4 +25,3 @@ $form=new Form($db);
|
||||
|
||||
// Affichage des templates
|
||||
require 'tpl/validation1.tpl.php';
|
||||
|
||||
|
||||
@@ -23,4 +23,3 @@
|
||||
|
||||
// Affichage des templates
|
||||
require 'tpl/validation2.tpl.php';
|
||||
|
||||
|
||||
@@ -40,4 +40,3 @@ if (empty($reshook))
|
||||
|
||||
|
||||
$_SESSION['serObjFacturation'] = serialize($obj_facturation);
|
||||
|
||||
|
||||
@@ -223,4 +223,3 @@ class CommandeStats extends Stats
|
||||
return $this->_getAllByProduct($sql);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -193,4 +193,3 @@ else
|
||||
// End of page
|
||||
llxFooter();
|
||||
$db->close();
|
||||
|
||||
|
||||
@@ -166,4 +166,3 @@ class DeplacementStats extends Stats
|
||||
return $this->_getAllByYear($sql);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -225,4 +225,3 @@ class FactureStats extends Stats
|
||||
return $this->_getAllByProduct($sql);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -228,4 +228,3 @@ else
|
||||
// End of page
|
||||
llxFooter();
|
||||
$db->close();
|
||||
|
||||
|
||||
@@ -164,4 +164,3 @@ class SalariesStats extends Stats
|
||||
return $this->_getAllByYear($sql);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -133,4 +133,3 @@ if ($action == 'remove_file' && $permissioncreate)
|
||||
header('Location: '.$urltoredirect);
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
@@ -44,5 +44,3 @@ if (GETPOST('formfilteraction') == 'listafterchangingselectedfields')
|
||||
//$action='list';
|
||||
//var_dump($tabparam);exit;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -43,4 +43,3 @@ if ($action == 'dellink' && ! empty($permissiondellink) && ! GETPOST('cancel','a
|
||||
$result=$object->deleteObjectLinked(0, '', 0, '', $dellinkid);
|
||||
if ($result < 0) setEventMessages($object->error,$object->errors,'errors');
|
||||
}
|
||||
|
||||
|
||||
@@ -402,4 +402,3 @@ if ($action == 'delete')
|
||||
$mesg=$langs->trans("ErrorFieldCanNotContainSpecialCharacters",$langs->transnoentities("AttributeCode"));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -70,4 +70,3 @@ if ($action == 'down' && $permissiontoedit)
|
||||
header('Location: ' . $_SERVER["PHP_SELF"] . '?id=' . $object->id . '#' . GETPOST('rowid'));
|
||||
exit();
|
||||
}
|
||||
|
||||
|
||||
@@ -1249,6 +1249,3 @@ $parameters['uploaddir']=$uploaddir;
|
||||
|
||||
$reshook=$hookmanager->executeHooks('doMassActions',$parameters, $object, $action); // Note that $action and $object may have been modified by some hooks
|
||||
if ($reshook < 0) setEventMessages($hookmanager->error, $hookmanager->errors, 'errors');
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -114,4 +114,3 @@ if ($action == 'setModuleOptions')
|
||||
if (empty($nomessageinsetmoduleoptions)) setEventMessages($langs->trans("SetupNotSaved"), null, 'errors');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -491,4 +491,3 @@ function treeOutputForAbsoluteDir($sqltree, $selecteddir, $fullpathselecteddir,
|
||||
else print "PermissionDenied";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -94,4 +94,3 @@ if (($user->rights->banque->modifier || $user->rights->banque->consolidate) && $
|
||||
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
@@ -77,4 +77,3 @@ if ($boxorder && $zone != '' && $userid > 0)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -116,4 +116,3 @@ if ($time >= $_SESSION['auto_check_events_not_before'])
|
||||
}
|
||||
|
||||
print json_encode($eventfound);
|
||||
|
||||
|
||||
@@ -64,4 +64,3 @@ if (! empty($action) && ! empty($name))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -54,4 +54,3 @@ if (! empty($id) && ! empty($action) && ! empty($htmlname))
|
||||
|
||||
echo json_encode($return);
|
||||
}
|
||||
|
||||
|
||||
@@ -74,4 +74,3 @@ if(! empty($id) && ! empty($element) && ! empty($htmlelement) && ! empty($type))
|
||||
|
||||
$result=$object->setExtraParameters();
|
||||
}
|
||||
|
||||
|
||||
@@ -73,4 +73,3 @@ switch ($_SERVER['REQUEST_METHOD']) {
|
||||
}
|
||||
|
||||
$db->close();
|
||||
|
||||
|
||||
@@ -54,4 +54,3 @@ if (! empty($id))
|
||||
|
||||
echo json_encode($return);
|
||||
}
|
||||
|
||||
|
||||
@@ -112,4 +112,3 @@ if (! empty($field) && ! empty($element) && ! empty($table_element) && ! empty($
|
||||
echo $langs->transnoentities('NotEnoughPermissions');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -63,4 +63,3 @@ if (! empty($output) && isset($amount) && isset($tva_tx))
|
||||
|
||||
echo json_encode($return);
|
||||
}
|
||||
|
||||
|
||||
@@ -73,4 +73,3 @@ if ((! empty($_POST['roworder'])) && (! empty($_POST['table_element_line']))
|
||||
$result=$row->line_order(true);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -229,4 +229,3 @@ if (! empty($field) && ! empty($element) && ! empty($table_element) && ! empty($
|
||||
echo $langs->trans('NotEnoughPermissions');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -49,4 +49,3 @@ if (isset($_GET['action']) && ! empty($_GET['action']))
|
||||
echo getRandomPassword($generic);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -170,4 +170,3 @@ if (! isset($usedbyinclude) || empty($usedbyinclude))
|
||||
print json_encode($arrayresult);
|
||||
if (is_object($db)) $db->close();
|
||||
}
|
||||
|
||||
|
||||
@@ -67,4 +67,3 @@ if (! empty($id) && ! empty($action) && ! empty($htmlname))
|
||||
|
||||
echo json_encode($return);
|
||||
}
|
||||
|
||||
|
||||
@@ -135,4 +135,3 @@ else
|
||||
}
|
||||
|
||||
$db->close();
|
||||
|
||||
|
||||
@@ -65,4 +65,3 @@ $background_color = imagecolorallocate($img, 250, 250, 250);
|
||||
$ecriture_color = imagecolorallocate($img, 0, 0, 0);
|
||||
imagestring($img, 4, 24, 8, $string, $ecriture_color);
|
||||
imagepng($img);
|
||||
|
||||
|
||||
@@ -260,4 +260,3 @@ class box_actions extends ModeleBoxes
|
||||
return '';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -162,4 +162,3 @@ class box_bookmarks extends ModeleBoxes
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -178,4 +178,3 @@ class box_clients extends ModeleBoxes
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -203,4 +203,3 @@ class box_commandes extends ModeleBoxes
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -189,4 +189,3 @@ class box_comptes extends ModeleBoxes
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -190,4 +190,3 @@ class box_contacts extends ModeleBoxes
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -194,4 +194,3 @@ class box_contracts extends ModeleBoxes
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -200,4 +200,3 @@ class box_external_rss extends ModeleBoxes
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -219,4 +219,3 @@ class box_factures_fourn extends ModeleBoxes
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -206,4 +206,3 @@ class box_factures_fourn_imp extends ModeleBoxes
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -171,4 +171,3 @@ class box_ficheinter extends ModeleBoxes
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -165,4 +165,3 @@ class box_fournisseurs extends ModeleBoxes
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -174,4 +174,3 @@ class box_goodcustomers extends ModeleBoxes
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -280,4 +280,3 @@ class box_graph_invoices_permonth extends ModeleBoxes
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -279,4 +279,3 @@ class box_graph_invoices_supplier_permonth extends ModeleBoxes
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -278,4 +278,3 @@ class box_graph_orders_permonth extends ModeleBoxes
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -277,4 +277,3 @@ class box_graph_orders_supplier_permonth extends ModeleBoxes
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -417,4 +417,3 @@ class box_graph_product_distribution extends ModeleBoxes
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -281,4 +281,3 @@ class box_graph_propales_permonth extends ModeleBoxes
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -183,4 +183,3 @@ class box_members extends ModeleBoxes
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -231,4 +231,3 @@ class box_produits extends ModeleBoxes
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -243,4 +243,3 @@ class box_produits_alerte_stock extends ModeleBoxes
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -200,4 +200,3 @@ class box_project extends ModeleBoxes
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -193,4 +193,3 @@ class box_propales extends ModeleBoxes
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -181,4 +181,3 @@ class box_prospect extends ModeleBoxes
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -246,4 +246,3 @@ class box_services_contracts extends ModeleBoxes
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -190,4 +190,3 @@ class box_services_expired extends ModeleBoxes
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -189,4 +189,3 @@ class box_supplier_orders extends ModeleBoxes
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -503,5 +503,3 @@ class ModeleBoxes // Can't be abtract as it is instantiated to build "empty" box
|
||||
return $widget;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -145,4 +145,3 @@ abstract class CommonOrderLine extends CommonObjectLine
|
||||
|
||||
public $special_code = 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -694,4 +694,3 @@ class Conf
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -79,4 +79,3 @@ class FormBank
|
||||
return 'IBANNumber';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -281,4 +281,3 @@ class FormMargin
|
||||
print '</div>';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -101,4 +101,3 @@ class FormOrder extends Form
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -282,4 +282,3 @@ class InfoBox
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -605,4 +605,3 @@ abstract class Stats
|
||||
return $result;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -298,4 +298,3 @@ abstract class DoliDB implements Database
|
||||
return $this->lastqueryerror;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -173,4 +173,3 @@ $Config['FileTypesPath']['Media'] = $Config['UserFilesPath'] . 'media/' ;
|
||||
$Config['FileTypesAbsolutePath']['Media']= ($Config['UserFilesAbsolutePath'] == '') ? '' : $Config['UserFilesAbsolutePath'].'media/' ;
|
||||
$Config['QuickUploadPath']['Media'] = $Config['UserFilesPath'] ;
|
||||
$Config['QuickUploadAbsolutePath']['Media']= $Config['UserFilesAbsolutePath'] ;
|
||||
|
||||
|
||||
@@ -68,5 +68,3 @@ $CKEcallback = $_GET['CKEditorFuncNum'];
|
||||
|
||||
//modify the next line adding in the new param
|
||||
FileUpload($sType, $sCurrentFolder, $sCommand, $CKEcallback);
|
||||
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user