Scrutinizer GitHub App not installed

We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.

Install GitHub App

Icons   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 17
rs 10
c 0
b 0
f 0
wmc 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A icon() 0 7 2
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: Marky
5
 * Date: 06/12/2017
6
 * Time: 12:50.
7
 */
8
9
namespace App\Classes\Library\StyleCSS;
10
11
class Icons
12
{
13
    /**
14
     * Generate the icon format and color, apply the url link if exists.
15
     *
16
     * @param string $iconName
17
     * @param string $color
18
     * @param string $link
19
     * @return string
20
     */
21
    protected function icon(string $iconName, string $color = null, string $link = null)
22
    {
23
        if ($link) {
24
            return sprintf('<a href="%s">%s</a>', $link, $this->icon($iconName, $color));
25
        }
26
27
        return sprintf('<i class="fa %s %s" aria-hidden="true"></i>', $iconName, $color);
28
    }
29
}
30