Code Duplication    Length = 10-10 lines in 2 locations

src/Mapping/StatementObject.php 2 locations

@@ 233-242 (lines=10) @@
230
        if (null !== $definition = $model->getDefinition()) {
231
            $object->hasActivityDefinition = true;
232
233
            if (null !== $name = $definition->getName()) {
234
                $object->hasActivityName = true;
235
                $object->activityName = array();
236
237
                foreach ($name->languageTags() as $languageTag) {
238
                    $object->activityName[$languageTag] = $name[$languageTag];
239
                }
240
            } else {
241
                $object->hasActivityName = false;
242
            }
243
244
            if (null !== $description = $definition->getDescription()) {
245
                $object->hasActivityDescription = true;
@@ 244-253 (lines=10) @@
241
                $object->hasActivityName = false;
242
            }
243
244
            if (null !== $description = $definition->getDescription()) {
245
                $object->hasActivityDescription = true;
246
                $object->activityDescription = array();
247
248
                foreach ($description->languageTags() as $languageTag) {
249
                    $object->activityDescription[$languageTag] = $description[$languageTag];
250
                }
251
            } else {
252
                $object->hasActivityDescription = false;
253
            }
254
255
            if (null !== $type = $definition->getType()) {
256
                $object->activityType = $type->getValue();