original_string: protected static function updateUserPassword($users)
      {
          if (!empty($users)) {
              foreach ($users as $i => $user) {
                  if (isset($user['password'])) {
                      /** @type User $model */
                      $model = User::where('email', '=', $user['email'])->first();
                      $model->updatePasswordHash($user['password']);
                  }
              }
          }
      }
code: protected static function updateUserPassword($users)
      {
          if (!empty($users)) {
              foreach ($users as $i => $user) {
                  if (isset($user['password'])) {
                      /** @type User $model */
                      $model = User::where('email', '=', $user['email'])->first();
                      $model->updatePasswordHash($user['password']);
                  }
              }
          }
      }
code_tokens: protected static function updateUserPassword ( $ users ) { if ( ! empty ( $ users ) ) { foreach ( $ users as $ i => $ user ) { if ( isset ( $ user [ 'password' ] ) ) { /** @type User $model */ $ model = User :: where ( 'email' , '=' , $ user [ 'email' ] ) -> first ( ) ; $ model -> updatePasswordHash ( $ user [ 'password' ] ) ; } } } }
docstring: Updates user password when package is secured with a password.
  
  @param $users
  
  @throws \DreamFactory\Core\Exceptions\BadRequestException
docstring_tokens: Updates user password when package is secured with a password .