@@ -310,7 +310,7 @@ $update = JsonUpdate::create(
310310$update = (new JsonUpdate('https://example.com/books/1'))
311311 ->data(['title' => 'New Book', 'price' => 29.99])
312312 ->private()
313- ->id('book-123' )
313+ ->id(Text::uuid() )
314314 ->type('book.created')
315315 ->retry(5000)
316316 ->build();
@@ -356,7 +356,7 @@ $update = ViewUpdate::create(
356356$update = (new ViewUpdate('https://example.com/notifications'))
357357 ->template('Notifications/item')
358358 ->viewVars(['notification' => $notification])
359- ->viewOptions(['plugin ' => 'MyPlugin '])
359+ ->viewOptions(['key ' => 'value '])
360360 ->build();
361361
362362Publisher::publish($update);
@@ -1114,7 +1114,7 @@ $update = (new JsonUpdate('/books/1'))
11141114 ->data(['title' => 'Book', 'price' => 29.99])
11151115 ->jsonOptions(JSON_UNESCAPED_UNICODE)
11161116 ->private()
1117- ->id('book-123' )
1117+ ->id(Text::uuid() )
11181118 ->type('book.updated')
11191119 ->retry(5000)
11201120 ->build();
@@ -1166,7 +1166,7 @@ $update = (new ViewUpdate('/notifications'))
11661166 ->template('Notifications/item')
11671167 ->viewVars(['notification' => $notification])
11681168 ->layout('ajax')
1169- ->viewOptions(['plugin ' => 'MyPlugin '])
1169+ ->viewOptions(['key ' => 'value '])
11701170 ->private()
11711171 ->id('notif-123')
11721172 ->type('notification.new')
@@ -1281,6 +1281,7 @@ Contributions are welcome! Please follow these guidelines:
12811281 ``` bash
12821282 composer cs-check # Check code style
12831283 composer stan # Run PHPStan analysis
1284+ composer rector # Run rectoring
12841285 composer test # Run tests
12851286 ```
12861287
0 commit comments