services/scanners/ScannerPhpFunction.php
protected function concatMessage($buffer)
    {
        $messages = [];
        $buffer = array_slice($buffer, 2);
        $message = stripcslashes($buffer[0][1]);
        $messages[] = mb_substr($message, 1, mb_strlen($message) - 2);
        if (isset($buffer[1], $buffer[2][0]) && $buffer[1] === '.' && $buffer[2][0] == T_CONSTANT_ENCAPSED_STRING) {
            $messages = array_merge_recursive($messages, $this->concatMessage($buffer));
        }

        return $messages;
    }
protected function concatMessage($buffer)
    {
        $messages = [];
        $buffer = array_slice($buffer, 2);
        $message = stripcslashes($buffer[0][1]);
        $messages[] = mb_substr($message, 1, mb_strlen($message) - 2);
        if (isset($buffer[1], $buffer[2][0]) && $buffer[1] === '.' && $buffer[2][0] == T_CONSTANT_ENCAPSED_STRING) {
            $messages = array_merge_recursive($messages, $this->concatMessage($buffer));
        }

        return $messages;
    }
protected function concatMessage ( $ buffer ) { $ messages = [ ] ; $ buffer = array_slice ( $ buffer , 2 ) ; $ message = stripcslashes ( $ buffer [ 0 ] [ 1 ] ) ; $ messages [ ] = mb_substr ( $ message , 1 , mb_strlen ( $ message ) - 2 ) ; if ( isset ( $ buffer [ 1 ] , $ buffer [ 2 ] [ 0 ] ) && $ buffer [ 1 ] === '.' && $ buffer [ 2 ] [ 0 ] == T_CONSTANT_ENCAPSED_STRING ) { $ messages = array_merge_recursive ( $ messages , $ this -> concatMessage ( $ buffer ) ) ; } return $ messages ; }
Recursice concatenation of multiple-piece language elements.

@param array $buffer Array to store language element pieces.

@return array Sorted list of language element pieces.
Recursice concatenation of multiple - piece language elements .