Code Duplication    Length = 5-7 lines in 2 locations

cloudcontrol/library/storage/Repository.php 2 locations

@@ 105-109 (lines=5) @@
102
    public function __get($name)
103
    {
104
        if (isset($this->$name)) {
105
            if (in_array($name, $this->fileBasedSubsets)) {
106
                return $this->$name;
107
            } else {
108
                throw new \Exception('Trying to get undefined property from Repository: ' . $name);
109
            }
110
        } else {
111
            if (in_array($name, $this->fileBasedSubsets)) {
112
                return $this->loadSubset($name);
@@ 110-116 (lines=7) @@
107
            } else {
108
                throw new \Exception('Trying to get undefined property from Repository: ' . $name);
109
            }
110
        } else {
111
            if (in_array($name, $this->fileBasedSubsets)) {
112
                return $this->loadSubset($name);
113
            } else {
114
                throw new \Exception('Trying to get undefined property from Repository: ' . $name);
115
            }
116
        }
117
    }
118
119
    /**