1 | <?php |
||
2 | /** |
||
3 | * src/SecurityTxtController.php. |
||
4 | * |
||
5 | * @author Austin Heap <[email protected]> |
||
6 | * @version v0.3.2 |
||
7 | */ |
||
8 | declare(strict_types=1); |
||
9 | |||
10 | namespace AustinHeap\Security\Txt; |
||
11 | |||
12 | /** |
||
13 | * SecurityTxtController. |
||
14 | * |
||
15 | * @link https://github.com/austinheap/laravel-security-txt |
||
16 | * @link https://packagist.org/packages/austinheap/laravel-security-txt |
||
17 | * @link https://austinheap.github.io/laravel-security-txt/classes/AustinHeap.Security.Txt.SecurityTxtController.html |
||
18 | */ |
||
19 | class SecurityTxtController extends \App\Http\Controllers\Controller |
||
0 ignored issues
–
show
|
|||
20 | { |
||
21 | /** |
||
22 | * Show the security.txt file. |
||
23 | * |
||
24 | * @return \Illuminate\Http\Response |
||
25 | */ |
||
26 | public function show() |
||
27 | { |
||
28 | if (! config('security-txt.enabled', false)) { |
||
29 | abort(404); |
||
30 | } |
||
31 | |||
32 | return \Response::make((new SecurityTxtHelper)->fetch(), 200, ['Content-Type' => 'text/plain']); |
||
33 | } |
||
34 | } |
||
35 |
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