@@ -74,7 +74,7 @@ |
||
| 74 | 74 | |
| 75 | 75 | private function getRelated(PackageInterface $package): RelatedArticleList |
| 76 | 76 | { |
| 77 | - $relatedItemsGroups = $package->getItems()->filter(static function ($group) { |
|
| 77 | + $relatedItemsGroups = $package->getItems()->filter(static function($group) { |
|
| 78 | 78 | return ItemInterface::TYPE_TEXT === $group->getType(); |
| 79 | 79 | }); |
| 80 | 80 | |
@@ -49,7 +49,7 @@ |
||
| 49 | 49 | |
| 50 | 50 | $this->removeOldRelatedArticles($article); |
| 51 | 51 | |
| 52 | - $relatedItemsGroups = $package->getItems()->filter(static function ($item) { |
|
| 52 | + $relatedItemsGroups = $package->getItems()->filter(static function($item) { |
|
| 53 | 53 | return ItemInterface::TYPE_TEXT === $item->getType(); |
| 54 | 54 | }); |
| 55 | 55 | |
@@ -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); |
@@ -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 | ); |