Code Duplication    Length = 8-8 lines in 2 locations

src/JArray/Javascript.php 2 locations

@@ 398-405 (lines=8) @@
395
     *
396
     * @return static
397
     */
398
    public function splice()
399
    {
400
        $array = $this->getArrayCopy();
401
        call_user_func_array('array_splice', array_merge([&$array], func_get_args()));
402
        $this->exchangeArray($array);
403
404
        return $this;
405
    }
406
407
    public function toLocaleString()
408
    {
@@ 436-443 (lines=8) @@
433
     *
434
     * @return static
435
     */
436
    public function unshift()
437
    {
438
        $array = $this->getArrayCopy();
439
        call_user_func_array('array_unshift', array_merge([&$array], func_get_args()));
440
        $this->exchangeArray($array);
441
442
        return $this;
443
    }
444
445
    /**
446
     * The values() method returns a new Array Iterator object that contains the values for each index in the array.