Code Duplication    Length = 3-3 lines in 2 locations

DependencyInjection/JMSSerializerExtension.php 2 locations

@@ 179-181 (lines=3) @@
176
            if (isset($config['default_context'][$configKey]['serialize_null'])) {
177
                $contextFactory->addMethodCall('setSerializeNulls', [$config['default_context'][$configKey]['serialize_null']]);
178
            }
179
            if (!empty($config['default_context'][$configKey]['attributes'])) {
180
                $contextFactory->addMethodCall('setAttributes', [$config['default_context'][$configKey]['attributes']]);
181
            }
182
            if (!empty($config['default_context'][$configKey]['groups'])) {
183
                $contextFactory->addMethodCall('setGroups', [$config['default_context'][$configKey]['groups']]);
184
            }
@@ 182-184 (lines=3) @@
179
            if (!empty($config['default_context'][$configKey]['attributes'])) {
180
                $contextFactory->addMethodCall('setAttributes', [$config['default_context'][$configKey]['attributes']]);
181
            }
182
            if (!empty($config['default_context'][$configKey]['groups'])) {
183
                $contextFactory->addMethodCall('setGroups', [$config['default_context'][$configKey]['groups']]);
184
            }
185
            if (!empty($config['default_context'][$configKey]['enable_max_depth_checks'])) {
186
                $contextFactory->addMethodCall('enableMaxDepthChecks');
187
            }