Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
50 | public function qrSvg($model): string |
||
51 | { |
||
52 | $url = app(Google2FA::class)->getQRCodeUrl( |
||
53 | config('jarboe.admin_panel.two_factor_auth.company_name', config('app.name')), |
||
54 | $model->email, |
||
55 | $model->{$this->name()} |
||
56 | ); |
||
57 | |||
58 | $writer = new Writer(new ImageRenderer( |
||
59 | new RendererStyle(180), |
||
60 | new SvgImageBackEnd() |
||
61 | )); |
||
62 | |||
63 | return $writer->writeString($url); |
||
64 | } |
||
65 | } |
||
66 |
Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a
@return
annotation as described here.