Skip to content

Commit

Permalink
added comment to a new function
Browse files Browse the repository at this point in the history
  • Loading branch information
Nostrabramus committed Dec 28, 2018
1 parent 673ac56 commit dc852bc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Classes/Module/Statistics.php
Original file line number Diff line number Diff line change
Expand Up @@ -2018,6 +2018,11 @@ protected function getLanguageService()
}


/**
* Switch the key of an array
*
* @return $array
*/
private function changekeyname($array, $newkey, $oldkey)
{
foreach ($array as $key => $value)
Expand All @@ -2028,7 +2033,6 @@ private function changekeyname($array, $newkey, $oldkey)
{
$array[$newkey] = $array[$oldkey];
}

}
unset($array[$oldkey]);
return $array;
Expand Down

0 comments on commit dc852bc

Please sign in to comment.