FIX saveFile by adding null in return (#28508)

* FIX saveFile by adding null in return

* Update html_generic.modules.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
This commit is contained in:
lamrani abdelwadoud 2024-02-28 20:03:26 +01:00 committed by GitHub
parent a0c4af7929
commit 7c36864ff9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -166,9 +166,9 @@ class html_generic extends ModeleDon
/**
* Write the object to document file to disk
*
* @param string $path Path for the file
* @param string $path Path for the file
* @param string $contents Contents of the file
* @return NULL
* @return int Return code
*/
private function saveFile($path, $contents)
{
@ -178,7 +178,7 @@ class html_generic extends ModeleDon
fclose($handle);
dolChmod($path);
return;
return 1;
}
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps