1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-08-01 17:38:38 +00:00

Fix some Scrutinizer issues

This commit is contained in:
Jeremy Benoist 2019-05-29 12:00:23 +02:00
parent e9579d6de9
commit 52e8d93248
No known key found for this signature in database
GPG key ID: BCA73962457ACC3C
5 changed files with 7 additions and 7 deletions

View file

@ -45,7 +45,7 @@ class UserRestController extends WallabagRestController
*/
public function putUserAction(Request $request)
{
if (!$this->getParameter('fosuser_registration') || !$this->get('craue_config')->get('api_user_registration')) {
if (!$this->container->getParameter('fosuser_registration') || !$this->get('craue_config')->get('api_user_registration')) {
$json = $this->get('jms_serializer')->serialize(['error' => "Server doesn't allow registrations"], 'json');
return (new JsonResponse())