* {"name"="username", "dataType"="string", "required"=true, "description"="username"}
* }
* )
- * @return string
+ * @return array
*/
public function getSaltAction($username)
{
throw $this->createNotFoundException();
}
- return $user->getSalt();
+ return array($user->getSalt() ?: null);
}
/**
* Retrieve all entries. It could be filtered by many options.
->getRepository('WallabagCoreBundle:Entry')
->findEntries($this->getUser()->getId(), $isArchived, $isStarred, $isDeleted, $sort, $order);
- if (!is_array($entries)) {
+ if (!($entries)) {
throw $this->createNotFoundException();
}