@@ -24,7 +24,6 @@ |
||
| 24 | 24 | use SWP\Bundle\ContentBundle\Doctrine\ArticleRepositoryInterface; |
| 25 | 25 | use SWP\Bundle\ContentBundle\Model\ArticleInterface; |
| 26 | 26 | use SWP\Bundle\ContentBundle\Model\RouteInterface; |
| 27 | -use SWP\Bundle\CoreBundle\Model\Article; |
|
| 28 | 27 | use SWP\Component\Storage\Factory\FactoryInterface; |
| 29 | 28 | use SWP\Component\Storage\Repository\RepositoryInterface; |
| 30 | 29 | |
@@ -62,6 +62,9 @@ |
||
| 62 | 62 | return $result; |
| 63 | 63 | } |
| 64 | 64 | |
| 65 | + /** |
|
| 66 | + * @return string |
|
| 67 | + */ |
|
| 65 | 68 | private function getFragmentFromUrl(string $url, string $fragment): ?string |
| 66 | 69 | { |
| 67 | 70 | $fragments = \parse_url($url); |
@@ -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; |
@@ -43,7 +43,7 @@ |
||
| 43 | 43 | } |
| 44 | 44 | |
| 45 | 45 | $items = $package->getItems()->filter( |
| 46 | - static function ($entry) use ($guids) { |
|
| 46 | + static function($entry) use ($guids) { |
|
| 47 | 47 | return !in_array($entry->getGuid(), $guids, true); |
| 48 | 48 | } |
| 49 | 49 | ); |