CodePoints   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 4
c 1
b 0
f 0
dl 0
loc 14
ccs 4
cts 4
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A insert() 0 5 2
1
<?php
2
3
namespace Fatindeed\EmojiHelper;
4
5
use SplMinHeap;
6
7
class CodePoints extends SplMinHeap
8
{
9
    /**
10
     * Insert a code point(decimal).
11
     *
12
     * @param number $value Code point.
13
     *
14
     * @return void
15
     */
16 1
    public function insert($value)
17
    {
18 1
        $number = intval($value);
19 1
        if ($number > 255) {
20 1
            parent::insert($number);
21
        }
22 1
    }
23
}
24