/** * Generates a QrCode * * @param string $text The text to be converted into a QrCode * @param null|string $filename The filename and path to save the QrCode file * @return string|void Returns a QrCode string depending on the format, or saves to a file. * @static */ public static function generate($text, $filename = null) { return \SimpleSoftwareIO\QrCode\BaconQrCodeGenerator::generate($text, $filename); }