Code Duplication    Length = 8-8 lines in 2 locations

src/Surfnet/Stepup/Configuration/Value/ContactInformation.php 1 location

@@ 34-41 (lines=8) @@
31
    /**
32
     * @param string $contactInformation
33
     */
34
    public function __construct($contactInformation)
35
    {
36
        if (!is_string($contactInformation)) {
37
            throw InvalidArgumentException::invalidType('string', 'contactInformation', $contactInformation);
38
        }
39
40
        $this->contactInformation = trim($contactInformation);
41
    }
42
43
    /**
44
     * @param ContactInformation $otherContactInformation

src/Surfnet/Stepup/Identity/Value/ContactInformation.php 1 location

@@ 34-41 (lines=8) @@
31
    /**
32
     * @param string $contactInformation
33
     */
34
    public function __construct($contactInformation)
35
    {
36
        if (!is_string($contactInformation)) {
37
            throw InvalidArgumentException::invalidType('string', 'contactInformation', $contactInformation);
38
        }
39
40
        $this->contactInformation = trim($contactInformation);
41
    }
42
43
    /**
44
     * @param ContactInformation $otherContactInformation