| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 44 | public function getBindingRequest(Request $request) |
||
| 45 | { |
||
| 46 | $result = new \AerialShip\LightSaml\Binding\Request(); |
||
| 47 | // must be taken unmodified from server since getQueryString() capitalized urlenocoded escape chars, ie. %2f becomes %2F |
||
| 48 | $result->setQueryString($request->server->get('QUERY_STRING')); |
||
| 49 | $result->setGet($request->query->all()); |
||
| 50 | $result->setPost($request->request->all()); |
||
| 51 | $result->setRequestMethod($request->getMethod()); |
||
| 52 | return $result; |
||
| 53 | } |
||
| 54 | } |
||
| 55 |
In PHP, under loose comparison (like
==, or!=, orswitchconditions), values of different types might be equal.For
stringvalues, the empty string''is a special case, in particular the following results might be unexpected: