Skip to content

Commit

Permalink
generic formatted ; all tested mvp
Browse files Browse the repository at this point in the history
  • Loading branch information
froger-me committed Jan 11, 2024
1 parent f868714 commit 61a60b2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions integration/dummy-generic/dummy-generic.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ wppusApi.on('ready', function (api) {
console.log("Updated");
console.log("");
console.log(await api.get_update_info());
console.log("");
} else {
console.log("The package is not installed");
}
Expand Down
2 changes: 1 addition & 1 deletion integration/dummy-generic/dummy-generic.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ function dummy_generic_update() {

echo "Updated\n"; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
echo "\n"; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
echo json_encode( json_decode( WPPUS_API::get_update_info(), true ), JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped, WordPress.WP.AlternativeFunctions.json_encode_json_encode
echo json_encode( json_decode( WPPUS_API::get_update_info(), true ), JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES ) . "\n\n"; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped, WordPress.WP.AlternativeFunctions.json_encode_json_encode
} else {
echo "The package is not installed\n"; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
}
Expand Down
2 changes: 1 addition & 1 deletion integration/dummy-generic/dummy-generic.sh
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ if [ "$1" == "update" ] && [ "$(bash "$(dirname "$0")/wppus-api.sh" is_installed
echo "Updated"
echo ""
bash "$(dirname "$0")/wppus-api.sh" get_update_info

echo ""
exit 0
elif [ "$1" == "update" ]; then
echo "The package is not installed"
Expand Down

0 comments on commit 61a60b2

Please sign in to comment.