Adressed PR comment's

This commit is contained in:
Nicolas Le Goff
2013-05-13 09:52:23 +02:00
committed by Romain Neutron
parent 18b7f6d65a
commit 8a59f0070d
11 changed files with 147 additions and 162 deletions

View File

@@ -146,7 +146,7 @@ class Fields implements ControllerProviderInterface
continue;
}
$res[$tagname] = array(
$res[] = array(
'id' => $namespace . '/' . $tagname,
'label' => $datas['namespace'] . ' / ' . $datas['tagname'],
'value' => $datas['namespace'] . ':' . $datas['tagname'],
@@ -155,8 +155,6 @@ class Fields implements ControllerProviderInterface
}
}
ksort($res);
return $app->json($res);
}