Skip to content

Commit

Permalink
Fixing phpcs issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
message-dimke committed Sep 23, 2024
1 parent ca6e984 commit 3e17ce5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/php/woorelease-extension/src/Commands/Bulk.php
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ private function getReleaseData(): array {
}

[ $slug, $version, $branch ] = array_pad( explode( "\t", $line ), 4, null );
$to_release[ $slug ] = [
$to_release[ $slug ] = [
'name' => $extensions[ $slug ]['name'],
'repo' => $extensions[ $slug ]['repoSlug'],
'version' => $version,
Expand Down
1 change: 1 addition & 0 deletions packages/php/woorelease-extension/src/Commands/Release.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ protected function execute( InputInterface $input, OutputInterface $output ) {
throw new \Exception( 'Did not find required "package.json" file in product', 2 );
}

// phpcs:ignore WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents
$version_file = file_get_contents( $folder . '/package.json' );

$entry_regex = '/^\s*"version":\s*"(?<version>\d+\.\d+\.\d+)"/ms';
Expand Down
6 changes: 3 additions & 3 deletions packages/php/woorelease-extension/src/Utils/Product.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ public static function build( $grow_root_path, $product, $folder ) {
}

if ( $build_step ) {
shell_exec( "{$grow_root_path}/bin/build '{$build_step}'" );
shell_exec( "{$grow_root_path}/bin/build '{$build_step}'" ); // phpcs:ignore
} elseif ( $use_pnpm ) {
shell_exec( "{$grow_root_path}/bin/build pnpm" );
shell_exec( "{$grow_root_path}/bin/build pnpm" ); // phpcs:ignore
} else {
shell_exec( "{$grow_root_path}/bin/build npm" );
shell_exec( "{$grow_root_path}/bin/build npm" ); // phpcs:ignore
}

$zipfile = '';
Expand Down

0 comments on commit 3e17ce5

Please sign in to comment.