Commit 5069d99c authored by Ad Schellevis's avatar Ad Schellevis

(config) performance, parse by reference to isArraySequential(), reduces object creation

parent 7d9ae367
......@@ -70,12 +70,12 @@ class Config extends Singleton
/**
* check if array is a sequential type.
* @param $arrayData array structure to check
* @param &array $arrayData array structure to check
* @return bool
*/
private function isArraySequential($arrayData)
private function isArraySequential(&$arrayData)
{
foreach ($arrayData as $key => $value) {
foreach ($arrayData as $key => &$value) {
if (!ctype_digit(strval($key))) {
return false;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment