]> BookStack Code Mirror - bookstack/blobdiff - app/Console/Commands/DeleteUsers.php
Added test for logical-theme-system command registration
[bookstack] / app / Console / Commands / DeleteUsers.php
index 6dba83e1379a38198e34dce14ccf4734647ab235..5627dd1f80456a7066110833642ed131db4d2d11 100644 (file)
@@ -2,13 +2,12 @@
 
 namespace BookStack\Console\Commands;
 
-use BookStack\User;
-use BookStack\Repos\UserRepo;
+use BookStack\Auth\User;
+use BookStack\Auth\UserRepo;
 use Illuminate\Console\Command;
 
 class DeleteUsers extends Command
 {
-
     /**
      * The name and signature of the console command.
      *
@@ -25,7 +24,7 @@ class DeleteUsers extends Command
      *
      * @var string
      */
-    protected $description = 'Delete users that are not "admin" or system users.';
+    protected $description = 'Delete users that are not "admin" or system users';
 
     public function __construct(User $user, UserRepo $userRepo)
     {
@@ -47,7 +46,7 @@ class DeleteUsers extends Command
                     continue;
                 }
                 $this->userRepo->destroy($user);
-                ++$numDeleted;
+                $numDeleted++;
             }
             $this->info("Deleted $numDeleted of $totalUsers total users.");
         } else {