Conditions | 4 |
Paths | 8 |
Total Lines | 13 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | public function __invoke($tipId) |
||
18 | { |
||
19 | $tip = TechTip::find($tipId); |
||
20 | $favorites = UserTechTipBookmark::where('tip_id', $tipId)->count(); |
||
21 | |||
22 | return [ |
||
23 | 'author' => $tip->CreatedBy->full_name, |
||
24 | 'dateCreated' => date('M d, Y', strtotime($tip->created_at)), |
||
25 | 'lastEdited' => $tip->updated_id !== null ? date('M d, Y', strtotime($tip->updated_at)) : null, |
||
26 | 'editedBy' => $tip->updated_id !== null ? $tip->UpdatedBy->full_name : null, |
||
27 | 'views' => $tip->views, |
||
28 | 'favorites' => $favorites, |
||
29 | 'isPinned' => $tip->sticky ? 'Yes' : 'No', |
||
30 | ]; |
||
33 |
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