Permalink
Browse files

nitpicks

  • Loading branch information...
1 parent 4f6e02a commit 77bfc78eb4c5dcf6a3c673aad5d8e23d9a07aa24 @freekmurze freekmurze committed Feb 4, 2017
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/ActivitylogServiceProvider.php
  2. +1 −1 src/Traits/DetectsChanges.php
@@ -43,7 +43,7 @@ public function register()
public static function determineActivityModel(): string
{
- $activityModel = config('laravel-activitylog.activity_model') != null ?
+ $activityModel = config('laravel-activitylog.activity_model') !== null ?
config('laravel-activitylog.activity_model') :
Activity::class;
@@ -62,7 +62,7 @@ function ($attribute) use ($model) {
)->toArray();
}
- protected static function getRelatedModelAttributeValue($model, $attribute): array
+ protected static function getRelatedModelAttributeValue(Model $model, string $attribute): array
{
if (substr_count($attribute, '.') > 1) {
throw CouldNotLogChanges::invalidAttribute($attribute);

0 comments on commit 77bfc78

Please sign in to comment.