Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php namespace Arcanesoft\Blog\Http\Routes\Front; |
||
22 | public function map() |
||
23 | { |
||
24 | $this->prefix('posts')->name('posts.')->group(function () { |
||
25 | $this->get('/', 'PostsController@index') |
||
26 | ->name('index'); // public::blog.posts.index |
||
27 | |||
28 | $this->get('{slug}', 'PostsController@show') |
||
29 | ->name('show'); // public::blog.posts.show |
||
30 | |||
31 | $this->get('{year}', 'PostsController@archive') |
||
32 | ->name('archive'); // public::blog.posts.archive |
||
33 | }); |
||
34 | } |
||
35 | } |
||
36 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.