original_string: public function routable()
      {
          $routable = [];
  
          foreach ($this->items as $path => $slug) {
              $page = $this->pages->get($path);
  
              if ($page !== null && $page->routable()) {
                  $routable[$path] = $slug;
              }
          }
  
          $this->items = $routable;
  
          return $this;
      }
code: public function routable()
      {
          $routable = [];
  
          foreach ($this->items as $path => $slug) {
              $page = $this->pages->get($path);
  
              if ($page !== null && $page->routable()) {
                  $routable[$path] = $slug;
              }
          }
  
          $this->items = $routable;
  
          return $this;
      }
code_tokens: public function routable ( ) { $ routable = [ ] ; foreach ( $ this -> items as $ path => $ slug ) { $ page = $ this -> pages -> get ( $ path ) ; if ( $ page !== null && $ page -> routable ( ) ) { $ routable [ $ path ] = $ slug ; } } $ this -> items = $ routable ; return $ this ; }
docstring: Creates new collection with only routable pages
  
  @return Collection The collection with only routable pages
docstring_tokens: Creates new collection with only routable pages