Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
30 | public static function addFunction(string $key, array $value): bool |
||
31 | { |
||
32 | $key = strtoupper($key); |
||
33 | if (array_key_exists($key, FunctionArray::$phpSpreadsheetFunctions)) { |
||
34 | return false; |
||
35 | } |
||
36 | $value['custom'] = true; |
||
37 | FunctionArray::$phpSpreadsheetFunctions[$key] = $value; |
||
38 | |||
39 | return true; |
||
40 | } |
||
56 |