Code Duplication    Length = 14-14 lines in 2 locations

src/Core/Sculpin.php 2 locations

@@ 110-123 (lines=14) @@
107
            $source->data()->set('url', $permalink->relativeUrlPath());
108
        }
109
110
        if ($updatedSources = $sourceSet->updatedSources()) {
111
            if (!$found) {
112
                $this->consoleIo->write('Detected new or updated files');
113
                $found = true;
114
            }
115
116
            foreach ($updatedSources as $source) {
117
                $this->converterManager->convertSource($source);
118
119
                if ($source->canBeFormatted()) {
120
                    $source->data()->set('blocks', $this->formatterManager->formatSourceBlocks($source));
121
                }
122
            }
123
        }
124
125
        if ($updatedSources = $sourceSet->updatedSources()) {
126
            if (!$found) {
@@ 125-138 (lines=14) @@
122
            }
123
        }
124
125
        if ($updatedSources = $sourceSet->updatedSources()) {
126
            if (!$found) {
127
                $this->consoleIo->write('Detected new or updated files');
128
                $found = true;
129
            }
130
131
            foreach ($updatedSources as $source) {
132
                if ($source->canBeFormatted()) {
133
                    $source->setFormattedContent($this->formatterManager->formatSourcePage($source));
134
                } else {
135
                    $source->setFormattedContent($source->content());
136
                }
137
            }
138
        }
139
140
        foreach ($sourceSet->updatedSources() as $source) {
141
            if ($source->isGenerator() || $source->shouldBeSkipped()) {