| @@ 19-25 (lines=7) @@ | ||
| 16 | /** |
|
| 17 | * @author Beñat Espiña <[email protected]> |
|
| 18 | */ |
|
| 19 | trait FileFinder |
|
| 20 | { |
|
| 21 | protected static function exist($file, $path, $fileType = 'php') |
|
| 22 | { |
|
| 23 | return 0 !== preg_match('/^' . str_replace('/', '\/', $path) . '\/(.*)(\.' . $fileType . ')$/', $file); |
|
| 24 | } |
|
| 25 | } |
|
| 26 | ||
| @@ 19-25 (lines=7) @@ | ||
| 16 | /** |
|
| 17 | * @author Beñat Espiña <[email protected]> |
|
| 18 | */ |
|
| 19 | trait Process |
|
| 20 | { |
|
| 21 | protected static function process($file, $path, $fileType = 'php') |
|
| 22 | { |
|
| 23 | return 0 !== preg_match('/^' . str_replace('/', '\/', $path) . '\/(.*)(\.' . $fileType . ')$/', $file); |
|
| 24 | } |
|
| 25 | } |
|
| 26 | ||