@@ -46,9 +46,16 @@ |
||
| 46 | 46 | return $this->replaceEmbeddedLinksWith( $this->querySource, $value ); |
| 47 | 47 | } |
| 48 | 48 | |
| 49 | + /** |
|
| 50 | + * @param string $source |
|
| 51 | + */ |
|
| 49 | 52 | private function replaceEmbeddedLinksWith( $source, $value ) { |
| 50 | 53 | $value = preg_replace_callback( |
| 51 | 54 | '/\[\[(.*)\]\]/xu', |
| 55 | + |
|
| 56 | + /** |
|
| 57 | + * @param string $matches |
|
| 58 | + */ |
|
| 52 | 59 | function( array $matches ) use( $source ) { |
| 53 | 60 | $caption = false; |
| 54 | 61 | $value = ''; |