Skip to content

Commit

Permalink
better naming
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Baettig committed Oct 7, 2019
1 parent c6d6428 commit 69b2c67
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Models/Subscription.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
* @property mixed refunded_at
* @property mixed renewed_at
* @property mixed created_at
* @property array usage_stats
* @property array feature_usage_stats
* @property array feature_authorizations
* @property int remaining_days
*
Expand Down Expand Up @@ -465,7 +465,7 @@ public function hasAvailable(string $featureCode, int $amount): bool
/** @throws FeatureNotFoundException
* @throws FeatureException
*/
public function getUsageStatsAttribute(): array
public function getFeatureUsageStatsAttribute(): array
{
$usageStats = [];
/** @var Feature\ $feature */
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/SubscriptionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ public function it_know_its_feature_usage_stats(): void
'type' => 'unlimited',
'usage' => 0,
]
], $subscription->usageStats);
], $subscription->featureUsageStats);
}

/** @test */
Expand Down

0 comments on commit 69b2c67

Please sign in to comment.