From 0687b8913c45406abf1a5c268fc1d25178f8b8e5 Mon Sep 17 00:00:00 2001 From: Awilum Date: Sun, 22 Nov 2020 17:47:55 +0300 Subject: [PATCH] feat(tests): update tests for endpoints #477 --- src/flextype/Endpoints/registry.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/flextype/Endpoints/registry.php b/src/flextype/Endpoints/registry.php index 22f8c33d..d01b2b91 100644 --- a/src/flextype/Endpoints/registry.php +++ b/src/flextype/Endpoints/registry.php @@ -75,8 +75,7 @@ flextype()->get('/api/registry', function (Request $request, Response $response) // Update calls counter flextype('filesystem')->file($registry_token_file_path) - ->put(flextype('yaml') - ->encode(array_replace_recursive($registry_token_file_data, ['calls' => $registry_token_file_data['calls'] + 1])); + ->put(flextype('yaml')->encode(array_replace_recursive($registry_token_file_data, ['calls' => $registry_token_file_data['calls'] + 1]))); if ($response_code === 404) { // Return response