Code Duplication    Length = 5-7 lines in 2 locations

cloudcontrol/library/storage/Repository.php 2 locations

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