Code Duplication    Length = 10-10 lines in 2 locations

src/Surfnet/StepupGateway/U2fVerificationBundle/Console/Command/MigrationsDiffDoctrineCommand.php 1 location

@@ 40-49 (lines=10) @@
37
    /**
38
     * @param string|null $entityManagerName
39
     */
40
    public function __construct($entityManagerName = null)
41
    {
42
        parent::__construct();
43
44
        if (!is_string($entityManagerName) && $entityManagerName !== null) {
45
            throw InvalidArgumentException::invalidType('string|null', 'entityManagerName', $entityManagerName);
46
        }
47
48
        $this->entityManagerName = $entityManagerName;
49
    }
50
51
    protected function configure()
52
    {

src/Surfnet/StepupGateway/U2fVerificationBundle/Console/Command/MigrationsMigrateDoctrineCommand.php 1 location

@@ 37-46 (lines=10) @@
34
    /**
35
     * @param string|null $entityManagerName
36
     */
37
    public function __construct($entityManagerName = null)
38
    {
39
        parent::__construct();
40
41
        if (!is_string($entityManagerName) && $entityManagerName !== null) {
42
            throw InvalidArgumentException::invalidType('string|null', 'entityManagerName', $entityManagerName);
43
        }
44
45
        $this->entityManagerName = $entityManagerName;
46
    }
47
48
    protected function configure()
49
    {