Removed unused variables.

This commit is contained in:
Jan Böhmer 2020-03-29 22:37:27 +02:00
parent 3671c94844
commit 0fe83c7b3a
18 changed files with 14 additions and 29 deletions

View file

@ -383,7 +383,7 @@ class EntityURLGenerator
//Check if we have an direct mapping for the given class
if (! array_key_exists($class, $map)) {
//Check if we need to check inheritance by looping through our map
foreach ($map as $key => $value) {
foreach (array_keys($map) as $key) {
if (is_a($entity, $key)) {
return $map[$key];
}