Code Duplication    Length = 7-7 lines in 2 locations

src/Service/CfpFactory.php 2 locations

@@ 91-97 (lines=7) @@
88
        $cfp->setName(filter_var($array['name'], FILTER_SANITIZE_STRING));
89
    }
90
91
    public static function setDateCfpStart(Cfp $cfp, array $array)
92
    {
93
        if (! isset($array['dateCfpStart'])) {
94
            throw new \InvalidArgumentException('CFP-StartDate has to be specified');
95
        }
96
        $cfp->setDateCfpStart(new DateTimeImmutable($array['dateCfpStart']));
97
    }
98
99
    public static function setDateCfpEnd(Cfp $cfp, array $array)
100
    {
@@ 99-105 (lines=7) @@
96
        $cfp->setDateCfpStart(new DateTimeImmutable($array['dateCfpStart']));
97
    }
98
99
    public static function setDateCfpEnd(Cfp $cfp, array $array)
100
    {
101
        if (! isset($array['dateCfpEnd'])) {
102
            throw new \InvalidArgumentException('CFP-EndDate has to be specified');
103
        }
104
        $cfp->setDateCfpEnd(new DateTimeImmutable($array['dateCfpEnd']));
105
    }
106
107
    public static function setTimezone(Cfp $cfp, array $array)
108
    {