From bfbc9b303abd6cb12de11e60e32def796230f584 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 5 Apr 2020 12:23:16 +0200 Subject: [PATCH 1/2] Fix phpcs --- htdocs/core/class/html.formticket.class.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/htdocs/core/class/html.formticket.class.php b/htdocs/core/class/html.formticket.class.php index a48cf36c117..ee7be63d22a 100644 --- a/htdocs/core/class/html.formticket.class.php +++ b/htdocs/core/class/html.formticket.class.php @@ -124,8 +124,9 @@ class FormTicket /** * Show the form to input ticket * - * @param int $withdolfichehead With dol_fiche_head - * @return void + * @param int $withdolfichehead With dol_fiche_head + * @param string Mode ('create' or 'edit') + * @return void */ public function showForm($withdolfichehead = 0, $mode = 'edit') { From 9bbedce3d60f620fe3591bc7012fc03d15cca4d4 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 5 Apr 2020 12:23:58 +0200 Subject: [PATCH 2/2] Fix phpcs --- scripts/user/migrate_picture_path.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/user/migrate_picture_path.php b/scripts/user/migrate_picture_path.php index f478c42b865..b0ca99dd977 100755 --- a/scripts/user/migrate_picture_path.php +++ b/scripts/user/migrate_picture_path.php @@ -83,6 +83,7 @@ $db->close(); // Close $db database opened handler exit($error); + /** * Migrate file from old path to new one for user $u * @@ -105,7 +106,6 @@ function migrate_user_filespath($u) dol_mkdir($destin); if (dol_is_dir($origin)) { - $handle = opendir($origin_osencoded); if (is_resource($handle)) { while (($file = readdir($handle)) !== false) {