Code Duplication    Length = 7-9 lines in 2 locations

src/SmsManager.php 2 locations

@@ 63-71 (lines=9) @@
60
     * @return $this
61
     * @throws \Exception
62
     */
63
    public function via($driver)
64
    {
65
        $this->driver = $driver;
66
        $this->validateDriver();
67
        $this->builder->via($driver);
68
        $this->settings = $this->config['drivers'][$driver];
69
70
        return $this;
71
    }
72
73
    /**
74
     * Send message.
@@ 131-137 (lines=7) @@
128
     *
129
     * @return mixed
130
     */
131
    protected function getDriverInstance()
132
    {
133
        $this->validateDriver();
134
        $class = $this->config['map'][$this->driver];
135
136
        return new $class($this->settings);
137
    }
138
139
    /**
140
     * Validate Parameters before sending.