| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php namespace Arcanesoft\Blog\Http\Routes\Front; |
||
| 22 | public function map() |
||
| 23 | { |
||
| 24 | 6 | $this->prefix('posts')->name('posts.')->group(function () { |
|
| 25 | 6 | $this->get('/', 'PostsController@index') |
|
| 26 | 6 | ->name('index'); // public::blog.posts.index |
|
| 27 | |||
| 28 | 6 | $this->get('{slug}', 'PostsController@show') |
|
| 29 | 6 | ->name('show'); // public::blog.posts.show |
|
| 30 | |||
| 31 | 6 | $this->get('{year}', 'PostsController@archive') |
|
| 32 | 6 | ->name('archive'); // public::blog.posts.archive |
|
| 33 | 6 | }); |
|
| 34 | 6 | } |
|
| 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
$italyis not defined by the methodfinale(...).The most likely cause is that the parameter was removed, but the annotation was not.