| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 12 | 
| Code Lines | 7 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 7 | 
| CRAP Score | 1 | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 25 | 86 | public function validate(): bool  | 
            |
| 26 |     { | 
            ||
| 27 | 86 | $value = \getValueByIndexPath(  | 
            |
| 28 | Form::_TOKEN_SUBMIT_,  | 
            ||
| 29 | 86 |             match ($this->form->getMethod()) { | 
            |
| 30 | 14 | 'GET' => $this->form->getRequest()->getQueryData()->toArray(),  | 
            |
| 31 | 77 | 'POST' => $this->form->getRequest()->getPostData()->toArray(),  | 
            |
| 32 | 86 | default => []  | 
            |
| 33 | }  | 
            ||
| 34 | );  | 
            ||
| 35 | |||
| 36 | 86 | return $value == $this->getToken();  | 
            |
| 37 | }  | 
            ||
| 39 |