Completed
Push — master ( 8efa28...ea55d0 )
by
unknown
03:55
created

StringFn::mysql_concat()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 6
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 8
ccs 6
cts 6
cp 1
rs 9.4285
c 0
b 0
f 0
cc 2
eloc 5
nc 2
nop 0
crap 2
1
<?php
2
3
namespace Vectorface\MySQLite\MySQL;
4
5
/**
6
 * Provides String Manipulation MySQL compatibility functions for SQLite.
7
 *
8
 * http://dev.mysql.com/doc/refman/5.7/en/string-functions.html
9
 */
10
trait StringFn
11
{
12
13
     /**
14
     * Concat - Return a concatinated string of all function arguments provided
15
     * @return string $str concatinated string
16
     */
17 1
    public static function mysql_concat()
18
    {
19 1
        $str = '';
20 1
        foreach (func_get_args() as $arg) {
21 1
            $str .= $arg;
22 1
        }
23 1
        return $str;
24
    }
25
}
26