Code Duplication    Length = 8-8 lines in 2 locations

src/Core/Model/Customer/MyCustomerDraft.php 1 location

@@ 85-92 (lines=8) @@
82
     * @param Context|callable $context
83
     * @return MyCustomerDraft
84
     */
85
    public static function ofEmailNameAndPassword($email, $firstName, $lastName, $password, $context = null)
86
    {
87
        $draft = static::of($context);
88
        return $draft->setEmail($email)
89
            ->setFirstName($firstName)
90
            ->setLastName($lastName)
91
            ->setPassword($password);
92
    }
93
}
94

src/Core/Model/Customer/CustomerDraft.php 1 location

@@ 115-122 (lines=8) @@
112
     * @param Context|callable $context
113
     * @return CustomerDraft
114
     */
115
    public static function ofEmailNameAndPassword($email, $firstName, $lastName, $password, $context = null)
116
    {
117
        $draft = static::of($context);
118
        return $draft->setEmail($email)
119
            ->setFirstName($firstName)
120
            ->setLastName($lastName)
121
            ->setPassword($password);
122
    }
123
}
124