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

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