Code Duplication    Length = 20-20 lines in 2 locations

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

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

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

@@ 155-174 (lines=20) @@
152
     *
153
     * @return bool
154
     */
155
    public function __isset($property)
156
    {
157
        if ($property === 'contentInfo') {
158
            return true;
159
        }
160
161
        if ($property === 'id') {
162
            return true;
163
        }
164
165
        if ($property === 'versionInfo') {
166
            return true;
167
        }
168
169
        if ($property === 'fields') {
170
            return true;
171
        }
172
173
        return parent::__isset($property);
174
    }
175
}
176