Code Duplication    Length = 7-7 lines in 2 locations

src/Mouf/Database/TDBM/WeakrefObjectStorage.php 2 locations

@@ 78-84 (lines=7) @@
75
     */
76
    public function has($tableName, $id)
77
    {
78
        if (isset($this->objects[$tableName][$id])) {
79
            if ($this->objects[$tableName][$id]->valid()) {
80
                return true;
81
            } else {
82
                unset($this->objects[$tableName][$id]);
83
            }
84
        }
85
86
        return false;
87
    }
@@ 99-105 (lines=7) @@
96
     */
97
    public function get($tableName, $id)
98
    {
99
        if (isset($this->objects[$tableName][$id])) {
100
            if ($this->objects[$tableName][$id]->valid()) {
101
                return $this->objects[$tableName][$id]->get();
102
            }
103
        } else {
104
            return;
105
        }
106
    }
107
108
    /**