From 6a4fee641d405b5a3e800f293110cf65b492b623 Mon Sep 17 00:00:00 2001 From: shimon Date: Thu, 11 Aug 2022 12:04:05 +0300 Subject: [PATCH] clean --- app/controllers/shared/api.php | 8 ++++---- composer.lock | 12 ++++++------ 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/app/controllers/shared/api.php b/app/controllers/shared/api.php index 15b7d83e55..42f9866fc2 100644 --- a/app/controllers/shared/api.php +++ b/app/controllers/shared/api.php @@ -277,7 +277,7 @@ App::shutdown() $parts = explode('.', $match); if(count($parts) !== 2){ - return ''; + throw new Exception('Too less or more parts', 400, Exception::GENERAL_ARGUMENT_INVALID); } $namespace = $parts[0]; @@ -296,10 +296,10 @@ App::shutdown() return $label; }; - $auditsResource = $route->getLabel('audits.resource',null); - if(!empty($auditsResource)) { + $auditsResource = $route->getLabel('audits.resource', null); + if (!empty($auditsResource)) { $resource = $parseLabel($auditsResource); - if(!empty($resource) && $resource !== $auditsResource) { + if (!empty($resource) && $resource !== $auditsResource) { $audits->setResource($resource); } } diff --git a/composer.lock b/composer.lock index 93b8455cac..6ae877fd15 100644 --- a/composer.lock +++ b/composer.lock @@ -1894,16 +1894,16 @@ }, { "name": "utopia-php/cache", - "version": "0.6.0", + "version": "0.6.1", "source": { "type": "git", "url": "https://github.com/utopia-php/cache.git", - "reference": "8ea1353a4bbab617e23c865a7c97b60d8074aee3" + "reference": "9889235a6d3da6cbb1f435201529da4d27c30e79" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/cache/zipball/8ea1353a4bbab617e23c865a7c97b60d8074aee3", - "reference": "8ea1353a4bbab617e23c865a7c97b60d8074aee3", + "url": "https://api.github.com/repos/utopia-php/cache/zipball/9889235a6d3da6cbb1f435201529da4d27c30e79", + "reference": "9889235a6d3da6cbb1f435201529da4d27c30e79", "shasum": "" }, "require": { @@ -1941,9 +1941,9 @@ ], "support": { "issues": "https://github.com/utopia-php/cache/issues", - "source": "https://github.com/utopia-php/cache/tree/0.6.0" + "source": "https://github.com/utopia-php/cache/tree/0.6.1" }, - "time": "2022-04-04T12:30:05+00:00" + "time": "2022-08-10T08:12:46+00:00" }, { "name": "utopia-php/cli",