diff --git a/htdocs/modulebuilder/index.php b/htdocs/modulebuilder/index.php index e63dd263fdc..742d880f577 100644 --- a/htdocs/modulebuilder/index.php +++ b/htdocs/modulebuilder/index.php @@ -277,7 +277,7 @@ function getLicenceHeader($user, $langs, $now) * Actions */ -if ($dirins && $action == 'initmodule' && $modulename) { // permissions already checked +if ($dirins && $action == 'initmodule' && $modulename) { // Test on permission already done $modulename = dol_string_nounprintableascii(dol_string_unaccent(ucwords($modulename))); // Force first letter in uppercase $destdir = '/not_set/'; @@ -1078,7 +1078,7 @@ if ($dirins && $action == 'confirm_removefile' && !empty($module) /* && $user->h } // Init an object -if ($dirins && $action == 'initobject' && $module && $objectname) { // Permissions already checked +if ($dirins && $action == 'initobject' && $module && $objectname) { // Test on permission already done $warning = 0; $objectname = dol_string_nounprintableascii(dol_string_unaccent(ucwords($objectname))); // Force first letter in uppercase diff --git a/test/phpunit/CodingPhpTest.php b/test/phpunit/CodingPhpTest.php index 78c334287e5..67ccf462e16 100644 --- a/test/phpunit/CodingPhpTest.php +++ b/test/phpunit/CodingPhpTest.php @@ -795,9 +795,10 @@ class CodingPhpTest extends CommonClassTest && !preg_match('/not required/i', $val[0])) { $ok = false; - var_dump($file['fullname'].' '.$val[0].' '.$filecontentaction);exit; + // Uncomment this for a scan on one given file + //var_dump($file['fullname'].' '.$val[0].' '.$filecontentaction);exit; - print "File ".$file['relativename']." - Line: ".$val[0]."\n"; + print "\nError on file ".$file['relativename']." - Line: ".$val[0]."\n"; break; } } diff --git a/test/phpunit/CommonClassTest.class.php b/test/phpunit/CommonClassTest.class.php index 7e9a3118f7b..205b2c89810 100644 --- a/test/phpunit/CommonClassTest.class.php +++ b/test/phpunit/CommonClassTest.class.php @@ -236,7 +236,7 @@ abstract class CommonClassTest extends TestCase echo $line . "\n"; } } else { - echo "Error: File $logFile does not exist or is not readable.\n"; + echo "File $logFile does not exist or is not readable.\n"; } }