Conditions | 5 |
Paths | 4 |
Total Lines | 15 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
31 | protected function isValidCheck(RequestInterface $request, Micro $app): bool |
||
32 | { |
||
33 | $calledRoute = $app['router']->getMatchedRoute()->getCompiledPattern(); |
||
34 | |||
35 | if (isset($app['userData']) && !Subscription::getPaymentStatus($app->getDI()->getUserData())) { |
||
36 | if (!array_key_exists($calledRoute, $this->bypassRoutes)) { |
||
37 | throw new SubscriptionPlanFailureException('Subscription expired,update payment method or verify payment'); |
||
38 | } else { |
||
39 | if (!in_array($request->getMethod(), $this->bypassRoutes[$calledRoute])) { |
||
40 | throw new SubscriptionPlanFailureException('Subscription expired,update payment method or verify payment'); |
||
41 | } |
||
42 | } |
||
43 | } |
||
44 | |||
45 | return true; |
||
46 | } |
||
48 |
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