Code Duplication    Length = 5-7 lines in 2 locations

src/storage/Repository.php 2 locations

@@ 117-121 (lines=5) @@
114
    public function __get($name)
115
    {
116
        if (isset($this->$name)) {
117
            if (in_array($name, $this->fileBasedSubsets)) {
118
                return $this->$name;
119
            } else {
120
                throw new \Exception('Trying to get undefined property from Repository: ' . $name);
121
            }
122
        } else {
123
            if (in_array($name, $this->fileBasedSubsets)) {
124
                return $this->loadSubset($name);
@@ 122-128 (lines=7) @@
119
            } else {
120
                throw new \Exception('Trying to get undefined property from Repository: ' . $name);
121
            }
122
        } else {
123
            if (in_array($name, $this->fileBasedSubsets)) {
124
                return $this->loadSubset($name);
125
            } else {
126
                throw new \Exception('Trying to get undefined property from Repository: ' . $name);
127
            }
128
        }
129
    }
130
131
    /**