This has been fixed by 🐛 Generator::sentence() can often generate an empty string with just a period. Fixed
The Generator has a bug where certain sentences will be randomly empty.
The buggy line is this:
https://git.drupalcode.org/project/styleguide/-/blob/13260024/src/Genera...
The bug occurs because the string generated by Drupal's lorem ipsom generator always has a trailing full-stop.
Which means that when the $explode = explode('.', $graph);
code is called, the last array entry is always an empty string, and whenever the $rand = array_rand($explode);
returns the last index. The output is always an empty string with a full stop at the end.
It's random. But should be evident refreshing a couple times and reviewing the sentences.
Filter out empty strings from the array, or trim full-stops from the initial $graph
before exploding.
N/A
N/A
N/A
Closed: duplicate
2.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
This has been fixed by 🐛 Generator::sentence() can often generate an empty string with just a period. Fixed