| Conditions | 4 | 
| Paths | 4 | 
| Total Lines | 16 | 
| Code Lines | 11 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 13 | public function writeMetadata(OutputInterface $output, $structuredOutput, FormatterOptions $options)  | 
            ||
| 14 |     { | 
            ||
| 15 | $template = $options->get(FormatterOptions::METADATA_TEMPLATE);  | 
            ||
| 16 |         if (!$template) { | 
            ||
| 17 | return;  | 
            ||
| 18 | }  | 
            ||
| 19 |         if (!$structuredOutput instanceof MetadataInterface) { | 
            ||
| 20 | return;  | 
            ||
| 21 | }  | 
            ||
| 22 | $metadata = $structuredOutput->getMetadata();  | 
            ||
| 23 |         if (empty($metadata)) { | 
            ||
| 24 | return;  | 
            ||
| 25 | }  | 
            ||
| 26 | $message = $this->interpolate($template, $metadata);  | 
            ||
| 27 | return $output->writeln($message);  | 
            ||
| 28 | }  | 
            ||
| 29 | |||
| 54 |