Code Duplication    Length = 9-9 lines in 2 locations

src/Arrayy.php 2 locations

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