original_string: final public function isLocked($namespace)
      {
  
          if (empty($namespace)) {
  
              return true; //just say its locked
          }
          //checks if a namespace in this session is locked
          $session = $this;
          //unlocks a namespace
          if (isset($session->registry[$namespace])) {
              return $session->registry[$namespace]->isLocked();
          }
  
          return false;
      }
code: final public function isLocked($namespace)
      {
  
          if (empty($namespace)) {
  
              return true; //just say its locked
          }
          //checks if a namespace in this session is locked
          $session = $this;
          //unlocks a namespace
          if (isset($session->registry[$namespace])) {
              return $session->registry[$namespace]->isLocked();
          }
  
          return false;
      }
code_tokens: final public function isLocked ( $ namespace ) { if ( empty ( $ namespace ) ) { return true ; //just say its locked } //checks if a namespace in this session is locked $ session = $ this ; //unlocks a namespace if ( isset ( $ session -> registry [ $ namespace ] ) ) { return $ session -> registry [ $ namespace ] -> isLocked ( ) ; } return false ; }
docstring: Determines whether a namespaced registry is locked
  
  @param type $namespace
  @return type
docstring_tokens: Determines whether a namespaced registry is locked