protected function generateImage(string $format): string
    {
        $url = $this->generateUrl($format);

        $content = file_get_contents($url);

        if ($content === false) {
            $content = '';
        }

        return $content;
    }
protected function generateImage(string $format): string
    {
        $url = $this->generateUrl($format);

        $content = file_get_contents($url);

        if ($content === false) {
            $content = '';
        }

        return $content;
    }
protected function generateImage ( string $ format ) : string { $ url = $ this -> generateUrl ( $ format ) ; $ content = file_get_contents ( $ url ) ; if ( $ content === false ) { $ content = '' ; } return $ content ; }
Retrieves image from Internet

@param string $format

@return string
@throws \Jawira\PhingVisualizer\DiagramException
Retrieves image from Internet