File tree Expand file tree Collapse file tree
app/Console/Commands/User Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66use Illuminate \Console \Command ;
77use PDO ;
88
9- class CheckUserEmailExist extends Command{
10-
9+ class CheckUserEmailExist extends Command {
1110 protected $ signature = 'wbs-user:check-email {emails*} ' ;
11+
1212 protected $ description = 'Check if emails exist in apidb.users or any MediaWiki user table ' ;
1313
1414 public function handle (): int {
@@ -25,15 +25,15 @@ public function handle(): int {
2525 foreach ($ emails as $ email ) {
2626 $ found = false ;
2727
28- //Check apidb.users
28+ // Check apidb.users
2929 if (User::whereEmail ($ email )->exists ()) {
3030 $ this ->line ("FOUND: {$ email } in apidb.users " );
3131 $ found = true ;
3232 }
3333
34- //Check MediaWiki databases
34+ // Check MediaWiki databases
3535 foreach ($ mwDatabases as $ dbName ) {
36- //fetch user table name
36+ // fetch user table name
3737 $ tableStmt = $ pdo ->prepare ("
3838 SELECT TABLE_NAME
3939 FROM INFORMATION_SCHEMA.TABLES
@@ -72,5 +72,4 @@ public function handle(): int {
7272
7373 return 0 ;
7474 }
75-
7675}
You can’t perform that action at this time.
0 commit comments