| Conditions | 4 |
| Paths | 5 |
| Total Lines | 19 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | public function __construct(User $user = null) |
||
| 18 | { |
||
| 19 | if (is_null($user)) { |
||
| 20 | return; |
||
| 21 | } |
||
| 22 | |||
| 23 | if ($user->hasFees()) { |
||
| 24 | $this->problems[] = sprintf('Brukeren har %d,- i utestående gebyr i Alma.', $user->fees); |
||
| 25 | } |
||
| 26 | if (count($user->blocks)) { |
||
| 27 | $msgs = array_values(array_map( |
||
| 28 | function ($b) { |
||
| 29 | return $b->block_description->desc; |
||
| 30 | }, |
||
| 31 | $user->blocks |
||
| 32 | )); |
||
| 33 | $this->problems[] = sprintf( |
||
| 34 | 'Brukeren har følgende merknader: <ul><li>%s</li></ul>', |
||
| 35 | implode('</li><li>', $msgs) |
||
| 36 | ); |
||
| 69 |
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