Code Duplication    Length = 3-3 lines in 2 locations

src/SWP/Bundle/ContentBundle/Rule/Applicator/ArticleRuleApplicator.php 1 location

@@ 89-91 (lines=3) @@
86
87
        $subject->setTemplateName($configuration['templateName']);
88
89
        if ((bool) $configuration['published']) {
90
            $this->eventDispatcher->dispatch(ArticleEvents::PUBLISH, new ArticleEvent($subject, null, ArticleEvents::PUBLISH));
91
        }
92
93
        $this->logger->info(sprintf(
94
            'Configuration: "%s" for "%s" rule has been applied!',

src/SWP/Bundle/CoreBundle/Service/ArticlePublisher.php 1 location

@@ 110-112 (lines=3) @@
107
            foreach ($tenants as $tenant) {
108
                /* @var TenantInterface $tenant */
109
                $this->tenantContext->setTenant($tenant);
110
                if ($article->getTenantCode() === $tenant->getCode()) {
111
                    $this->eventDispatcher->dispatch(ArticleEvents::UNPUBLISH, new ArticleEvent($article, null, ArticleEvents::UNPUBLISH));
112
                }
113
            }
114
        }
115