Code Duplication    Length = 3-3 lines in 2 locations

src/Campfire.php 1 location

@@ 31-33 (lines=3) @@
28
29
    protected static function notify($status, $title, $message)
30
    {
31
        if (self::$prefix !== null) {
32
            $title = '[' . self::$prefix . '] ' . $title;
33
        }
34
35
        if (isset(self::$icons[$status])) {
36
            $message .= ' ' . self::$icons[$status];

src/Slack.php 1 location

@@ 50-52 (lines=3) @@
47
        }
48
49
        // If there's a prefix, prepend it to the title of the message
50
        if (self::$prefix !== null) {
51
            $title = '[' . self::$prefix . '] ' . $title;
52
        }
53
54
        // Fire up the Slack Client with the given webhook url and settings
55
        $client = new \Maknz\Slack\Client(self::$url, self::$settings);