Code Duplication    Length = 2-2 lines in 2 locations

src/Plugin/WebBrowser.php 2 locations

@@ 305-306 (lines=2) @@
302
				'url' => resolve_url($e->data[0], $node->attr('href')),
303
				'referer' => $node->document->location,
304
			), $xhr);
305
			if ((! $callback || !($callback instanceof \Callback)) && $e->data[1])
306
				$callback = $e->data[1];
307
			if ($xhr->getLastResponse()->isSuccessful() && $callback)
308
				PhpQuery::callbackRun($callback, array(
309
					self::browserReceive($xhr)
@@ 352-353 (lines=2) @@
349
		if ($node->attr('enctype'))
350
			$options['contentType'] = $node->attr('enctype');
351
		$xhr = PhpQuery::ajax($options, $xhr);
352
		if ((! $callback || !($callback instanceof Callback)) && $e->data[1])
353
			$callback = $e->data[1];
354
		if ($xhr->getLastResponse()->isSuccessful() && $callback)
355
			PhpQuery::callbackRun($callback, array(
356
				self::browserReceive($xhr)