Conditions | 3 |
Paths | 3 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
15 | public function execute($command, callable $next) |
||
16 | { |
||
17 | $fields = $command->entity->fields->pluck('slug', 'slug')->toArray(); |
||
18 | foreach ($command->input as $key => $input) { |
||
19 | if (!isset($fields[$key])) { |
||
20 | unset($command->input[$key]); |
||
21 | } |
||
22 | } |
||
23 | return $next($command); |
||
24 | } |
||
25 | } |
||
26 |