Skip to content

Commit 817c4fc

Browse files
committed
Coding standards
1 parent f28626d commit 817c4fc

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Writer/Drupal.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ public function rewrite($version, $timestamp, $core = null, $project = null)
4141
// Don't write to files that already contain version information.
4242
if (!$this->hasVersionInfo($info_file)) {
4343
$file = fopen($info_file, 'a+');
44-
$coreToWrite = $this->hasCoreVersionRequirement($info_file) ? $core : NULL;
45-
fwrite($file, $this->formatInfo($version, $timestamp, $coreToWrite, $project));
44+
$coreToWrite = $this->hasCoreVersionRequirement($info_file) ? $core : null;
45+
fwrite($file, $this->formatInfo($version, $timestamp, $coreToWrite, $project));
4646
fclose($file);
4747
}
4848
}
@@ -114,5 +114,4 @@ protected function hasCoreVersionRequirement($file_path)
114114
$contents = file_get_contents($file_path);
115115
return preg_match(static::CORE_VERSION_REQUIREMENT_EXISTS_PATTERN, $contents);
116116
}
117-
118117
}

0 commit comments

Comments
 (0)