Code Duplication    Length = 8-8 lines in 2 locations

src/Service/CfpFactory.php 2 locations

@@ 115-122 (lines=8) @@
112
        $cfp->setTimezone(filter_var($array['timezone'], FILTER_SANITIZE_STRING));
113
    }
114
115
    public static function setUri(Cfp $cfp, array $array)
116
    {
117
        if (! isset($array['uri'])) {
118
            throw new \InvalidArgumentException('URI has to be specified');
119
        }
120
121
        $cfp->setUri(filter_var($array['uri'], FILTER_VALIDATE_URL));
122
    }
123
124
    public static function setEventUri(Cfp $cfp, array $array)
125
    {
@@ 124-131 (lines=8) @@
121
        $cfp->setUri(filter_var($array['uri'], FILTER_VALIDATE_URL));
122
    }
123
124
    public static function setEventUri(Cfp $cfp, array $array)
125
    {
126
        if (! isset($array['eventUri'])) {
127
            throw new \InvalidArgumentException('Event-URI has to be specified');
128
        }
129
130
        $cfp->setEventUri(filter_var($array['eventUri'], FILTER_VALIDATE_URL));
131
    }
132
133
    public static function setDateEventStart(Cfp $cfp, array $array)
134
    {