Code Duplication    Length = 7-7 lines in 2 locations

src/Weew/Http/HttpRequest.php 1 location

@@ 155-161 (lines=7) @@
152
    /**
153
     * @param $content
154
     */
155
    public function setContent($content) {
156
        if (is_array($content) || is_object($content)) {
157
            $this->getData()->setData($content);
158
        } else {
159
            $this->content = (string) $content;
160
        }
161
    }
162
163
    /**
164
     * @return mixed

src/Weew/Http/HttpResponse.php 1 location

@@ 232-238 (lines=7) @@
229
    /**
230
     * @param $content
231
     */
232
    public function setContent($content) {
233
        if (is_array($content) || is_object($content)) {
234
            $this->getData()->setData($content);
235
        } else {
236
            $this->content = (string) $content;
237
        }
238
    }
239
240
    /**
241
     * @return bool