| Total Complexity | 3 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 12 | class ImageController extends Controller |
||
| 13 | { |
||
| 14 | protected $imageService; |
||
| 15 | |||
| 16 | public function __construct(ImageService $imageService) |
||
| 19 | } |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Sends a comment to an image. |
||
| 23 | * |
||
| 24 | * @param \FaithGen\Gallery\Http\Requests\ImageCommentRequest $request |
||
| 25 | * |
||
| 26 | * @return \Illuminate\Http\JsonResponse |
||
| 27 | */ |
||
| 28 | public function comment(ImageCommentRequest $request) |
||
| 29 | { |
||
| 30 | return CommentHelper::createComment($this->imageService->getImage(), $request); |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Fetches the comments for this image. |
||
| 35 | * |
||
| 36 | * @param \Illuminate\Http\Request $request |
||
| 37 | * @param \FaithGen\SDK\Models\Image $image |
||
| 38 | * |
||
| 39 | * @return \Illuminate\Http\Resources\Json\AnonymousResourceCollection |
||
| 40 | */ |
||
| 41 | public function comments(Request $request, Image $image) |
||
| 44 | } |
||
| 45 | } |
||
| 46 |
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