original_string: protected function findNewFiles(string $path) : array
      {
          $arrReturn = [];
          $arrFolders = scandir($path);
          $arrSkip = [
              '.',
              '..',
          ];
          
          foreach ($arrFolders as $file) {
              //No Folder Defaults
              if (in_array($file, $arrSkip)) {
                  continue;
              }
              //Process Subfolders
              if (is_dir($path.$file)) {
                  $arrSubFolderFiles = $this->findNewFiles($path.$file."/");
                  $arrReturn = $this->addArrayToNewFiles($arrSubFolderFiles, $arrReturn);
                  continue;
              }
              $arrReturn[] = $path.$file;
          }
          
          //Remove file from list if already processed
          foreach($arrReturn as $key => $file) {
              if (in_array($file, $this->knownUpdateFiles)) {
                  unset($arrReturn[$key]);
              }
          }
          return $arrReturn;
      }
code: protected function findNewFiles(string $path) : array
      {
          $arrReturn = [];
          $arrFolders = scandir($path);
          $arrSkip = [
              '.',
              '..',
          ];
          
          foreach ($arrFolders as $file) {
              //No Folder Defaults
              if (in_array($file, $arrSkip)) {
                  continue;
              }
              //Process Subfolders
              if (is_dir($path.$file)) {
                  $arrSubFolderFiles = $this->findNewFiles($path.$file."/");
                  $arrReturn = $this->addArrayToNewFiles($arrSubFolderFiles, $arrReturn);
                  continue;
              }
              $arrReturn[] = $path.$file;
          }
          
          //Remove file from list if already processed
          foreach($arrReturn as $key => $file) {
              if (in_array($file, $this->knownUpdateFiles)) {
                  unset($arrReturn[$key]);
              }
          }
          return $arrReturn;
      }
code_tokens: protected function findNewFiles ( string $ path ) : array { $ arrReturn = [ ] ; $ arrFolders = scandir ( $ path ) ; $ arrSkip = [ '.' , '..' , ] ; foreach ( $ arrFolders as $ file ) { //No Folder Defaults if ( in_array ( $ file , $ arrSkip ) ) { continue ; } //Process Subfolders if ( is_dir ( $ path . $ file ) ) { $ arrSubFolderFiles = $ this -> findNewFiles ( $ path . $ file . "/" ) ; $ arrReturn = $ this -> addArrayToNewFiles ( $ arrSubFolderFiles , $ arrReturn ) ; continue ; } $ arrReturn [ ] = $ path . $ file ; } //Remove file from list if already processed foreach ( $ arrReturn as $ key => $ file ) { if ( in_array ( $ file , $ this -> knownUpdateFiles ) ) { unset ( $ arrReturn [ $ key ] ) ; } } return $ arrReturn ; }
docstring: Creates an array of Update Files that were not yet processed
  @param string $path
  @return array
docstring_tokens: Creates an array of Update Files that were not yet processed