public function getBodyWrapLength(): int
    {
        if (count($this->commitMessage) < 3) {
            return 0;
        }

        $body = array_slice($this->commitMessage, 2);
        $longestLineLength = 0;

        foreach ($body as $line) {
            if (strlen($line) > $longestLineLength) {
                $longestLineLength = strlen($line);
            }
        }

        return $longestLineLength;
    }
public function getBodyWrapLength(): int
    {
        if (count($this->commitMessage) < 3) {
            return 0;
        }

        $body = array_slice($this->commitMessage, 2);
        $longestLineLength = 0;

        foreach ($body as $line) {
            if (strlen($line) > $longestLineLength) {
                $longestLineLength = strlen($line);
            }
        }

        return $longestLineLength;
    }
public function getBodyWrapLength ( ) : int { if ( count ( $ this -> commitMessage ) < 3 ) { return 0 ; } $ body = array_slice ( $ this -> commitMessage , 2 ) ; $ longestLineLength = 0 ; foreach ( $ body as $ line ) { if ( strlen ( $ line ) > $ longestLineLength ) { $ longestLineLength = strlen ( $ line ) ; } } return $ longestLineLength ; }
The length at which the message wraps.

@return int
The length at which the message wraps .