Conditions | 3 |
Paths | 3 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
42 | public static function removeFunction(string $key): bool |
||
43 | { |
||
44 | $key = strtoupper($key); |
||
45 | if (array_key_exists($key, FunctionArray::$phpSpreadsheetFunctions)) { |
||
46 | if (FunctionArray::$phpSpreadsheetFunctions[$key]['custom'] ?? false) { |
||
47 | unset(FunctionArray::$phpSpreadsheetFunctions[$key]); |
||
48 | |||
49 | return true; |
||
50 | } |
||
51 | } |
||
52 | |||
53 | return false; |
||
54 | } |
||
56 |