IconFinder   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 2
Bugs 1 Features 0
Metric Value
wmc 2
c 2
b 1
f 0
lcom 0
cbo 1
dl 0
loc 18
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A isFaviconAvailable() 0 9 2
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