| @@ 38-42 (lines=5) @@ | ||
| 35 | public function main() |
|
| 36 | { |
|
| 37 | $path = APP; |
|
| 38 | if (!empty($this->params['path']) && strpos($this->params['path'], '/') === 0) { |
|
| 39 | $path = $this->params['path']; |
|
| 40 | } elseif (!empty($this->params['path'])) { |
|
| 41 | $path .= $this->params['path']; |
|
| 42 | } |
|
| 43 | $folder = new Folder($path); |
|
| 44 | ||
| 45 | $r = $folder->findRecursive('.*\.php'); |
|
| @@ 67-71 (lines=5) @@ | ||
| 64 | public function trim() |
|
| 65 | { |
|
| 66 | $path = APP; |
|
| 67 | if (!empty($this->params['path']) && strpos($this->params['path'], '/') === 0) { |
|
| 68 | $path = $this->params['path']; |
|
| 69 | } elseif (!empty($this->params['path'])) { |
|
| 70 | $path .= $this->params['path']; |
|
| 71 | } |
|
| 72 | $folder = new Folder($path); |
|
| 73 | ||
| 74 | $r = $folder->findRecursive('.*\.php'); |
|