| Conditions | 6 |
| Paths | 4 |
| Total Lines | 21 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 11 |
| CRAP Score | 6 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 22 | 4 | public function hash($hash) |
|
| 23 | { |
||
| 24 | 4 | if (is_object($hash) && is_a($hash, Closure::class)) { |
|
| 25 | 1 | $this->hash = $hash; |
|
| 26 | 1 | return $this; |
|
| 27 | } |
||
| 28 | |||
| 29 | 3 | if (is_string($hash) && function_exists($hash)) { |
|
| 30 | 1 | $this->hash = $hash; |
|
| 31 | 1 | return $this; |
|
| 32 | } |
||
| 33 | |||
| 34 | // dummy |
||
| 35 | 2 | if (is_null($hash)) { |
|
| 36 | $this->hash = function ($value) { |
||
| 37 | 1 | return $value; |
|
| 38 | }; |
||
| 39 | 1 | return $this; |
|
| 40 | } |
||
| 41 | |||
| 42 | 1 | throw new \RuntimeException('Hash for Password field must be valid function name or Closure'); |
|
| 43 | } |
||
| 82 |
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