🏡 index : ~doyle/koselig.git

author Jordan Doyle <jordan.doyle@outlook.com> 2016-10-13 11:21:10.0 +00:00:00
committer Jordan Doyle <w4@users.noreply.github.com> 2016-10-13 12:21:23.0 +01:00:00
commit
37fb3abbaa7fa466ef1f099d527e8ea5aa058d2a [patch]
tree
cf38081037529ff4398a3c1502a02363fcace5f2
parent
5949dda59e8cb91235290648ac1aae34f577ff24
download
37fb3abbaa7fa466ef1f099d527e8ea5aa058d2a.tar.gz

Applied fixes from StyleCI



Diff

 src/Exceptions/UnsatisfiedDependencyException.php | 1 -
 src/Models/Meta.php                               | 7 +++++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/Exceptions/UnsatisfiedDependencyException.php b/src/Exceptions/UnsatisfiedDependencyException.php
index fa4b67c..2e8d8bd 100644
--- a/src/Exceptions/UnsatisfiedDependencyException.php
+++ a/src/Exceptions/UnsatisfiedDependencyException.php
@@ -11,5 +11,4 @@
 */
class UnsatisfiedDependencyException extends RuntimeException
{
    //
}
diff --git a/src/Models/Meta.php b/src/Models/Meta.php
index e11de6b..887f6ac 100644
--- a/src/Models/Meta.php
+++ a/src/Models/Meta.php
@@ -71,8 +71,8 @@
     *                              if you want to get the current page's meta)
     * @param string|null $name
     * @param bool $format whether to format this field or not
     * @return mixed
     * @throws UnsatisfiedDependencyException
     * @return mixed
     */
    public static function field($page = null, $name = null, $format = true)
    {
@@ -91,13 +91,14 @@

        $value = static::get($page, $name);

        if (is_serialized($value))
        if (is_serialized($value)) {
            $value = @unserialize($value);
        }

        $field = static::get($page, '_' . $name);

        if (!acf_is_field_key($field)) {
            return null;
            return;
        }

        $field = get_field_object($field, $name, false, false);