Total Lines | 7 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
8 | Route::group(['middleware' => ['web', 'auth']], function () { |
||
|
|||
9 | Route::get('conversation', 'Evilnet\Inbox\InboxController@create'); |
||
10 | Route::post('conversation', 'Evilnet\Inbox\InboxController@store'); |
||
11 | Route::get('conversation/{id}', 'Evilnet\Inbox\InboxController@show'); |
||
12 | Route::post('message/{id}', 'Evilnet\Inbox\InboxController@addMessage'); |
||
13 | Route::get('inbox', 'Evilnet\Inbox\InboxController@index')->name('inbox'); |
||
14 | Route::delete('/conversation/{id}', '\Evilnet\Inbox\InboxController@destroy'); |
||
15 | }); |
This check compares calls to functions or methods with their respective definitions. If the call has more arguments than are defined, it raises an issue.
If a function is defined several times with a different number of parameters, the check may pick up the wrong definition and report false positives. One codebase where this has been known to happen is Wordpress. Please note the @ignore annotation hint above.