diff --git a/src/Changelog.php b/src/Changelog.php index 5f3f675..e130f9a 100644 --- a/src/Changelog.php +++ b/src/Changelog.php @@ -84,7 +84,7 @@ public function get_entries() { if ( $i === $last_line ) { if ( \str_starts_with( $line, '[' . $version . ']' ) ) { $end = $i; - } else if ( null !== $empty_line ) { + } elseif ( null !== $empty_line ) { $end = $empty_line; } } diff --git a/src/ChangelogEntry.php b/src/ChangelogEntry.php index 791659f..ade4563 100644 --- a/src/ChangelogEntry.php +++ b/src/ChangelogEntry.php @@ -87,7 +87,7 @@ public function render() { '', 'Full set of changes: [`' . $this->get_version_compare() . '`][' . $this->version . ']', '', - '[' . $this->version . ']: ' . $this->get_link() + '[' . $this->version . ']: ' . $this->get_link(), ]; return \implode( "\n", $lines ); diff --git a/src/SvnReleaseCommand.php b/src/SvnReleaseCommand.php index 1bdaaee..5cc110b 100644 --- a/src/SvnReleaseCommand.php +++ b/src/SvnReleaseCommand.php @@ -120,7 +120,7 @@ protected function execute( InputInterface $input, OutputInterface $output ) { $svn_auth = '--no-auth-cache'; - if ( ! empty( $username ) ) { + if ( ! empty( $username ) ) { $svn_auth .= '--username ' . $username; } diff --git a/src/VersionCommand.php b/src/VersionCommand.php index c3de3fc..c9b028e 100644 --- a/src/VersionCommand.php +++ b/src/VersionCommand.php @@ -816,14 +816,13 @@ private function check_git_tagnames( $cwd, $input, $output ) { $tag_list_no_prefix = array_filter( $tag_list, function( $tagname ) { - if ( - \in_array( - $tagname, - [ - 'nightly', - ], - true - ) + if ( \in_array( + $tagname, + [ + 'nightly', + ], + true + ) ) { return false; } diff --git a/src/WpBuildCommand.php b/src/WpBuildCommand.php index 5485c5c..5330da5 100644 --- a/src/WpBuildCommand.php +++ b/src/WpBuildCommand.php @@ -159,7 +159,7 @@ protected function execute( InputInterface $input, OutputInterface $output ) { * * @link https://github.com/squizlabs/PHP_CodeSniffer/issues/3057 * @link https://github.com/squizlabs/PHP_CodeSniffer/issues/2898 - */ + */ $helper->run( $output, $process ); }