Fix phpcs

This commit is contained in:
Laurent Destailleur 2020-10-23 03:55:18 +02:00
parent 15bbba3f52
commit c9a73cc380
4 changed files with 11 additions and 14 deletions

View File

@ -15,7 +15,6 @@
* *
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>. * along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/ */
/** /**

View File

@ -97,11 +97,11 @@ if ($action == 'confirm_rejet')
if ($lipre->fetch($id) == 0) if ($lipre->fetch($id) == 0)
{ {
$rej = new RejetPrelevement($db, $user,$type); $rej = new RejetPrelevement($db, $user, $type);
$rej->create($user, $id, GETPOST('motif', 'alpha'), $daterej, $lipre->bon_rowid, GETPOST('facturer', 'int')); $rej->create($user, $id, GETPOST('motif', 'alpha'), $daterej, $lipre->bon_rowid, GETPOST('facturer', 'int'));
header("Location: line.php?id=".$id.'&type='.$type); header("Location: line.php?id=".urlencode($id).'&type='.urlencode($type));
exit; exit;
} }
} }
@ -112,7 +112,7 @@ if ($action == 'confirm_rejet')
} }
else else
{ {
header("Location: line.php?id=".$id.'&type='.$type); header("Location: line.php?id=".urlencode($id).'&type='.urlencode($type));
exit; exit;
} }
} }

View File

@ -2264,7 +2264,6 @@ class ExpenseReport extends CommonObject
$langs->load("trips"); $langs->load("trips");
if (!dol_strlen($modele)) { if (!dol_strlen($modele)) {
if ($this->modelpdf) { if ($this->modelpdf) {
$modele = $this->modelpdf; $modele = $this->modelpdf;
} elseif (!empty($conf->global->EXPENSEREPORT_ADDON_PDF)) { } elseif (!empty($conf->global->EXPENSEREPORT_ADDON_PDF)) {
@ -2278,7 +2277,6 @@ class ExpenseReport extends CommonObject
} else { } else {
return 0; return 0;
} }
} }
/** /**