From fff133b8a5b984d0979cfd205c58a2767d3c21f6 Mon Sep 17 00:00:00 2001 From: a-schild Date: Wed, 22 May 2019 11:40:58 +0200 Subject: [PATCH] PSR_2 Format of code --- .../class/accountancyexport.class.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/htdocs/accountancy/class/accountancyexport.class.php b/htdocs/accountancy/class/accountancyexport.class.php index d1d6d4f8b51..1ef500fcf6b 100644 --- a/htdocs/accountancy/class/accountancyexport.class.php +++ b/htdocs/accountancy/class/accountancyexport.class.php @@ -779,7 +779,7 @@ class AccountancyExport * @return void */ public function exportSAGE50SWISS($objectLines) - { + { // SAGE50SWISS $this->separator = ','; $this->end_line = "\r\n"; @@ -915,7 +915,7 @@ class AccountancyExport $thisPieceNum= $line->piece_num; $thisPieceAccountNr= $line->numero_compte; } - } + } } /** @@ -936,12 +936,12 @@ class AccountancyExport * @return string String encoded in Windows-1251 charset */ public static function toAnsi($str, $size = -1) - { + { $retVal= dol_string_nohtmltag($str, 1, 'Windows-1251'); - if ($retVal >= 0 && $size >= 0) - { - $retVal= mb_substr($retVal, 0, $size, 'Windows-1251'); - } - return $retVal; + if ($retVal >= 0 && $size >= 0) + { + $retVal= mb_substr($retVal, 0, $size, 'Windows-1251'); + } + return $retVal; } }