Ejemplo n.º 1
0
 protected static function getCryptSaltString($length = 22)
 {
     return str_replace('+', '.', substr(base64_encode(String::getRandomBytes($length)), 0, $length));
 }
Ejemplo n.º 2
0
 public static function fieldToGetterMethod($name)
 {
     return 'get' . String::toCamelCase($name);
 }