Issues (84)

src/Routes/routes.php (2 issues)

Labels
Severity
1
<?php
2
3
/**
4
 * @author Someshwer Bandapally
5
 * Date: 19-08-2018
6
 *
7
 * This route provides some useful information about the package.
8
 */
9
Route::get('firewall/info', function () {
0 ignored issues
show
The type Route 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. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
10
    return [
11
        'package_name' => 'Laravel - Firewall',
12
        'description'  => 'Laravel Firewall package detects unknown ip addresses based on 
13
            blacklist and whitelist ip addresses. Whitelist and Blacklist are two configuration options 
14
            any one of them you can set to TRUE based on your requirement. For example if you set blacklist
15
            to TRUE and have added some ip addresses to blacklist then in that case any request to the 
16
            application will be blocked by the firewall from those ip addresses that listed in blacklist.
17
            If you have added them to whitelist only the request from the whitelisted ips can be accepted 
18
            and remaining all requests will be blocked by the firewall. If you set both black and whitelist 
19
            to TRUE then in that case the preference will be given to blacklist',
20
        'latest_release' => '2.2.1',
21
        'stable_version' => '2.2.1',
22
        'author'         => 'Someshwer Bandapally<[email protected]>',
23
    ];
24
});
25
26
Route::get('firewall/unauthorized/redirect', function () {
27
    return view('package_redirect::redirect_view');
0 ignored issues
show
The function view 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 ignore-call  annotation

27
    return /** @scrutinizer ignore-call */ view('package_redirect::redirect_view');
Loading history...
28
});
29