From ef3d7479060c6f123eee5d24facf00dfe6e1eff7 Mon Sep 17 00:00:00 2001 From: Junior Grossi Date: Sat, 31 Oct 2020 21:06:58 +0000 Subject: [PATCH] Apply fixes from StyleCI --- src/Field/BasicField.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Field/BasicField.php b/src/Field/BasicField.php index bae10ae..b1b12d4 100644 --- a/src/Field/BasicField.php +++ b/src/Field/BasicField.php @@ -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)) {