original_string: private static function pluginFolderPaths($plugins, $folder_path)
      {
          $paths = [];
  
          foreach ($plugins as $path) {
              $iterator = new \DirectoryIterator($path);
  
              /** @var \DirectoryIterator $directory */
              foreach ($iterator as $directory) {
                  if (!$directory->isDir() || $directory->isDot()) {
                      continue;
                  }
  
                  // Path to the languages folder
                  $lang_path = $directory->getPathName() . '/' . $folder_path;
  
                  // If this folder exists, add it to the list of paths
                  if (file_exists($lang_path)) {
                      $paths []= $lang_path;
                  }
              }
          }
          return $paths;
      }
code: private static function pluginFolderPaths($plugins, $folder_path)
      {
          $paths = [];
  
          foreach ($plugins as $path) {
              $iterator = new \DirectoryIterator($path);
  
              /** @var \DirectoryIterator $directory */
              foreach ($iterator as $directory) {
                  if (!$directory->isDir() || $directory->isDot()) {
                      continue;
                  }
  
                  // Path to the languages folder
                  $lang_path = $directory->getPathName() . '/' . $folder_path;
  
                  // If this folder exists, add it to the list of paths
                  if (file_exists($lang_path)) {
                      $paths []= $lang_path;
                  }
              }
          }
          return $paths;
      }
code_tokens: private static function pluginFolderPaths ( $ plugins , $ folder_path ) { $ paths = [ ] ; foreach ( $ plugins as $ path ) { $ iterator = new \ DirectoryIterator ( $ path ) ; /** @var \DirectoryIterator $directory */ foreach ( $ iterator as $ directory ) { if ( ! $ directory -> isDir ( ) || $ directory -> isDot ( ) ) { continue ; } // Path to the languages folder $ lang_path = $ directory -> getPathName ( ) . '/' . $ folder_path ; // If this folder exists, add it to the list of paths if ( file_exists ( $ lang_path ) ) { $ paths [ ] = $ lang_path ; } } } return $ paths ; }
docstring: Find specific paths in plugins
  
  @param array $plugins
  @param string $folder_path
  @return array
docstring_tokens: Find specific paths in plugins