Code Duplication    Length = 3-3 lines in 2 locations

DependencyInjection/JMSSerializerExtension.php 2 locations

@@ 167-169 (lines=3) @@
164
                continue;
165
            }
166
167
            if (isset($config['default_context'][$configKey]['version'])) {
168
                $contextFactory->addMethodCall('setVersion', [$config['default_context'][$configKey]['version']]);
169
            }
170
            if (isset($config['default_context'][$configKey]['serialize_null'])) {
171
                $contextFactory->addMethodCall('setSerializeNulls', [$config['default_context'][$configKey]['serialize_null']]);
172
            }
@@ 170-172 (lines=3) @@
167
            if (isset($config['default_context'][$configKey]['version'])) {
168
                $contextFactory->addMethodCall('setVersion', [$config['default_context'][$configKey]['version']]);
169
            }
170
            if (isset($config['default_context'][$configKey]['serialize_null'])) {
171
                $contextFactory->addMethodCall('setSerializeNulls', [$config['default_context'][$configKey]['serialize_null']]);
172
            }
173
            if (!empty($config['default_context'][$configKey]['attributes'])) {
174
                $contextFactory->addMethodCall('setAttributes', [$config['default_context'][$configKey]['attributes']]);
175
            }