original_string: public function check_lock_state($key, $ownerid) {
          $result = $this->redis->get($key);
          if ($result === $ownerid) {
              return true;
          }
          if ($result === false) {
              return null;
          }
          return false;
      }
code: public function check_lock_state($key, $ownerid) {
          $result = $this->redis->get($key);
          if ($result === $ownerid) {
              return true;
          }
          if ($result === false) {
              return null;
          }
          return false;
      }
code_tokens: public function check_lock_state ( $ key , $ ownerid ) { $ result = $ this -> redis -> get ( $ key ) ; if ( $ result === $ ownerid ) { return true ; } if ( $ result === false ) { return null ; } return false ; }
docstring: Checks a lock with a given name and owner information.
  
  @see cache_is_lockable
  @param string $key Name of the lock to check.
  @param string $ownerid Owner information to check existing lock against.
  @return mixed True if the lock exists and the owner information matches, null if the lock does not
  exist, and false otherwise.
docstring_tokens: Checks a lock with a given name and owner information .