Code Duplication    Length = 9-10 lines in 2 locations

src/Manager/SlotManager.php 2 locations

@@ 68-77 (lines=10) @@
65
     *
66
     * @return \Acquia\LiftClient\Entity\Slot
67
     */
68
    public function get($id)
69
    {
70
        $url = "/slots/{$id}";
71
72
        // Now make the request.
73
        $request = new Request('GET', $url);
74
        $data = $this->getResponseJson($request);
75
76
        return new Slot($data);
77
    }
78
79
    /**
80
     * Add a slot.
@@ 88-96 (lines=9) @@
85
     *
86
     * @return \Acquia\LiftClient\Entity\Slot
87
     */
88
    public function add(Slot $slot)
89
    {
90
        $body = $slot->json();
91
        $url = '/slots';
92
        $request = new Request('POST', $url, [], $body);
93
        $data = $this->getResponseJson($request);
94
95
        return new Slot($data);
96
    }
97
98
    /**
99
     * Deletes a slot by ID.