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