Conditions | 3 |
Paths | 4 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php namespace Anomaly\UsersModule\User\Reset; |
||
54 | public function onReady(Encrypter $encrypter, Request $request) |
||
55 | { |
||
56 | if (!$this->getCode()) { |
||
|
|||
57 | $this->setCode($encrypter->decrypt($request->get('code'))); |
||
58 | } |
||
59 | |||
60 | if (!$this->getEmail()) { |
||
61 | $this->setEmail($encrypter->decrypt($request->get('email'))); |
||
62 | } |
||
63 | } |
||
64 | |||
111 |
In PHP, under loose comparison (like
==
, or!=
, orswitch
conditions), values of different types might be equal.For
string
values, the empty string''
is a special case, in particular the following results might be unexpected: