| 1 | <?php |
||
| 7 | class Html5Module extends AbstractThemeModule |
||
| 8 | { |
||
| 9 | use WpBridgeTrait; |
||
| 10 | |||
| 11 | /** |
||
| 12 | * Wrap images with figure tag. |
||
| 13 | * Courtesy of Interconnectit http://interconnectit.com/2175/how-to-remove-p-tags-from-images-in-wordpress/ |
||
| 14 | * |
||
| 15 | * @param string $content |
||
| 16 | * |
||
| 17 | * @return string |
||
| 18 | */ |
||
| 19 | public function wrapImgInFigure($content) |
||
| 41 | |||
| 42 | 1 | protected function doInit() |
|
| 52 | |||
| 53 | /** |
||
| 54 | * Override in concrete subclass. |
||
| 55 | * |
||
| 56 | * @return array |
||
|
|
|||
| 57 | */ |
||
| 58 | 1 | protected function getFilterMap() |
|
| 70 | } |
||
| 71 |
This check looks for the generic type
arrayas a return type and suggests a more specific type. This type is inferred from the actual code.