lionix-team /
seo-manager
| 1 | <?php |
||||
| 2 | |||||
| 3 | namespace Lionix\SeoManager\Controllers; |
||||
| 4 | |||||
| 5 | use App\Http\Controllers\Controller; |
||||
|
0 ignored issues
–
show
|
|||||
| 6 | use Illuminate\Support\Facades\Artisan; |
||||
| 7 | use Lionix\SeoManager\Traits\SeoManagerTrait; |
||||
| 8 | |||||
| 9 | class ImportController extends Controller |
||||
| 10 | { |
||||
| 11 | use SeoManagerTrait; |
||||
| 12 | |||||
| 13 | /** |
||||
| 14 | * Import routes to the SeoManager database table |
||||
| 15 | * @return \Illuminate\Http\JsonResponse |
||||
|
0 ignored issues
–
show
The type
Illuminate\Http\JsonResponse was not found. Maybe you did not declare it correctly or list all dependencies?
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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths Loading history...
|
|||||
| 16 | */ |
||||
| 17 | |||||
| 18 | public function __invoke() |
||||
| 19 | { |
||||
| 20 | try { |
||||
| 21 | $routes = $this->importRoutes(); |
||||
| 22 | return response()->json(['routes' => $routes]); |
||||
|
0 ignored issues
–
show
The function
response was not found. Maybe you did not declare it correctly or list all dependencies?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
|
|||||
| 23 | } catch (\Exception $exception) { |
||||
| 24 | return response()->json(['status' => false, 'message' => $exception->getMessage()]); |
||||
| 25 | } |
||||
| 26 | } |
||||
| 27 | } |
||||
| 28 |
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