Test Failed
Pull Request — master (#5)
by Rafael
03:54
created

Emulate::split()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 2
dl 0
loc 3
rs 10
1
<?php
2
3
namespace DBSeller\Legacy\PHP56;
4
5
class Emulate {
6
7
  /**
8
   * Split string into array by regular expression
9
   *
10
   * @return array
11
   */
12
  public static function split($pattern, $string) {
13
    return explode($pattern, $string);
14
  }
15
}
16