Code Duplication    Length = 3-3 lines in 2 locations

DependencyInjection/JMSSerializerExtension.php 2 locations

@@ 190-192 (lines=3) @@
187
                continue;
188
            }
189
190
            if (isset($config['default_context'][$configKey]['version'])) {
191
                $contextFactory->addMethodCall('setVersion', [$config['default_context'][$configKey]['version']]);
192
            }
193
            if (isset($config['default_context'][$configKey]['serialize_null'])) {
194
                $contextFactory->addMethodCall('setSerializeNulls', [$config['default_context'][$configKey]['serialize_null']]);
195
            }
@@ 193-195 (lines=3) @@
190
            if (isset($config['default_context'][$configKey]['version'])) {
191
                $contextFactory->addMethodCall('setVersion', [$config['default_context'][$configKey]['version']]);
192
            }
193
            if (isset($config['default_context'][$configKey]['serialize_null'])) {
194
                $contextFactory->addMethodCall('setSerializeNulls', [$config['default_context'][$configKey]['serialize_null']]);
195
            }
196
            if (!empty($config['default_context'][$configKey]['attributes'])) {
197
                $contextFactory->addMethodCall('setAttributes', [$config['default_context'][$configKey]['attributes']]);
198
            }