original_string: private function buildFileList($folder)
      {
          // The list of files to use
          $files = array();
  
          // Cycle through all of the files in our storage folder removing
          // any files that exceed the cache duration.
          $directory = new DirectoryIterator($folder);
  
          foreach ($directory as $file)
          {
              // Check if the file is the local file (i.e. dot)
              if($file->isDot())
              {
                  // We are the dot, so just skip
                  continue;
              }
  
              // Check if the file is a directory
              if($file->isDir())
              {
                  // Recursively call this function
                  $files = array_merge($files, $this->buildFileList($file->getRealPath()));
              }
              else
              {
                  // Add in the file
                  $files[] = $file->getRealPath();
              }
          }
  
          return $files;
      }
code: private function buildFileList($folder)
      {
          // The list of files to use
          $files = array();
  
          // Cycle through all of the files in our storage folder removing
          // any files that exceed the cache duration.
          $directory = new DirectoryIterator($folder);
  
          foreach ($directory as $file)
          {
              // Check if the file is the local file (i.e. dot)
              if($file->isDot())
              {
                  // We are the dot, so just skip
                  continue;
              }
  
              // Check if the file is a directory
              if($file->isDir())
              {
                  // Recursively call this function
                  $files = array_merge($files, $this->buildFileList($file->getRealPath()));
              }
              else
              {
                  // Add in the file
                  $files[] = $file->getRealPath();
              }
          }
  
          return $files;
      }
code_tokens: private function buildFileList ( $ folder ) { // The list of files to use $ files = array ( ) ; // Cycle through all of the files in our storage folder removing // any files that exceed the cache duration. $ directory = new DirectoryIterator ( $ folder ) ; foreach ( $ directory as $ file ) { // Check if the file is the local file (i.e. dot) if ( $ file -> isDot ( ) ) { // We are the dot, so just skip continue ; } // Check if the file is a directory if ( $ file -> isDir ( ) ) { // Recursively call this function $ files = array_merge ( $ files , $ this -> buildFileList ( $ file -> getRealPath ( ) ) ) ; } else { // Add in the file $ files [ ] = $ file -> getRealPath ( ) ; } } return $ files ; }
docstring: Used internally in order to build a full list of all of the files to build.
  
  @param string $folder The folder to scan through
  @return array An array of all of the files to check.
docstring_tokens: Used internally in order to build a full list of all of the files to build .