/** * This should eventually become a trait and share the functionality with SqrlGenerate * instead of being duplicate code * * @return string */ protected function getUrl($nut) { $url = ($this->configuration->getSecure() ? 's' : '') . 'qrl://' . $this->configuration->getDomain(); if (strpos($this->configuration->getDomain(), '/') !== false) { $extension = strlen($this->configuration->getDomain()) - strpos($this->configuration->getDomain(), '/'); $url .= substr($this->generateQry($nut), $extension) . '&d=' . $extension; } else { $url .= $this->generateQry($nut); } return $url; }