original_string: public static function installRequiredFiles()
      {
          $htaccess = [
              __DIR__ . '/../../../../../../app/.htaccess',
              __DIR__ . '/../../../../../../src/.htaccess',
              __DIR__ . '/../../../../../../web/.htaccess',
          ];
          $fileSystem = new Filesystem();
  
          try {
              if (false === $fileSystem->exists($htaccess)) {
                  $fileSystem->copy($htaccess[0] . '.dist', $htaccess[0]);
                  $fileSystem->copy($htaccess[1] . '.dist', $htaccess[1]);
                  $fileSystem->copy($htaccess[2] . '.dist', $htaccess[2]);
              }
          } catch (\Exception $exception) {
              echo sprintf("Something wrong happens during process: \n%s\n", $exception->getMessage());
          }
      }
code: public static function installRequiredFiles()
      {
          $htaccess = [
              __DIR__ . '/../../../../../../app/.htaccess',
              __DIR__ . '/../../../../../../src/.htaccess',
              __DIR__ . '/../../../../../../web/.htaccess',
          ];
          $fileSystem = new Filesystem();
  
          try {
              if (false === $fileSystem->exists($htaccess)) {
                  $fileSystem->copy($htaccess[0] . '.dist', $htaccess[0]);
                  $fileSystem->copy($htaccess[1] . '.dist', $htaccess[1]);
                  $fileSystem->copy($htaccess[2] . '.dist', $htaccess[2]);
              }
          } catch (\Exception $exception) {
              echo sprintf("Something wrong happens during process: \n%s\n", $exception->getMessage());
          }
      }
code_tokens: public static function installRequiredFiles ( ) { $ htaccess = [ __DIR__ . '/../../../../../../app/.htaccess' , __DIR__ . '/../../../../../../src/.htaccess' , __DIR__ . '/../../../../../../web/.htaccess' , ] ; $ fileSystem = new Filesystem ( ) ; try { if ( false === $ fileSystem -> exists ( $ htaccess ) ) { $ fileSystem -> copy ( $ htaccess [ 0 ] . '.dist' , $ htaccess [ 0 ] ) ; $ fileSystem -> copy ( $ htaccess [ 1 ] . '.dist' , $ htaccess [ 1 ] ) ; $ fileSystem -> copy ( $ htaccess [ 2 ] . '.dist' , $ htaccess [ 2 ] ) ; } } catch ( \ Exception $ exception ) { echo sprintf ( "Something wrong happens during process: \n%s\n" , $ exception -> getMessage ( ) ) ; } }
docstring: Static method that creates .htaccess, files if they do not exist.
docstring_tokens: Static method that creates . htaccess files if they do not exist .