original_string: public function getLastToken($type, $key = 'type')
      {
          return $this->token()->orderBy('tokens.created_at', 'desc')->where($key, $type)->first();
      }
code: public function getLastToken($type, $key = 'type')
      {
          return $this->token()->orderBy('tokens.created_at', 'desc')->where($key, $type)->first();
      }
code_tokens: public function getLastToken ( $ type , $ key = 'type' ) { return $ this -> token ( ) -> orderBy ( 'tokens.created_at' , 'desc' ) -> where ( $ key , $ type ) -> first ( ) ; }
docstring: Get the last Token by the type.
  @param   string  $type
  @param   string  $key
  @return  Token
docstring_tokens: Get the last Token by the type .