Completed
Push — master ( 963082...ea7397 )
by Kacper
03:55
created

functions.php ➔ Kadet\Highlighter\highlight()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %
Metric Value
cc 1
eloc 2
nc 1
nop 3
dl 0
loc 4
rs 10
1
<?php
2
/**
3
 * Highlighter
4
 *
5
 * Copyright (C) 2016, Some right reserved.
6
 *
7
 * @author Kacper "Kadet" Donat <[email protected]>
8
 *
9
 * Contact with author:
10
 * Xmpp: [email protected]
11
 * E-mail: [email protected]
12
 *
13
 * From Kadet with love.
14
 */
15
16
namespace Kadet\Highlighter;
17
18
use Kadet\Highlighter\Formatter\FormatterInterface;
19
use Kadet\Highlighter\Language\Language;
20
21
function highlight($source, Language $language, FormatterInterface $formatter = null)
22
{
23
    return KeyLighter::get()->highlight($source, $language, $formatter);
24
}
25