@@ -4184,14 +4184,8 @@ private function internalParseFormula($formula, ?Cell $cell = null): bool|array
41844184 $ output [] = $ stack ->pop (); // Pop the function and push onto the output
41854185 if (isset (self ::$ controlFunctions [$ functionName ])) {
41864186 $ expectedArgumentCount = self ::$ controlFunctions [$ functionName ]['argumentCount ' ];
4187- // Scrutinizer says functionCall is unused after this assignment.
4188- // It might be right, but I'm too lazy to confirm.
4189- $ functionCall = self ::$ controlFunctions [$ functionName ]['functionCall ' ];
4190- self ::doNothing ($ functionCall );
41914187 } elseif (isset (self ::$ phpSpreadsheetFunctions [$ functionName ])) {
41924188 $ expectedArgumentCount = self ::$ phpSpreadsheetFunctions [$ functionName ]['argumentCount ' ];
4193- $ functionCall = self ::$ phpSpreadsheetFunctions [$ functionName ]['functionCall ' ];
4194- self ::doNothing ($ functionCall );
41954189 } else { // did we somehow push a non-function on the stack? this should never happen
41964190 return $ this ->raiseFormulaError ('Formula Error: Internal error, non-function on stack ' );
41974191 }
@@ -4212,7 +4206,6 @@ private function internalParseFormula($formula, ?Cell $cell = null): bool|array
42124206 }
42134207 } elseif ($ expectedArgumentCount != '* ' ) {
42144208 $ isOperandOrFunction = preg_match ('/(\d*)([-+,])(\d*)/ ' , $ expectedArgumentCount , $ argMatch );
4215- self ::doNothing ($ isOperandOrFunction );
42164209 switch ($ argMatch [2 ] ?? '' ) {
42174210 case '+ ' :
42184211 if ($ argumentCount < $ argMatch [1 ]) {
@@ -5717,11 +5710,6 @@ public function getSuppressFormulaErrors(): bool
57175710 return $ this ->suppressFormulaErrorsNew ;
57185711 }
57195712
5720- private static function doNothing (mixed $ arg ): bool
5721- {
5722- return (bool ) $ arg ;
5723- }
5724-
57255713 /**
57265714 * @return mixed
57275715 */
0 commit comments