GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Code Duplication    Length = 19-19 lines in 2 locations

lib/Core/EmailDataProvider/DefaultProvider.php 1 location

@@ 74-92 (lines=19) @@
71
     *
72
     * @return EmailContent
73
     */
74
    public function build(InformationCollected $value): EmailContent
75
    {
76
        $contentType = $value->getContentType();
77
78
        $template = $this->resolveTemplate($contentType->identifier);
79
80
        $templateWrapper = $this->twig->load($template);
81
        $data = new TemplateContent($value, $templateWrapper);
82
83
        $body = $this->resolveBody($data);
84
85
        return new EmailContent(
86
            $this->resolveEmail($data, Constants::FIELD_RECIPIENT),
87
            $this->resolveEmail($data, Constants::FIELD_SENDER),
88
            $this->resolve($data, Constants::FIELD_SUBJECT),
89
            $body,
90
            $this->resolveAttachments($contentType->identifier, $value->getInformationCollectionStruct()->getFieldsData())
91
        );
92
    }
93
94
    public function provide(InformationCollected $value): Email
95
    {

lib/Core/Factory/EmailDataFactory.php 1 location

@@ 74-92 (lines=19) @@
71
     *
72
     * @return EmailContent
73
     */
74
    public function build(InformationCollected $value): EmailContent
75
    {
76
        $contentType = $value->getContentType();
77
78
        $template = $this->resolveTemplate($contentType->identifier);
79
80
        $templateWrapper = $this->twig->load($template);
81
        $data = new TemplateContent($value, $templateWrapper);
82
83
        $body = $this->resolveBody($data);
84
85
        return new EmailContent(
86
            $this->resolveEmail($data, Constants::FIELD_RECIPIENT),
87
            $this->resolveEmail($data, Constants::FIELD_SENDER),
88
            $this->resolve($data, Constants::FIELD_SUBJECT),
89
            $body,
90
            $this->resolveAttachments($contentType->identifier, $value->getInformationCollectionStruct()->getFieldsData())
91
        );
92
    }
93
94
    /**
95
     * Returns resolved parameter.