| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 27 | public function receive(Request $request, &$bindingType = null) |
||
| 28 | { |
||
| 29 | $result = null; |
||
| 30 | $bindingRequest = $this->getBindingRequest($request); |
||
| 31 | $bindingType = $this->getBinding($bindingRequest); |
||
| 32 | if ($bindingType) { |
||
|
|
|||
| 33 | $binding = $this->instantiate($bindingType); |
||
| 34 | $result = $binding->receive($bindingRequest); |
||
| 35 | } |
||
| 36 | return $result; |
||
| 37 | } |
||
| 38 | |||
| 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: