Exemple #1
0
 /**
  * Create shortcode and check if it already exists. If exists, then create another
  *
  * @return string
  */
 public function createShort()
 {
     do {
         $short = Helper::randomString();
         $shortRow = $this->getShort($short);
     } while ($shortRow);
     return $short;
 }