Skip to content

Commit

Permalink
Update variable & syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
stancl authored Sep 14, 2021
1 parent d7d6007 commit c310e1d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/CacheManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ public function __call($method, $parameters)
$tags = [config('tenancy.cache.tag_base') . tenant()->getTenantKey()];

if ($method === 'tags') {
$parameter_count = count($parameters);
$count = count($parameters);

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

$names = $parameters[0];
Expand Down

0 comments on commit c310e1d

Please sign in to comment.