+ preg_match('/-----CONTENT-----\s*(.*?)\s*-----READING_TIME-----\s*(.*)/sx', $file->getContents(), $match);
+
+ if (3 !== \count($match)) {
+ throw new \Exception('Sample file "' . $file->getRelativePathname() . '" as wrong definition, see README.');
+ }
+
+ $examples[] = [
+ $file->getRelativePathname(),
+ $match[1], // content
+ $match[2], // reading time
+ ];