Code Duplication    Length = 9-9 lines in 2 locations

Http/Requests/CreatePostRequest.php 1 location

@@ 34-42 (lines=9) @@
31
        ];
32
    }
33
34
    public function all()
35
    {
36
        $all = parent::all();
37
38
        $all[$all['locale']] = $all['default'];
39
        unset($all['default']);
40
41
        return $all;
42
    }
43
}
44

Http/Requests/UpdatePostRequest.php 1 location

@@ 36-44 (lines=9) @@
33
        ];
34
    }
35
36
    public function all()
37
    {
38
        $all = parent::all();
39
40
        $all[$all['locale']] = $all['default'];
41
        unset($all['default']);
42
43
        return $all;
44
    }
45
}
46