Conditions | 7 |
Paths | 7 |
Total Lines | 17 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
1 | <?php |
||
9 | function loadDirectory($path) { |
||
10 | if (strpos($path, 'integration')) { |
||
11 | return; |
||
12 | } |
||
13 | if ($dh = opendir($path)) { |
||
14 | while ($name = readdir($dh)) { |
||
15 | if ($name[0] !== '.') { |
||
16 | $file = $path . '/' . $name; |
||
17 | if (is_dir($file)) { |
||
18 | loadDirectory($file); |
||
19 | } elseif (substr($name, -4, 4) === '.php') { |
||
20 | require_once $file; |
||
21 | } |
||
22 | } |
||
23 | } |
||
24 | } |
||
25 | } |
||
26 | |||
45 |