| Conditions | 1 |
| Paths | 1 |
| Total Lines | 35 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 107 | public function rules() |
||
| 108 | { |
||
| 109 | return array_merge( |
||
| 110 | parent::rules(), |
||
| 111 | [ |
||
| 112 | [ |
||
| 113 | [ |
||
| 114 | 'email' |
||
| 115 | ], |
||
| 116 | 'email', |
||
| 117 | 'on' => [ |
||
| 118 | self::SCENARIO_INPUT |
||
| 119 | ] |
||
| 120 | ], |
||
| 121 | [ |
||
| 122 | [ |
||
| 123 | 'email' |
||
| 124 | ], |
||
| 125 | 'required', |
||
| 126 | 'on' => [ |
||
| 127 | self::SCENARIO_INPUT |
||
| 128 | ] |
||
| 129 | ], |
||
| 130 | [ |
||
| 131 | [ |
||
| 132 | 'email' |
||
| 133 | ], |
||
| 134 | 'safe', |
||
| 135 | 'on' => [ |
||
| 136 | self::SCENARIO_DEFAULT |
||
| 137 | ] |
||
| 138 | ] |
||
| 139 | ] |
||
| 140 | ); |
||
| 141 | } |
||
| 142 | } |
||
| 143 |