Code Duplication    Length = 5-7 lines in 2 locations

src/storage/Repository.php 2 locations

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