| @@ 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 |
|
| @@ 212-231 (lines=20) @@ | ||
| 209 | * |
|
| 210 | * @return string |
|
| 211 | */ |
|
| 212 | public function toHttpQuery() |
|
| 213 | { |
|
| 214 | return '?' . http_build_query( |
|
| 215 | array_filter( |
|
| 216 | [ |
|
| 217 | 'institution' => $this->institution, |
|
| 218 | 'name' => $this->name, |
|
| 219 | 'type' => $this->type, |
|
| 220 | 'secondFactorId' => $this->secondFactorId, |
|
| 221 | 'email' => $this->email, |
|
| 222 | 'status' => $this->status, |
|
| 223 | 'orderBy' => $this->orderBy, |
|
| 224 | 'orderDirection' => $this->orderDirection |
|
| 225 | ], |
|
| 226 | function ($value) { |
|
| 227 | return !is_null($value); |
|
| 228 | } |
|
| 229 | ) |
|
| 230 | ); |
|
| 231 | } |
|
| 232 | } |
|
| 233 | ||
| @@ 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 | ||