Completed
Push — master ( 4aee11...dd7177 )
by Kacper
04:24
created

map.php ➔ prepend()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 1
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
namespace Kadet\Xmpp\Utils\map;
4
5
function prepend(string $prefix) {
6
    return function($content) use ($prefix) {
7
        return $prefix . $content;
8
    };
9
}
10
11
function append(string $suffix) {
12
    return function($content) use ($suffix) {
13
        return $content . $suffix;
14
    };
15
}
16