Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
22 | 3 | public function overrideRestructure($structuredOutput, $configurationData, $options) |
|
23 | { |
||
24 | // If the structured data implements ListDataInterface, |
||
25 | // then we will render whatever data its 'getListData' |
||
26 | // method provides. |
||
27 | 3 | if ($structuredOutput instanceof ListDataInterface) { |
|
28 | 2 | return $structuredOutput->getListData(); |
|
29 | } |
||
30 | 1 | } |
|
31 | } |
||
32 |