[TASK] Improve result handling for apis

This commit is contained in:
Philipp Dieter
2021-11-05 14:23:39 +01:00
parent f427ab7cd6
commit cf387b1af7
2 changed files with 18 additions and 4 deletions

View File

@@ -21,8 +21,7 @@ trait FormatResultTrait
/**
*
*/
public function formatResult()
{
public function formatResult($result) {
if ($result == null) {
$result = [];
}