
| Current Path : /var/www/html/rocksensor3/vendor/consolidation/robo/src/Task/Composer/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/rocksensor3/vendor/consolidation/robo/src/Task/Composer/Validate.php |
<?php
namespace Robo\Task\Composer;
/**
* Composer Validate
*
* ``` php
* <?php
* // simple execution
* $this->taskComposerValidate()->run();
* ?>
* ```
*/
class Validate extends Base
{
/**
* {@inheritdoc}
*/
protected $action = 'validate';
/**
* @param bool $noCheckAll
*
* @return $this
*/
public function noCheckAll($noCheckAll = true)
{
if ($noCheckAll) {
$this->option('--no-check-all');
}
return $this;
}
/**
* @param bool $noCheckLock
*
* @return $this
*/
public function noCheckLock($noCheckLock = true)
{
if ($noCheckLock) {
$this->option('--no-check-lock');
}
return $this;
}
/**
* @param bool $noCheckPublish
*
* @return $this
*/
public function noCheckPublish($noCheckPublish = true)
{
if ($noCheckPublish) {
$this->option('--no-check-publish');
}
return $this;
}
/**
* @param bool $withDependencies
*
* @return $this
*/
public function withDependencies($withDependencies = true)
{
if ($withDependencies) {
$this->option('--with-dependencies');
}
return $this;
}
/**
* @param bool $strict
*
* @return $this
*/
public function strict($strict = true)
{
if ($strict) {
$this->option('--strict');
}
return $this;
}
/**
* {@inheritdoc}
*/
public function run()
{
$command = $this->getCommand();
$this->printTaskInfo('Validating composer.json: {command}', ['command' => $command]);
return $this->executeCommand($command);
}
}