| Total Complexity | 4 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class PostObserver |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Handle the Post "created" event. |
||
| 11 | * |
||
| 12 | * @return void |
||
| 13 | */ |
||
| 14 | public function created(Post $post) |
||
| 17 | } |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Handle the Post "deleted" event. |
||
| 21 | * |
||
| 22 | * @return void |
||
| 23 | */ |
||
| 24 | public function deleted(Post $post) |
||
| 25 | { |
||
| 26 | $this->clearResponseCache($post); |
||
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Handle the Post "updated" event. |
||
| 31 | * |
||
| 32 | * @return void |
||
| 33 | */ |
||
| 34 | public function updated(Post $post) |
||
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Clears the respoonse cache. |
||
| 41 | */ |
||
| 42 | protected function clearResponseCache(Post $post) |
||
| 45 | } |
||
| 46 | } |
||
| 47 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.