original_string: private function checkFileBeforeInitialize($directory, $file)
      {
          $filePath = $directory . '/' . $file;
  
          if (file_exists($filePath)) {
              throw new IOException(sprintf(
                  'The file "%s" already exist.',
                  $filePath
              ));
          }
  
          touch($filePath);
      }
code: private function checkFileBeforeInitialize($directory, $file)
      {
          $filePath = $directory . '/' . $file;
  
          if (file_exists($filePath)) {
              throw new IOException(sprintf(
                  'The file "%s" already exist.',
                  $filePath
              ));
          }
  
          touch($filePath);
      }
code_tokens: private function checkFileBeforeInitialize ( $ directory , $ file ) { $ filePath = $ directory . '/' . $ file ; if ( file_exists ( $ filePath ) ) { throw new IOException ( sprintf ( 'The file "%s" already exist.' , $ filePath ) ) ; } touch ( $ filePath ) ; }
docstring: Check the file before initialize
  
  @param string $directory
  @param string $file
  
  @throws IOException
docstring_tokens: Check the file before initialize