Skip to content

Commit

Permalink
Fixing phpcs issues with spaces and @throws missing.
Browse files Browse the repository at this point in the history
  • Loading branch information
message-dimke committed Sep 23, 2024
1 parent c72aca6 commit ca6e984
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
3 changes: 2 additions & 1 deletion packages/php/woorelease-extension/src/Commands/Branch.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class Branch extends Command {
*
* @var string|null
*/
protected static $defaultName = 'branch';
protected static $defaultName = 'branch'; // phpcs:ignore WordPress.NamingConventions.ValidVariableName

/**
* Configures the current command.
Expand All @@ -53,6 +53,7 @@ protected function configure() {
* @param OutputInterface $output Output.
*
* @return int Exit code.
* @throws Exception When the command has failed.
*/
protected function execute( InputInterface $input, OutputInterface $output ) {
try {
Expand Down
22 changes: 11 additions & 11 deletions packages/php/woorelease-extension/src/Commands/Release.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,17 @@ protected function configure() {
*/
protected function execute( InputInterface $input, OutputInterface $output ) {
try {
$logger = Logger::instance( $output );
$github_url = $input->getArgument( 'github_url' );
$version = $input->getOption( 'product_version' );
$wc_tested = $input->getOption( 'wc_tested' );
$wp_tested = $input->getOption( 'wp_tested' );
$prerelease = $input->getOption( 'prerelease' );
$generate_changelog = $input->getOption( 'generate_changelog' );
$nvm_use = $input->getOption( 'nvm_use' );
$default_branch = $input->getOption( 'default_branch' );
$release = ! $this->simulate;
$reauth = false !== $input->getOption( 'svn_reauth' );
$logger = Logger::instance( $output );
$github_url = $input->getArgument( 'github_url' );
$version = $input->getOption( 'product_version' );
$wc_tested = $input->getOption( 'wc_tested' );
$wp_tested = $input->getOption( 'wp_tested' );
$prerelease = $input->getOption( 'prerelease' );
$generate_changelog = $input->getOption( 'generate_changelog' );
$nvm_use = $input->getOption( 'nvm_use' );
$default_branch = $input->getOption( 'default_branch' );
$release = ! $this->simulate;
$reauth = false !== $input->getOption( 'svn_reauth' );

list( $product, $gh_org, $branch ) = Utils::parse_product_info( $github_url );

Expand Down

0 comments on commit ca6e984

Please sign in to comment.