Code Duplication    Length = 9-9 lines in 2 locations

src/Arrayy.php 2 locations

@@ 675-683 (lines=9) @@
672
   *
673
   * @return $this This Arrayy object with pushed elements to the end of array.
674
   */
675
  public function push(/* variadic arguments allowed */)
676
  {
677
    if (func_num_args()) {
678
      $args = array_merge(array(&$this->array), func_get_args());
679
      call_user_func_array('array_push', $args);
680
    }
681
682
    return $this;
683
  }
684
685
  /**
686
   * Shifts a specified value off the beginning of array.
@@ 700-708 (lines=9) @@
697
   *
698
   * @return $this This Arrayy object with prepended elements to the beginning of array.
699
   */
700
  public function unshift(/* variadic arguments allowed */)
701
  {
702
    if (func_num_args()) {
703
      $args = array_merge(array(&$this->array), func_get_args());
704
      call_user_func_array('array_unshift', $args);
705
    }
706
707
    return $this;
708
  }
709
710
  /**
711
   * Get a value by key.