Code Duplication    Length = 8-8 lines in 2 locations

src/phpsms/agents/Agent.php 2 locations

@@ 64-71 (lines=8) @@
61
     *
62
     * @return mixed
63
     */
64
    public function config($key = null, $value = null, $override = false)
65
    {
66
        if (is_array($key) && is_bool($value)) {
67
            $override = $value;
68
        }
69
70
        return Util::operateArray($this->config, $key, $value, null, null, $override);
71
    }
72
73
    /**
74
     * Get or set the custom params.
@@ 82-89 (lines=8) @@
79
     *
80
     * @return mixed
81
     */
82
    public function params($key = null, $value = null, $override = false)
83
    {
84
        if (is_array($key) && is_bool($value)) {
85
            $override = $value;
86
        }
87
88
        return Util::operateArray($this->params, $key, $value, null, null, $override);
89
    }
90
91
    /**
92
     * SMS send process.