app/Models/Token.php
Method getQRCode
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getQRCode()
{
// anonymous function to simplify hexadecimal colour input
$hexToRGB = function ($input) {
return array_map('hexdec', str_split(trim($input, '#'), 2));