Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
jgrossi authored and StyleCIBot committed Oct 31, 2020
1 parent a96ed6a commit ef3d747
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Field/BasicField.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ public function __construct(Model $post)
public function fetchValue($field)
{
$postMeta = $this->postMeta->where(
$this->getKeyName(), $this->post->getKey()
$this->getKeyName(),
$this->post->getKey()
)->where('meta_key', $field)->first();

if (isset($postMeta->meta_value) and ! is_null($postMeta->meta_value)) {
Expand Down

0 comments on commit ef3d747

Please sign in to comment.