IconFinder::isFaviconAvailable()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 9
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 1 Features 0
Metric Value
c 2
b 1
f 0
dl 0
loc 9
rs 9.6666
cc 2
eloc 4
nc 2
nop 1
1
<?php
2
3
/*
4
 * This file is part of the Favicon Finder Package
5
 *
6
 * (c) Nexuslink Services
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace FaviconFinder;
13
14
use FaviconFinder\src\Services\FaviconHelper;
15
16
class IconFinder {
17
    
18
    /**
19
     * @param string $url
20
     * 
21
     * @return bool     
22
     */    
23
    public function isFaviconAvailable($url) {
24
        
25
        if($url != '')
26
        {
27
            return FaviconHelper::check($url);
28
        }
29
        
30
        return false;
31
    }
32
    
33
}
34