Code Duplication    Length = 8-8 lines in 3 locations

src/Notifications/Notification.php 1 location

@@ 178-185 (lines=8) @@
175
     *
176
     * @return mixed
177
     */
178
    public function getAttribute($name)
179
    {
180
        if (!isset($this->raw[$name])) {
181
            throw new FieldNotFoundException($name);
182
        }
183
184
        return $this->raw[$name];
185
    }
186
}
187

src/Requests/Request.php 1 location

@@ 63-70 (lines=8) @@
60
     *
61
     * @return mixed
62
     */
63
    public function getAttribute($name)
64
    {
65
        if (!isset($this->raw[$name])) {
66
            throw new FieldNotFoundException($name);
67
        }
68
69
        return $this->raw[$name];
70
    }
71
}
72

src/Responses/Response.php 1 location

@@ 24-31 (lines=8) @@
21
     *
22
     * @return mixed
23
     */
24
    public function getAttribute($name)
25
    {
26
        if (!isset($this->raw[$name])) {
27
            throw new FieldNotFoundException($name);
28
        }
29
30
        return $this->raw[$name];
31
    }
32
33
    /**
34
     * @return array