DataMerge   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
dl 0
loc 11
rs 10
c 1
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A pipe() 0 4 1
1
<?php
2
3
namespace Ghc\Rosetta\Pipes;
4
5
use Illuminate\Support\Arr;
6
7
class DataMerge implements Pipeable
8
{
9
    /**
10
     * @param array $options
11
     *
12
     * @return \Closure
13
     */
14
    public function pipe($options = [])
15
    {
16
        return function ($inputData) use ($options) {
17
            return array_merge($inputData, Arr::get($options, 'data'));
18
        };
19
    }
20
}
21