mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2026-10-30 17:22:08 +00:00
Reduced return type to entity interface
This commit is contained in:
1 parent
656adef39b
commit
93606503f6
5 files changed
+8
-8
No files matched your search
@@ -32,8 +32,6 @@ final class MVCRoutineService implements MVCRoutineServiceInterface
|
||||
switch (gettype($result)) {
|
||||
case 'object':
|
||||
return ['entity' => $result];
|
||||
case 'array':
|
||||
return ['entities' => $result];
|
||||
case 'null':
|
||||
return [];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user