original_string: public static function generatePasswordHash($rawPassword, $cost=11)
      {
          $cost = intval($cost);
          $cost = self::clampValue($cost, $max=31, $min=4);
          
          # has to be 2 digits, eg. 04
          if ($cost < 10)
          {
              $cost = "0" . $cost;
          }
          
          $options = array('cost' => $cost);
          
          $hash = password_hash($rawPassword, PASSWORD_BCRYPT, $options);
          return $hash;
      }
code: public static function generatePasswordHash($rawPassword, $cost=11)
      {
          $cost = intval($cost);
          $cost = self::clampValue($cost, $max=31, $min=4);
          
          # has to be 2 digits, eg. 04
          if ($cost < 10)
          {
              $cost = "0" . $cost;
          }
          
          $options = array('cost' => $cost);
          
          $hash = password_hash($rawPassword, PASSWORD_BCRYPT, $options);
          return $hash;
      }
code_tokens: public static function generatePasswordHash ( $ rawPassword , $ cost = 11 ) { $ cost = intval ( $ cost ) ; $ cost = self :: clampValue ( $ cost , $ max = 31 , $ min = 4 ) ; # has to be 2 digits, eg. 04 if ( $ cost < 10 ) { $ cost = "0" . $ cost ; } $ options = array ( 'cost' => $ cost ) ; $ hash = password_hash ( $ rawPassword , PASSWORD_BCRYPT , $ options ) ; return $ hash ; }
docstring: Converts a raw password into a hash using PHP 5.5's new hashing method
  @param String $rawPassword - the password we wish to hash
  @param int $cost - The two digit cost parameter is the base-2 logarithm
  of the iteration count for the underlying
  Blowfish-based hashing algorithmeter and must be in
  range 04-31
  @return string - the generated hash
docstring_tokens: Converts a raw password into a hash using PHP 5 . 5 s new hashing method