| Total Complexity | 3 |
| Total Lines | 57 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | class CreateWebhook extends Command |
||
| 21 | { |
||
| 22 | const WEBHOOK_LINK = 'link'; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Create. |
||
| 26 | * |
||
| 27 | * @var Moip\Magento2\Model\Console\Command\Preference\Create |
||
| 28 | */ |
||
| 29 | protected $create; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * State. |
||
| 33 | * |
||
| 34 | * @var \Magento\Framework\App\State |
||
| 35 | */ |
||
| 36 | protected $state; |
||
| 37 | |||
| 38 | /** |
||
| 39 | * CreateWebhook constructor. |
||
| 40 | * |
||
| 41 | * @param Create $create |
||
| 42 | */ |
||
| 43 | public function __construct( |
||
| 50 | } |
||
| 51 | |||
| 52 | /** |
||
| 53 | * {@inheritdoc} |
||
| 54 | */ |
||
| 55 | protected function execute( |
||
| 56 | InputInterface $input, |
||
| 57 | OutputInterface $output |
||
| 58 | ) { |
||
| 59 | $this->state->setAreaCode(\Magento\Framework\App\Area::AREA_ADMINHTML); |
||
| 60 | $this->create->setOutput($output); |
||
| 61 | |||
| 62 | $link = $input->getArgument(self::WEBHOOK_LINK); |
||
| 63 | $this->create->preference($link); |
||
| 64 | } |
||
| 65 | |||
| 66 | /** |
||
| 67 | * {@inheritdoc} |
||
| 68 | */ |
||
| 69 | protected function configure() |
||
| 77 | } |
||
| 78 | } |
||
| 79 |
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