@@ -14,10 +14,9 @@ |
||
| 14 | 14 | namespace Sylius\Bundle\ReviewBundle\Updater; |
| 15 | 15 | |
| 16 | 16 | use Doctrine\Common\Persistence\ObjectManager; |
| 17 | -use Doctrine\ORM\EntityManager; |
|
| 18 | 17 | use Sylius\Component\Review\Calculator\ReviewableRatingCalculatorInterface; |
| 19 | -use Sylius\Component\Review\Model\ReviewableInterface; |
|
| 20 | 18 | use Sylius\Component\Review\Model\ReviewInterface; |
| 19 | +use Sylius\Component\Review\Model\ReviewableInterface; |
|
| 21 | 20 | |
| 22 | 21 | class AverageRatingUpdater implements ReviewableRatingUpdaterInterface |
| 23 | 22 | { |
@@ -104,6 +104,9 @@ |
||
| 104 | 104 | return $webDirectory; |
| 105 | 105 | } |
| 106 | 106 | |
| 107 | + /** |
|
| 108 | + * @param string $webDirectory |
|
| 109 | + */ |
|
| 107 | 110 | private function assertFileContent($lines, $webDirectory): void |
| 108 | 111 | { |
| 109 | 112 | foreach ($lines as $line) { |
@@ -25,6 +25,7 @@ discard block |
||
| 25 | 25 | |
| 26 | 26 | /** |
| 27 | 27 | * @param string|null $name |
| 28 | + * @return void |
|
| 28 | 29 | */ |
| 29 | 30 | public function setName(?string $name): void; |
| 30 | 31 | |
@@ -35,6 +36,7 @@ discard block |
||
| 35 | 36 | |
| 36 | 37 | /** |
| 37 | 38 | * @param string|null $abbreviation |
| 39 | + * @return void |
|
| 38 | 40 | */ |
| 39 | 41 | public function setAbbreviation(?string $abbreviation): void; |
| 40 | 42 | |
@@ -45,6 +47,7 @@ discard block |
||
| 45 | 47 | |
| 46 | 48 | /** |
| 47 | 49 | * @param CountryInterface|null $country |
| 50 | + * @return void |
|
| 48 | 51 | */ |
| 49 | 52 | public function setCountry(?CountryInterface $country): void; |
| 50 | 53 | } |
@@ -27,6 +27,7 @@ discard block |
||
| 27 | 27 | |
| 28 | 28 | /** |
| 29 | 29 | * @param ProductOptionInterface|null $option |
| 30 | + * @return void |
|
| 30 | 31 | */ |
| 31 | 32 | public function setOption(?ProductOptionInterface $option): void; |
| 32 | 33 | |
@@ -37,6 +38,7 @@ discard block |
||
| 37 | 38 | |
| 38 | 39 | /** |
| 39 | 40 | * @param string|null $value |
| 41 | + * @return void |
|
| 40 | 42 | */ |
| 41 | 43 | public function setValue(?string $value): void; |
| 42 | 44 | |