BRAIN-43 - Implemented integration workflow #177
php.yml
on: pull_request
ecs
14s
phpstan
33s
phpunit-unit
17s
phpunit-integration
29s
infection
53s
doctrine
19s
Annotations
2 errors and 10 warnings
phpstan
Child process error: PHPStan process crashed because it reached configured PHP memory limit: 2G
Increase your memory limit in php.ini or run PHPStan with --memory-limit CLI option.
while running parallel worker
|
phpstan
Process completed with exit code 1.
|
infection:
src/Command/ManifestGenerateCommand.php#L35
Escaped Mutant for Mutator "LogicalOr":
@@ @@
protected function execute(InputInterface $input, OutputInterface $output): int
{
$io = new SymfonyStyle($input, $output);
- if ($this->appUrl === null || $this->appSecret === null || $this->environment === null || $this->projectDir === null) {
+ if ($this->appUrl === null && $this->appSecret === null || $this->environment === null || $this->projectDir === null) {
$io->error('Missing environment variables');
return Command::FAILURE;
}
|
infection:
src/Command/ManifestGenerateCommand.php#L35
Escaped Mutant for Mutator "LogicalOr":
@@ @@
protected function execute(InputInterface $input, OutputInterface $output): int
{
$io = new SymfonyStyle($input, $output);
- if ($this->appUrl === null || $this->appSecret === null || $this->environment === null || $this->projectDir === null) {
+ if (($this->appUrl === null || $this->appSecret === null) && $this->environment === null || $this->projectDir === null) {
$io->error('Missing environment variables');
return Command::FAILURE;
}
|
infection:
src/Command/ManifestGenerateCommand.php#L35
Escaped Mutant for Mutator "LogicalOr":
@@ @@
protected function execute(InputInterface $input, OutputInterface $output): int
{
$io = new SymfonyStyle($input, $output);
- if ($this->appUrl === null || $this->appSecret === null || $this->environment === null || $this->projectDir === null) {
+ if (($this->appUrl === null || $this->appSecret === null || $this->environment === null) && $this->projectDir === null) {
$io->error('Missing environment variables');
return Command::FAILURE;
}
|
infection:
src/Command/ManifestGenerateCommand.php#L41
Escaped Mutant for Mutator "ArrayItemRemoval":
@@ @@
$io->error('Missing environment variables');
return Command::FAILURE;
}
- $manifest = $this->twig->render('manifest.xml.twig', ['appUrl' => $this->environment === 'prod' ? 'https://braintree.shopware.com' : $this->appUrl, 'appSecret' => $this->appSecret, 'isProd' => $this->environment === 'prod']);
+ $manifest = $this->twig->render('manifest.xml.twig', ['appSecret' => $this->appSecret, 'isProd' => $this->environment === 'prod']);
$write = true;
if ($this->manifestExists() && !$input->getOption('force')) {
$write = $io->confirm('manifest.xml already exists. Do you want to overwrite it?', false);
|
infection:
src/Command/ManifestGenerateCommand.php#L42
Escaped Mutant for Mutator "Identical":
@@ @@
$io->error('Missing environment variables');
return Command::FAILURE;
}
- $manifest = $this->twig->render('manifest.xml.twig', ['appUrl' => $this->environment === 'prod' ? 'https://braintree.shopware.com' : $this->appUrl, 'appSecret' => $this->appSecret, 'isProd' => $this->environment === 'prod']);
+ $manifest = $this->twig->render('manifest.xml.twig', ['appUrl' => $this->environment !== 'prod' ? 'https://braintree.shopware.com' : $this->appUrl, 'appSecret' => $this->appSecret, 'isProd' => $this->environment === 'prod']);
$write = true;
if ($this->manifestExists() && !$input->getOption('force')) {
$write = $io->confirm('manifest.xml already exists. Do you want to overwrite it?', false);
|
infection:
src/Command/ManifestGenerateCommand.php#L42
Escaped Mutant for Mutator "Ternary":
@@ @@
$io->error('Missing environment variables');
return Command::FAILURE;
}
- $manifest = $this->twig->render('manifest.xml.twig', ['appUrl' => $this->environment === 'prod' ? 'https://braintree.shopware.com' : $this->appUrl, 'appSecret' => $this->appSecret, 'isProd' => $this->environment === 'prod']);
+ $manifest = $this->twig->render('manifest.xml.twig', ['appUrl' => $this->environment === 'prod' ? $this->appUrl : 'https://braintree.shopware.com', 'appSecret' => $this->appSecret, 'isProd' => $this->environment === 'prod']);
$write = true;
if ($this->manifestExists() && !$input->getOption('force')) {
$write = $io->confirm('manifest.xml already exists. Do you want to overwrite it?', false);
|
infection:
src/Command/ManifestGenerateCommand.php#L43
Escaped Mutant for Mutator "ArrayItem":
@@ @@
$io->error('Missing environment variables');
return Command::FAILURE;
}
- $manifest = $this->twig->render('manifest.xml.twig', ['appUrl' => $this->environment === 'prod' ? 'https://braintree.shopware.com' : $this->appUrl, 'appSecret' => $this->appSecret, 'isProd' => $this->environment === 'prod']);
+ $manifest = $this->twig->render('manifest.xml.twig', ['appUrl' => $this->environment === 'prod' ? 'https://braintree.shopware.com' : $this->appUrl, 'appSecret' > $this->appSecret, 'isProd' => $this->environment === 'prod']);
$write = true;
if ($this->manifestExists() && !$input->getOption('force')) {
$write = $io->confirm('manifest.xml already exists. Do you want to overwrite it?', false);
|
infection:
src/Command/ManifestGenerateCommand.php#L44
Escaped Mutant for Mutator "Identical":
@@ @@
$io->error('Missing environment variables');
return Command::FAILURE;
}
- $manifest = $this->twig->render('manifest.xml.twig', ['appUrl' => $this->environment === 'prod' ? 'https://braintree.shopware.com' : $this->appUrl, 'appSecret' => $this->appSecret, 'isProd' => $this->environment === 'prod']);
+ $manifest = $this->twig->render('manifest.xml.twig', ['appUrl' => $this->environment === 'prod' ? 'https://braintree.shopware.com' : $this->appUrl, 'appSecret' => $this->appSecret, 'isProd' => $this->environment !== 'prod']);
$write = true;
if ($this->manifestExists() && !$input->getOption('force')) {
$write = $io->confirm('manifest.xml already exists. Do you want to overwrite it?', false);
|
infection:
src/Command/ManifestGenerateCommand.php#L68
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
}
protected function configure(): void
{
- $this->setDescription('Generate the manifest.xml');
+
$this->addOption('force', 'f', null, 'Force overwrite');
}
protected function manifestExists(): bool
|
infection:
src/Command/ManifestGenerateCommand.php#L69
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
protected function configure(): void
{
$this->setDescription('Generate the manifest.xml');
- $this->addOption('force', 'f', null, 'Force overwrite');
+
}
protected function manifestExists(): bool
{
|