@@ 118-124 (lines=7) @@ | ||
115 | return Functions::VALUE(); |
|
116 | } |
|
117 | $characters = Functions::flattenSingleValue($characters); |
|
118 | if (is_bool($characters)) { |
|
119 | if (Functions::getCompatibilityMode() == Functions::COMPATIBILITY_OPENOFFICE) { |
|
120 | $characters = (int) $characters; |
|
121 | } else { |
|
122 | $characters = ($characters) ? \PhpOffice\PhpSpreadsheet\Calculation::getTRUE() : \PhpOffice\PhpSpreadsheet\Calculation::getFALSE(); |
|
123 | } |
|
124 | } |
|
125 | ||
126 | $character = $characters; |
|
127 | if (mb_strlen($characters, 'UTF-8') > 1) { |
|
@@ 146-152 (lines=7) @@ | ||
143 | // Loop through arguments |
|
144 | $aArgs = Functions::flattenArray($args); |
|
145 | foreach ($aArgs as $arg) { |
|
146 | if (is_bool($arg)) { |
|
147 | if (Functions::getCompatibilityMode() == Functions::COMPATIBILITY_OPENOFFICE) { |
|
148 | $arg = (int) $arg; |
|
149 | } else { |
|
150 | $arg = ($arg) ? \PhpOffice\PhpSpreadsheet\Calculation::getTRUE() : \PhpOffice\PhpSpreadsheet\Calculation::getFALSE(); |
|
151 | } |
|
152 | } |
|
153 | $returnValue .= $arg; |
|
154 | } |
|
155 |