Code Duplication    Length = 7-7 lines in 2 locations

src/Flat/Document/Document.php 2 locations

@@ 49-55 (lines=7) @@
46
47
        $attributes = $this->attributes;
48
49
        foreach (explode('.', $name) as $key) {
50
            if (is_array($attributes) && array_key_exists($key, $attributes)) {
51
                $attributes = $attributes[$key];
52
            } else {
53
                return;
54
            }
55
        }
56
57
        return $attributes;
58
    }
@@ 75-81 (lines=7) @@
72
73
        $attributes = $this->attributes;
74
75
        foreach (explode('.', $name) as $key) {
76
            if (is_array($attributes) && array_key_exists($key, $attributes)) {
77
                $attributes = $attributes[$key];
78
            } else {
79
                return false;
80
            }
81
        }
82
83
        return true;
84
    }