| Total Complexity | 6 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | trait ResetsApplication |
||
| 11 | { |
||
| 12 | public function resetApplication() |
||
| 13 | { |
||
| 14 | $this->resetMedia(); |
||
| 15 | $this->resetPages(); |
||
| 16 | $this->resetPosts(); |
||
| 17 | $this->resetDocs(); |
||
| 18 | $this->resetSite(); |
||
| 19 | } |
||
| 20 | |||
| 21 | public function resetMedia() |
||
| 22 | { |
||
| 23 | // |
||
| 24 | } |
||
| 25 | |||
| 26 | public function resetPages() |
||
| 27 | { |
||
| 28 | array_map('unlinkUnlessDefault', glob(Hyde::path('_pages/*.md'))); |
||
| 29 | array_map('unlinkUnlessDefault', glob(Hyde::path('_pages/*.blade.php'))); |
||
| 30 | } |
||
| 31 | |||
| 32 | public function resetPosts() |
||
| 35 | } |
||
| 36 | |||
| 37 | public function resetDocs() |
||
| 38 | { |
||
| 39 | array_map('unlinkUnlessDefault', glob(Hyde::path('_docs/*.md'))); |
||
| 40 | } |
||
| 41 | |||
| 42 | public function resetSite() |
||
| 47 | } |
||
| 48 | } |
||
| 49 |