Code Duplication    Length = 4-4 lines in 2 locations

vendor/cakephp/cakephp/src/Network/Request.php 2 locations

@@ 1154-1157 (lines=4) @@
1151
    public function data($name = null)
1152
    {
1153
        $args = func_get_args();
1154
        if (count($args) === 2) {
1155
            $this->data = Hash::insert($this->data, $name, $args[1]);
1156
            return $this;
1157
        }
1158
        if ($name !== null) {
1159
            return Hash::get($this->data, $name);
1160
        }
@@ 1174-1177 (lines=4) @@
1171
    public function param($name)
1172
    {
1173
        $args = func_get_args();
1174
        if (count($args) === 2) {
1175
            $this->params = Hash::insert($this->params, $name, $args[1]);
1176
            return $this;
1177
        }
1178
        if (!isset($this->params[$name])) {
1179
            return Hash::get($this->params, $name, false);
1180
        }