Code Duplication    Length = 3-3 lines in 2 locations

DependencyInjection/JMSSerializerExtension.php 2 locations

@@ 173-175 (lines=3) @@
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
            }
176
            if (!empty($config['default_context'][$configKey]['groups'])) {
177
                $contextFactory->addMethodCall('setGroups', [$config['default_context'][$configKey]['groups']]);
178
            }
@@ 176-178 (lines=3) @@
173
            if (!empty($config['default_context'][$configKey]['attributes'])) {
174
                $contextFactory->addMethodCall('setAttributes', [$config['default_context'][$configKey]['attributes']]);
175
            }
176
            if (!empty($config['default_context'][$configKey]['groups'])) {
177
                $contextFactory->addMethodCall('setGroups', [$config['default_context'][$configKey]['groups']]);
178
            }
179
            if (!empty($config['default_context'][$configKey]['enable_max_depth_checks'])) {
180
                $contextFactory->addMethodCall('enableMaxDepthChecks');
181
            }