| 1 | <?php |
||
| 8 | class PostsRepository extends Repository |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @return Post |
||
| 12 | */ |
||
| 13 | public function getModel() |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @return PostTranslation |
||
| 20 | */ |
||
| 21 | public function getTranslatableModel() |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Get public posts. |
||
| 28 | * |
||
| 29 | * @param $perPage |
||
| 30 | * @return \Illuminate\Database\Eloquent\Collection |
||
| 31 | */ |
||
| 32 | public function getPublic($perPage = 7) |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Get popular public posts. |
||
| 43 | * |
||
| 44 | * @param int $count |
||
| 45 | * @return \Illuminate\Database\Eloquent\Collection |
||
| 46 | */ |
||
| 47 | public function getPopularPublic($count = 4) |
||
| 58 | |||
| 59 | /** |
||
| 60 | * Get post by slug. |
||
| 61 | * |
||
| 62 | * @param $slug |
||
| 63 | * @return mixed |
||
| 64 | */ |
||
| 65 | public function findBySlug($slug) |
||
| 75 | |||
| 76 | /** |
||
| 77 | * Increment view_counter by 1. |
||
| 78 | * |
||
| 79 | * @param Post $post |
||
| 80 | */ |
||
| 81 | public function incrementViewCount($post) |
||
| 85 | } |
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.