| Total Complexity | 8 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | class AccountController extends Controller |
||
| 19 | { |
||
| 20 | public function resetDisabled() |
||
| 21 | { |
||
| 22 | Account::updateAll(['disabled' => 0]); |
||
| 23 | } |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Update account usernames. |
||
| 27 | * format: username1_from,username1_to1,name1;username2_from,username2_to,name2;username3_from,username3_to,name3 |
||
| 28 | */ |
||
| 29 | public function actionUpdateName($names) |
||
| 49 | } |
||
| 50 | |||
| 54 | } |
In PHP, under loose comparison (like
==, or!=, orswitchconditions), values of different types might be equal.For
integervalues, zero is a special case, in particular the following results might be unexpected: