From c175396b775c7bbcae257275049ca22791fe0ac4 Mon Sep 17 00:00:00 2001 From: Aarjan Langereis Date: Sat, 27 Apr 2019 15:31:25 +0200 Subject: [PATCH 1/3] Added itemReviewed to AggregateRating --- src/ContextTypes/AggregateRating.php | 1 + tests/ContextTypes/AggregateRatingTest.php | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/src/ContextTypes/AggregateRating.php b/src/ContextTypes/AggregateRating.php index a4d449d..2e10a6f 100644 --- a/src/ContextTypes/AggregateRating.php +++ b/src/ContextTypes/AggregateRating.php @@ -15,5 +15,6 @@ class AggregateRating extends AbstractContext 'bestRating' => null, 'worstRating' => null, 'ratingCount' => null, + 'itemReviewed' => Thing::class, ]; } \ No newline at end of file diff --git a/tests/ContextTypes/AggregateRatingTest.php b/tests/ContextTypes/AggregateRatingTest.php index e54f116..ee8dedb 100644 --- a/tests/ContextTypes/AggregateRatingTest.php +++ b/tests/ContextTypes/AggregateRatingTest.php @@ -15,6 +15,10 @@ class AggregateRatingTest extends TestCase 'bestRating' => 4.5, 'worstRating' => 1, 'ratingCount' => 4, + 'itemReviewed' => [ + '@type' => 'Thing', + 'name' => 'Fluff Hut', + ], ]; /** From 20a8efc8cf4caf4e08abb0dc78ad25d15769e9a0 Mon Sep 17 00:00:00 2001 From: Daniel Stainback Date: Wed, 8 May 2019 11:45:08 -0400 Subject: [PATCH 2/3] Fix indenting --- src/ContextTypes/AggregateRating.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ContextTypes/AggregateRating.php b/src/ContextTypes/AggregateRating.php index 2e10a6f..f40ffdc 100644 --- a/src/ContextTypes/AggregateRating.php +++ b/src/ContextTypes/AggregateRating.php @@ -15,6 +15,6 @@ class AggregateRating extends AbstractContext 'bestRating' => null, 'worstRating' => null, 'ratingCount' => null, - 'itemReviewed' => Thing::class, + 'itemReviewed' => Thing::class, ]; -} \ No newline at end of file +} From a5ff5c9ef8f514415c2f9c35e148b5110e1b236b Mon Sep 17 00:00:00 2001 From: Daniel Stainback Date: Wed, 8 May 2019 11:45:48 -0400 Subject: [PATCH 3/3] Fix indenting --- tests/ContextTypes/AggregateRatingTest.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/ContextTypes/AggregateRatingTest.php b/tests/ContextTypes/AggregateRatingTest.php index ee8dedb..ce93264 100644 --- a/tests/ContextTypes/AggregateRatingTest.php +++ b/tests/ContextTypes/AggregateRatingTest.php @@ -15,10 +15,10 @@ class AggregateRatingTest extends TestCase 'bestRating' => 4.5, 'worstRating' => 1, 'ratingCount' => 4, - 'itemReviewed' => [ - '@type' => 'Thing', - 'name' => 'Fluff Hut', - ], + 'itemReviewed' => [ + '@type' => 'Thing', + 'name' => 'Fluff Hut', + ], ]; /**