src/Sentence.php
private function closeQuotesMerge($statements)
    {
        $i = 0;
        $previous_statement = '';
        $return = [];
        foreach ($statements as $statement) {
            if (self::isEndQuote($statement)) {
                $statement = $previous_statement . $statement;
            } else {
                $i++;
            }

            $return[$i] = $statement;
            $previous_statement = $statement;
        }

        return $return;
    }
private function closeQuotesMerge($statements)
    {
        $i = 0;
        $previous_statement = '';
        $return = [];
        foreach ($statements as $statement) {
            if (self::isEndQuote($statement)) {
                $statement = $previous_statement . $statement;
            } else {
                $i++;
            }

            $return[$i] = $statement;
            $previous_statement = $statement;
        }

        return $return;
    }
private function closeQuotesMerge ( $ statements ) { $ i = 0 ; $ previous_statement = '' ; $ return = [ ] ; foreach ( $ statements as $ statement ) { if ( self :: isEndQuote ( $ statement ) ) { $ statement = $ previous_statement . $ statement ; } else { $ i ++ ; } $ return [ $ i ] = $ statement ; $ previous_statement = $ statement ; } return $ return ; }
Looks for closing quotes to include them with the previous statement.
"That was very interesting," he said.
"That was very interesting."

@param string[] $statements
@return string[]
Looks for closing quotes to include them with the previous statement . That was very interesting he said . That was very interesting .