Conditions | 7 |
Paths | 3 |
Total Lines | 13 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
20 | function fetchInSubFolder( $_dir = "./", $_function) { |
||
21 | $temp = []; |
||
22 | if (is_dir($_dir)) { |
||
23 | if ($dirOpened = opendir($_dir)) { |
||
24 | while (($file = readdir($dirOpened)) !== false) |
||
25 | if( ($file !='.')&&($file !='..') ) |
||
26 | if($_function($file)) |
||
27 | array_push($temp,$file); |
||
28 | closedir($dirOpened); |
||
29 | } |
||
30 | } |
||
31 | return $temp; |
||
32 | } |
||
33 | function requireSubfolder( $_dir = "./" ) { |
||
46 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.