| Conditions | 16 | 
| Paths | 384 | 
| Total Lines | 36 | 
| Code Lines | 31 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
Small methods make your code easier to understand, in particular if combined with a good name. Besides, if your method is small, finding a good name is usually much easier.
For example, if you find yourself adding comments to a method's body, this is usually a good sign to extract the commented part to a new method, and use the comment as a starting point when coming up with a good name for this new method.
Commonly applied refactorings include:
If many parameters/temporary variables are present:
| 1 | <div id="app-navigation">  | 
            ||
| 66 | function NavigationListElements($item, $l, $pinned) { | 
            ||
| 67 | strpos($item['classes'] ?? '', 'pinned') !== false ? $pinned++ : '';  | 
            ||
| 68 | ?>  | 
            ||
| 69 | <li  | 
            ||
| 70 | data-id="<?php p($item['id']) ?>"  | 
            ||
| 71 | 		<?php if (isset($item['dir'])) { ?> data-dir="<?php p($item['dir']); ?>" <?php } ?> | 
            ||
| 72 | 		<?php if (isset($item['view'])) { ?> data-view="<?php p($item['view']); ?>" <?php } ?> | 
            ||
| 73 | 		<?php if (isset($item['expandedState'])) { ?> data-expandedstate="<?php p($item['expandedState']); ?>" <?php } ?> | 
            ||
| 74 | class="nav-<?php p($item['id']) ?>  | 
            ||
| 75 | 		<?php if (isset($item['classes'])) { p($item['classes']); } ?> | 
            ||
| 76 | <?php p($pinned === 1 ? 'first-pinned' : '') ?>  | 
            ||
| 77 | 		<?php if (isset($item['defaultExpandedState']) && $item['defaultExpandedState']) { ?> open<?php } ?>" | 
            ||
| 78 | 		<?php if (isset($item['folderPosition'])) { ?> folderposition="<?php p($item['folderPosition']); ?>" <?php } ?>> | 
            ||
| 79 | |||
| 80 | <a href="<?php p(isset($item['href']) ? $item['href'] : '#') ?>"  | 
            ||
| 81 | class="nav-icon-<?php p(isset($item['icon']) && $item['icon'] !== '' ? $item['icon'] : $item['id']) ?> svg"><?php p($item['name']); ?></a>  | 
            ||
| 82 | |||
| 83 | |||
| 84 | <?php  | 
            ||
| 85 | NavigationElementMenu($item);  | 
            ||
| 86 | 		if (isset($item['sublist'])) { | 
            ||
| 87 | ?>  | 
            ||
| 88 | 			<button class="collapse app-navigation-noclose" <?php if (sizeof($item['sublist']) == 0) { ?> style="display: none" <?php } ?>></button> | 
            ||
| 89 | <ul id="sublist-<?php p($item['id']); ?>">  | 
            ||
| 90 | <?php  | 
            ||
| 91 | 				foreach ($item['sublist'] as $item) { | 
            ||
| 92 | $pinned = NavigationListElements($item, $l, $pinned);  | 
            ||
| 93 | }  | 
            ||
| 94 | ?>  | 
            ||
| 95 | </ul>  | 
            ||
| 96 | <?php } ?>  | 
            ||
| 97 | </li>  | 
            ||
| 98 | |||
| 99 | |||
| 100 | <?php  | 
            ||
| 101 | return $pinned;  | 
            ||
| 102 | }  | 
            ||
| 130 | 
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