Code Duplication    Length = 7-7 lines in 3 locations

src/ApiResponse.php 3 locations

@@ 34-40 (lines=7) @@
31
     *
32
     * @return array|\Illuminate\Http\Response|ResponseBuilder*
33
     */
34
    public function item($data, $transformer = null, $resourceKey = null, $build = true)
35
    {
36
        return $this->toResponseBuilder(
37
            $this->fractalAdapter->item($data, $transformer, $resourceKey),
38
            $build
39
        );
40
    }
41
42
    /**
43
     * Returns collection.
@@ 52-58 (lines=7) @@
49
     *
50
     * @return array|\Illuminate\Http\Response|ResponseBuilder
51
     */
52
    public function collection($data, $transformer = null, $resourceKey = null, $build = true)
53
    {
54
        return $this->toResponseBuilder(
55
            $this->fractalAdapter->collection($data, $transformer, $resourceKey),
56
            $build
57
        );
58
    }
59
60
    /**
61
     * Returns paginated collection.
@@ 70-76 (lines=7) @@
67
     *
68
     * @return array|\Illuminate\Http\Response|ResponseBuilder
69
     */
70
    public function paginatedCollection($paginator, $transformer = null, $resourceKey = null, $build = true)
71
    {
72
        return $this->toResponseBuilder(
73
            $this->fractalAdapter->paginatedCollection($paginator, $transformer, $resourceKey),
74
            $build
75
        );
76
    }
77
78
    /**
79
     * Respond with a no content response.