| Conditions | 1 |
| Paths | 1 |
| Total Lines | 41 |
| Code Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 39 | protected function handleRules() |
||
| 40 | { |
||
| 41 | |||
| 42 | return [ |
||
| 43 | [ |
||
| 44 | [ |
||
| 45 | 'handle' |
||
| 46 | ], |
||
| 47 | HandleValidator::class, |
||
| 48 | 'reservedWords' => $this->reservedHandleWords |
||
| 49 | ], |
||
| 50 | [ |
||
| 51 | [ |
||
| 52 | 'handle' |
||
| 53 | ], |
||
| 54 | 'unique' |
||
| 55 | ], |
||
| 56 | [ |
||
| 57 | [ |
||
| 58 | 'handle' |
||
| 59 | ], |
||
| 60 | 'required' |
||
| 61 | ], |
||
| 62 | [ |
||
| 63 | [ |
||
| 64 | 'handle' |
||
| 65 | ], |
||
| 66 | 'string', |
||
| 67 | 'max' => $this->handleLength |
||
| 68 | ], |
||
| 69 | [ |
||
| 70 | [ |
||
| 71 | 'handle' |
||
| 72 | ], |
||
| 73 | 'safe', |
||
| 74 | 'on' => [ |
||
| 75 | RecordHelper::SCENARIO_DEFAULT |
||
| 76 | ] |
||
| 77 | ] |
||
| 78 | ]; |
||
| 79 | } |
||
| 80 | } |
||
| 81 |