Dingo\Blueprint\Blueprint::appendBody PHP Method

appendBody() protected method

Append a body subsection to an action.
protected appendBody ( string &$contents, string $body ) : void
$contents string
$body string
return void
    protected function appendBody(&$contents, $body)
    {
        $this->appendSection($contents, 'Body', 1, 1);
        $contents .= $this->line(2);
        $line = strtok($body, "\r\n");
        while ($line !== false) {
            $contents .= $this->tab(3) . $line;
            $line = strtok("\r\n");
            if ($line !== false) {
                $contents .= $this->line();
            }
        }
    }