Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 4
0.00% covered (danger)
0.00%
0 / 1
CRAP
0.00% covered (danger)
0.00%
0 / 1
AddSectionImageLogFormatter
0.00% covered (danger)
0.00%
0 / 4
0.00% covered (danger)
0.00%
0 / 1
6
0.00% covered (danger)
0.00%
0 / 1
 getMessageKey
0.00% covered (danger)
0.00%
0 / 4
0.00% covered (danger)
0.00%
0 / 1
6
1<?php
2
3namespace GrowthExperiments\NewcomerTasks\AddSectionImage;
4
5use LogFormatter;
6
7class AddSectionImageLogFormatter extends LogFormatter {
8
9    /** @inheritDoc */
10    protected function getMessageKey() {
11        $accepted = $this->entry->getParameters()['accepted'];
12        return $accepted
13            ? 'logentry-growthexperiments-addsectionimage-accepted'
14            : 'logentry-growthexperiments-addsectionimage-rejected';
15    }
16
17}