Test Failed
Push — master ( 9c6ff7...d19c43 )
by Ismayil
03:41 queued 01:17
created
src/hypeJunction/Parser.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -263,7 +263,7 @@  discard block
 block discarded – undo
263 263
 	public function isImage($url = '') {
264 264
 		$mime = $this->getContentType($url);
265 265
 		if ($mime) {
266
-			list($simple, ) = explode('/', $mime);
266
+			list($simple,) = explode('/', $mime);
267 267
 			return ($simple == 'image');
268 268
 		}
269 269
 
@@ -326,7 +326,7 @@  discard block
 block discarded – undo
326 326
 	public function parseTitle(DOMDocument $doc) {
327 327
 		$node = $doc->getElementsByTagName('title');
328 328
 		$title = $node->item(0)->nodeValue;
329
-		return ($title) ? : '';
329
+		return ($title) ?: '';
330 330
 	}
331 331
 
332 332
 	/**
@@ -487,7 +487,7 @@  discard block
 block discarded – undo
487 487
 			return $href;
488 488
 		}
489 489
 
490
-		$uri = trim($doc->documentURI ? : '', '/');
490
+		$uri = trim($doc->documentURI ?: '', '/');
491 491
 
492 492
 		// Check if $url is relative to root
493 493
 		if (substr($href, 0, 1) === "/") {
Please login to merge, or discard this patch.