Skip to content

Commit

Permalink
vendor/bin/phpcbf
Browse files Browse the repository at this point in the history
  • Loading branch information
remcotolsma committed Jun 1, 2023
1 parent 4228737 commit 1881f31
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/Changelog.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/ChangelogEntry.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down
2 changes: 1 addition & 1 deletion src/SvnReleaseCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
15 changes: 7 additions & 8 deletions src/VersionCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion src/WpBuildCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}

Expand Down

0 comments on commit 1881f31

Please sign in to comment.