<commit_before><?php

require_once dirname(__FILE__).'/res/OmiseApiResource.php';

class OmiseEvent extends OmiseApiResource {
  const ENDPOINT = 'events';

  /**
   * Retrieves an event.
   * @param string $id
   * @param string $publickey
   * @param string $secretkey
   * @return OmiseEvent
   */
  public static function retrieve($id = '', $publickey = null, $secretkey = null) {
    return parent::g_retrieve(get_class(), self::getUrl($id), $publickey, $secretkey);
  }

  /**
   * (non-PHPdoc)
   * @see OmiseApiResource::g_reload()
   */
  public function reload() {
    parent::g_reload(self::getUrl());
  }

  /**
   * @param string $id
   * @return string
   */
  private static function getUrl($id = '') {
    return OMISE_API_URL.self::ENDPOINT.'/'.$id;
  }<commit_msg>:lipstick: code styling for lib/omise/OmiseEvent.php<commit_after><?php

require_once dirname(__FILE__).'/res/OmiseApiResource.php';

class OmiseEvent extends OmiseApiResource
{
    const ENDPOINT = 'events';

    /**
     * Retrieves an event.
     *
     * @param  string $id
     * @param  string $publickey
     * @param  string $secretkey
     *
     * @return OmiseEvent
     */
    public static function retrieve($id = '', $publickey = null, $secretkey = null)
    {
        return parent::g_retrieve(get_class(), self::getUrl($id), $publickey, $secretkey);
    }

    /**
     * (non-PHPdoc)
     *
     * @see OmiseApiResource::g_reload()
     */
    public function reload()
    {
        parent::g_reload(self::getUrl());
    }

    /**
     * Generate request url.
     *
     * @param string $id
     *
     * @return string
     */
    private static function getUrl($id = '')
    {
        return OMISE_API_URL.self::ENDPOINT.'/'.$id;
    }
{'fraction_non_alphanumeric': 0.14959723820483314, 'fraction_numerical': 0.0, 'mean_word_length': 2.7559395248380127, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6853513', 'n_tokens_mistral': 584, 'n_tokens_neox': 572, 'n_words': 117}