Skip to content

[Insight] Code should not be duplicated - in src/Bundle/…/Source/JWEBuilder.php, line 53 #34

@Spomky

Description

@Spomky

in src/Bundle/Encryption/DependencyInjection/Source/JWEBuilder.php, line 53

The next 51 lines appear both in src/Bundle/Encryption/DependencyInjection/Source/JWEBuilder.php:53 and src/Bundle/Encryption/DependencyInjection/Source/JWEDecrypter.php:53.

                    $itemConfig['key_encryption_algorithms'],
                    $itemConfig['content_encryption_algorithms'],
                    $itemConfig['compression_methods'],
                ])
                ->addTag('jose.jwe_builder')
                ->setPublic($itemConfig['is_public']);

            $container->setDefinition($service_id, $definition);
        }
    }

Posted from SensioLabsInsight

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions