Code Duplication    Length = 9-9 lines in 2 locations

src/Arrayy.php 2 locations

@@ 691-699 (lines=9) @@
688
   *
689
   * @return $this Return this Arrayy object, with pushed elements to the end of array.
690
   */
691
  public function push(/* variadic arguments allowed */)
692
  {
693
    if (func_num_args()) {
694
      $args = array_merge(array(&$this->array), func_get_args());
695
      call_user_func_array('array_push', $args);
696
    }
697
698
    return $this;
699
  }
700
701
  /**
702
   * Shifts a specified value off the beginning of array.
@@ 716-724 (lines=9) @@
713
   *
714
   * @return $this Return this Arrayy object, with prepended elements to the beginning of array.
715
   */
716
  public function unshift(/* variadic arguments allowed */)
717
  {
718
    if (func_num_args()) {
719
      $args = array_merge(array(&$this->array), func_get_args());
720
      call_user_func_array('array_unshift', $args);
721
    }
722
723
    return $this;
724
  }
725
726
  /**
727
   * Get a value by key.