Completed
Push — master ( fcd09b...a3140b )
by Kacper
08:42
created

stanza.php ➔ type()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 3
ccs 0
cts 0
cp 0
crap 2
rs 10
c 1
b 0
f 0
1
<?php
2
/**
3
 * Nucleus - XMPP Library for PHP
4
 *
5
 * Copyright (C) 2016, Some rights 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
namespace Kadet\Xmpp\Utils\filter\stanza;
16
17
use Kadet\Xmpp\Utils\filter\element;
18
19
function id($id) {
20
    return element\attribute('id', $id);
21
}
22
23
function type($type) {
24
    return element\attribute('type', $type);
25
}
26