| Conditions | 1 |
| Paths | 1 |
| Total Lines | 42 |
| Code Lines | 26 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | {
|
||
| 17 | Yii::$app->i18n->translations['modules/users/*'] = [ |
||
| 18 | 'class' => 'yii\i18n\PhpMessageSource', |
||
| 19 | 'basePath' => '@modules/users/messages', |
||
| 20 | 'fileMap' => [ |
||
| 21 | 'modules/users/module' => 'module.php', |
||
| 22 | 'modules/users/mail' => 'mail.php', |
||
| 23 | ], |
||
| 24 | ]; |
||
| 25 | |||
| 26 | Yii::$app->getUrlManager()->addRules( |
||
| 27 | [ |
||
| 28 | // Rules |
||
| 29 | '<_a:(login|logout|signup|email-confirm|request-password-reset|reset-password)>' => 'users/default/<_a>', |
||
| 30 | [ |
||
| 31 | 'class' => 'yii\web\GroupUrlRule', |
||
| 32 | 'routePrefix' => 'users/default', |
||
| 33 | 'prefix' => 'user', |
||
| 34 | 'rules' => [ |
||
| 35 | '<_a:(create)>' => '<_a>', |
||
| 36 | '<id:\d+>/<_a:[\w\-]+>' => '<_a>', |
||
| 37 | ], |
||
| 38 | ], |
||
| 39 | [ |
||
| 40 | 'class' => 'yii\web\GroupUrlRule', |
||
| 41 | 'routePrefix' => 'users/default', |
||
| 42 | 'prefix' => 'users', |
||
| 43 | 'rules' => [ |
||
| 44 | '' => 'index', |
||
| 45 | '<_a:[\w\-]+>' => '<_a>', |
||
| 46 | ], |
||
| 47 | ], |
||
| 48 | [ |
||
| 49 | 'class' => 'yii\web\GroupUrlRule', |
||
| 50 | 'routePrefix' => 'users/profile', |
||
| 51 | 'prefix' => 'profile', |
||
| 52 | 'rules' => [ |
||
| 53 | '' => 'index', |
||
| 54 | '<_a:[\w\-]+>' => '<_a>', |
||
| 55 | ], |
||
| 56 | ], |
||
| 57 | ] |
||
| 58 | ); |
||
| 61 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.