anonymous()
last analyzed

Size

Total Lines 4
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 4
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 4
1
<?php
2
3
/**
4
 * Laravel IP Checker
5
 *
6
 * @author    Hayri Can BARÇIN <hayricanbarcin (#) gmail (.) com>
7
 * @license   http://www.opensource.org/licenses/mit-license.php MIT
8
 * @link      https://github.com/HayriCan/laravel-ip-checker
9
 */
10
11
Route::group(['prefix'=>config('ipchecker.settings.route_prefix')], function () {
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
The function config 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

11
Route::group(['prefix'=>/** @scrutinizer ignore-call */ config('ipchecker.settings.route_prefix')], function () {
Loading history...
12
    Route::get('/iplists', 'HayriCan\IpChecker\Http\Controllers\IpCheckerController@index')->name('iplist.index');
13
    Route::post('/ip-add', 'HayriCan\IpChecker\Http\Controllers\IpCheckerController@add')->name('iplist.add');
14
    Route::delete('/ip-delete', 'HayriCan\IpChecker\Http\Controllers\IpCheckerController@delete')->name('iplist.delete');
15
});
16