2
0
forked from Wavyzz/dolibarr

PSR2.Files.EndFileNewline.TooMany

This commit is contained in:
Frédéric FRANCE
2019-01-27 14:10:35 +01:00
parent a9da6a2d51
commit 496fa9b0fb
237 changed files with 5 additions and 261 deletions

View File

@@ -220,4 +220,3 @@ for ($s = 0 ; $s < GEN_NUMBER_COMMANDE ; $s++)
dol_print_error($db,$object->error);
}
}

View File

@@ -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";
}

View File

@@ -127,5 +127,3 @@ for ($s = 0 ; $s < GEN_NUMBER_SOCIETE ; $s++)
print "Error: ".$soc->error."\n";
}
}

View File

@@ -275,4 +275,3 @@ else
}
$db->close();

View File

@@ -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>

View File

@@ -388,4 +388,3 @@ if ($web)
}
exit;

View File

@@ -874,4 +874,3 @@ function fieldListAccountModel($fieldlist, $obj='', $tabname='', $context='')
}
}
}

View File

@@ -873,4 +873,3 @@ function fieldListAccountingCategories($fieldlist, $obj='', $tabname='', $contex
}
}
}

View File

@@ -314,4 +314,3 @@ class Lettering extends BookKeeping
}
}
}

View File

@@ -1990,4 +1990,3 @@ function fieldList($fieldlist, $obj='', $tabname='', $context='')
return $withentity;
}

View File

@@ -321,4 +321,3 @@ if (function_exists("ldap_connect"))
// End of page
llxFooter();
$db->close();

View File

@@ -481,4 +481,3 @@ print '</table>';
// End of page
llxFooter();
$db->close();

View File

@@ -1065,4 +1065,3 @@ function fieldList($fieldlist, $obj='', $tabname='', $context='')
}
}
}

View File

@@ -585,4 +585,3 @@ print "</table>\n<br>";
// End of page
llxFooter();
$db->close();

View File

@@ -234,4 +234,3 @@ header("Location: dolibarr_export.php");
$time_end = time();
$db->close();

View File

@@ -163,4 +163,3 @@ header("Location: dolibarr_export.php");
$time_end = time();
$db->close();

View File

@@ -695,4 +695,3 @@ function fieldListWebsites($fieldlist, $obj='', $tabname='', $context='')
}
}
}

View File

@@ -147,4 +147,3 @@ dol_fiche_end();
// End of page
llxFooter();
$db->close();

View File

@@ -221,4 +221,3 @@ print $langs->trans("OnlyActiveElementsAreExposed", DOL_URL_ROOT.'/admin/modules
llxFooter();
$db->close();

View File

@@ -69,5 +69,3 @@ elseif(!empty($newblock)){
else{
echo 'idontunderstandwhatihavetodo';
}

View File

@@ -150,4 +150,3 @@ function printBookmarksList($aDb, $aLangs)
return $ret;
}

View File

@@ -212,5 +212,3 @@ else
// End of page
llxFooter();
$db->close();

View File

@@ -139,4 +139,3 @@ class Auth
return $ret;
}
}

View File

@@ -34,4 +34,3 @@ unset($_SESSION['uid']);
header('Location: '.DOL_URL_ROOT.'/cashdesk/index.php');
exit;

View File

@@ -233,4 +233,3 @@ $_SESSION['serObjFacturation'] = serialize($obj_facturation);
//var_dump($_SESSION['serObjFacturation']);
header('Location: '.$redirection);
exit;

View File

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

View File

@@ -140,4 +140,3 @@ else
header('Location: '.DOL_URL_ROOT.'/cashdesk/index.php?err='.urlencode($retour).'&user='.$username.'&socid='.$thirdpartyid.'&warehouseid='.$warehouseid);
exit;
}

View File

@@ -25,4 +25,3 @@ $form=new Form($db);
// Affichage des templates
require 'tpl/validation1.tpl.php';

View File

@@ -23,4 +23,3 @@
// Affichage des templates
require 'tpl/validation2.tpl.php';

View File

@@ -40,4 +40,3 @@ if (empty($reshook))
$_SESSION['serObjFacturation'] = serialize($obj_facturation);

View File

@@ -223,4 +223,3 @@ class CommandeStats extends Stats
return $this->_getAllByProduct($sql);
}
}

View File

@@ -193,4 +193,3 @@ else
// End of page
llxFooter();
$db->close();

View File

@@ -166,4 +166,3 @@ class DeplacementStats extends Stats
return $this->_getAllByYear($sql);
}
}

View File

@@ -225,4 +225,3 @@ class FactureStats extends Stats
return $this->_getAllByProduct($sql);
}
}

View File

@@ -228,4 +228,3 @@ else
// End of page
llxFooter();
$db->close();

View File

@@ -164,4 +164,3 @@ class SalariesStats extends Stats
return $this->_getAllByYear($sql);
}
}

View File

@@ -133,4 +133,3 @@ if ($action == 'remove_file' && $permissioncreate)
header('Location: '.$urltoredirect);
exit;
}

View File

@@ -44,5 +44,3 @@ if (GETPOST('formfilteraction') == 'listafterchangingselectedfields')
//$action='list';
//var_dump($tabparam);exit;
}

View File

@@ -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');
}

View File

@@ -402,4 +402,3 @@ if ($action == 'delete')
$mesg=$langs->trans("ErrorFieldCanNotContainSpecialCharacters",$langs->transnoentities("AttributeCode"));
}
}

View File

@@ -70,4 +70,3 @@ if ($action == 'down' && $permissiontoedit)
header('Location: ' . $_SERVER["PHP_SELF"] . '?id=' . $object->id . '#' . GETPOST('rowid'));
exit();
}

View File

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

View File

@@ -114,4 +114,3 @@ if ($action == 'setModuleOptions')
if (empty($nomessageinsetmoduleoptions)) setEventMessages($langs->trans("SetupNotSaved"), null, 'errors');
}
}

View File

@@ -491,4 +491,3 @@ function treeOutputForAbsoluteDir($sqltree, $selecteddir, $fullpathselecteddir,
else print "PermissionDenied";
}
}

View File

@@ -94,4 +94,3 @@ if (($user->rights->banque->modifier || $user->rights->banque->consolidate) && $
exit;
}

View File

@@ -77,4 +77,3 @@ if ($boxorder && $zone != '' && $userid > 0)
}
}
}

View File

@@ -116,4 +116,3 @@ if ($time >= $_SESSION['auto_check_events_not_before'])
}
print json_encode($eventfound);

View File

@@ -64,4 +64,3 @@ if (! empty($action) && ! empty($name))
}
}
}

View File

@@ -54,4 +54,3 @@ if (! empty($id) && ! empty($action) && ! empty($htmlname))
echo json_encode($return);
}

View File

@@ -74,4 +74,3 @@ if(! empty($id) && ! empty($element) && ! empty($htmlelement) && ! empty($type))
$result=$object->setExtraParameters();
}

View File

@@ -73,4 +73,3 @@ switch ($_SERVER['REQUEST_METHOD']) {
}
$db->close();

View File

@@ -54,4 +54,3 @@ if (! empty($id))
echo json_encode($return);
}

View File

@@ -112,4 +112,3 @@ if (! empty($field) && ! empty($element) && ! empty($table_element) && ! empty($
echo $langs->transnoentities('NotEnoughPermissions');
}
}

View File

@@ -63,4 +63,3 @@ if (! empty($output) && isset($amount) && isset($tva_tx))
echo json_encode($return);
}

View File

@@ -73,4 +73,3 @@ if ((! empty($_POST['roworder'])) && (! empty($_POST['table_element_line']))
$result=$row->line_order(true);
}
}

View File

@@ -229,4 +229,3 @@ if (! empty($field) && ! empty($element) && ! empty($table_element) && ! empty($
echo $langs->trans('NotEnoughPermissions');
}
}

View File

@@ -49,4 +49,3 @@ if (isset($_GET['action']) && ! empty($_GET['action']))
echo getRandomPassword($generic);
}
}

View File

@@ -170,4 +170,3 @@ if (! isset($usedbyinclude) || empty($usedbyinclude))
print json_encode($arrayresult);
if (is_object($db)) $db->close();
}

View File

@@ -67,4 +67,3 @@ if (! empty($id) && ! empty($action) && ! empty($htmlname))
echo json_encode($return);
}

View File

@@ -135,4 +135,3 @@ else
}
$db->close();

View File

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

View File

@@ -260,4 +260,3 @@ class box_actions extends ModeleBoxes
return '';
}
}

View File

@@ -162,4 +162,3 @@ class box_bookmarks extends ModeleBoxes
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
}
}

View File

@@ -178,4 +178,3 @@ class box_clients extends ModeleBoxes
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
}
}

View File

@@ -203,4 +203,3 @@ class box_commandes extends ModeleBoxes
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
}
}

View File

@@ -189,4 +189,3 @@ class box_comptes extends ModeleBoxes
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
}
}

View File

@@ -190,4 +190,3 @@ class box_contacts extends ModeleBoxes
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
}
}

View File

@@ -194,4 +194,3 @@ class box_contracts extends ModeleBoxes
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
}
}

View File

@@ -200,4 +200,3 @@ class box_external_rss extends ModeleBoxes
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
}
}

View File

@@ -219,4 +219,3 @@ class box_factures_fourn extends ModeleBoxes
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
}
}

View File

@@ -206,4 +206,3 @@ class box_factures_fourn_imp extends ModeleBoxes
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
}
}

View File

@@ -171,4 +171,3 @@ class box_ficheinter extends ModeleBoxes
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
}
}

View File

@@ -165,4 +165,3 @@ class box_fournisseurs extends ModeleBoxes
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
}
}

View File

@@ -174,4 +174,3 @@ class box_goodcustomers extends ModeleBoxes
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
}
}

View File

@@ -280,4 +280,3 @@ class box_graph_invoices_permonth extends ModeleBoxes
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
}
}

View File

@@ -279,4 +279,3 @@ class box_graph_invoices_supplier_permonth extends ModeleBoxes
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
}
}

View File

@@ -278,4 +278,3 @@ class box_graph_orders_permonth extends ModeleBoxes
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
}
}

View File

@@ -277,4 +277,3 @@ class box_graph_orders_supplier_permonth extends ModeleBoxes
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
}
}

View File

@@ -417,4 +417,3 @@ class box_graph_product_distribution extends ModeleBoxes
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
}
}

View File

@@ -281,4 +281,3 @@ class box_graph_propales_permonth extends ModeleBoxes
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
}
}

View File

@@ -183,4 +183,3 @@ class box_members extends ModeleBoxes
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
}
}

View File

@@ -231,4 +231,3 @@ class box_produits extends ModeleBoxes
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
}
}

View File

@@ -243,4 +243,3 @@ class box_produits_alerte_stock extends ModeleBoxes
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
}
}

View File

@@ -200,4 +200,3 @@ class box_project extends ModeleBoxes
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
}
}

View File

@@ -193,4 +193,3 @@ class box_propales extends ModeleBoxes
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
}
}

View File

@@ -181,4 +181,3 @@ class box_prospect extends ModeleBoxes
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
}
}

View File

@@ -246,4 +246,3 @@ class box_services_contracts extends ModeleBoxes
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
}
}

View File

@@ -190,4 +190,3 @@ class box_services_expired extends ModeleBoxes
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
}
}

View File

@@ -189,4 +189,3 @@ class box_supplier_orders extends ModeleBoxes
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
}
}

View File

@@ -503,5 +503,3 @@ class ModeleBoxes // Can't be abtract as it is instantiated to build "empty" box
return $widget;
}
}

View File

@@ -145,4 +145,3 @@ abstract class CommonOrderLine extends CommonObjectLine
public $special_code = 0;
}

View File

@@ -694,4 +694,3 @@ class Conf
}
}
}

View File

@@ -79,4 +79,3 @@ class FormBank
return 'IBANNumber';
}
}

View File

@@ -281,4 +281,3 @@ class FormMargin
print '</div>';
}
}

View File

@@ -101,4 +101,3 @@ class FormOrder extends Form
return 1;
}
}

View File

@@ -282,4 +282,3 @@ class InfoBox
}
}
}

View File

@@ -605,4 +605,3 @@ abstract class Stats
return $result;
}
}

View File

@@ -298,4 +298,3 @@ abstract class DoliDB implements Database
return $this->lastqueryerror;
}
}

View File

@@ -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'] ;

View File

@@ -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