PSR_2 Format of code

This commit is contained in:
a-schild 2019-05-22 11:40:58 +02:00
parent a823882f76
commit fff133b8a5

View File

@ -779,7 +779,7 @@ class AccountancyExport
* @return void * @return void
*/ */
public function exportSAGE50SWISS($objectLines) public function exportSAGE50SWISS($objectLines)
{ {
// SAGE50SWISS // SAGE50SWISS
$this->separator = ','; $this->separator = ',';
$this->end_line = "\r\n"; $this->end_line = "\r\n";
@ -915,7 +915,7 @@ class AccountancyExport
$thisPieceNum= $line->piece_num; $thisPieceNum= $line->piece_num;
$thisPieceAccountNr= $line->numero_compte; $thisPieceAccountNr= $line->numero_compte;
} }
} }
} }
/** /**
@ -936,12 +936,12 @@ class AccountancyExport
* @return string String encoded in Windows-1251 charset * @return string String encoded in Windows-1251 charset
*/ */
public static function toAnsi($str, $size = -1) public static function toAnsi($str, $size = -1)
{ {
$retVal= dol_string_nohtmltag($str, 1, 'Windows-1251'); $retVal= dol_string_nohtmltag($str, 1, 'Windows-1251');
if ($retVal >= 0 && $size >= 0) if ($retVal >= 0 && $size >= 0)
{ {
$retVal= mb_substr($retVal, 0, $size, 'Windows-1251'); $retVal= mb_substr($retVal, 0, $size, 'Windows-1251');
} }
return $retVal; return $retVal;
} }
} }