| Total Complexity | 2 |
| Total Lines | 44 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 2 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 9 | class SecurityCommand extends Command |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var string |
||
| 13 | */ |
||
| 14 | protected $name = 'security-check:now'; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var string |
||
| 18 | */ |
||
| 19 | protected $description = 'Checks composer.lock for any vulnerabilities against the SensioLabs checker.'; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var SecurityChecker |
||
| 23 | */ |
||
| 24 | protected $checker; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * SecurityCommand constructor. |
||
| 28 | * |
||
| 29 | * @param SecurityChecker $checker |
||
| 30 | */ |
||
| 31 | 27 | public function __construct(SecurityChecker $checker) |
|
| 32 | { |
||
| 33 | 27 | parent::__construct(); |
|
| 34 | |||
| 35 | 27 | $this->checker = $checker; |
|
| 36 | 27 | } |
|
| 37 | |||
| 38 | /** |
||
| 39 | * Execute the command |
||
| 40 | */ |
||
| 41 | 6 | public function handle() |
|
| 53 | } |
||
| 54 | } |
||
| 55 |