| Conditions | 3 |
| Paths | 4 |
| Total Lines | 19 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | public static function constructSearchDomains($params) |
||
| 27 | { |
||
| 28 | $domains = []; |
||
| 29 | |||
| 30 | $consumedParams = [self::ANNOUNCEMENTS, self::PAGES]; |
||
| 31 | |||
| 32 | $params[self::PAGES] = static::forceBooleanParameter($params, self::PAGES); |
||
| 33 | $params[self::ANNOUNCEMENTS] = static::forceBooleanParameter($params, self::ANNOUNCEMENTS); |
||
| 34 | |||
| 35 | if ($params[self::PAGES]) { |
||
| 36 | $domains[] = new PagesSearch(static::consumeParameters($params, $consumedParams)); |
||
| 37 | } |
||
| 38 | |||
| 39 | if ($params[self::ANNOUNCEMENTS]) { |
||
| 40 | $domains[] = new AnnouncementsSearch(static::consumeParameters($params, $consumedParams)); |
||
| 41 | } |
||
| 42 | |||
| 43 | return $domains; |
||
| 44 | } |
||
| 45 | } |
||
| 46 |
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.