Skip to content

Commit fba208e

Browse files
paulvandenburglammensj
authored andcommitted
Prefer usage of && operator instead of "and" (drupal-composer#530)
1 parent 47a43f6 commit fba208e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/composer/ScriptHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public static function createRequiredFiles(Event $event) {
3636
}
3737

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

0 commit comments

Comments
 (0)