| Total Complexity | 3 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 11 | class ImportMessageBuilder |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var ImportMessageFactory |
||
|
|
|||
| 15 | */ |
||
| 16 | private $importMessageFactory; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @param ImportMessageFactory $importMessageFactory |
||
| 20 | */ |
||
| 21 | public function __construct(ImportMessageFactory $importMessageFactory) |
||
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @param int $limit |
||
| 28 | * @param int $offset |
||
| 29 | * @return ImportMessage |
||
| 30 | */ |
||
| 31 | public function build(int $limit = 100, int $offset = 0): ImportMessage |
||
| 32 | { |
||
| 33 | /** @var ImportMessage $message */ |
||
| 34 | $message = $this->importMessageFactory->create(); |
||
| 35 | |||
| 36 | $message->setLimit($limit) |
||
| 37 | ->setOffset($offset); |
||
| 38 | |||
| 39 | return $message; |
||
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @param ImportMessage $lastMessage |
||
| 44 | * @return ImportMessage |
||
| 45 | */ |
||
| 46 | public function buildNextMessage(ImportMessage $lastMessage): ImportMessage |
||
| 51 | ); |
||
| 52 | } |
||
| 54 |
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