original_string: protected static function createHtAccess($path, $overwrite = true, $content)
      {
          $file = $path . '/.htaccess';
  
          $content = "# This file is auto generated by Matomo, do not edit directly\n# Please report any issue or improvement directly to the Matomo team.\n\n" . $content;
          if ($overwrite || !file_exists($file)) {
              @file_put_contents($file, $content, LOCK_EX);
          }
      }
code: protected static function createHtAccess($path, $overwrite = true, $content)
      {
          $file = $path . '/.htaccess';
  
          $content = "# This file is auto generated by Matomo, do not edit directly\n# Please report any issue or improvement directly to the Matomo team.\n\n" . $content;
          if ($overwrite || !file_exists($file)) {
              @file_put_contents($file, $content, LOCK_EX);
          }
      }
code_tokens: protected static function createHtAccess ( $ path , $ overwrite = true , $ content ) { $ file = $ path . '/.htaccess' ; $ content = "# This file is auto generated by Matomo, do not edit directly\n# Please report any issue or improvement directly to the Matomo team.\n\n" . $ content ; if ( $ overwrite || ! file_exists ( $ file ) ) { @ file_put_contents ( $ file , $ content , LOCK_EX ) ; } }
docstring: Create .htaccess file in specified directory
  
  Apache-specific; for IIS @see web.config
  
  .htaccess files are created on all webservers even Nginx, as sometimes Nginx knows how to handle .htaccess files
  
  @param string $path without trailing slash
  @param bool $overwrite whether to overwrite an existing file or not
  @param string $content
docstring_tokens: Create . htaccess file in specified directory