original_string: protected function setUserPassword(array & $users)
      {
          if (!empty($users)) {
              if (Arr::isAssoc($users)) {
                  $users = [$users];
              }
  
              foreach ($users as $i => $user) {
                  /** @noinspection PhpUndefinedMethodInspection */
                  $model = User::find($user['id']);
                  if (!empty($model)) {
                      $users[$i]['password'] = $model->password;
                  }
              }
          }
      }
code: protected function setUserPassword(array & $users)
      {
          if (!empty($users)) {
              if (Arr::isAssoc($users)) {
                  $users = [$users];
              }
  
              foreach ($users as $i => $user) {
                  /** @noinspection PhpUndefinedMethodInspection */
                  $model = User::find($user['id']);
                  if (!empty($model)) {
                      $users[$i]['password'] = $model->password;
                  }
              }
          }
      }
code_tokens: protected function setUserPassword ( array & $ users ) { if ( ! empty ( $ users ) ) { if ( Arr :: isAssoc ( $ users ) ) { $ users = [ $ users ] ; } foreach ( $ users as $ i => $ user ) { /** @noinspection PhpUndefinedMethodInspection */ $ model = User :: find ( $ user [ 'id' ] ) ; if ( ! empty ( $ model ) ) { $ users [ $ i ] [ 'password' ] = $ model -> password ; } } } }
docstring: Sets user password encrypted when package is secured with a password.
  
  @param array $users
  
  @throws \DreamFactory\Core\Exceptions\BadRequestException
docstring_tokens: Sets user password encrypted when package is secured with a password .