Completed
Push — master ( 6fb5e6...0d45e8 )
by Lars
05:02
created

Create.php ➔ create()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 1
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 4
ccs 1
cts 1
cp 1
crap 1
rs 10
1
<?php
2
3
namespace Arrayy;
4
5
if (!function_exists('Arrayy\create')) {
6
  /**
7
   * Creates a Arrayy object
8
   *
9
   * @param $array
10
   *
11
   * @return Arrayy
12
   */
13
  function create(array $array)
14
  {
15 1
    return new Arrayy($array);
16
  }
17
}
18