Code Duplication    Length = 10-10 lines in 4 locations

src/Arrayy.php 4 locations

@@ 2842-2851 (lines=10) @@
2839
     * @return static
2840
     *                <p>(Immutable)</p>
2841
     */
2842
    public function mergeAppendKeepIndex(array $array = [], bool $recursive = false): self
2843
    {
2844
        if ($recursive === true) {
2845
            $result = \array_replace_recursive($this->getArray(), $array);
2846
        } else {
2847
            $result = \array_replace($this->getArray(), $array);
2848
        }
2849
2850
        return static::create(
2851
            $result,
2852
            $this->iteratorClass,
2853
            false
2854
        );
@@ 2869-2878 (lines=10) @@
2866
     * @return static
2867
     *                <p>(Immutable)</p>
2868
     */
2869
    public function mergeAppendNewIndex(array $array = [], bool $recursive = false): self
2870
    {
2871
        if ($recursive === true) {
2872
            $result = \array_merge_recursive($this->getArray(), $array);
2873
        } else {
2874
            $result = \array_merge($this->getArray(), $array);
2875
        }
2876
2877
        return static::create(
2878
            $result,
2879
            $this->iteratorClass,
2880
            false
2881
        );
@@ 2895-2904 (lines=10) @@
2892
     * @return static
2893
     *                <p>(Immutable)</p>
2894
     */
2895
    public function mergePrependKeepIndex(array $array = [], bool $recursive = false): self
2896
    {
2897
        if ($recursive === true) {
2898
            $result = \array_replace_recursive($array, $this->getArray());
2899
        } else {
2900
            $result = \array_replace($array, $this->getArray());
2901
        }
2902
2903
        return static::create(
2904
            $result,
2905
            $this->iteratorClass,
2906
            false
2907
        );
@@ 2922-2931 (lines=10) @@
2919
     * @return static
2920
     *                <p>(Immutable)</p>
2921
     */
2922
    public function mergePrependNewIndex(array $array = [], bool $recursive = false): self
2923
    {
2924
        if ($recursive === true) {
2925
            $result = \array_merge_recursive($array, $this->getArray());
2926
        } else {
2927
            $result = \array_merge($array, $this->getArray());
2928
        }
2929
2930
        return static::create(
2931
            $result,
2932
            $this->iteratorClass,
2933
            false
2934
        );