File tree Expand file tree Collapse file tree 3 files changed +4
-9
lines changed
functions/helloworld_pubsub Expand file tree Collapse file tree 3 files changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -26,13 +26,7 @@ function helloworldPubsub(CloudEvent $event): void
26
26
$ cloudEventData = $ event ->getData ();
27
27
$ pubSubData = base64_decode ($ cloudEventData ['message ' ]['data ' ]);
28
28
29
- if ($ pubSubData ) {
30
- $ name = htmlspecialchars ($ pubSubData );
31
- } else {
32
- $ name = 'World ' ;
33
- }
34
-
35
- $ result = 'Hello, ' . $ name . '! ' ;
36
- fwrite ($ log , $ result . PHP_EOL );
29
+ $ name = $ pubSubData ? htmlspecialchars ($ pubSubData ) : 'World ' ;
30
+ fwrite ($ log , "Hello, $ name! " . PHP_EOL );
37
31
}
38
32
// [END functions_helloworld_pubsub]
Original file line number Diff line number Diff line change @@ -190,7 +190,7 @@ public function testBackupPolicies()
190
190
191
191
/**
192
192
* @depends testBackupPolicies
193
- * @retryAttempts 2
193
+ * @retryAttempts 3
194
194
* @retryDelaySeconds 10
195
195
*/
196
196
public function testRestorePolicies ()
Original file line number Diff line number Diff line change @@ -60,6 +60,7 @@ ALT_PROJECT_TESTS=(
60
60
logging
61
61
monitoring
62
62
pubsub/api
63
+ pubsub/quickstart
63
64
storage
64
65
spanner
65
66
video
You can’t perform that action at this time.
0 commit comments