Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
44 | protected function getBlockContent(array $attributes, string $content): string |
||
45 | { |
||
46 | $blockContentPlaceholder = '<p><strong>%s</strong> %s</p>'; |
||
47 | return sprintf( |
||
48 | $blockContentPlaceholder, |
||
49 | \__('Enabled:', 'graphql-api'), |
||
50 | $this->getBooleanLabel($attributes[self::ATTRIBUTE_NAME_IS_ENABLED] ?? true) |
||
51 | ); |
||
54 |