Code cleaning & refactoring

This commit is contained in:
Bubka 2020-11-05 22:47:59 +01:00
parent 6712613a20
commit d448ed9122

View File

@ -6,24 +6,24 @@
use OTPHP\Factory;
use Zxing\QrReader;
use App\TwoFAccount;
use chillerlan\QRCode\{QRCode, QROptions};
use App\Classes\Options;
use Illuminate\Http\File;
use Illuminate\Http\Request;
use Assert\AssertionFailedException;
use Illuminate\Support\Facades\Storage;
use chillerlan\QRCode\{QRCode, QROptions};
class QrCodeController extends Controller
{
/**
* Return a QR code image
*
* @param \Illuminate\Http\Request $request
* @param App\TwoFAccount $twofaccount
* @return \Illuminate\Http\Response
*/
public function show(TwoFAccount $twofaccount)
{
$options = new QROptions([
'quietzoneSize' => 2,
'scale' => 8,