original_string: private function findSourceFilesFromList(array $filenames): void
    {
      foreach ($filenames as $filename)
      {
        if (!file_exists($filename))
        {
          $this->io->error(sprintf("File not exists: '%s'", $filename));
          $this->errorFilenames[] = $filename;
        }
        else
        {
          $routineName     = pathinfo($filename, PATHINFO_FILENAME);
          $this->sources[] = ['path_name'    => $filename,
                              'routine_name' => $routineName,
                              'method_name'  => $this->methodName($routineName)];
        }
      }
    }
code: private function findSourceFilesFromList(array $filenames): void
    {
      foreach ($filenames as $filename)
      {
        if (!file_exists($filename))
        {
          $this->io->error(sprintf("File not exists: '%s'", $filename));
          $this->errorFilenames[] = $filename;
        }
        else
        {
          $routineName     = pathinfo($filename, PATHINFO_FILENAME);
          $this->sources[] = ['path_name'    => $filename,
                              'routine_name' => $routineName,
                              'method_name'  => $this->methodName($routineName)];
        }
      }
    }
code_tokens: private function findSourceFilesFromList ( array $ filenames ) : void { foreach ( $ filenames as $ filename ) { if ( ! file_exists ( $ filename ) ) { $ this -> io -> error ( sprintf ( "File not exists: '%s'" , $ filename ) ) ; $ this -> errorFilenames [ ] = $ filename ; } else { $ routineName = pathinfo ( $ filename , PATHINFO_FILENAME ) ; $ this -> sources [ ] = [ 'path_name' => $ filename , 'routine_name' => $ routineName , 'method_name' => $ this -> methodName ( $ routineName ) ] ; } } }
docstring: Finds all source files that actually exists from a list of file names.
  
  @param string[] $filenames The list of file names.
docstring_tokens: Finds all source files that actually exists from a list of file names .