Code Duplication    Length = 10-10 lines in 2 locations

lib/Fhp/Segment/AbstractSegment.php 1 location

@@ 82-91 (lines=10) @@
79
     * @param bool $translateCodes
80
     * @return string
81
     */
82
    public function humanReadable($translateCodes = false)
83
    {
84
        return str_replace(
85
            array("'", '+'),
86
            array(PHP_EOL, PHP_EOL . "  "),
87
            $translateCodes
88
                ? NameMapping::translateResponse($this->toString())
89
                : $this->toString()
90
        );
91
    }
92
93
    /**
94
     * @return int

lib/Fhp/Response/Response.php 1 location

@@ 257-266 (lines=10) @@
254
     *
255
     * @return string
256
     */
257
    public function humanReadable($translateCodes = false)
258
    {
259
        return str_replace(
260
            array("'", '+'),
261
            array(PHP_EOL, PHP_EOL . "  "),
262
            $translateCodes
263
                ? NameMapping::translateResponse($this->rawResponse)
264
                : $this->rawResponse
265
        );
266
    }
267
268
    /**
269
     * @param string          $name