| Conditions | 4 |
| Paths | 4 |
| Total Lines | 26 |
| Code Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 20 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | public function index() |
||
| 17 | { |
||
| 18 | $usersManager = $this->getModelManager(); |
||
| 19 | $this->getView()->set('headerTitle', $usersManager->getLabel('login-title')); |
||
| 20 | |||
| 21 | $loginForm = $this->_getUser()->getForm('login'); |
||
| 22 | |||
| 23 | if ($loginForm->submited()) { |
||
| 24 | if ($loginForm->processRequest()) { |
||
| 25 | $this->doSuccessRedirect(); |
||
| 26 | } |
||
| 27 | } else { |
||
| 28 | if ($this->getRequest()->query->has('message')) { |
||
| 29 | $loginForm->addMessage($this->getRequest()->query->get('message'), 'info'); |
||
| 30 | } |
||
| 31 | } |
||
| 32 | |||
| 33 | $this->forms['login'] = $loginForm; |
||
| 34 | $this->getView()->set('redirect', $this->getRedirectURL()); |
||
| 35 | $this->_setMeta('login'); |
||
| 36 | |||
| 37 | $this->getView()->Breadcrumbs()->addItem( |
||
| 38 | $this->getModelManager()->getLabel('login-title'), |
||
| 39 | $this->_getUser()->getManager()->compileURL('login') |
||
| 40 | ); |
||
| 41 | $this->getView()->Meta()->prependTitle($this->getModelManager()->getLabel('login-title')); |
||
| 42 | } |
||
| 58 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths