original_string: protected function prepareUniqueId($id)
      {
          if (preg_match('/\[(.*)\]/', $id, $matches)) {
              $id = $this->getValue($matches[1]);
          }
  
          if (strtolower($id) === 'null') {
              $id = null;
          }
  
          if (filter_var($id, FILTER_VALIDATE_INT) !== false) {
              $id = (int) $id;
          }
  
          return $id;
      }
code: protected function prepareUniqueId($id)
      {
          if (preg_match('/\[(.*)\]/', $id, $matches)) {
              $id = $this->getValue($matches[1]);
          }
  
          if (strtolower($id) === 'null') {
              $id = null;
          }
  
          if (filter_var($id, FILTER_VALIDATE_INT) !== false) {
              $id = (int) $id;
          }
  
          return $id;
      }
code_tokens: protected function prepareUniqueId ( $ id ) { if ( preg_match ( '/\[(.*)\]/' , $ id , $ matches ) ) { $ id = $ this -> getValue ( $ matches [ 1 ] ) ; } if ( strtolower ( $ id ) === 'null' ) { $ id = null ; } if ( filter_var ( $ id , FILTER_VALIDATE_INT ) !== false ) { $ id = ( int ) $ id ; } return $ id ; }
docstring: Prepare the given ID for querying.
  
  @param  mixed  $id
  @return int
docstring_tokens: Prepare the given ID for querying .