original_string: public function getItems()
    {
      $namespaces = $this->xml->getDocNamespaces();
      foreach($namespaces as $namespace => $url)
      {
        $this->xml->registerXPathNamespace($namespace, $url);
      }
  
      foreach ($this->xml->xpath($this->itemXpath) as $item)
      {
        $this->items[] = new Item
        (
          $this->itemtitleXpath ? (string) $item->xpath($this->itemtitleXpath)[0] : NULL,
          $this->itemtorrenturlXpath ? (string) $item->xpath($this->itemtorrenturlXpath)[0] : NULL,
          $this->itemmagnetXpath ? (string) $item->xpath($this->itemmagnetXpath)[0] : NULL
        );
      }
  
      return $this->items;
    }
code: public function getItems()
    {
      $namespaces = $this->xml->getDocNamespaces();
      foreach($namespaces as $namespace => $url)
      {
        $this->xml->registerXPathNamespace($namespace, $url);
      }
  
      foreach ($this->xml->xpath($this->itemXpath) as $item)
      {
        $this->items[] = new Item
        (
          $this->itemtitleXpath ? (string) $item->xpath($this->itemtitleXpath)[0] : NULL,
          $this->itemtorrenturlXpath ? (string) $item->xpath($this->itemtorrenturlXpath)[0] : NULL,
          $this->itemmagnetXpath ? (string) $item->xpath($this->itemmagnetXpath)[0] : NULL
        );
      }
  
      return $this->items;
    }
code_tokens: public function getItems ( ) { $ namespaces = $ this -> xml -> getDocNamespaces ( ) ; foreach ( $ namespaces as $ namespace => $ url ) { $ this -> xml -> registerXPathNamespace ( $ namespace , $ url ) ; } foreach ( $ this -> xml -> xpath ( $ this -> itemXpath ) as $ item ) { $ this -> items [ ] = new Item ( $ this -> itemtitleXpath ? ( string ) $ item -> xpath ( $ this -> itemtitleXpath ) [ 0 ] : NULL , $ this -> itemtorrenturlXpath ? ( string ) $ item -> xpath ( $ this -> itemtorrenturlXpath ) [ 0 ] : NULL , $ this -> itemmagnetXpath ? ( string ) $ item -> xpath ( $ this -> itemmagnetXpath ) [ 0 ] : NULL ) ; } return $ this -> items ; }
docstring: Get Items from a feed.
  
  @return array Returns an array of Items
docstring_tokens: Get Items from a feed .