Code Duplication    Length = 7-9 lines in 2 locations

src/SmsManager.php 2 locations

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