| @@ 252-272 (lines=21) @@ | ||
| 249 | * |
|
| 250 | * @return string |
|
| 251 | */ |
|
| 252 | public function toHttpQuery() |
|
| 253 | { |
|
| 254 | return '?' . http_build_query( |
|
| 255 | array_filter( |
|
| 256 | [ |
|
| 257 | 'actorInstitution' => $this->actorInstitution, |
|
| 258 | 'name' => $this->name, |
|
| 259 | 'type' => $this->type, |
|
| 260 | 'secondFactorId' => $this->secondFactorId, |
|
| 261 | 'email' => $this->email, |
|
| 262 | 'institution' => $this->institution, |
|
| 263 | 'status' => $this->status, |
|
| 264 | 'orderBy' => $this->orderBy, |
|
| 265 | 'orderDirection' => $this->orderDirection |
|
| 266 | ], |
|
| 267 | function ($value) { |
|
| 268 | return !is_null($value); |
|
| 269 | } |
|
| 270 | ) |
|
| 271 | ); |
|
| 272 | } |
|
| 273 | } |
|
| 274 | ||
| @@ 244-265 (lines=22) @@ | ||
| 241 | * |
|
| 242 | * @return string |
|
| 243 | */ |
|
| 244 | public function toHttpQuery() |
|
| 245 | { |
|
| 246 | return '?' . http_build_query( |
|
| 247 | array_filter( |
|
| 248 | [ |
|
| 249 | 'actorInstitution' => $this->actorInstitution, |
|
| 250 | 'name' => $this->name, |
|
| 251 | 'type' => $this->type, |
|
| 252 | 'secondFactorId' => $this->secondFactorId, |
|
| 253 | 'email' => $this->email, |
|
| 254 | 'status' => $this->status, |
|
| 255 | 'institution' => $this->institution, |
|
| 256 | 'orderBy' => $this->orderBy, |
|
| 257 | 'orderDirection' => $this->orderDirection, |
|
| 258 | 'p' => $this->pageNumber, |
|
| 259 | ], |
|
| 260 | function ($value) { |
|
| 261 | return !is_null($value); |
|
| 262 | } |
|
| 263 | ) |
|
| 264 | ); |
|
| 265 | } |
|
| 266 | } |
|
| 267 | ||
| @@ 175-194 (lines=20) @@ | ||
| 172 | return $this; |
|
| 173 | } |
|
| 174 | ||
| 175 | public function toHttpQuery() |
|
| 176 | { |
|
| 177 | return '?' . http_build_query( |
|
| 178 | array_filter( |
|
| 179 | [ |
|
| 180 | 'actorInstitution' => $this->actorInstitution, |
|
| 181 | 'institution' => $this->institution, |
|
| 182 | 'commonName' => $this->commonName, |
|
| 183 | 'email' => $this->email, |
|
| 184 | 'secondFactorTypes' => $this->secondFactorTypes, |
|
| 185 | 'orderBy' => $this->orderBy, |
|
| 186 | 'orderDirection' => $this->orderDirection, |
|
| 187 | 'p' => $this->pageNumber, |
|
| 188 | ], |
|
| 189 | function ($value) { |
|
| 190 | return !is_null($value); |
|
| 191 | } |
|
| 192 | ) |
|
| 193 | ); |
|
| 194 | } |
|
| 195 | ||
| 196 | /** |
|
| 197 | * @param mixed $value |
|