Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Dec 23, 2019
1 parent 265e01b commit 025f953
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/Tags.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,12 +121,17 @@ public static function modelsFor(array $targets)
return collect($models)->collapse()->unique();
}

/**
* Get the value of the given ReflectionProperty.
*
* @param \ReflectionProperty $property
* @param mixed $target
*/
protected static function getValue(ReflectionProperty $property, $target)
{
if (method_exists($property, 'isInitialized')) {
if (! $property->isInitialized($target)) {
return;
}
if (method_exists($property, 'isInitialized') &&
! $property->isInitialized($target)) {
return;
}

return $property->getValue($target);
Expand Down

0 comments on commit 025f953

Please sign in to comment.