Skip to content

Commit

Permalink
Prefer usage of && operator instead of "and" (drupal-composer#530)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulvandenburg authored and lammensj committed Dec 30, 2019
1 parent 47a43f6 commit fba208e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/composer/ScriptHandler.php
Expand Up @@ -36,7 +36,7 @@ public static function createRequiredFiles(Event $event) {
}

// Prepare the settings file for installation
if (!$fs->exists($drupalRoot . '/sites/default/settings.php') and $fs->exists($drupalRoot . '/sites/default/default.settings.php')) {
if (!$fs->exists($drupalRoot . '/sites/default/settings.php') && $fs->exists($drupalRoot . '/sites/default/default.settings.php')) {
$fs->copy($drupalRoot . '/sites/default/default.settings.php', $drupalRoot . '/sites/default/settings.php');
require_once $drupalRoot . '/core/includes/bootstrap.inc';
require_once $drupalRoot . '/core/includes/install.inc';
Expand Down

0 comments on commit fba208e

Please sign in to comment.