Code Duplication    Length = 7-7 lines in 2 locations

src/Gateway.php 1 location

@@ 54-60 (lines=7) @@
51
     * @param null $resourceKey
52
     * @return \Illuminate\Http\JsonResponse
53
     */
54
    protected function respondWithItem($item, $callback = null, $resourceKey = null)
55
    {
56
        $rootScope = $this->fractal
57
            ->item($item, $callback, $resourceKey);
58
59
        return $this->respondWithArray($rootScope->toArray());
60
    }
61
62
    /**
63
     * Returns a json response that contains the specified collection

src/Controller.php 1 location

@@ 100-106 (lines=7) @@
97
     * @param null $resourceKey
98
     * @return \Illuminate\Http\JsonResponse
99
     */
100
    protected function respondWithItemCreated($item, $callback = null, $resourceKey = null)
101
    {
102
        $this->setStatusCode(201);
103
        $rootScope = $this->fractal->item($item, $callback, $resourceKey);
104
105
        return $this->respondWithArray($rootScope->toArray());
106
    }
107
108
    /**
109
     * Returns a json response that contains the specified collection