code/formatters/SimpleWikiFormatter.php
public function parseNewPagesFrom($content) {
		$pages = array();
		if (preg_match_all('/\[\[([\w\s_.-]+)\]\]/', $content, $matches)) {
			// exit(print_r($matches));
			foreach ($matches[1] as $pageTitle) {
				$pages[] = $pageTitle;
			}
		}

		return $pages;
	}
public function parseNewPagesFrom($content) {
		$pages = array();
		if (preg_match_all('/\[\[([\w\s_.-]+)\]\]/', $content, $matches)) {
			// exit(print_r($matches));
			foreach ($matches[1] as $pageTitle) {
				$pages[] = $pageTitle;
			}
		}

		return $pages;
	}
public function parseNewPagesFrom ( $ content ) { $ pages = array ( ) ; if ( preg_match_all ( '/\[\[([\w\s_.-]+)\]\]/' , $ content , $ matches ) ) { // exit(print_r($matches)); foreach ( $ matches [ 1 ] as $ pageTitle ) { $ pages [ ] = $ pageTitle ; } } return $ pages ; }
Separated into a separate method for testing

@param String $content
@return array
Separated into a separate method for testing