@@ -143,7 +143,7 @@ |
||
| 143 | 143 | |
| 144 | 144 | $ids = array_column($rules['tenants'], 'tenant'); |
| 145 | 145 | $ids = array_unique($ids); |
| 146 | - $tenants = array_filter($rules['tenants'], static function ($key, $value) use ($ids) { |
|
| 146 | + $tenants = array_filter($rules['tenants'], static function($key, $value) use ($ids) { |
|
| 147 | 147 | return array_key_exists($value, $ids); |
| 148 | 148 | }, ARRAY_FILTER_USE_BOTH); |
| 149 | 149 | |
@@ -49,7 +49,7 @@ |
||
| 49 | 49 | |
| 50 | 50 | $this->removeOldRelatedArticles($article); |
| 51 | 51 | |
| 52 | - $relatedItemsGroups = $package->getGroups()->filter(static function ($group) { |
|
| 52 | + $relatedItemsGroups = $package->getGroups()->filter(static function($group) { |
|
| 53 | 53 | return GroupInterface::TYPE_RELATED === $group->getType(); |
| 54 | 54 | }); |
| 55 | 55 | |
@@ -16,10 +16,8 @@ |
||
| 16 | 16 | |
| 17 | 17 | namespace SWP\Bundle\CoreBundle\Consumer; |
| 18 | 18 | |
| 19 | -use Doctrine\DBAL\DBALException; |
|
| 20 | 19 | use Doctrine\DBAL\Exception\NotNullConstraintViolationException; |
| 21 | 20 | use Doctrine\ORM\EntityManagerInterface; |
| 22 | -use Doctrine\ORM\NonUniqueResultException; |
|
| 23 | 21 | use Doctrine\ORM\ORMException; |
| 24 | 22 | use Exception; |
| 25 | 23 | use OldSound\RabbitMqBundle\RabbitMq\ConsumerInterface; |