public function pass(CommitMessage $msg) : bool
    {
        $lineNr = 1;
        foreach ($msg->getBodyLines() as $line) {
            if (strlen($line) > $this->maxLength) {
                $this->hint .= PHP_EOL . 'Line ' . $lineNr . ' of your body exceeds the max line length';
                return false;
            }
            $lineNr++;
        }
        return true;
    }
public function pass(CommitMessage $msg) : bool
    {
        $lineNr = 1;
        foreach ($msg->getBodyLines() as $line) {
            if (strlen($line) > $this->maxLength) {
                $this->hint .= PHP_EOL . 'Line ' . $lineNr . ' of your body exceeds the max line length';
                return false;
            }
            $lineNr++;
        }
        return true;
    }
public function pass ( CommitMessage $ msg ) : bool { $ lineNr = 1 ; foreach ( $ msg -> getBodyLines ( ) as $ line ) { if ( strlen ( $ line ) > $ this -> maxLength ) { $ this -> hint .= PHP_EOL . 'Line ' . $ lineNr . ' of your body exceeds the max line length' ; return false ; } $ lineNr ++ ; } return true ; }
Check if a body line doesn't exceed the max length limit

@param  \SebastianFeldmann\Git\CommitMessage $msg
@return bool
Check if a body line doesn t exceed the max length limit