original_string: public static function getNameList()
      {
          $result = [];
          $pages = self::sortBy('baseFileName')->all();
          foreach ($pages as $page) {
              $result[$page->baseFileName] = $page->title . ' (' . $page->baseFileName . ')';
          }
  
          return $result;
      }
code: public static function getNameList()
      {
          $result = [];
          $pages = self::sortBy('baseFileName')->all();
          foreach ($pages as $page) {
              $result[$page->baseFileName] = $page->title . ' (' . $page->baseFileName . ')';
          }
  
          return $result;
      }
code_tokens: public static function getNameList ( ) { $ result = [ ] ; $ pages = self :: sortBy ( 'baseFileName' ) -> all ( ) ; foreach ( $ pages as $ page ) { $ result [ $ page -> baseFileName ] = $ page -> title . ' (' . $ page -> baseFileName . ')' ; } return $ result ; }
docstring: Helper that returns a nicer list of pages for use in dropdowns.
  @return array
docstring_tokens: Helper that returns a nicer list of pages for use in dropdowns .