Skip to content

Commit c310e1d

Browse files
authored
Update variable & syntax
1 parent d7d6007 commit c310e1d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/CacheManager.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ public function __call($method, $parameters)
2020
$tags = [config('tenancy.cache.tag_base') . tenant()->getTenantKey()];
2121

2222
if ($method === 'tags') {
23-
$parameter_count = count($parameters);
23+
$count = count($parameters);
2424

25-
if ($parameter_count !== 1) {
26-
throw new \Exception("Method tags() takes exactly 1 argument. {$parameter_count} passed.");
25+
if ($count !== 1) {
26+
throw new \Exception("Method tags() takes exactly 1 argument. $count passed.");
2727
}
2828

2929
$names = $parameters[0];

0 commit comments

Comments
 (0)