| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 15 | 
| Code Lines | 9 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 10 | 
| CRAP Score | 2 | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 31 | 5 | public function handle()  | 
            |
| 32 |     { | 
            ||
| 33 | 5 | $config = App::make(Repository::class);  | 
            |
| 34 | |||
| 35 | 5 |         $indexPath = $config->get('search.index.path'); | 
            |
| 36 | |||
| 37 | 5 |         $this->info('Destroying the search index.'); | 
            |
| 38 | |||
| 39 | 5 |         if (File::isDirectory($indexPath)) { | 
            |
| 40 | 5 | File::deleteDirectory($indexPath);  | 
            |
| 41 | 5 |             $this->info('Search index is destroyed.'); | 
            |
| 42 | 5 |         } else { | 
            |
| 43 | 1 |             $this->comment('There was nothing to destroy?  Try a rebuild.'); | 
            |
| 44 | }  | 
            ||
| 45 | 5 | }  | 
            |
| 46 | }  | 
            ||
| 47 |