1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-10 15:14:20 +02:00

feat(tests): update tests for endpoints #477

This commit is contained in:
Awilum
2020-11-22 17:47:55 +03:00
parent 3fe5c7f0e9
commit 0687b8913c

View File

@@ -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