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::icon()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 7
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
eloc 3
nc 2
nop 3
dl 0
loc 7
rs 9.4285
c 0
b 0
f 0
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