File tree Expand file tree Collapse file tree
app/Console/Commands/Wiki Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44
55use App \Wiki ;
66use App \WikiDb ;
7- use Illuminate \Support \Facades \App ;
87use Illuminate \Console \Command ;
98use Illuminate \Database \DatabaseManager ;
9+ use Illuminate \Support \Facades \App ;
1010
1111class dropDatabase extends Command {
1212 protected $ signature = 'wbs-wiki:dropDatabase {wikiDomain} ' ;
13+
1314 protected $ description = 'Drops the MediaWiki database of a wiki and soft-deletes it. ' ;
1415
1516 public function handle (): int {
16- $ wikiDomain = trim ($ this ->argument ('wikiDomain ' ));
17+ $ wikiDomain = trim ($ this ->argument ('wikiDomain ' ));
1718 $ wiki = Wiki::with ('wikidb ' )->firstWhere ('domain ' , $ wikiDomain );
1819
1920 if (!$ wiki ) {
Original file line number Diff line number Diff line change 22
33namespace Tests \Commands ;
44
5- use App \Console \Commands \Wiki \Delete ;
6- use App \Wiki ;
75use Illuminate \Foundation \Testing \DatabaseTransactions ;
86use Tests \TestCase ;
97
You can’t perform that action at this time.
0 commit comments