1 | <?php |
||
13 | trait PostListExceptionsTrait |
||
14 | { |
||
15 | /** |
||
16 | * Filter out posts based on their slugs or ids |
||
17 | * |
||
18 | * @var array |
||
19 | */ |
||
20 | protected $exceptPosts; |
||
21 | |||
22 | /** |
||
23 | * Filter out posts based on their categories slugs or ids |
||
24 | * |
||
25 | * @var array |
||
26 | */ |
||
27 | protected $exceptCategories; |
||
28 | |||
29 | /** |
||
30 | * Properties for list exceptions handling |
||
31 | * |
||
32 | * @return array |
||
33 | */ |
||
34 | private function getPostExceptionProperties(): array |
||
55 | |||
56 | /** |
||
57 | * @return void |
||
58 | */ |
||
59 | private function populateExceptions() |
||
64 | |||
65 | /** |
||
66 | * @param $query |
||
67 | */ |
||
68 | private function handlePostExceptions(Builder $query) |
||
73 | |||
74 | /** |
||
75 | * @param string $property |
||
76 | * |
||
77 | * @return array |
||
78 | */ |
||
79 | private function extractArrayFromProperty(string $property): array |
||
83 | |||
84 | /** |
||
85 | * Separates parameters into two arrays: ids and slugs |
||
86 | * |
||
87 | * @param array $parameters |
||
88 | * |
||
89 | * @return array Ids array an slugs array |
||
90 | */ |
||
91 | private static function separateParameters(array $parameters): array |
||
105 | |||
106 | /** |
||
107 | * @param Builder $query |
||
108 | * @param array $exceptCategories |
||
109 | */ |
||
110 | public static function handleExceptionByCategory($query, array $exceptCategories) |
||
126 | |||
127 | /** |
||
128 | * @param Builder $query |
||
129 | * @param array $exceptPosts |
||
130 | */ |
||
131 | public static function handleExceptionsByPost(Builder $query, array $exceptPosts) |
||
145 | } |
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.