From 5e6d9691e400d9ac7937c71f7546f2cd422db584 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Sat, 16 Mar 2019 19:12:45 +0100 Subject: [PATCH 1/2] phpcs fix --- htdocs/product/card.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/product/card.php b/htdocs/product/card.php index 1a9139cf9a1..0f80e171529 100644 --- a/htdocs/product/card.php +++ b/htdocs/product/card.php @@ -1039,7 +1039,7 @@ else // Nature print ''.$langs->trans("Nature").''; $statutarray=array('1' => $langs->trans("Finished"), '0' => $langs->trans("RowMaterial")); - print $form->selectarray('finished', $statutarray, GETPOST('finished','alpha'), 1); + print $form->selectarray('finished', $statutarray, GETPOST('finished', 'alpha'), 1); print ''; // Weight @@ -1424,7 +1424,7 @@ else // Nature print ''.$langs->trans("Nature").''; $statutarray=array('-1'=>' ', '1' => $langs->trans("Finished"), '0' => $langs->trans("RowMaterial")); - print $form->selectarray('finished' ,$statutarray, $object->finished); + print $form->selectarray('finished', $statutarray, $object->finished); print ''; // Weight From db0108b0e9a057f0b7e29fd3a3709b3daab64ac2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Sat, 16 Mar 2019 19:14:31 +0100 Subject: [PATCH 2/2] Update autoloader.php --- htdocs/debugbar/class/autoloader.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/htdocs/debugbar/class/autoloader.php b/htdocs/debugbar/class/autoloader.php index e7840dcb23c..1d5c85c975d 100644 --- a/htdocs/debugbar/class/autoloader.php +++ b/htdocs/debugbar/class/autoloader.php @@ -5,8 +5,7 @@ */ spl_autoload_register(function ($class) { - if (preg_match('/^DebugBar/', $class) || preg_match('/^'.preg_quote('Psr\Log','/').'/', $class)) - { + if (preg_match('/^DebugBar/', $class) || preg_match('/^'.preg_quote('Psr\Log', '/').'/', $class)) { $file = DOL_DOCUMENT_ROOT.'/includes/'.str_replace('\\', DIRECTORY_SEPARATOR, $class).'.php'; //var_dump($class.' - '.file_exists($file).' - '.$file); if (file_exists($file)) {