original_string: public static function all()
      {
          $it = new DirectoryIterator(themes_path());
          $it->rewind();
  
          $result = [];
          foreach ($it as $fileinfo) {
              if (!$fileinfo->isDir() || $fileinfo->isDot()) {
                  continue;
              }
  
              $theme = static::load($fileinfo->getFilename());
  
              $result[] = $theme;
          }
  
          return $result;
      }
code: public static function all()
      {
          $it = new DirectoryIterator(themes_path());
          $it->rewind();
  
          $result = [];
          foreach ($it as $fileinfo) {
              if (!$fileinfo->isDir() || $fileinfo->isDot()) {
                  continue;
              }
  
              $theme = static::load($fileinfo->getFilename());
  
              $result[] = $theme;
          }
  
          return $result;
      }
code_tokens: public static function all ( ) { $ it = new DirectoryIterator ( themes_path ( ) ) ; $ it -> rewind ( ) ; $ result = [ ] ; foreach ( $ it as $ fileinfo ) { if ( ! $ fileinfo -> isDir ( ) || $ fileinfo -> isDot ( ) ) { continue ; } $ theme = static :: load ( $ fileinfo -> getFilename ( ) ) ; $ result [ ] = $ theme ; } return $ result ; }
docstring: Returns a list of all themes.
  @return array Returns an array of the Theme objects.
docstring_tokens: Returns a list of all themes .