@@ 62-74 (lines=13) @@ | ||
59 | $coverageResult->addMethodCall('addCoverageProcessor', [new Definition($processorClass, $dependencies)]); |
|
60 | } |
|
61 | ||
62 | private function addFileProcessor( |
|
63 | Definition $coverageResult, |
|
64 | InputInterface $input, |
|
65 | string $processorClass |
|
66 | ) { |
|
67 | $optionName = $this->getOptionName($processorClass); |
|
68 | ||
69 | if ($input->getOption($optionName)) { |
|
70 | $this->addProcessor($coverageResult, $processorClass, [ |
|
71 | $this->createOutputFileDefinition($input, $optionName), |
|
72 | ]); |
|
73 | } |
|
74 | } |
|
75 | ||
76 | private function addPathProcessor( |
|
77 | Definition $coverageResult, |
|
@@ 76-88 (lines=13) @@ | ||
73 | } |
|
74 | } |
|
75 | ||
76 | private function addPathProcessor( |
|
77 | Definition $coverageResult, |
|
78 | InputInterface $input, |
|
79 | string $processorClass |
|
80 | ) { |
|
81 | $optionName = $this->getOptionName($processorClass); |
|
82 | ||
83 | if ($input->getOption($optionName)) { |
|
84 | $this->addProcessor($coverageResult, $processorClass, [ |
|
85 | $this->createOutputPathDefinition($input, $optionName), |
|
86 | ]); |
|
87 | } |
|
88 | } |
|
89 | ||
90 | private function createOutputFileDefinition(InputInterface $input, string $optionName): Definition |
|
91 | { |