@@ 114-120 (lines=7) @@ | ||
111 | return Functions::VALUE(); |
|
112 | } |
|
113 | $characters = Functions::flattenSingleValue($characters); |
|
114 | if (is_bool($characters)) { |
|
115 | if (Functions::getCompatibilityMode() == Functions::COMPATIBILITY_OPENOFFICE) { |
|
116 | $characters = (int) $characters; |
|
117 | } else { |
|
118 | $characters = ($characters) ? \PhpOffice\PhpSpreadsheet\Calculation::getTRUE() : \PhpOffice\PhpSpreadsheet\Calculation::getFALSE(); |
|
119 | } |
|
120 | } |
|
121 | ||
122 | $character = $characters; |
|
123 | if ((function_exists('mb_strlen')) && (function_exists('mb_substr'))) { |
|
@@ 150-156 (lines=7) @@ | ||
147 | // Loop through arguments |
|
148 | $aArgs = Functions::flattenArray(func_get_args()); |
|
149 | foreach ($aArgs as $arg) { |
|
150 | if (is_bool($arg)) { |
|
151 | if (Functions::getCompatibilityMode() == Functions::COMPATIBILITY_OPENOFFICE) { |
|
152 | $arg = (int) $arg; |
|
153 | } else { |
|
154 | $arg = ($arg) ? \PhpOffice\PhpSpreadsheet\Calculation::getTRUE() : \PhpOffice\PhpSpreadsheet\Calculation::getFALSE(); |
|
155 | } |
|
156 | } |
|
157 | $returnValue .= $arg; |
|
158 | } |
|
159 |