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)];
      }
    }
  }
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)];
      }
    }
  }
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 ) ] ; } } }
Finds all source files that actually exists from a list of file names.

@param string[] $filenames The list of file names.
Finds all source files that actually exists from a list of file names .