| Total Complexity | 4 |
| Total Lines | 53 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 12 | class UserNotificationSubscriptionQuery extends AbstractQuery |
||
| 13 | { |
||
| 14 | use Cacheable; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var string |
||
| 18 | */ |
||
| 19 | private $notification; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * UserNotificationSubscriptionQuery constructor. |
||
| 23 | * |
||
| 24 | * @param AbstractNotification $notification |
||
| 25 | */ |
||
| 26 | public function __construct(AbstractNotification $notification) |
||
| 27 | { |
||
| 28 | $this->notification = getClassName($notification); |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Retrieve a Collection of User's that are subscribed to a Notification. |
||
| 33 | * |
||
| 34 | * - only return user 'Stephen Neal' if environment is not 'production' |
||
| 35 | * |
||
| 36 | * @return Collection|int|mixed |
||
| 37 | */ |
||
| 38 | public function execute() |
||
| 54 | } |
||
| 55 | } |
||
| 56 | |||
| 57 | /** |
||
| 58 | * Retrieve the Query cache key. |
||
| 59 | * |
||
| 60 | * @return string |
||
| 61 | */ |
||
| 62 | public function cacheKey(): string |
||
| 67 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths