Code Duplication    Length = 20-20 lines in 2 locations

eZ/Publish/Core/Repository/Values/User/User.php 1 location

@@ 167-186 (lines=20) @@
164
     *
165
     * @return bool
166
     */
167
    public function __isset($property)
168
    {
169
        if ($property === 'contentInfo') {
170
            return true;
171
        }
172
173
        if ($property === 'id') {
174
            return true;
175
        }
176
177
        if ($property === 'versionInfo') {
178
            return true;
179
        }
180
181
        if ($property === 'fields') {
182
            return true;
183
        }
184
185
        return parent::__isset($property);
186
    }
187
}
188

eZ/Publish/Core/Repository/Values/User/UserGroup.php 1 location

@@ 147-166 (lines=20) @@
144
     *
145
     * @return bool
146
     */
147
    public function __isset($property)
148
    {
149
        if ($property === 'contentInfo') {
150
            return true;
151
        }
152
153
        if ($property === 'id') {
154
            return true;
155
        }
156
157
        if ($property === 'versionInfo') {
158
            return true;
159
        }
160
161
        if ($property === 'fields') {
162
            return true;
163
        }
164
165
        return parent::__isset($property);
166
    }
167
}
168