| Conditions | 2 |
| Paths | 2 |
| Total Lines | 19 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 37 | public function authenticate() { |
||
| 38 | $applicationId = $this->request->query('id'); |
||
| 39 | |||
| 40 | $redirectUrl = $this->_getRedirectUrl(); |
||
| 41 | |||
| 42 | $timestamp = UniLoginUtil::getFormattedTimestamp(); |
||
| 43 | $user = Configure::read('UniLogin.testProvider.user'); |
||
| 44 | $auth = UniLoginUtil::calculateFingerprint($timestamp, $user); |
||
| 45 | |||
| 46 | if (hash_equals((string)Configure::read('UniLogin.testProvider.applicationId'), (string)$applicationId)) { |
||
| 47 | $query = [ |
||
| 48 | 'user' => $user, |
||
| 49 | 'timestamp' => $timestamp, |
||
| 50 | 'auth' => $auth, |
||
| 51 | ]; |
||
| 52 | $redirectUrl .= '?' . http_build_query($query); |
||
| 53 | } |
||
| 54 | |||
| 55 | return $this->redirect($redirectUrl); |
||
| 56 | } |
||
| 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