| @@ 144-162 (lines=19) @@ | ||
| 141 | return $this; |
|
| 142 | } |
|
| 143 | ||
| 144 | public function toHttpQuery() |
|
| 145 | { |
|
| 146 | return '?' . http_build_query( |
|
| 147 | array_filter( |
|
| 148 | [ |
|
| 149 | 'institution' => $this->institution, |
|
| 150 | 'commonName' => $this->commonName, |
|
| 151 | 'email' => $this->email, |
|
| 152 | 'secondFactorTypes' => $this->secondFactorTypes, |
|
| 153 | 'orderBy' => $this->orderBy, |
|
| 154 | 'orderDirection' => $this->orderDirection, |
|
| 155 | 'p' => $this->pageNumber, |
|
| 156 | ], |
|
| 157 | function ($value) { |
|
| 158 | return !is_null($value); |
|
| 159 | } |
|
| 160 | ) |
|
| 161 | ); |
|
| 162 | } |
|
| 163 | ||
| 164 | /** |
|
| 165 | * @param mixed $value |
|
| @@ 223-243 (lines=21) @@ | ||
| 220 | * |
|
| 221 | * @return string |
|
| 222 | */ |
|
| 223 | public function toHttpQuery() |
|
| 224 | { |
|
| 225 | return '?' . http_build_query( |
|
| 226 | array_filter( |
|
| 227 | [ |
|
| 228 | 'institution' => $this->institution, |
|
| 229 | 'name' => $this->name, |
|
| 230 | 'type' => $this->type, |
|
| 231 | 'secondFactorId' => $this->secondFactorId, |
|
| 232 | 'email' => $this->email, |
|
| 233 | 'status' => $this->status, |
|
| 234 | 'orderBy' => $this->orderBy, |
|
| 235 | 'orderDirection' => $this->orderDirection, |
|
| 236 | 'p' => $this->pageNumber, |
|
| 237 | ], |
|
| 238 | function ($value) { |
|
| 239 | return !is_null($value); |
|
| 240 | } |
|
| 241 | ) |
|
| 242 | ); |
|
| 243 | } |
|
| 244 | } |
|
| 245 | ||
| @@ 231-250 (lines=20) @@ | ||
| 228 | * |
|
| 229 | * @return string |
|
| 230 | */ |
|
| 231 | public function toHttpQuery() |
|
| 232 | { |
|
| 233 | return '?' . http_build_query( |
|
| 234 | array_filter( |
|
| 235 | [ |
|
| 236 | 'institution' => $this->institution, |
|
| 237 | 'name' => $this->name, |
|
| 238 | 'type' => $this->type, |
|
| 239 | 'secondFactorId' => $this->secondFactorId, |
|
| 240 | 'email' => $this->email, |
|
| 241 | 'status' => $this->status, |
|
| 242 | 'orderBy' => $this->orderBy, |
|
| 243 | 'orderDirection' => $this->orderDirection |
|
| 244 | ], |
|
| 245 | function ($value) { |
|
| 246 | return !is_null($value); |
|
| 247 | } |
|
| 248 | ) |
|
| 249 | ); |
|
| 250 | } |
|
| 251 | } |
|
| 252 | ||