original_string: public function scanDir()
      {
          // only possible in directories
          if (!$this->isDir() || !$this->exists()) {
              return null;
          }
  
          $fileList = [];
          $fileNameList = scandir($this->absoluteFileName);
          foreach ($fileNameList as $fileName) {
              // do not add . and ..
              if ($fileName === "." or $fileName === "..") {
                  continue;
              }
              $absoluteFileName = $this->absoluteFileName . "/" . $fileName;
              $fileList [] = new File ($absoluteFileName);
          }
  
          return $fileList;
      }
code: public function scanDir()
      {
          // only possible in directories
          if (!$this->isDir() || !$this->exists()) {
              return null;
          }
  
          $fileList = [];
          $fileNameList = scandir($this->absoluteFileName);
          foreach ($fileNameList as $fileName) {
              // do not add . and ..
              if ($fileName === "." or $fileName === "..") {
                  continue;
              }
              $absoluteFileName = $this->absoluteFileName . "/" . $fileName;
              $fileList [] = new File ($absoluteFileName);
          }
  
          return $fileList;
      }
code_tokens: public function scanDir ( ) { // only possible in directories if ( ! $ this -> isDir ( ) || ! $ this -> exists ( ) ) { return null ; } $ fileList = [ ] ; $ fileNameList = scandir ( $ this -> absoluteFileName ) ; foreach ( $ fileNameList as $ fileName ) { // do not add . and .. if ( $ fileName === "." or $ fileName === ".." ) { continue ; } $ absoluteFileName = $ this -> absoluteFileName . "/" . $ fileName ; $ fileList [ ] = new File ( $ absoluteFileName ) ; } return $ fileList ; }
docstring: scans a directory and returns a list of Files
  @return File[]
docstring_tokens: scans a directory and returns a list of Files