Code Duplication    Length = 8-8 lines in 2 locations

mailers/ReservationAdminMailer.php 1 location

@@ 46-53 (lines=8) @@
43
            return;
44
        }
45
46
        Mail::send($template, $templateParameters, function($message) use ($recipients)
47
        {
48
            $message->to($recipients['email'], $recipients['name']);
49
50
            if (!empty($recipients['bcc_email']) && !empty($recipients['bcc_name'])) {
51
                $message->bcc($recipients['bcc_email'], $recipients['bcc_name']);
52
            }
53
        });
54
    }
55
}
56

mailers/ReservationMailer.php 1 location

@@ 38-45 (lines=8) @@
35
            return;
36
        }
37
38
        Mail::send($template, $templateParameters, function($message) use ($recipients)
39
        {
40
            $message->to($recipients['email'], $recipients['name']);
41
42
            if (!empty($recipients['bcc_email']) && !empty($recipients['bcc_name'])) {
43
                $message->bcc($recipients['bcc_email'], $recipients['bcc_name']);
44
            }
45
        });
46
    }
47
}
48