1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 18:34:04 +00:00

Update variable & syntax

This commit is contained in:
Samuel Štancl 2021-09-14 22:14:51 +02:00 committed by GitHub
parent d7d6007c7f
commit c310e1df40
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,10 +20,10 @@ class CacheManager extends BaseCacheManager
$tags = [config('tenancy.cache.tag_base') . tenant()->getTenantKey()]; $tags = [config('tenancy.cache.tag_base') . tenant()->getTenantKey()];
if ($method === 'tags') { if ($method === 'tags') {
$parameter_count = count($parameters); $count = count($parameters);
if ($parameter_count !== 1) { if ($count !== 1) {
throw new \Exception("Method tags() takes exactly 1 argument. {$parameter_count} passed."); throw new \Exception("Method tags() takes exactly 1 argument. $count passed.");
} }
$names = $parameters[0]; $names = $parameters[0];