Conditions | 4 |
Paths | 4 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 20 |
Changes | 0 |
1 | <?php |
||
36 | public function beforeRun(SourceSetEvent $sourceSetEvent) |
||
37 | { |
||
38 | foreach ($sourceSetEvent->updatedSources() as $source) { |
||
39 | foreach ($this->extensions as $extension) { |
||
40 | if (fnmatch("*.{$extension}", $source->filename())) { |
||
41 | $source->data()->append('converters', SculpinMarkdownBundle::CONVERTER_NAME); |
||
42 | break; |
||
43 | } |
||
44 | } |
||
45 | } |
||
46 | } |
||
47 | } |
||
48 |