|
@@ -86,7 +86,7 @@ discard block |
|
|
block discarded – undo |
|
86
|
86
|
) { |
|
87
|
87
|
$review = $this->createProductReview($product, $title, $rating, $title, $customer); |
|
88
|
88
|
if (null !== $daysSinceCreation) { |
|
89
|
|
- $review->setCreatedAt(new \DateTime('-'.$daysSinceCreation.' days')); |
|
|
89
|
+ $review->setCreatedAt(new \DateTime('-' . $daysSinceCreation . ' days')); |
|
90
|
90
|
} |
|
91
|
91
|
|
|
92
|
92
|
$this->productReviewRepository->add($review); |
|
@@ -114,7 +114,7 @@ discard block |
|
|
block discarded – undo |
|
114
|
114
|
{ |
|
115
|
115
|
$customer = $this->sharedStorage->get('customer'); |
|
116
|
116
|
foreach ($rates as $key => $rate) { |
|
117
|
|
- $review = $this->createProductReview($product, 'Title '.$key, $rate, 'Comment '.$key, $customer); |
|
|
117
|
+ $review = $this->createProductReview($product, 'Title ' . $key, $rate, 'Comment ' . $key, $customer); |
|
118
|
118
|
$this->productReviewRepository->add($review); |
|
119
|
119
|
} |
|
120
|
120
|
} |
Please login to merge, or discard this patch.